Home
last modified time | relevance | path

Searched refs:isUserRunning (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/services/core/java/android/os/
DUserManagerInternal.java192 public abstract boolean isUserRunning(int userId); in isUserRunning() method in UserManagerInternal
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserWrapperActivity.java231 protected boolean isUserRunning(UserHandle userHandle) { in isUserRunning() method in ChooserWrapperActivity
233 return super.isUserRunning(userHandle); in isUserRunning()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java240 when(userManager.isUserRunning(eq(new UserHandle(userId)))).thenReturn(true); in addUser()
292 when(userManager.isUserRunning(eq(new UserHandle(userId)))).thenReturn(false); in removeUser()
336 when(userManager.isUserRunning(MockUtils.checkUserHandle(userId))) in setUserRunning()
/frameworks/base/core/java/android/os/
DIUserManager.aidl114 boolean isUserRunning(int userId); in isUserRunning() method
DUserManager.java2189 public boolean isUserRunning(UserHandle user) { in isUserRunning() method in UserManager
2190 return isUserRunning(user.getIdentifier()); in isUserRunning()
2196 public boolean isUserRunning(@UserIdInt int userId) { in isUserRunning() method in UserManager
2198 return mService.isUserRunning(userId); in isUserRunning()
2224 return ActivityManager.getService().isUserRunning( in isUserRunningOrStopping()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java204 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(true); in installChildProfile()
213 when(mUserManager.isUserRunning(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile()
/frameworks/base/services/core/java/com/android/server/am/
DPreBootBroadcaster.java85 if (!mService.isUserRunning(mUserId, 0)) { in sendNext()
DUserController.java530 && isUserRunning(parent.id, ActivityManager.FLAG_AND_UNLOCKED)) { in finishUserBoot()
2094 boolean isUserRunning(@UserIdInt int userId, int flags) {
2287 if (isUserRunning(userId, 0)) {
2294 return isUserRunning(parentUserId, 0);
2341 return isUserRunning(userId, ActivityManager.FLAG_AND_LOCKED);
/frameworks/base/core/java/android/app/
DActivityManagerInternal.java214 public abstract boolean isUserRunning(@UserIdInt int userId, int flags); in isUserRunning() method in ActivityManagerInternal
DIActivityManager.aidl333 boolean isUserRunning(int userid, int flags); in isUserRunning() method
DActivityManager.java4405 public boolean isUserRunning(int userId) {
4407 return getService().isUserRunning(userId, 0);
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java253 attestTrue("Failed to switch to user " + testUser, mAm.isUserRunning(testUser)); in switchUser_running()
634 attestFalse("Failed to stop user " + testUser, mAm.isUserRunning(testUser)); in initializeNewUserAndSwitchBack()
/frameworks/base/services/core/java/com/android/server/wm/
DRecentTasks.java869 boolean isUserRunning(int userId, int flags) { in isUserRunning() method in RecentTasks
870 return mService.mAmInternal.isUserRunning(userId, flags); in isUserRunning()
889 if (!isUserRunning(userId, FLAG_AND_UNLOCKED)) { in getRecentTasksImpl()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DSettingsInjector.java504 if (!am.isUserRunning(setting.mUserHandle.getIdentifier())) { in startService()
/frameworks/base/core/java/android/provider/
DCallLog.java887 if (userManager.isUserRunning(userHandle) in addCall()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java268 doReturn(true).when(amInternal).isUserRunning(anyInt(), anyInt());
DRecentTasksTest.java1052 doReturn(true).when(mRecentTasks).isUserRunning(anyInt(), anyInt()); in testTaskInfo_expectNoExtras()
1090 doReturn(true).when(mRecentTasks).isUserRunning(anyInt(), anyInt()); in assertGetRecentTasksOrder()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java333 if (um.isUserRunning(userId)) { in onBootPhase()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmInboundSmsHandlerTest.java204 doReturn(true).when(userManager).isUserRunning(any(UserHandle.class)); in setUp()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java1458 public boolean isUserRunning(@UserIdInt int userId) { in isUserRunning() method in UserManagerService
1460 return mLocalService.isUserRunning(userId); in isUserRunning()
4621 final boolean running = am.isUserRunning(user.id, 0); in runList()
5028 public boolean isUserRunning(@UserIdInt int userId) { in isUserRunning() method in UserManagerService.LocalService
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java2040 if (!isUserRunning(userHandle)) {
2892 protected boolean isUserRunning(UserHandle userHandle) {
2894 return userManager.isUserRunning(userHandle);
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java503 if (!mActivityManager.isUserRunning(userInfo.id)) { in refreshAgentList()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DInboundSmsHandler.java1217 if (mUserManager.isUserRunning(handle)) { in dispatchIntent()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java1145 if (!userManager.isUserRunning(userId)) { in restoreAllUnlockedUsers()
1493 && !amInternal.isUserRunning(vol.mountUserId, 0)) { in onVolumeCreatedLocked()
3353 } else if (umInternal.isUserRunning(user.id)) { in prepareUserStorageIfNeeded()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java3124 if (!mUserManager.isUserRunning(new UserHandle(userId))) {
3349 if (mUserManager.isUserRunning(UserHandle.of(userId))) {
3362 if (!mUserManager.isUserRunning(UserHandle.of(userId))) {

12