/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
ActivityContentVideoViewClient.java | 7 import android.app.Activity; 15 * Uses an existing Activity to handle displaying video in full screen. 18 private final Activity mActivity; 21 public ActivityContentVideoViewClient(Activity activity) { 22 this.mActivity = activity;
|
/frameworks/base/core/java/android/app/ |
ActivityGroup.java | 32 public class ActivityGroup extends Activity { 92 * Returns a HashMap mapping from child activity ids to the return values 102 public Activity getCurrentActivity() { 114 Activity act = mLocalActivityManager.getActivity(who);
|
Instrumentation.java | 108 * begin the appropriate first activity of the application. 148 * Application, Activity, BroadcastReceiver, Service, or null. 351 * Start a new activity and wait for it to begin running before returning. 354 * activity component is resolved before talking with the activity manager 359 * select an activity, an exception will be thrown. 361 * <p>The function returns as soon as the activity goes idle following the 362 * call to its {@link Activity#onCreate}. Generally this means it has gone 363 * through the full initialization including {@link Activity#onResume} and 366 * @param intent Description of the activity to start 694 Activity activity = monitor.waitForActivity(); local 713 Activity activity = monitor.waitForActivityWithTimeout(timeOut); local 746 private final Activity activity; field in class:Instrumentation.MenuRunnable 809 private final Activity activity; field in class:Instrumentation.ContextMenuRunnable 1036 Activity activity = (Activity)clazz.newInstance(); local 1740 public Activity activity; field in class:Instrumentation.ActivityWaiter [all...] |
/frameworks/base/keystore/tests/src/android/security/ |
SystemKeyStoreTest.java | 19 import android.app.Activity; 36 public class SystemKeyStoreTest extends ActivityUnitTestCase<Activity> { 43 super(Activity.class);
|
/frameworks/support/v4/java/android/support/v4/app/ |
ActionBarDrawerToggle.java | 20 import android.app.Activity; 38 * <p>To use <code>ActionBarDrawerToggle</code>, create one in your Activity and call through 39 * to the following methods corresponding to your Activity callbacks:</p> 42 * <li>{@link Activity#onConfigurationChanged(android.content.res.Configuration) onConfigurationChanged}</li> 43 * <li>{@link Activity#onOptionsItemSelected(android.view.MenuItem) onOptionsItemSelected}</li> 46 * <p>Call {@link #syncState()} from your <code>Activity</code>'s 47 * {@link Activity#onPostCreate(android.os.Bundle) onPostCreate} to synchronize the indicator 58 * Allows an implementing Activity to return an {@link ActionBarDrawerToggle.Delegate} to use 64 * @return Delegate to use for ActionBarDrawableToggles, or null if the Activity 72 * @return Up indicator drawable as defined in the Activity's theme, or null if one is no [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastOptOutActivity.java | 19 import android.app.Activity; 27 * Container activity for CMAS opt-in/opt-out alert dialog. 29 public class CellBroadcastOptOutActivity extends Activity { 35 Log.d(TAG, "created activity"); 40 * Show the opt-out dialog. Uses the CellBroadcastAlertDialog activity unless the device is 45 static void showOptOutDialog(final Activity activity) { 46 AlertDialog.Builder builder = new AlertDialog.Builder(activity); 53 activity.finish(); 61 Intent intent = new Intent(activity, CellBroadcastSettings.class) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/analytics/ |
Analytics.java | 20 import android.app.Activity; 77 public void activityStart(Activity a) {} 80 public void activityStop(Activity a) {}
|
/packages/experimental/PrintService/src/foo/bar/printservice/ |
CustomPrintOptionsActivity.java | 3 import android.app.Activity; 15 public class CustomPrintOptionsActivity extends Activity { 51 setResult(Activity.RESULT_OK, result);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
FeedbackLayout.java | 19 import android.app.Activity; 26 private Activity mActivity; 40 public void setActivity(Activity activity) { 41 mActivity = activity;
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
FragmentNestingTabs.java | 21 import android.app.Activity; 32 public class FragmentNestingTabs extends Activity { 71 private final Activity mActivity; 77 public TabListener(Activity activity, String tag, Class<T> clz) { 78 this(activity, tag, clz, null); 81 public TabListener(Activity activity, String tag, Class<T> clz, Bundle args) { 82 mActivity = activity;
|
FragmentTabs.java | 23 import android.app.Activity; 33 public class FragmentTabs extends Activity { 71 private final Activity mActivity; 77 public TabListener(Activity activity, String tag, Class<T> clz) { 78 this(activity, tag, clz, null); 81 public TabListener(Activity activity, String tag, Class<T> clz, Bundle args) { 82 mActivity = activity;
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
ViewConfigurationTest.java | 3 import android.app.Activity; 18 Activity context = new Activity(); 55 Activity context = new Activity();
|
/frameworks/base/core/java/android/nfc/ |
NfcActivityManager.java | 19 import android.app.Activity; 33 * Manages NFC API's that are coupled to the life-cycle of an Activity. 36 * into activity life-cycle events such as onPause() and onResume(). 105 * NFC state associated with an {@link Activity} 109 Activity activity; field in class:NfcActivityManager.NfcActivityState 121 public NfcActivityState(Activity activity) { 122 if (activity.getWindow().isDestroyed()) { 123 throw new IllegalStateException("activity is already destroyed") [all...] |
/frameworks/support/v4/honeycomb/android/support/v4/app/ |
ActionBarDrawerToggleHoneycomb.java | 22 import android.app.Activity; 46 public static Object setActionBarUpIndicator(Object info, Activity activity, 49 info = new SetIndicatorInfo(activity); 54 final ActionBar actionBar = activity.getActionBar(); 68 public static Object setActionBarDescription(Object info, Activity activity, 71 info = new SetIndicatorInfo(activity); 76 final ActionBar actionBar = activity.getActionBar(); 85 public static Drawable getThemeUpIndicator(Activity activity) [all...] |
/cts/tests/tests/admin/src/android/admin/cts/ |
DeviceAdminActivationTest.java | 19 import android.app.Activity; 53 // Activity.startActivityForResult, this test creates an empty Activity which then invokes 98 // to the test activity. 100 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED); 111 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED); 122 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED); 133 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED); 144 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED); 155 assertWithTimeoutOnActivityResultInvokedWithResultCode(Activity.RESULT_CANCELED) [all...] |
/cts/tests/src/android/app/cts/ |
ActivityTestsBase.java | 19 import android.app.Activity; 37 // Synchronization of activity result. 106 finishWithResult(Activity.RESULT_OK, null); 110 finishWithResult(Activity.RESULT_CANCELED, new Intent().setAction(error)); 152 if (res == Activity.RESULT_CANCELED) { 188 mResultCode = Activity.RESULT_CANCELED; 209 finishWithResult(Activity.RESULT_CANCELED, new Intent().setAction(msg));
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
ActivityTestsBase.java | 17 package android.app.activity; 19 import android.app.Activity; 37 // Synchronization of activity result. 105 finishWithResult(Activity.RESULT_OK, null); 109 finishWithResult(Activity.RESULT_CANCELED, (new Intent()).setAction(error)); 120 //System.out.println("*** Activity finished!!"); 150 if (res == Activity.RESULT_CANCELED) { 188 mResultCode = Activity.RESULT_CANCELED; 209 finishWithResult(Activity.RESULT_CANCELED, (new Intent()).setAction(msg));
|
/frameworks/base/test-runner/src/android/test/ |
ActivityUnitTestCase.java | 19 import android.app.Activity; 31 * This class provides isolated testing of a single activity. The activity under test will 33 * wrappered versions of many of Activity's dependencies. Most of the work is handled 38 * <p>It must be noted that, as a true unit test, your Activity will not be running in the 43 * <li>{@link android.app.Activity#createPendingResult(int, Intent, int)}</li> 44 * <li>{@link android.app.Activity#startActivityIfNeeded(Intent, int)}</li> 45 * <li>{@link android.app.Activity#startActivityFromChild(Activity, Intent, int)}</li> 46 * <li>{@link android.app.Activity#startNextMatchingActivity(Intent)}</li [all...] |
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/ |
SendCdmaCmasMessages.java | 19 import android.app.Activity; 64 public static void testSendCmasPresAlert(Activity activity, int messageId) { 73 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); 76 public static void testSendCmasExtremeAlert(Activity activity, int messageId) { 85 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); 88 public static void testSendCmasSevereAlert(Activity activity, int messageId) { 97 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS") [all...] |
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/ |
ImageCaptureIntentTest.java | 22 import android.app.Activity; 64 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); 88 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); 117 assertEquals(Activity.RESULT_OK, getActivity().getResultCode()); 133 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode()); 145 assertEquals(Activity.RESULT_CANCELED, getActivity().getResultCode());
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
PassFailButtons.java | 34 * {@link Activity}s to handle clicks to the pass and fail buttons of the pass fail buttons layout. 42 * <li>Make sure to call setResult(RESULT_CANCEL) in your Activity initially.</li> 61 * Call from {@link Activity#onCreate} after {@link Activity #setContentView(int)}. 66 * Adds an initial informational dialog that appears when entering the test activity for 70 * Call from {@link Activity#onCreate} after {@link Activity #setContentView(int)}. 88 public static class Activity extends android.app.Activity implements PassFailActivity { 188 private static <T extends android.app.Activity & PassFailActivity [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
LocalActivityManagerTest.java | 19 import android.app.Activity; 50 new LocalActivityManager(new Activity(), true); 51 new LocalActivityManager(new Activity(), false);
|
/cts/tests/tests/text/src/android/text/style/cts/ |
URLSpanTest.java | 22 import android.app.Activity; 33 private Activity mActivity; 81 Activity newActivity = am.waitForActivityWithTimeout(5000);
|
/developers/build/prebuilts/gradle/CardReader/CardReaderSample/src/main/java/com/example/android/cardreader/ |
CardReaderFragment.java | 19 import android.app.Activity; 37 // activity is interested in NFC-A devices (including other Android devices), and that the 82 Activity activity = getActivity(); local 83 NfcAdapter nfc = NfcAdapter.getDefaultAdapter(activity); 85 nfc.enableReaderMode(activity, mLoyaltyCardReader, READER_FLAGS, null); 91 Activity activity = getActivity(); local 92 NfcAdapter nfc = NfcAdapter.getDefaultAdapter(activity); 94 nfc.disableReaderMode(activity); [all...] |
/developers/samples/android/connectivity/nfc/CardReader/CardReaderSample/src/main/java/com/example/android/cardreader/ |
CardReaderFragment.java | 19 import android.app.Activity; 37 // activity is interested in NFC-A devices (including other Android devices), and that the 82 Activity activity = getActivity(); local 83 NfcAdapter nfc = NfcAdapter.getDefaultAdapter(activity); 85 nfc.enableReaderMode(activity, mLoyaltyCardReader, READER_FLAGS, null); 91 Activity activity = getActivity(); local 92 NfcAdapter nfc = NfcAdapter.getDefaultAdapter(activity); 94 nfc.disableReaderMode(activity); [all...] |