Build 1.0_r1(from source)

android.test
Class TestBrowserActivity

java.lang.Object
  extended by android.content.Context
      extended by android.content.ContextWrapper
          extended by android.view.ContextThemeWrapper
              extended by android.app.Activity
                  extended by android.app.ListActivity
                      extended by android.test.TestBrowserActivity
All Implemented Interfaces:
ComponentCallbacks, TestBrowserView, TestSuiteProvider, KeyEvent.Callback, LayoutInflater.Factory, View.OnCreateContextMenuListener, Window.Callback, AdapterView.OnItemClickListener

public abstract class TestBrowserActivity
extends ListActivity
implements TestBrowserView, AdapterView.OnItemClickListener, TestSuiteProvider


Field Summary
static String BUNDLE_EXTRA_PACKAGE
           
 
Fields inherited from class android.app.ListActivity
mAdapter, mList
 
Fields inherited from class android.app.Activity
DEFAULT_KEYS_DIALER, DEFAULT_KEYS_DISABLE, DEFAULT_KEYS_SEARCH_GLOBAL, DEFAULT_KEYS_SEARCH_LOCAL, DEFAULT_KEYS_SHORTCUT, FOCUSED_STATE_SET, RESULT_CANCELED, RESULT_FIRST_USER, RESULT_OK
 
Fields inherited from class android.content.Context
ACTIVITY_SERVICE, ALARM_SERVICE, AUDIO_SERVICE, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BLUETOOTH_SERVICE, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MODE_APPEND, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NOTIFICATION_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, STATUS_BAR_SERVICE, TELEPHONY_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
 
Constructor Summary
TestBrowserActivity()
           
 
Method Summary
 TestSuite getTestSuite()
           
abstract  TestSuite getTopTestSuite()
           
protected  void onCreate(Bundle savedInstanceState)
          Called when the activity is starting.
 void onItemClick(AdapterView parent, View v, int position, long id)
          Callback method to be invoked when an item in this AdapterView has been clicked.
protected  void onStart()
          Called after Activity.onCreate(android.os.Bundle) or Activity.onStop() when the current activity is now being displayed to the user.
 void setTestNames(List<String> testNames)
           
 
Methods inherited from class android.app.ListActivity
getListAdapter, getListView, getSelectedItemId, getSelectedItemPosition, onContentChanged, onListItemClick, onRestoreInstanceState, setListAdapter, setSelection
 
Methods inherited from class android.app.Activity
addContentView, closeOptionsMenu, createPendingResult, dismissDialog, dispatchKeyEvent, dispatchTouchEvent, dispatchTrackballEvent, finalize, findViewById, finish, finishActivity, finishActivityFromChild, finishFromChild, getApplication, getCallingActivity, getCallingPackage, getChangingConfigurations, getComponentName, getCurrentFocus, getInstanceCount, getIntent, getLastNonConfigurationInstance, getLayoutInflater, getLocalClassName, getMenuInflater, getParent, getPreferences, getRequestedOrientation, getSystemService, getTaskId, getTitle, getTitleColor, getVolumeControlStream, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, getWindow, getWindowManager, isChild, isFinishing, isTaskRoot, managedCommitUpdates, managedQuery, managedQuery, moveTaskToBack, onActivityResult, onApplyThemeResource, onChildTitleChanged, onConfigurationChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateDescription, onCreateDialog, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onCreateThumbnail, onCreateView, onDestroy, onKeyDown, onKeyMultiple, onKeyUp, onLowMemory, onMenuItemSelected, onMenuOpened, onNewIntent, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPause, onPostCreate, onPostResume, onPrepareDialog, onPrepareOptionsMenu, onPreparePanel, onRestart, onResume, onRetainNonConfigurationInstance, onSaveInstanceState, onSearchRequested, onStop, onTitleChanged, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, openContextMenu, openOptionsMenu, registerForContextMenu, removeDialog, requestWindowFeature, runOnUiThread, setContentView, setContentView, setContentView, setDefaultKeyMode, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setIntent, setPersistent, setProgress, setProgressBarIndeterminate, setProgressBarIndeterminateVisibility, setProgressBarVisibility, setRequestedOrientation, setResult, setResult, setSecondaryProgress, setTitle, setTitle, setTitleColor, setVolumeControlStream, showDialog, startActivity, startActivityForResult, startActivityFromChild, startActivityIfNeeded, startManagingCursor, startNextMatchingActivity, startSearch, stopManagingCursor, takeKeyEvents, unregisterForContextMenu
 
Methods inherited from class android.view.ContextThemeWrapper
attachBaseContext, getTheme, setTheme
 
Methods inherited from class android.content.ContextWrapper
bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getFilesDir, getFileStreamPath, getMainLooper, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getWallpaper, grantUriPermission, openFileInput, openFileOutput, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, setWallpaper, setWallpaper, startInstrumentation, startService, stopService, unbindService, unregisterReceiver
 
Methods inherited from class android.content.Context
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_EXTRA_PACKAGE

public static final String BUNDLE_EXTRA_PACKAGE
See Also:
Constant Field Values
Constructor Detail

TestBrowserActivity

public TestBrowserActivity()
Method Detail

onCreate

protected void onCreate(Bundle savedInstanceState)
Description copied from class: Activity
Called when the activity is starting. This is where most initialization should go: calling Activity.setContentView(int) to inflate the activity's UI, using Activity.findViewById(int) to programmatically interact with widgets in the UI, calling Activity.managedQuery(android.net.Uri , String[], String, String[], String) to retrieve cursors for data being displayed, etc.

You can call Activity.finish() from within this function, in which case onDestroy() will be immediately called without any of the rest of the activity lifecycle (Activity.onStart(), Activity.onResume(), Activity.onPause(), etc) executing.

Derived classes must call through to the super class's implementation of this method. If they do not, an exception will be thrown.

Overrides:
onCreate in class Activity
Parameters:
savedInstanceState - If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in Activity.onSaveInstanceState(android.os.Bundle). Note: Otherwise it is null.
See Also:
Activity.onStart(), Activity.onSaveInstanceState(android.os.Bundle), Activity.onRestoreInstanceState(android.os.Bundle), Activity.onPostCreate(android.os.Bundle)

onStart

protected void onStart()
Description copied from class: Activity
Called after Activity.onCreate(android.os.Bundle) or Activity.onStop() when the current activity is now being displayed to the user. It will be followed by Activity.onRestart().

Derived classes must call through to the super class's implementation of this method. If they do not, an exception will be thrown.

Overrides:
onStart in class Activity
See Also:
Activity.onCreate(android.os.Bundle), Activity.onStop(), Activity.onResume()

getTestSuite

public TestSuite getTestSuite()
Specified by:
getTestSuite in interface TestSuiteProvider

getTopTestSuite

public abstract TestSuite getTopTestSuite()
Returns:
A TestSuite that should be run for a given application.

onItemClick

public void onItemClick(AdapterView parent,
                        View v,
                        int position,
                        long id)
Description copied from interface: AdapterView.OnItemClickListener
Callback method to be invoked when an item in this AdapterView has been clicked.

Implementers can call getItemAtPosition(position) if they need to access the data associated with the selected item.

Specified by:
onItemClick in interface AdapterView.OnItemClickListener
Parameters:
parent - The AdapterView where the click happened.
v - The view within the AdapterView that was clicked (this will be a view provided by the adapter)
position - The position of the view in the adapter.
id - The row id of the item that was clicked.

setTestNames

public void setTestNames(List<String> testNames)
Specified by:
setTestNames in interface TestBrowserView

Build 1.0_r1(from source)

Please submit a feedback, bug or feature