/frameworks/base/core/java/android/app/ |
D | Application.java | 73 default void onActivityPreCreated(@NonNull Activity activity, in onActivityPreCreated() 80 void onActivityCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState); in onActivityCreated() 86 default void onActivityPostCreated(@NonNull Activity activity, in onActivityPostCreated() 94 default void onActivityPreStarted(@NonNull Activity activity) { in onActivityPreStarted() 100 void onActivityStarted(@NonNull Activity activity); in onActivityStarted() 106 default void onActivityPostStarted(@NonNull Activity activity) { in onActivityPostStarted() 113 default void onActivityPreResumed(@NonNull Activity activity) { in onActivityPreResumed() 119 void onActivityResumed(@NonNull Activity activity); in onActivityResumed() 125 default void onActivityPostResumed(@NonNull Activity activity) { in onActivityPostResumed() 132 default void onActivityPrePaused(@NonNull Activity activity) { in onActivityPrePaused() [all …]
|
D | Instrumentation.java | 403 private void waitForEnterAnimationComplete(Activity activity) { in waitForEnterAnimationComplete() 463 public Activity startActivitySync(Intent intent) { in startActivitySync() 492 public Activity startActivitySync(@NonNull Intent intent, @Nullable Bundle options) { in startActivitySync() 559 /*package*/ Activity mLastActivity = null; 666 public final Activity getLastActivity() { in getLastActivity() 676 public final Activity waitForActivity() { in waitForActivity() 684 Activity res = mLastActivity; in waitForActivity() 699 public final Activity waitForActivityWithTimeout(long timeOut) { in waitForActivityWithTimeout() 710 Activity res = mLastActivity; in waitForActivityWithTimeout() 736 Activity activity, in match() [all …]
|
D | FragmentHostCallback.java | 47 private final Activity mActivity; 64 this((context instanceof Activity) ? (Activity)context : null, context, in FragmentHostCallback() 68 FragmentHostCallback(Activity activity) { in FragmentHostCallback() 72 FragmentHostCallback(Activity activity, Context context, Handler handler, in FragmentHostCallback() 85 if (handler == null && context instanceof Activity) { in chooseHandler() 86 Activity activity = (Activity) context; in chooseHandler() 229 Activity getActivity() { in getActivity()
|
/frameworks/base/core/java/android/nfc/ |
D | NfcActivityManager.java | 20 import android.app.Activity; 113 Activity activity; 125 public NfcActivityState(Activity activity) { in NfcActivityState() 164 synchronized NfcActivityState findActivityState(Activity activity) { in findActivityState() 174 synchronized NfcActivityState getActivityState(Activity activity) { in getActivityState() 192 synchronized void destroyActivityState(Activity activity) { in destroyActivityState() 206 public void enableReaderMode(Activity activity, ReaderCallback callback, int flags, in enableReaderMode() 223 public void disableReaderMode(Activity activity) { in disableReaderMode() 249 public void setNdefPushContentUri(Activity activity, Uri[] uris) { in setNdefPushContentUri() 266 public void setNdefPushContentUriCallback(Activity activity, in setNdefPushContentUriCallback() [all …]
|
D | NfcAdapter.java | 25 import android.app.Activity; 992 public void setBeamPushUris(Uri[] uris, Activity activity) { in setBeamPushUris() 1080 public void setBeamPushUrisCallback(CreateBeamUrisCallback callback, Activity activity) { in setBeamPushUrisCallback() 1170 public void setNdefPushMessage(NdefMessage message, Activity activity, in setNdefPushMessage() 1171 Activity ... activities) { in setNdefPushMessage() 1186 for (Activity a : activities) { in setNdefPushMessage() 1208 public void setNdefPushMessage(NdefMessage message, Activity activity, int flags) { in setNdefPushMessage() 1289 public void setNdefPushMessageCallback(CreateNdefMessageCallback callback, Activity activity, in setNdefPushMessageCallback() 1290 Activity ... activities) { in setNdefPushMessageCallback() 1305 for (Activity a : activities) { in setNdefPushMessageCallback() [all …]
|
/frameworks/base/core/java/android/companion/ |
D | CompanionDeviceManager.java | 25 import android.app.Activity; 260 private Activity getActivity() { in getActivity() 261 return (Activity) mContext; in getActivity() 311 public void onActivityDestroyed(Activity activity) { in onActivityDestroyed() 326 @Override public void onActivityCreated(Activity activity, Bundle savedInstanceState) {} in onActivityCreated() 327 @Override public void onActivityStarted(Activity activity) {} in onActivityStarted() 328 @Override public void onActivityResumed(Activity activity) {} in onActivityResumed() 329 @Override public void onActivityPaused(Activity activity) {} in onActivityPaused() 330 @Override public void onActivityStopped(Activity activity) {} in onActivityStopped() 331 @Override public void onActivitySaveInstanceState(Activity activity, Bundle outState) {} in onActivitySaveInstanceState()
|
/frameworks/base/core/java/android/speech/ |
D | RecognizerIntent.java | 21 import android.app.Activity; 278 public static final int RESULT_NO_MATCH = Activity.RESULT_FIRST_USER; 280 public static final int RESULT_CLIENT_ERROR = Activity.RESULT_FIRST_USER + 1; 282 public static final int RESULT_SERVER_ERROR = Activity.RESULT_FIRST_USER + 2; 284 public static final int RESULT_NETWORK_ERROR = Activity.RESULT_FIRST_USER + 3; 286 public static final int RESULT_AUDIO_ERROR = Activity.RESULT_FIRST_USER + 4;
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityThreadTest.java | 29 import android.app.Activity; 79 final Activity activity = mActivityTestRule.launchActivity(new Intent()); in testDoubleRelaunch() 89 final Activity activity = mActivityTestRule.launchActivity(new Intent()); in testResumeAfterRelaunch() 99 final Activity activity = mActivityTestRule.launchActivity(new Intent()); in testSleepAndStop() 110 final Activity activity = mActivityTestRule.launchActivity(new Intent()); in testRepeatedResume() 127 final Activity activity = mActivityTestRule.launchActivity(initIntent); in testCustomIntentPreservedOnRelaunch() 135 final Activity newActivity = activityThread.getActivity(token); in testCustomIntentPreservedOnRelaunch() 146 final Activity lastActivity = activityThread.getActivity(token); in testCustomIntentPreservedOnRelaunch() 184 final Activity newActivity = activityThread.getActivity(token[0]); in testHandleActivity_assetsChanged() 319 final Activity activity = mActivityTestRule.launchActivity(new Intent()); in testResumeAfterNewIntent() [all …]
|
D | ActivityTestsBase.java | 19 import android.app.Activity; 105 finishWithResult(Activity.RESULT_OK, null); in finishGood() 109 finishWithResult(Activity.RESULT_CANCELED, (new Intent()).setAction(error)); in finishBad() 150 if (res == Activity.RESULT_CANCELED) { in waitForResultOrThrow() 188 mResultCode = Activity.RESULT_CANCELED; in waitForResult() 209 finishWithResult(Activity.RESULT_CANCELED, (new Intent()).setAction(msg)); in onTimeout()
|
/frameworks/base/test-runner/src/android/test/ |
D | ActivityTestCase.java | 19 import android.app.Activity; 38 private Activity mActivity; 43 protected Activity getActivity() { in getActivity() 51 protected void setActivity(Activity testActivity) { in setActivity()
|
D | ActivityUnitTestCase.java | 19 import android.app.Activity; 80 public abstract class ActivityUnitTestCase<T extends Activity> 279 private static class MockParent extends Activity { 319 public void startActivityFromChild(Activity child, Intent intent, int requestCode) { in startActivityFromChild() 332 public void finishFromChild(Activity child) { in finishFromChild() 343 public void finishActivityFromChild(Activity child, int requestCode) { in finishActivityFromChild()
|
D | ActivityInstrumentationTestCase2.java | 19 import android.app.Activity; 47 public abstract class ActivityInstrumentationTestCase2<T extends Activity> 97 Activity a = super.getActivity(); in getActivity() 163 Activity a = super.getActivity(); in tearDown()
|
D | SingleLaunchActivityTestCase.java | 19 import android.app.Activity; 35 public abstract class SingleLaunchActivityTestCase<T extends Activity> 60 private static Activity sActivity;
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | RenderNodeAnimatorTest.java | 22 import android.app.Activity; 36 public ActivityTestRule<Activity> mActivityRule = new ActivityTestRule<>(Activity.class); 42 private Activity getActivity() { in getActivity()
|
D | ViewRootSurfaceCallbackTest.java | 24 import android.app.Activity; 44 public ActivityTestRule<Activity> mActivityRule = new ActivityTestRule<>(Activity.class); 57 final Activity activity = mActivityRule.getActivity(); in testCallingTidOfSurfaceCallback()
|
/frameworks/base/packages/SettingsLib/ActionBarShadow/src/com/android/settingslib/widget/ |
D | ActionBarShadowController.java | 23 import android.app.Activity; 51 Activity activity, Lifecycle lifecycle, View scrollView) { in attachToView() 63 private ActionBarShadowController(Activity activity, Lifecycle lifecycle, View scrollView) { in ActionBarShadowController() 97 private final Activity mActivity; 100 ScrollChangeWatcher(Activity activity) { in ScrollChangeWatcher()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbDisconnectedReceiver.java | 19 import android.app.Activity; 31 private final Activity mActivity; 35 public UsbDisconnectedReceiver(Activity activity, UsbDevice device) { in UsbDisconnectedReceiver() 43 public UsbDisconnectedReceiver(Activity activity, UsbAccessory accessory) { in UsbDisconnectedReceiver()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ScreenDecorWindowTests.java | 42 import android.app.Activity; 90 private Activity mTestActivity; 240 private WindowInsets getInsets(Activity a) { in getInsets() 259 private void assertTopInsetEquals(Activity activity, int expected) { in assertTopInsetEquals() 264 private void waitForTopInsetEqual(Activity activity, int expected) { in waitForTopInsetEqual() 272 private void assertInsetGreaterOrEqual(Activity activity, int side, int expected) { in assertInsetGreaterOrEqual() 292 private void waitForInsetGreaterOrEqual(Activity activity, int side, int expected) { in waitForInsetGreaterOrEqual() 315 private void finishActivity(Activity a) { in finishActivity() 327 private Activity startActivityOnDisplay(Class<?> cls, int displayId) { in startActivityOnDisplay() 332 final Activity activity = mInstrumentation.startActivitySync(intent, options.toBundle()); in startActivityOnDisplay() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/ |
D | MetricsFeatureProviderTest.java | 23 import android.app.Activity; 106 final Activity activity = Robolectric.setupActivity(Activity.class); in getAttribution_notSet_shouldReturnUnknown() 117 final Activity activity = Robolectric.buildActivity(Activity.class, intent).create().get(); in getAttribution_set_shouldReturnAttribution()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | AnimatedImageViewTest.java | 21 import android.app.Activity; 37 Activity activity = Robolectric.setupActivity(Activity.class); in setUp()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | OrientationUtil.java | 19 import android.app.Activity; 31 private final Activity mActivity; 54 private OrientationUtil(Activity activity, Instrumentation instrumentation) { in OrientationUtil()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | ActivityCompat.java | 19 import android.app.Activity; 26 private final Activity mWrapped; 28 public ActivityCompat(Activity activity) { in ActivityCompat()
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
D | FindViewByIdTest.java | 22 import android.app.Activity; 39 public ActivityTestRule<Activity> mActivityRule = new ActivityTestRule<>(Activity.class); 45 private Activity getActivity() { in getActivity()
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | DeviceDisconnectedReceiver.java | 19 import android.app.Activity; 32 private final Activity mActivity; 35 public DeviceDisconnectedReceiver(Activity activity, String deviceName) { in DeviceDisconnectedReceiver()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/chooser/ |
D | ChooserHelperTest.java | 28 import android.app.Activity; 51 final Activity mockActivity = mock(Activity.class); in testOnChoose_CallsStartActivityAsCallerWithToken()
|