Home
last modified time | relevance | path

Searched refs:currentUser (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/
DGuestResumeSessionReceiver.java67 UserInfo currentUser; in onReceive() local
69 currentUser = ActivityManagerNative.getDefault().getCurrentUser(); in onReceive()
73 if (!currentUser.isGuest()) { in onReceive()
97 UserInfo currentUser; in wipeGuestSession() local
99 currentUser = ActivityManagerNative.getDefault().getCurrentUser(); in wipeGuestSession()
104 if (currentUser.id != userId) { in wipeGuestSession()
106 + " is not current user (" + currentUser.id + ")"); in wipeGuestSession()
109 if (!currentUser.isGuest()) { in wipeGuestSession()
115 boolean marked = userManager.markGuestForDeletion(currentUser.id); in wipeGuestSession()
120 UserInfo newGuest = userManager.createGuest(context, currentUser.name); in wipeGuestSession()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DMultiUserSwitch.java99 String currentUser = null; in onPopulateAccessibilityEvent() local
104 currentUser = controller.getCurrentUserName(mContext); in onPopulateAccessibilityEvent()
107 if (TextUtils.isEmpty(currentUser)) { in onPopulateAccessibilityEvent()
112 currentUser); in onPopulateAccessibilityEvent()
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfoAsyncQuery.java104 final int currentUser = ActivityManager.getCurrentUser(); in getCurrentProfileContentResolver() local
107 if (DBG) Rlog.d(LOG_TAG, "myUser=" + myUser + "currentUser=" + currentUser); in getCurrentProfileContentResolver()
109 if (myUser != currentUser) { in getCurrentProfileContentResolver()
113 /* flags =*/ 0, new UserHandle(currentUser)); in getCurrentProfileContentResolver()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardSecurityContainer.java281 final int currentUser = mLockPatternUtils.getCurrentUser(); in reportFailedUnlockAttempt() local
284 dpm.getMaximumFailedPasswordsForWipe(null, currentUser); in reportFailedUnlockAttempt()
298 final int expiringUser = dpm.getProfileWithMinimumFailedPasswordsForWipe(currentUser); in reportFailedUnlockAttempt()
300 if (expiringUser == currentUser) { in reportFailedUnlockAttempt()
DKeyguardActivityLauncher.java131 int currentUser = lockPatternUtils.getCurrentUser(); in mustLaunchSecurely() local
132 return lockPatternUtils.isSecure() && !updateMonitor.getUserHasTrust(currentUser); in mustLaunchSecurely()
DKeyguardHostView.java392 final int currentUser = mLockPatternUtils.getCurrentUser(); in getDisabledFeatures() local
393 disabledFeatures = dpm.getKeyguardDisabledFeatures(null, currentUser); in getDisabledFeatures()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserInfoController.java97 final int currentUser = ActivityManagerNative.getDefault().getCurrentUser().id;
100 if (changedUser == currentUser) {
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java579 int currentUser) throws RemoteException { in registerAsSystemService() argument
585 noMan.registerListener(mWrapper, componentName, currentUser); in registerAsSystemService()
586 mCurrentUser = currentUser; in registerAsSystemService()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DGlobalActions.java474 UserInfo currentUser = getCurrentUser();
475 return currentUser == null || currentUser.isPrimary();
482 UserInfo currentUser = getCurrentUser();
485 boolean isCurrentUser = currentUser == null
486 ? user.id == 0 : (currentUser.id == user.id);
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
DKeyguardServiceDelegate.java63 public int currentUser; field in KeyguardServiceDelegate.KeyguardState
263 mKeyguardState.currentUser = newUserId; in setCurrentUser()
/frameworks/base/media/java/android/media/
DMediaFocusControl.java177 final int currentUser = ActivityManager.getCurrentUser(); in checkRcdRegistrationAuthorization() local
181 currentUser); in checkRcdRegistrationAuthorization()
240 final int currentUser = ActivityManager.getCurrentUser(); in onReevaluateRemoteControlDisplays() local
244 currentUser); in onReevaluateRemoteControlDisplays()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java1008 int currentUser = ActivityManager.getCurrentUser(); in isCurrentProfile() local
1009 if (userId == currentUser) { in isCurrentProfile()
1012 List<UserInfo> profiles = UserManager.get(mContext).getProfiles(currentUser); in isCurrentProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java1219 final UserHandle currentUser = new UserHandle(mLockPatternUtils.getCurrentUser()); in sendUserPresentBroadcast() local
1222 List <UserInfo> userHandles = um.getProfiles(currentUser.getIdentifier()); in sendUserPresentBroadcast()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java4560 UserInfo currentUser; in checkCallerIsCurrentUserOrProfile() local
4563 currentUser = ActivityManagerNative.getDefault().getCurrentUser(); in checkCallerIsCurrentUserOrProfile()
4569 if (callingUser.isManagedProfile() && callingUser.profileGroupId != currentUser.id) { in checkCallerIsCurrentUserOrProfile()
4574 if (!callingUser.isManagedProfile() && callingUserId != currentUser.id ) { in checkCallerIsCurrentUserOrProfile()
4649 UserInfo currentUser; in getPermittedInputMethodsForCurrentUser() local
4651 currentUser = ActivityManagerNative.getDefault().getCurrentUser(); in getPermittedInputMethodsForCurrentUser()
4658 int userId = currentUser.id; in getPermittedInputMethodsForCurrentUser()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java2030 final int currentUser; in buzzBeepBlinkLocked() local
2033 currentUser = ActivityManager.getCurrentUser(); in buzzBeepBlinkLocked()
2047 record.getUserId() == currentUser || in buzzBeepBlinkLocked()