/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/ |
D | StartLockTaskModeWorkerTest.java | 85 private ActivityManager mAm; field in StartLockTaskModeWorkerTest 107 mAm, in setUp() 130 when(mAm.getLockTaskModeState()) in doWork_launchesActivityInLockedTaskMode() 154 when(mAm.getLockTaskModeState()) in doWork_hitsException_failsAndEnforcesCriticalFailure() 170 when(mAm.getLockTaskModeState()) in doWork_alreadyLockedDoesNothing() 185 when(mAm.getLockTaskModeState()) in doWork_failsWhenNoLaunchIntent() 199 when(mAm.getLockTaskModeState()) in doWork_failsLaunchIntentNotPermitted()
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/policy/ |
D | StartLockTaskModeWorker.java | 57 private final ActivityManager mAm; field in StartLockTaskModeWorker 82 mAm = Objects.requireNonNull(am); in StartLockTaskModeWorker() 93 () -> mAm.getLockTaskModeState() == ActivityManager.LOCK_TASK_MODE_LOCKED, in startWork()
|
/packages/modules/ExtServices/java/src/android/ext/services/notification/ |
D | Assistant.java | 70 protected ActivityManager mAm; field in Assistant 97 mAm = getSystemService(ActivityManager.class); in onCreate() 108 mUseTextClassifier = !(mAm.isLowRamDevice() || mPm.hasSystemFeature(FEATURE_WATCH)); in setUseTextClassifier()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appcompat/ |
D | UserAspectRatioDetailsTest.java | 81 private IActivityManager mAm; field in UserAspectRatioDetailsTest 98 ShadowActivityManager.setService(mAm); in setUp() 140 verify(mAm).stopAppForUser(any(), anyInt());
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningServiceDetails.java | 60 ActivityManager mAm; field in RunningServiceDetails 187 mAm.killBackgroundProcesses(mActiveItem.mItem.mPackageInfo.packageName); in onClick() 191 mAm.forceStopPackage(mActiveItem.mItem.mPackageInfo.packageName); in onClick() 275 detail.mManageIntent = mAm.getRunningServiceControlPanel( in addServiceDetailsView() 504 mAm = (ActivityManager) getActivity().getSystemService(Context.ACTIVITY_SERVICE);
|
D | RunningProcessesView.java | 65 ActivityManager mAm; field in RunningProcessesView 435 mAm = (ActivityManager)getContext().getSystemService(Context.ACTIVITY_SERVICE); in doCreate() 468 mAm.getMemoryInfo(memInfo); in doCreate()
|
D | RunningState.java | 79 final ActivityManager mAm; field in RunningState 248 cmd.arg1 = update(mApplicationContext, mAm) ? 1 : 0; in handleMessage() 785 mAm = mApplicationContext.getSystemService(ActivityManager.class); in RunningState()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppButtonsPreferenceControllerTest.java | 118 private ActivityManager mAm; field in AppButtonsPreferenceControllerTest 140 doReturn(mAm).when(mSettingsActivity).getSystemService(Context.ACTIVITY_SERVICE); in setUp() 452 verify(mAm).forceStopPackage(PACKAGE_NAME); in forceStopPackage_methodInvokedAndUpdated()
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/ |
D | AssistantTest.kt | 94 assistant.mAm = mockAm in <lambda>()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 218 private final ActivityManager mAm; field in CarUserService 370 mAm = am; in CarUserService() 1095 if (!mAm.switchUser(targetUser)) { in switchOrLogoutUser() 1745 boolean result = mAm.switchUser(UserHandle.of(targetUserId)); in switchAndroidUserFromHal()
|