/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/ |
D | ScreenPinningTestActivity.java | 32 private ActivityManager mActivityManager; field in ScreenPinningTestActivity 37 mActivityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); in onCreate() 83 if (mActivityManager.isInLockTaskMode()) { 104 if (mActivityManager.isInLockTaskMode()) { 115 if (mActivityManager.isInLockTaskMode()) { 126 if (!mActivityManager.isInLockTaskMode()) { 137 if (!mActivityManager.isInLockTaskMode()) { 148 if (!mActivityManager.isInLockTaskMode()) {
|
/cts/tests/app/src/android/app/cts/ |
D | ForceStopTest.java | 89 private ActivityManager mActivityManager; field in ForceStopTest 104 mActivityManager = mInstrumentation.getContext().getSystemService(ActivityManager.class); in setUp() 122 () -> mActivityManager.forceStopPackage(intent.getPackage())); in forceStopAndStartSimpleActivity() 143 () -> mActivityManager.forceStopPackage(packageName)); in testPackageStoppedState() 181 () -> mActivityManager.forceStopPackage(packageName)); in testPackageRestartedBroadcast() 233 () -> mActivityManager.forceStopPackage(packageName)); in testPackageUnstoppedBroadcast() 271 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_activity() 279 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_activity() 316 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_broadcast() 332 () -> mActivityManager.forceStopPackage(APP_PACKAGE)); in testBootCompletedBroadcasts_broadcast() [all …]
|
D | ActivityManagerTest.java | 194 private ActivityManager mActivityManager; field in ActivityManagerTest 223 mActivityManager = mInstrumentation.getContext().getSystemService(ActivityManager.class); in setUp() 260 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks() 265 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks() 278 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks() 287 mActivityManager.getRecentTasks(-1, 0); in testGetRecentTasks() 301 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); 316 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); 426 runningTaskList = mActivityManager.getRunningTasks(-1); 429 runningTaskList = mActivityManager.getRunningTasks(0); [all …]
|
D | SystemFeaturesTest.java | 76 private ActivityManager mActivityManager; field in SystemFeaturesTest 94 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 322 if (mActivityManager.isLowRamDevice()) { in testLowRamFeature() 556 ConfigurationInfo configInfo = mActivityManager.getDeviceConfigurationInfo(); in testTouchScreenFeatures()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | GlAppSwitchTest.java | 46 private ActivityManager mActivityManager; field in GlAppSwitchTest 76 mActivityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 127 mActivityManager.getRunningTasks(MAX_RUNNING_TASKS); in setReplicaIslandTask() 142 mActivityManager.getRunningTasks(MAX_RUNNING_TASKS); in isReplicaIslandRunning() 159 mActivityManager.moveTaskToFront(show ? mTaskIdReplica : mTaskIdSelf, 0); in showOrHideReplicaIsland()
|
/cts/tests/vr/src/android/vr/cts/ |
D | VrSetFIFOThreadTest.java | 34 private ActivityManager mActivityManager; field in VrSetFIFOThreadTest 90 mActivityManager = in testSetVrThreadAPISuccess() 92 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPISuccess() 113 mActivityManager = in testSetVrThreadAPIFailure() 115 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPIFailure()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | LockTaskHostDrivenTest.java | 51 private ActivityManager mActivityManager; field in LockTaskHostDrivenTest 58 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp() 118 ComponentName topActivity = mActivityManager.getAppTasks().get(0).getTaskInfo().topActivity; in checkLockedActivityIsRunning() 123 () -> (mActivityManager.getLockTaskModeState() in checkLockedActivityIsRunning()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | FeatureTest.java | 40 private ActivityManager mActivityManager; field in FeatureTest 50 mActivityManager = (ActivityManager)getContext().getSystemService(Context.ACTIVITY_SERVICE); in setUp() 57 mActivityManager.getMemoryInfo(memInfo); in setUp()
|
/cts/tests/camera/headlessSystemUserTest/src/android/camera/cts/headlesssystemusertest/ |
D | Camera2HeadlessSystemUserTest.java | 67 private ActivityManager mActivityManager; field in Camera2HeadlessSystemUserTest 84 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp() 85 assertNotNull("Can't get activity manager", mActivityManager); in setUp() 216 assertEquals(userId, mActivityManager.getCurrentUser()); in switchUser() 220 assertEquals(userId, mActivityManager.getCurrentUser()); in switchUser()
|
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | RestrictActivityTest.java | 74 private final ActivityManager mActivityManager = field in RestrictActivityTest 123 assertThat(mActivityManager.isActivityStartAllowedOnDisplay(mContext, displayId, intent)) in restrictedActivity_noGwpc_shouldFail() 134 assertThat(mActivityManager.isActivityStartAllowedOnDisplay(mContext, displayId, intent)) in assertActivityLaunchSucceeds() 146 assertThat(mActivityManager.isActivityStartAllowedOnDisplay(mContext, displayId, intent)) in assertActivityLaunchBlocked()
|
D | RecentTasksTest.java | 51 private final ActivityManager mActivityManager = field in RecentTasksTest 114 return mActivityManager.getRecentTasks(Integer.MAX_VALUE, /*flags=*/0) in isTaskIncludedInRecents()
|
D | ActivityBlockingTest.java | 77 private final ActivityManager mActivityManager = field in ActivityBlockingTest 103 assertThat(mActivityManager.isActivityStartAllowedOnDisplay( in nonTrustedDisplay_startNonEmbeddableActivity_shouldThrowSecurityException() 393 assertThat(mActivityManager.isActivityStartAllowedOnDisplay( in assertActivityLaunchBlocked() 404 assertThat(mActivityManager.isActivityStartAllowedOnDisplay( in assertNoActivityLaunched() 416 assertThat(mActivityManager.isActivityStartAllowedOnDisplay( in assertActivityLaunchAllowed()
|
/cts/tests/app/shared/src/android/app/stubs/shared/ |
D | CloseSystemDialogsTestService.java | 58 private IActivityManager mActivityManager; field in CloseSystemDialogsTestService 67 mActivityManager = IActivityManager.Stub.asInterface( in onCreate() 155 mActivityManager.closeSystemDialogs(reason); in closeSystemDialogsViaActivityManager()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | LowRamDeviceTest.java | 73 private ActivityManager mActivityManager; field in LowRamDeviceTest 80 mActivityManager = in setUp() 200 mActivityManager.getMemoryInfo(memoryInfo); in getTotalMemory() 220 boolean isLowRamDevice = mActivityManager.isLowRamDevice(); in assertMinMemoryMb()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | LargeViewHierarchyTest.java | 39 if (mActivityManager.isLowRamDevice()) { in testTextView()
|
D | WebViewTest.java | 54 if (mActivityManager.isLowRamDevice()) { in testWebView()
|
D | FocusChangeTest.java | 64 if (mActivityManager.isLowRamDevice()) { in testLayerCausesUnderlyingActivityToLoseFocus()
|
D | ScreenshotTest.java | 58 if (mActivityManager.isLowRamDevice()) { in validateDeviceAndRunTestForColor()
|
D | AssistantContentViewTest.java | 61 if (mActivityManager.isLowRamDevice()) { in testAssistantContentViewDimens()
|
D | TextViewTest.java | 41 if (mActivityManager.isLowRamDevice()) { in testTextView()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayEventTest.java | 95 private ActivityManager mActivityManager; field in DisplayEventTest 244 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp() 252 mActivityManager.addOnUidImportanceListener(mUidImportanceListener, in setUp() 264 mActivityManager.removeOnUidImportanceListener(mUidImportanceListener); in tearDown()
|
/cts/tests/app/AppExitTest/src/android/app/cts/ |
D | ActivityManagerAppExitInfoTest.java | 173 private ActivityManager mActivityManager; field in ActivityManagerAppExitInfoTest 198 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp() 488 list = mActivityManager.getHistoricalProcessExitReasons( in testExitCode() 567 mActivityManager::getHistoricalProcessExitReasons, in testLmkdKill() 612 mActivityManager::getHistoricalProcessExitReasons, in testKillBySignal() 679 mActivityManager::getHistoricalProcessExitReasons, in testAnr() 848 mActivityManager::getHistoricalProcessExitReasons, in testPermissionChange() 911 mActivityManager::getHistoricalProcessExitReasons, in testPermissionChangeWithReason() 947 mActivityManager::getHistoricalProcessExitReasons, in testCrash() 973 mActivityManager::getHistoricalProcessExitReasons, in testNativeCrash() [all …]
|
/cts/tests/app/AppStartTest/src/android/app/cts/ |
D | ActivityManagerAppStartInfoTest.java | 108 private ActivityManager mActivityManager; field in ActivityManagerAppStartInfoTest 118 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp() 252 mActivityManager::getExternalHistoricalProcessStartReasons, in testAppRemoved() 440 mActivityManager::getExternalHistoricalProcessStartReasons, in waitForAppStart()
|
/cts/tests/tests/sharesheet/src/android/sharesheet/cts/ |
D | CtsNfcResolverDeviceTest.java | 92 private ActivityManager mActivityManager; field in CtsNfcResolverDeviceTest 133 mActivityManager = mContext.getSystemService(ActivityManager.class); in init() 135 assertNotNull(mActivityManager); in init()
|
D | CtsSharesheetDeviceTest.java | 127 private ActivityManager mActivityManager; field in CtsSharesheetDeviceTest 169 mActivityManager = mContext.getSystemService(ActivityManager.class); in init() 274 if (!mActivityManager.isLowRamDevice()) { in bulkTest2() 501 "Direct share not required on low RAM devices", mActivityManager.isLowRamDevice()); in testShortcutSelection() 528 "Direct share not required on low RAM devices", mActivityManager.isLowRamDevice()); in testShortcutSelectionRefinedToAlternate() 670 mActivityManager.isLowRamDevice()); in testChooserTargets() 716 mActivityManager.isLowRamDevice()); in testChooserTargetsRefinement() 975 if (mActivityManager.isLowRamDevice()) { in showsExtraChooserTargets() 1083 if (mActivityManager.isLowRamDevice()) { in isSharingShortcutDirectShareEnabled()
|