Home
last modified time | relevance | path

Searched refs:mIActivityManager (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DWaitForDebuggerPreferenceControllerTest.java59 private IActivityManager mIActivityManager; field in WaitForDebuggerPreferenceControllerTest
71 doReturn(mIActivityManager).when(mController).getActivityManagerService(); in setup()
85 verify(mIActivityManager) in onPreferenceChange_settingEnabledFoobarApp_waitForDebuggerShouldBeOn()
96 verify(mIActivityManager) in onPreferenceChange_settingDisabledFoobarApp_waitForDebuggerShouldBeOff()
184 verify(mIActivityManager).setDebugApp(null /* package name */, in onDeveloperOptionsSwitchDisabled_shouldDisablePreference()
/packages/apps/Nfc/src/com/android/nfc/
DForegroundUtils.java32 private final IActivityManager mIActivityManager; field in ForegroundUtils
48 mIActivityManager = ActivityManager.getService(); in ForegroundUtils()
50 mIActivityManager.registerProcessObserver(this); in ForegroundUtils()
121 return mIActivityManager.isUidActive(uid, NfcApplication.NFC_PROCESS); in isInForegroundLocked()
DNfcDispatcher.java87 private final IActivityManager mIActivityManager; field in NfcDispatcher
109 mIActivityManager = ActivityManager.getService(); in NfcDispatcher()
706 mIActivityManager.resumeAppSwitches(); in resumeAppSwitches()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DInitialUserSetterTest.java88 private IActivityManager mIActivityManager; field in InitialUserSetterTest
117 doReturn(mIActivityManager).when(() -> ActivityManager.getService()); in setFixtures()
751 when(mIActivityManager.startUserInBackground(UserHandle.USER_SYSTEM)).thenReturn(true); in testUnlockSystemUser_startedOk()
755 verify(mIActivityManager, never()).unlockUser(UserHandle.USER_SYSTEM, /* token= */ null, in testUnlockSystemUser_startedOk()
765 verify(mIActivityManager).unlockUser(UserHandle.USER_SYSTEM, /* token= */ null, in testUnlockSystemUser_startFailUnlockedInstead()
804 verify(mIActivityManager, never()).startUserInForegroundWithListener(UserHandle.USER_SYSTEM, in testStartForegroundUser_headlessSystemUser()
1097 when(mIActivityManager.startUserInForegroundWithListener(userId, null)).thenReturn(true); in expectAmStartFgUser()
1101 when(mIActivityManager.startUserInForegroundWithListener(userId, null)) in expectAmStartFgUserThrowsException()