Home
last modified time | relevance | path

Searched refs:mAm (Results 1 – 10 of 10) sorted by relevance

/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DStartLockTaskModeWorkerTest.java85 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/
DStartLockTaskModeWorker.java57 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/
DAssistant.java70 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/
DUserAspectRatioDetailsTest.java81 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/
DRunningServiceDetails.java60 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);
DRunningProcessesView.java65 ActivityManager mAm; field in RunningProcessesView
435 mAm = (ActivityManager)getContext().getSystemService(Context.ACTIVITY_SERVICE); in doCreate()
468 mAm.getMemoryInfo(memInfo); in doCreate()
DRunningState.java79 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/
DAppButtonsPreferenceControllerTest.java118 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/
DAssistantTest.kt94 assistant.mAm = mockAm in <lambda>()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java218 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()