/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ |
D | ScreenManagerTest.java | 38 import android.app.Activity; 79 private static final Map<ManagedProvisioningScreens, Class<? extends Activity>> 81 private static final Map<ManagedProvisioningScreens, Class<? extends Activity>> 143 assertThat(screenManager.getActivityClassForScreen(LANDING)).isEqualTo(Activity.class); in getActivityClassForScreen_withCustomMap_success() 153 Activity.class); in setOverrideActivity_success() 155 assertThat(screenManager.getActivityClassForScreen(LANDING)).isEqualTo(Activity.class); in setOverrideActivity_success() 186 Collection<Class<? extends Activity>> mappedActivities = in isActivityMapped() 205 private static Map<ManagedProvisioningScreens, Class<? extends Activity>> 207 Map<ManagedProvisioningScreens, Class<? extends Activity>> map = new HashMap<>(); in createTestScreenToActivityMap() 208 map.put(LANDING, Activity.class); in createTestScreenToActivityMap() [all …]
|
D | TestInstrumentationRunner.java | 19 import android.app.Activity; 47 Class<? extends Activity> newActivity) { in registerReplacedActivity() 57 public Activity newActivity(ClassLoader cl, String className, Intent intent) in newActivity() 73 public void onActivityCreated(Activity activity, Bundle bundle) { in newApplication() 82 public void onActivityStarted(Activity activity) {} in newApplication() 85 public void onActivityResumed(Activity activity) {} in newApplication() 88 public void onActivityPaused(Activity activity) {} in newApplication() 91 public void onActivityStopped(Activity activity) {} in newApplication() 94 public void onActivitySaveInstanceState(Activity activity, Bundle bundle) {} in newApplication() 97 public void onActivityDestroyed(Activity activity) {} in newApplication() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/ |
D | Snackbars.java | 19 import android.app.Activity; 37 public static final void showDocumentsClipped(Activity activity, int docCount) { in showDocumentsClipped() 43 public static final void showMove(Activity activity, int docCount) { in showMove() 48 public static final void showCopy(Activity activity, int docCount) { in showCopy() 53 public static final void showCompress(Activity activity, int docCount) { in showCompress() 58 public static final void showExtract(Activity activity, int docCount) { in showExtract() 63 public static final void showDelete(Activity activity, int docCount) { in showDelete() 68 public static final void showOperationRejected(Activity activity) { in showOperationRejected() 72 public static final void showOperationFailed(Activity activity) { in showOperationFailed() 76 public static final void showRenameFailed(Activity activity) { in showRenameFailed() [all …]
|
/packages/services/Car/car-lib/src/android/car/app/ |
D | CarTaskViewControllerHostLifecycleFactory.java | 21 import android.app.Activity; 43 public static CarTaskViewControllerHostLifecycle forActivity(@NonNull Activity activity) { in forActivity() 52 CarTaskViewControllerHostActivityLifecycleAdapter(Activity activity) { in CarTaskViewControllerHostActivityLifecycleAdapter() 63 public void onActivityCreated(@NonNull Activity activity, in onActivityCreated() 68 public void onActivityStarted(@NonNull Activity activity) { in onActivityStarted() 74 public void onActivityResumed(@NonNull Activity activity) { in onActivityResumed() 79 public void onActivityPaused(@NonNull Activity activity) { in onActivityPaused() 83 public void onActivityStopped(@NonNull Activity activity) { in onActivityStopped() 88 public void onActivitySaveInstanceState(@NonNull Activity activity, in onActivitySaveInstanceState() 93 public void onActivityDestroyed(@NonNull Activity activity) { in onActivityDestroyed()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ActivityLifecycleCallbacksAdapter.java | 3 import android.app.Activity; 9 default void onActivityCreated(Activity activity, Bundle bundle) { in onActivityCreated() 12 default void onActivityDestroyed(Activity activity) { in onActivityDestroyed() 15 default void onActivityPaused(Activity activity) { in onActivityPaused() 18 default void onActivityResumed(Activity activity) { in onActivityResumed() 21 default void onActivitySaveInstanceState(Activity activity, Bundle bundle) { in onActivitySaveInstanceState() 24 default void onActivityStarted(Activity activity) { in onActivityStarted() 27 default void onActivityStopped(Activity activity) { in onActivityStopped()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DeveloperOptionsActivityLifecycle.java | 19 import android.app.Activity; 41 Activity activity = f.getActivity(); 61 public void onActivityCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) { in onActivityCreated() 71 public void onActivityStarted(@NonNull Activity activity) {} in onActivityStarted() 74 public void onActivityResumed(@NonNull Activity activity) {} in onActivityResumed() 77 public void onActivityPaused(@NonNull Activity activity) {} in onActivityPaused() 80 public void onActivityStopped(@NonNull Activity activity) {} in onActivityStopped() 83 public void onActivitySaveInstanceState(@NonNull Activity activity, @NonNull Bundle outState) {} in onActivitySaveInstanceState() 86 public void onActivityDestroyed(@NonNull Activity activity) {} in onActivityDestroyed()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/ |
D | HiltTestRunner.kt | 19 import android.app.Activity 37 override fun onActivityCreated(activity: Activity, bundle: Bundle?) {} in newApplication() 39 override fun onActivityDestroyed(activity: Activity) {} in newApplication() 41 override fun onActivityPaused(activity: Activity) {} in newApplication() 43 override fun onActivityResumed(activity: Activity) {} in newApplication() 45 override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {} in newApplication() 47 override fun onActivityStarted(activity: Activity) {} in newApplication() 49 override fun onActivityStopped(activity: Activity) {} in newApplication()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/ |
D | HiltTestRunner.kt | 16 import android.app.Activity 33 override fun onActivityCreated(activity: Activity, bundle: Bundle?) { in newApplication() 41 override fun onActivityDestroyed(activity: Activity) {} in newApplication() 43 override fun onActivityPaused(activity: Activity) {} in newApplication() 45 override fun onActivityResumed(activity: Activity) {} in newApplication() 47 override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) {} in newApplication() 49 override fun onActivityStarted(activity: Activity) {} in newApplication() 51 override fun onActivityStopped(activity: Activity) {} in newApplication()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | ChooseLockSettingsHelperTest.java | 16 import android.app.Activity; 46 final Activity activity = Robolectric.setupActivity(Activity.class); in testLaunchConfirmationActivityWithExternal() 76 final Activity activity = Robolectric.setupActivity(Activity.class); in testLaunchConfirmationActivityInternal() 112 Activity activity = Robolectric.buildActivity(Activity.class, intent).get(); in testLaunchConfirmationActivity_internal_shouldPropagateTheme() 131 final Activity activity = Robolectric.setupActivity(Activity.class); in launchConfirmPattern_ForceVerify_shouldLaunchInternalActivity() 151 final Activity activity = Robolectric.setupActivity(Activity.class); in launchConfirmPassword_ForceVerify_shouldLaunchInternalActivity() 171 Activity activity = Robolectric.setupActivity(Activity.class); in launchConfirmPassword_remoteValidation_passwordLockType() 200 Activity activity = Robolectric.setupActivity(Activity.class); in launchConfirmPassword_remoteValidation_pinLockType() 229 Activity activity = Robolectric.setupActivity(Activity.class); in launchConfirmPattern_remoteValidation_patternLockType()
|
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/sdkprovider/ |
D | SdkSandboxActivityRegistryTest.java | 24 import android.app.Activity; 125 Activity activity = new Activity(); in testUnregisterSdkSandboxActivityHandler() 163 Activity activity = new Activity(); in testNotifyOnActivityCreation() 166 ArgumentCaptor<Activity> activityArgumentCaptor = in testNotifyOnActivityCreation() 167 ArgumentCaptor.forClass(Activity.class); in testNotifyOnActivityCreation() 182 Activity activity = new Activity(); in testNotifyOnActivityCreationMultipleTimeSucceed() 202 Activity activity = new Activity(); in testNotifyOnActivityCreation_CallsStatsd() 230 Activity activity = new Activity(); in testNotifyOnActivityCreation_MultipleTimes_CallsStatsd() 255 Activity activity = new Activity(); in testNotifyOnActivityCreation_MultipleTimes_CallsStatsdForTotalLatencyOnce() 277 Activity activity = new Activity(); in testNotifyOnActivityCreation_ExtraParamsMissing_CallsStatsd() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | TransitionHelper.java | 27 import android.app.Activity; 67 public void applyContentScreenTransitions(Activity activity) { in applyContentScreenTransitions() 86 public void applyWaitingScreenTransitions(Activity activity) { in applyWaitingScreenTransitions() 95 public void startActivityWithTransition(Activity activity, Intent intent) { in startActivityWithTransition() 118 Activity activity, Intent intent, int requestCode) { in startActivityForResultWithTransition() 143 Activity activity, Intent intent, UserHandle userHandle) { in startActivityAsUserWithTransition() 160 Activity activity, Intent intent, int requestCode, UserHandle userHandle) { in startActivityForResultAsUserWithTransition() 176 public void finishActivity(Activity activity) { in finishActivity() 186 private Bundle getActivityOptionsForActivity(Activity activity) { in getActivityOptionsForActivity() 193 private boolean hasContentView(Activity activity) { in hasContentView() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | SizeCalculator.java | 18 import android.app.Activity; 99 public static int getNumCategoryColumns(@NonNull Activity activity) { in getNumCategoryColumns() 108 public static int getNumIndividualColumns(@NonNull Activity activity) { in getNumIndividualColumns() 117 public static int getNumFeaturedIndividualColumns(@NonNull Activity activity) { in getNumFeaturedIndividualColumns() 122 private static int getNumCategoryColumns(Activity activity, int windowWidthPx) { in getNumCategoryColumns() 132 private static int getNumFeaturedCategoryColumns(Activity activity, int windowWidthPx) { in getNumFeaturedCategoryColumns() 142 private static int getNumIndividualColumns(Activity activity, int windowWidthPx) { in getNumIndividualColumns() 147 private static int getNumFeaturedIndividualColumns(Activity activity, int windowWidthPx) { in getNumFeaturedIndividualColumns() 173 public static Point getCategoryTileSize(@NonNull Activity activity) { in getCategoryTileSize() 198 public static Point getFeaturedCategoryTileSize(@NonNull Activity activity) { in getFeaturedCategoryTileSize() [all …]
|
/packages/services/Car/packages/CarManagedProvisioning/src/com/android/managedprovisioning/ |
D | CarManagedProvisioningApplication.java | 20 import android.app.Activity; 47 public void onActivityCreated(Activity activity, Bundle savedInstanceState) { 59 public void onActivityStarted(Activity activity) { 63 public void onActivityResumed(Activity activity) { 71 public void onActivityPaused(Activity activity) { 75 public void onActivityStopped(Activity activity) { 79 public void onActivitySaveInstanceState(Activity activity, Bundle outState) { 83 public void onActivityDestroyed(Activity activity) {
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | BitmapCreationCheck.java | 19 import android.app.Activity; 61 public void onActivityCreated(Activity activity, Bundle bundle) { in onActivityCreated() 66 public void onActivityStarted(Activity activity) { } in onActivityStarted() 69 public void onActivityResumed(Activity activity) { } in onActivityResumed() 72 public void onActivityPaused(Activity activity) { } in onActivityPaused() 75 public void onActivityStopped(Activity activity) { } in onActivityStopped() 78 public void onActivitySaveInstanceState(Activity activity, Bundle bundle) { } in onActivitySaveInstanceState() 81 public void onActivityDestroyed(Activity activity) { } in onActivityDestroyed()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | MenuHelper.java | 19 import android.app.Activity; 80 private static void startCameraActivity(Activity activity, Intent intent, in startCameraActivity() 99 public static void gotoMode(int mode, Activity activity) { in gotoMode() 121 public static void gotoVideoMode(Activity activity, boolean resetEffect) { in gotoVideoMode() 127 public static void gotoCameraMode(Activity activity) { in gotoCameraMode() 132 public static void gotoVideoMode(Activity activity, Intent intent) { in gotoVideoMode() 136 public static void gotoCameraMode(Activity activity, Intent intent) { in gotoCameraMode() 140 public static void gotoCameraImageGallery(Activity activity) { in gotoCameraImageGallery() 144 public static void gotoCameraVideoGallery(Activity activity) { in gotoCameraVideoGallery() 148 private static void gotoGallery(Activity activity, int windowTitleId, in gotoGallery()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | LastAccessedStorage.java | 19 import android.app.Activity; 42 Activity activity, ProvidersAccess providers, State state); in getLastAccessed() 44 void setLastAccessed(Activity activity, DocumentStack stack); in setLastAccessed() 46 void setLastAccessedToExternalApp(Activity activity); in setLastAccessedToExternalApp() 60 Activity activity, ProvidersAccess providers, State state) { in getLastAccessed() 78 public void setLastAccessed(Activity activity, DocumentStack stack) { in setLastAccessed() 84 public void setLastAccessedToExternalApp(Activity activity) { in setLastAccessedToExternalApp()
|
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxCodeProvider/src/com/android/sdksandboxcode_1/ |
D | ActivityHandler.java | 25 import android.app.Activity; 53 private final Activity mActivity; 66 Activity activity, in ActivityHandler() 195 @NonNull Activity activity, @Nullable Bundle savedInstanceState) { in registerLifecycleListener() 200 public void onActivityStarted(@NonNull Activity activity) { in registerLifecycleListener() 205 public void onActivityResumed(@NonNull Activity activity) { in registerLifecycleListener() 212 public void onActivityPaused(@NonNull Activity activity) { in registerLifecycleListener() 218 public void onActivityStopped(@NonNull Activity activity) { in registerLifecycleListener() 224 @NonNull Activity activity, @NonNull Bundle outState) { in registerLifecycleListener() 229 public void onActivityDestroyed(@NonNull Activity activity) { in registerLifecycleListener() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/ |
D | ExerciseRouteRequestTest.kt | 18 import android.app.Activity 97 assertThat(result.resultCode).isEqualTo(Activity.RESULT_OK) in requestRoute_showsDialog_clickAllowThis_returnsRoute_permissionRemainsRevoked() 120 assertThat(result.resultCode).isEqualTo(Activity.RESULT_OK) in requestRoute_showsDialog_clickAllowAll_returnsRoute_grantsPermission() 143 assertThat(result.resultCode).isEqualTo(Activity.RESULT_CANCELED) in requestRoute_showsDialog_clickDeny_returnsNull_permissionRemainsRevoked() 159 assertThat(result.resultCode).isEqualTo(Activity.RESULT_OK) in requestRoute_ownSession_writeRouteGranted_readRoutesDenied_returnsRoute() 184 assertThat(result.resultCode).isEqualTo(Activity.RESULT_OK) in requestRoute_ownSession_writeRouteDenied_readRoutesDenied_notUserFixed_showsDialog() 209 assertThat(result.resultCode).isEqualTo(Activity.RESULT_CANCELED) in requestRoute_ownSession_writeRouteDenied_readRoutesDenied_userFixed_returnsNull() 230 assertThat(result.resultCode).isEqualTo(Activity.RESULT_OK) in requestRoute_ownSession_writeRouteDenied_readRoutesGranted_returnsRoute() 249 assertThat(result.resultCode).isEqualTo(Activity.RESULT_OK) in requestRoute_readRoutesGranted_doesNotShowDialog_returnsRoute() 267 assertThat(result.resultCode).isEqualTo(Activity.RESULT_CANCELED) in requestRoute_sessionWithoutRoute_returnsNull() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | ScreenManager.java | 36 import android.app.Activity; 67 static final Map<ManagedProvisioningScreens, Class<? extends Activity>> 70 private final Map<ManagedProvisioningScreens, Class<? extends Activity>> mScreenToActivityMap; 72 ScreenManager(Map<ManagedProvisioningScreens, Class<? extends Activity>> screenToActivityMap) { in ScreenManager() 85 Class<? extends Activity> newClass) { in setOverrideActivity() 95 public Class<? extends Activity> getActivityClassForScreen(ManagedProvisioningScreens screen) { in getActivityClassForScreen() 99 private static Map<ManagedProvisioningScreens, Class<? extends Activity>> 101 Map<ManagedProvisioningScreens, Class<? extends Activity>> map = in createBaseScreenMap()
|
/packages/apps/Car/Launcher/libs/car-launcher-common/src/com/android/car/carlaunchercommon/shortcuts/ |
D | ForceStopShortcutItem.kt | 19 import android.app.Activity in <lambda>() 65 if (context is Activity) { in <lambda>() 67 override fun onActivityCreated(p0: Activity, p1: Bundle?) { in <lambda>() 71 override fun onActivityStarted(p0: Activity) { in <lambda>() 75 override fun onActivityResumed(p0: Activity) { in <lambda>() 79 override fun onActivityPaused(p0: Activity) { in <lambda>() 84 override fun onActivityStopped(p0: Activity) { in <lambda>() 88 override fun onActivitySaveInstanceState(p0: Activity, p1: Bundle) { in <lambda>() 92 override fun onActivityDestroyed(p0: Activity) { in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/overlay/ |
D | SurveyFeatureProvider.java | 18 import android.app.Activity; 38 void downloadSurvey(Activity activity, String surveyId, @Nullable String data); in downloadSurvey() 49 boolean showSurveyIfAvailable(Activity activity, String surveyId); in showSurveyIfAvailable() 88 BroadcastReceiver createAndRegisterReceiver(Activity activity); in createAndRegisterReceiver() 98 static void unregisterReceiver(Activity activity, BroadcastReceiver receiver) { in unregisterReceiver()
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/ |
D | CameraTest.java | 19 import android.app.Activity; 65 ArrayList<WeakReference<Activity>> refs = in checkActivityLeak() 66 new ArrayList<WeakReference<Activity>>(); in checkActivityLeak() 68 Activity activity = getInstrumentation().startActivitySync(intent); in checkActivityLeak() 69 refs.add(new WeakReference<Activity>(activity)); in checkActivityLeak() 78 for (WeakReference<Activity> c: refs) { in checkActivityLeak()
|
/packages/apps/Camera2/tests/src/com/android/camera/functional/ |
D | CameraTest.java | 19 import android.app.Activity; 63 ArrayList<WeakReference<Activity>> refs = in checkActivityLeak() 64 new ArrayList<WeakReference<Activity>>(); in checkActivityLeak() 66 Activity activity = getInstrumentation().startActivitySync(intent); in checkActivityLeak() 67 refs.add(new WeakReference<Activity>(activity)); in checkActivityLeak() 76 for (WeakReference<Activity> c: refs) { in checkActivityLeak()
|
/packages/modules/Uwb/generic_ranging/src/com/android/sensor/ |
D | ArCoreMultiSensorFinder.java | 19 import android.app.Activity; 224 public InstallStatus requestInstall(Activity activity) { in requestInstall() 438 public void onActivityCreated(Activity activity, Bundle bundle) { in onActivityCreated() 442 public void onActivityStarted(Activity activity) { in onActivityStarted() 446 public void onActivityResumed(Activity activity) { in onActivityResumed() 449 public void onActivityResumeFragments(Activity activity) { in onActivityResumeFragments() 453 public void onActivitySaveInstanceState(Activity activity, Bundle bundle) { in onActivitySaveInstanceState() 457 public void onActivityStopped(Activity activity) { in onActivityStopped() 461 public void onActivityPaused(Activity activity) { in onActivityPaused() 466 public void onActivityDestroyed(Activity activity) { in onActivityDestroyed()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/ |
D | ProvisioningActivityBridge.java | 19 import android.app.Activity; 30 void initiateUi(Activity activity); in initiateUi() 35 void onStart(Activity activity); in onStart() 45 void onProvisioningFinalized(Activity activity); in onProvisioningFinalized()
|