/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/ |
D | ScreenPinningTestActivity.java | 40 private ActivityManager mActivityManager; field in ScreenPinningTestActivity 65 mActivityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); in onCreate() 142 if (mActivityManager.isInLockTaskMode()) { 163 if (mActivityManager.isInLockTaskMode()) { 174 if (mActivityManager.isInLockTaskMode()) { 185 if (!mActivityManager.isInLockTaskMode()) { 196 if (!mActivityManager.isInLockTaskMode()) { 207 if (!mActivityManager.isInLockTaskMode()) {
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | FeatureTest.java | 41 private ActivityManager mActivityManager; field in FeatureTest 50 mActivityManager = (ActivityManager)getContext().getSystemService(Context.ACTIVITY_SERVICE); in setUp() 59 if (mPackageManager == null || mActivityManager == null) { in testNoManagedUsersIfLowRamDevice() 63 if (mActivityManager.isLowRamDevice()) { in testNoManagedUsersIfLowRamDevice() 94 if (mActivityManager.isLowRamDevice()) { in testManagedProfileSupported()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerTest.java | 79 private ActivityManager mActivityManager; field in ActivityManagerTest 90 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 116 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks() 121 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks() 134 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks() 152 mActivityManager.getRecentTasks(-1, 0); in testGetRecentTasks() 165 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); 180 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); 248 runningTaskList = mActivityManager.getRunningTasks(-1); 251 runningTaskList = mActivityManager.getRunningTasks(0); [all …]
|
D | SystemFeaturesTest.java | 63 private ActivityManager mActivityManager; field in SystemFeaturesTest 82 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 274 if (mActivityManager.isLowRamDevice()) { in testLowRamFeature() 478 ConfigurationInfo configInfo = mActivityManager.getDeviceConfigurationInfo(); in testTouchScreenFeatures()
|
D | NotificationManagerTest.java | 77 private ActivityManager mActivityManager; field in NotificationManagerTest 92 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 124 if (mActivityManager.isLowRamDevice()) { in testPostPCanToggleAlarmsMediaSystemTest() 473 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testSuspendPackage() 831 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_P_setOldFields() 853 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_P_setNewFields() 875 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_P_setOldNewFields()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | GlAppSwitchTest.java | 46 private ActivityManager mActivityManager; field in GlAppSwitchTest 72 mActivityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 123 mActivityManager.getRunningTasks(MAX_RUNNING_TASKS); in setReplicaIslandTask() 138 mActivityManager.getRunningTasks(MAX_RUNNING_TASKS); in isReplicaIslandRunning() 155 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 85 mActivityManager = in testSetVrThreadAPISuccess() 87 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPISuccess() 107 mActivityManager = in testSetVrThreadAPIFailure() 109 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPIFailure()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | LockTaskHostDrivenTest.java | 53 private ActivityManager mActivityManager; field in LockTaskHostDrivenTest 60 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp() 105 mActivityManager.getLockTaskModeState()); in checkLockedActivityIsRunning() 109 return mActivityManager.getAppTasks().get(0).getTaskInfo().topActivity in isActivityOnTop()
|
D | LockTaskTest.java | 147 private ActivityManager mActivityManager; field in LockTaskTest 156 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp() 449 assertTrue(mActivityManager.isInLockTaskMode()); in assertLockTaskModeActive() 451 mActivityManager.getLockTaskModeState()); in assertLockTaskModeActive() 459 for (int i = 0; i < 10 && mActivityManager.isInLockTaskMode(); i++) { in assertLockTaskModeInactive() 462 assertFalse(mActivityManager.isInLockTaskMode()); in assertLockTaskModeInactive() 463 assertEquals(ActivityManager.LOCK_TASK_MODE_NONE, mActivityManager.getLockTaskModeState()); in assertLockTaskModeInactive()
|
D | CreateAndManageUserTest.java | 72 private ActivityManager mActivityManager; field in CreateAndManageUserTest 81 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 529 if (!mActivityManager.isRunningInTestHarness()) { in testCreateAndManageUser_DontSkipSetupWizard()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | LowRamDeviceTest.java | 58 private ActivityManager mActivityManager; field in LowRamDeviceTest 65 mActivityManager = in setUp() 82 Boolean lowRamDevice = mActivityManager.isLowRamDevice(); in testMinimumMemory() 140 mActivityManager.getMemoryInfo(memoryInfo); in getTotalMemory() 160 boolean lowRamDevice = mActivityManager.isLowRamDevice(); in assertMinMemoryMb()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | ScreenshotTest.java | 67 if (mActivityManager.isLowRamDevice()) { in testRedScreenshot() 82 if (mActivityManager.isLowRamDevice()) { in testGreenScreenshot() 97 if (mActivityManager.isLowRamDevice()) { in testBlueScreenshot()
|
D | DisableContextTest.java | 52 if (mActivityManager.isLowRamDevice()) { in testContextAndScreenshotOff()
|
D | LifecycleTest.java | 124 if (mActivityManager.isLowRamDevice()) { in testLayerDoesNotTriggerLifecycleMethods() 146 if (mActivityManager.isLowRamDevice()) { in testNoUiLayerDoesNotTriggerLifecycleMethods()
|
D | FlagSecureTest.java | 80 if (mActivityManager.isLowRamDevice()) { in testSecureActivity()
|
D | LargeViewHierarchyTest.java | 80 if (mActivityManager.isLowRamDevice()) { in testTextView()
|
D | AssistantContentViewTest.java | 75 if (mActivityManager.isLowRamDevice()) { in testAssistantContentViewDimens()
|
D | FocusChangeTest.java | 84 if (mActivityManager.isLowRamDevice()) { in testLayerCausesUnderlyingActivityToLoseFocus()
|
D | ExtraAssistDataTest.java | 69 if (mActivityManager.isLowRamDevice()) { in testAssistContentAndAssistData()
|
D | TextViewTest.java | 80 if (mActivityManager.isLowRamDevice()) { in testTextView()
|
D | WebViewTest.java | 92 if (mActivityManager.isLowRamDevice()) { in testWebView()
|
D | AssistStructureTest.java | 92 if (mActivityManager.isLowRamDevice()) { in testAssistStructure()
|
D | AssistTestBase.java | 51 protected ActivityManager mActivityManager; field in AssistTestBase 118 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in startTestActivity()
|
/cts/tests/tests/notificationlegacy/src/android/app/notification/legacy/cts/ |
D | LegacyNotificationManagerTest.java | 66 private ActivityManager mActivityManager; field in LegacyNotificationManagerTest 79 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 84 if (mActivityManager.isLowRamDevice()) { in testPrePCannotToggleAlarmsAndMediaTest() 127 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_preP_setOldFields() 150 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_preP_setNewFields() 205 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_preP_setOldNewFields()
|
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/ |
D | CameraEvictionTest.java | 56 private ActivityManager mActivityManager; field in CameraEvictionTest 120 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 144 mActivityManager = null; in tearDown() 431 mActivityManager.getRunningAppProcesses(); in startRemoteProcess() 440 list = mActivityManager.getRunningAppProcesses(); in startRemoteProcess()
|