/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerTest.java | 89 private ActivityManager mActivityManager; field in ActivityManagerTest 100 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 126 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks() 131 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks() 144 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); in testGetRecentTasks() 162 mActivityManager.getRecentTasks(-1, 0); in testGetRecentTasks() 175 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); 190 recentTaskList = mActivityManager.getRecentTasks(maxNum, flags); 258 runningTaskList = mActivityManager.getRunningTasks(-1); 261 runningTaskList = mActivityManager.getRunningTasks(0); [all …]
|
D | NotificationManagerTest.java | 129 private ActivityManager mActivityManager; field in NotificationManagerTest 145 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 618 if (mActivityManager.isLowRamDevice()) { in testPostPCanToggleAlarmsMediaSystemTest() 995 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testSuspendPackage_withoutShellPermission() 1027 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testSuspendPackage() 1073 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testSuspendedPackageSendsNotification() 1119 if ((mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) in testCanBubble_ranking() 1170 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testShowBadging_ranking() 1226 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testGetSuppressedVisualEffectsOff_ranking() 1256 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testGetSuppressedVisualEffects_ranking() [all …]
|
D | SystemFeaturesTest.java | 78 private ActivityManager mActivityManager; field in SystemFeaturesTest 96 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 322 if (mActivityManager.isLowRamDevice()) { in testLowRamFeature() 538 ConfigurationInfo configInfo = mActivityManager.getDeviceConfigurationInfo(); in testTouchScreenFeatures()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | LockTaskHostDrivenTest.java | 58 private ActivityManager mActivityManager; field in LockTaskHostDrivenTest 66 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp() 129 if (mActivityManager.getLockTaskModeState() == ActivityManager.LOCK_TASK_MODE_NONE) { in waitForLockTaskModeStateNone() 148 ActivityManager.LOCK_TASK_MODE_LOCKED, mActivityManager.getLockTaskModeState()); in testLockTaskIsExitedIfNotWhitelisted() 157 assertEquals(ActivityManager.LOCK_TASK_MODE_NONE, mActivityManager.getLockTaskModeState()); in testLockTaskIsExitedIfNotWhitelisted() 178 ActivityManager.LOCK_TASK_MODE_LOCKED, mActivityManager.getLockTaskModeState()); in testLockTaskCanLaunchDefaultDialer() 193 mActivityManager.getLockTaskModeState()); in testLockTaskCanLaunchDefaultDialer() 222 ActivityManager.LOCK_TASK_MODE_LOCKED, mActivityManager.getLockTaskModeState()); in testLockTaskCanLaunchEmergencyDialer() 237 mActivityManager.getLockTaskModeState()); in testLockTaskCanLaunchEmergencyDialer() 247 mActivityManager.getAppTasks().get(0).getTaskInfo().topActivity.getClassName(); in checkLockedActivityIsRunning() [all …]
|
D | LockTaskTest.java | 137 private ActivityManager mActivityManager; field in LockTaskTest 145 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp() 427 assertTrue(mActivityManager.isInLockTaskMode()); in assertLockTaskModeActive() 429 mActivityManager.getLockTaskModeState()); in assertLockTaskModeActive() 437 for (int i = 0; i < 10 && mActivityManager.isInLockTaskMode(); i++) { in assertLockTaskModeInactive() 440 assertFalse(mActivityManager.isInLockTaskMode()); in assertLockTaskModeInactive() 441 assertEquals(ActivityManager.LOCK_TASK_MODE_NONE, mActivityManager.getLockTaskModeState()); in assertLockTaskModeInactive()
|
/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/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | NotificationAssistantServiceTest.java | 73 private ActivityManager mActivityManager; field in NotificationAssistantServiceTest 85 mActivityManager = mContext.getSystemService(ActivityManager.class); in setUp() 91 if (!mActivityManager.isLowRamDevice()) { in tearDown() 100 if (mActivityManager.isLowRamDevice()) { in testOnNotificationEnqueued() 137 if (mActivityManager.isLowRamDevice()) { in testAdjustNotification_userSentimentKey() 171 if (mActivityManager.isLowRamDevice()) { in testAdjustNotification_importanceKey() 204 if (mActivityManager.isLowRamDevice()) { in testAdjustNotification_smartActionKey() 254 if (mActivityManager.isLowRamDevice()) { in testAdjustNotification_smartReplyKey() 300 if (mActivityManager.isLowRamDevice()) { in testAdjustNotification_importanceKey_notAllowed() 335 if (mActivityManager.isLowRamDevice()) { in testGetAllowedAssistantCapabilities_permission() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | FeatureTest.java | 43 private ActivityManager mActivityManager; field in FeatureTest 52 mActivityManager = (ActivityManager)getContext().getSystemService(Context.ACTIVITY_SERVICE); in setUp() 61 if (mPackageManager == null || mActivityManager == null) { in testNoManagedUsersIfLowRamDevice() 65 if (mActivityManager.isLowRamDevice()) { in testNoManagedUsersIfLowRamDevice() 96 if (mActivityManager.isLowRamDevice()) { in testManagedProfileSupported()
|
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | ConditionProviderServiceTest.java | 65 private ActivityManager mActivityManager; field in ConditionProviderServiceTest 74 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 75 assumeFalse(mActivityManager.isLowRamDevice()); in setUp() 117 if (mActivityManager.isLowRamDevice()) { in testUnboundCPSMaintainsCondition_addsNewRule() 150 if (mActivityManager.isLowRamDevice()) { in testUnboundCPSMaintainsCondition_otherConditionChanges() 187 if (mActivityManager.isLowRamDevice()) { in testUnboundCPSMaintainsCondition_otherProviderRuleChanges() 222 if (mActivityManager.isLowRamDevice()) { in testRequestRebindWhenLostAccess() 253 if (mActivityManager.isLowRamDevice()) { in testRequestRebindWhenStillHasAccess() 281 if (mActivityManager.isLowRamDevice()) { in testMethodsExistAndDoNotThrow()
|
D | LegacyNotificationManagerTest.java | 68 private ActivityManager mActivityManager; field in LegacyNotificationManagerTest 85 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 101 if (mActivityManager.isLowRamDevice()) { in testPrePCannotToggleAlarmsAndMediaTest() 144 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_preP_setOldFields() 167 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_preP_setNewFields() 190 if (mActivityManager.isLowRamDevice()) { in testSuspendPackage() 225 if (mActivityManager.isLowRamDevice()) { in testSuspendedPackageSendNotification() 258 if (mActivityManager.isLowRamDevice()) { in testResetListenerHints_singleListener() 280 if (mActivityManager.isLowRamDevice()) { in testResetListenerHints_multiListener() 310 if (mActivityManager.isLowRamDevice()) { in testSetNotificationPolicy_preP_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 90 mActivityManager = in testSetVrThreadAPISuccess() 92 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPISuccess() 113 mActivityManager = in testSetVrThreadAPIFailure() 115 mActivityManager.setVrThread(vr_thread); in testSetVrThreadAPIFailure()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | ScreenshotTest.java | 38 if (mActivityManager.isLowRamDevice()) { in testRedScreenshot() 58 if (mActivityManager.isLowRamDevice()) { in testGreenScreenshot() 78 if (mActivityManager.isLowRamDevice()) { in testBlueScreenshot()
|
D | LargeViewHierarchyTest.java | 37 if (mActivityManager.isLowRamDevice()) { in testTextView()
|
D | WebViewTest.java | 50 if (mActivityManager.isLowRamDevice()) { in testWebView()
|
D | ExtraAssistDataTest.java | 35 if (mActivityManager.isLowRamDevice()) { in testAssistContentAndAssistData()
|
D | FocusChangeTest.java | 60 if (mActivityManager.isLowRamDevice()) { in testLayerCausesUnderlyingActivityToLoseFocus()
|
D | AssistantContentViewTest.java | 54 if (mActivityManager.isLowRamDevice()) { in testAssistantContentViewDimens()
|
D | TextViewTest.java | 38 if (mActivityManager.isLowRamDevice()) { in testTextView()
|
D | LifecycleTest.java | 104 if (mActivityManager.isLowRamDevice()) { in testNoUiLayerDoesNotTriggerLifecycleMethods()
|
D | AssistTestBase.java | 82 protected ActivityManager mActivityManager; field in AssistTestBase 218 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in startTestActivity()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | LowRamDeviceTest.java | 71 private ActivityManager mActivityManager; field in LowRamDeviceTest 78 mActivityManager = in setUp() 97 Boolean lowRamDevice = mActivityManager.isLowRamDevice(); in testMinimumMemory() 181 mActivityManager.getMemoryInfo(memoryInfo); in getTotalMemory() 201 boolean lowRamDevice = mActivityManager.isLowRamDevice(); in assertMinMemoryMb()
|
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/ |
D | CameraEvictionTest.java | 54 private ActivityManager mActivityManager; field in CameraEvictionTest 127 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 151 mActivityManager = null; in tearDown() 512 mActivityManager.getRunningAppProcesses(); in startRemoteProcess() 521 list = mActivityManager.getRunningAppProcesses(); in startRemoteProcess()
|
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/ |
D | LegacyNotificationManager20Test.java | 67 private ActivityManager mActivityManager; field in LegacyNotificationManager20Test 81 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 95 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testNotificationListener_cancelNotifications()
|