Home
last modified time | relevance | path

Searched refs:mActivityManager (Results 1 – 24 of 24) sorted by relevance

/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java89 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 …]
DNotificationManagerTest.java129 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 …]
DSystemFeaturesTest.java78 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/
DLockTaskHostDrivenTest.java58 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 …]
DLockTaskTest.java137 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/
DScreenPinningTestActivity.java40 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/
DNotificationAssistantServiceTest.java73 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/
DFeatureTest.java43 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/
DConditionProviderServiceTest.java65 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()
DLegacyNotificationManagerTest.java68 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/
DGlAppSwitchTest.java46 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/
DVrSetFIFOThreadTest.java34 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/
DScreenshotTest.java38 if (mActivityManager.isLowRamDevice()) { in testRedScreenshot()
58 if (mActivityManager.isLowRamDevice()) { in testGreenScreenshot()
78 if (mActivityManager.isLowRamDevice()) { in testBlueScreenshot()
DLargeViewHierarchyTest.java37 if (mActivityManager.isLowRamDevice()) { in testTextView()
DWebViewTest.java50 if (mActivityManager.isLowRamDevice()) { in testWebView()
DExtraAssistDataTest.java35 if (mActivityManager.isLowRamDevice()) { in testAssistContentAndAssistData()
DFocusChangeTest.java60 if (mActivityManager.isLowRamDevice()) { in testLayerCausesUnderlyingActivityToLoseFocus()
DAssistantContentViewTest.java54 if (mActivityManager.isLowRamDevice()) { in testAssistantContentViewDimens()
DTextViewTest.java38 if (mActivityManager.isLowRamDevice()) { in testTextView()
DLifecycleTest.java104 if (mActivityManager.isLowRamDevice()) { in testNoUiLayerDoesNotTriggerLifecycleMethods()
DAssistTestBase.java82 protected ActivityManager mActivityManager; field in AssistTestBase
218 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in startTestActivity()
/cts/tests/tests/hardware/src/android/hardware/cts/
DLowRamDeviceTest.java71 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/
DCameraEvictionTest.java54 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/
DLegacyNotificationManager20Test.java67 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()