Home
last modified time | relevance | path

Searched refs:currentUserId (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DTaskStackChangeListener.java58 protected final boolean checkCurrentUserId(int currentUserId, boolean debug) { in checkCurrentUserId() argument
60 if (processUserId != currentUserId) { in checkCurrentUserId()
63 + " and the current user is uid=" + currentUserId); in checkCurrentUserId()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPreviewInflater.java144 int currentUserId) { in wouldLaunchResolverActivity() argument
145 return getTargetActivityInfo(ctx, intent, currentUserId, false /* onlyDirectBootAware */) in wouldLaunchResolverActivity()
157 int currentUserId, boolean onlyDirectBootAware) { in getTargetActivityInfo() argument
165 intent, flags, currentUserId); in getTargetActivityInfo()
170 flags | PackageManager.GET_META_DATA, currentUserId); in getTargetActivityInfo()
DLocationControllerImpl.java103 int currentUserId = ActivityManager.getCurrentUser(); in setLocationEnabled() local
104 if (isUserLocationRestricted(currentUserId)) { in setLocationEnabled()
109 updateLocationEnabled(mContext, enabled, currentUserId, in setLocationEnabled()
DCastController.java26 void setCurrentUserId(int currentUserId); in setCurrentUserId() argument
DCastControllerImpl.java128 public void setCurrentUserId(int currentUserId) { in setCurrentUserId() argument
129 mMediaRouter.rebindAsUser(currentUserId); in setCurrentUserId()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
DSysUiTaskStackChangeListener.java32 int currentUserId = SystemServicesProxy.getInstance(context).getCurrentUser(); in checkCurrentUserId() local
33 return checkCurrentUserId(currentUserId, debug); in checkCurrentUserId()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java91 int currentUserId = ActivityManager.getCurrentUser(); in testUpdateLocationMode_sendBroadcast() local
96 currentUserId, in testUpdateLocationMode_sendBroadcast()
101 ArgumentMatchers.eq(UserHandle.of(currentUserId)), in testUpdateLocationMode_sendBroadcast()
110 int currentUserId = ActivityManager.getCurrentUser(); in testUpdateLocationEnabled_sendBroadcast() local
111 Utils.updateLocationEnabled(mContext, true, currentUserId, in testUpdateLocationEnabled_sendBroadcast()
116 ArgumentMatchers.eq(UserHandle.of(currentUserId)), in testUpdateLocationEnabled_sendBroadcast()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeCastController.java35 public void setCurrentUserId(int currentUserId) { in setCurrentUserId() argument
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java454 int currentUserId = ActivityManager.getCurrentUser(); in update() local
456 ArraySet<String> allowed = mAllowedPackages.get(currentUserId); in update()
465 if (grantUserId != currentUserId) { in update()
476 revokeNotificationListenerAccess(pkg, currentUserId); in update()
478 revokeCoarseLocationPermissionIfNeeded(pkg, currentUserId); in update()
485 grantNotificationListenerAccess(pkg, currentUserId); in update()
486 grantCoarseLocationPermissionIfNeeded(pkg, currentUserId); in update()
487 mNotificationAccessPackageToUserId.put(pkg, currentUserId); in update()
493 mAllowedPackages.put(currentUserId, allowed); in update()
/frameworks/base/core/java/android/provider/
DCallLog.java761 final int currentUserId = userManager.getUserHandle(); in addCall() local
774 if (UserHandle.USER_SYSTEM == currentUserId) { in addCall()
805 if (userId == currentUserId) { in addCall()
816 : UserHandle.of(currentUserId); in addCall()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DRecentsTaskLoadPlan.java90 int currentUserId) { in preloadPlan() argument
95 ActivityManager.getMaxRecentTasksStatic(), currentUserId); in preloadPlan()
DRecentsTaskLoader.java151 int currentUserId) { in preloadTasks() argument
154 plan.preloadPlan(new PreloadOptions(), this, runningTaskId, currentUserId); in preloadTasks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java103 public LoaderResult loadBitmap(int currentUserId, UserHandle selectedUser) { in loadBitmap() argument
109 selectedUser != null ? selectedUser.getIdentifier() : currentUserId; in loadBitmap()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java563 final int currentUserId = ActivityManager.getCurrentUser(); in testDream() local
564 if (callingUserId != currentUserId) { in testDream()
568 + ", currentUserId=" + currentUserId); in testDream()
/frameworks/base/services/core/java/com/android/server/policy/
DImmersiveModeConfirmation.java101 public void loadSetting(int currentUserId) { in loadSetting() argument
103 mCurrentUserId = currentUserId; in loadSetting()
/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java152 public void setCurrentUser(int currentUserId) { in setCurrentUser() argument
153 mUserId = currentUserId; in setCurrentUser()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDebuggingManager.java327 int currentUserId = ActivityManager.getCurrentUser(); in startConfirmation() local
328 UserInfo userInfo = UserManager.get(mContext).getUserInfo(currentUserId); in startConfirmation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java595 int currentUserId = getCurrentUser().id; in onPress() local
597 ActivityManager.getService().stopUser(currentUserId, true /*force*/, null); in onPress()
726 final int currentUserId = getCurrentUser().id;
727 final int[] profileIds = um.getEnabledProfileIds(currentUserId);
729 if (id != currentUserId) {
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardStatusView.java468 int currentUserId = KeyguardUpdateMonitor.getCurrentUser(); in onLogoutClicked() local
471 mIActivityManager.stopUser(currentUserId, true /*force*/, null); in onLogoutClicked()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java852 int currentUserId = getCurrentUserId();
855 currentUserId, false /* enabledOnly */);
859 && user.id != currentUserId && !user.isQuietModeEnabled()) {
1201 int currentUserId = getCurrentUserId();
1203 if (targetUserId == currentUserId) {
1223 UserInfo currentUserInfo = getUserInfo(currentUserId);
DActivityManagerService.java13472 final int currentUserId = mUserController.getCurrentUserId(); in notifyLockedProfile() local
13473 startHomeActivityLocked(currentUserId, "notifyLockedProfile"); in notifyLockedProfile()
15222 final int currentUserId = mUserController.getCurrentUserId(); in systemReady() local
15240 Integer.toString(currentUserId), currentUserId); in systemReady()
15242 Integer.toString(currentUserId), currentUserId); in systemReady()
15243 mSystemServiceManager.startUser(currentUserId); in systemReady()
15267 startHomeActivityLocked(currentUserId, "systemReady"); in systemReady()
15288 intent.putExtra(Intent.EXTRA_USER_HANDLE, currentUserId); in systemReady()
15292 currentUserId); in systemReady()
15295 intent.putExtra(Intent.EXTRA_USER_HANDLE, currentUserId); in systemReady()
[all …]
/frameworks/base/services/core/java/com/android/server/
DInputMethodManagerService.java1320 final int currentUserId = mSettings.getCurrentUserId(); in onUnlockUser() local
1322 Slog.d(TAG, "onUnlockUser: userId=" + userId + " curUserId=" + currentUserId); in onUnlockUser()
1324 if (userId != currentUserId) { in onUnlockUser()
1327 mSettings.switchCurrentUser(currentUserId, !mSystemReady); in onUnlockUser()
1516 final int currentUserId = mSettings.getCurrentUserId(); in systemRunning() local
1517 mSettings.switchCurrentUser(currentUserId, in systemRunning()
1518 !mUserManager.isUserUnlockingOrUnlocked(currentUserId)); in systemRunning()
1534 mSettingsObserver.registerContentObserverLocked(currentUserId); in systemRunning()
1550 mSettings.getEnabledInputMethodListLocked(), currentUserId, in systemRunning()
DLocationManagerService.java503 void updateUserProfiles(int currentUserId) { in updateUserProfiles() argument
504 int[] profileIds = mUserManager.getProfileIdsWithDisabled(currentUserId); in updateUserProfiles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java1675 int currentUserId = KeyguardUpdateMonitor.getCurrentUser(); in sendUserPresentBroadcast() local
1676 final UserHandle currentUser = new UserHandle(currentUserId); in sendUserPresentBroadcast()
1683 getLockPatternUtils().userPresent(currentUserId); in sendUserPresentBroadcast()
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java1243 int currentUserId = ActivityManager.getCurrentUser(); in updateCache() local
1244 List<UserInfo> profiles = userManager.getProfiles(currentUserId); in updateCache()

12