Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/
DActivityIntentHelper.java46 public boolean wouldLaunchResolverActivity(Intent intent, int currentUserId) { in wouldLaunchResolverActivity() argument
47 ActivityInfo targetActivityInfo = getTargetActivityInfo(intent, currentUserId, in wouldLaunchResolverActivity()
62 public ActivityInfo getTargetActivityInfo(Intent intent, int currentUserId, in getTargetActivityInfo() argument
71 intent, flags, currentUserId); in getTargetActivityInfo()
76 flags | PackageManager.GET_META_DATA, currentUserId); in getTargetActivityInfo()
91 public boolean wouldShowOverLockscreen(Intent intent, int currentUserId) { in wouldShowOverLockscreen() argument
93 currentUserId, false /* onlyDirectBootAware */); in wouldShowOverLockscreen()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DTaskStackChangeListener.java95 protected final boolean checkCurrentUserId(int currentUserId, boolean debug) { in checkCurrentUserId() argument
97 if (processUserId != currentUserId) { in checkCurrentUserId()
100 + " and the current user is uid=" + currentUserId); in checkCurrentUserId()
/frameworks/base/packages/SystemUI/legacy/recents/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/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java112 int currentUserId = ActivityManager.getCurrentUser(); in setLocationEnabled() local
113 if (isUserLocationRestricted(currentUserId)) { in setLocationEnabled()
118 updateLocationEnabled(mContext, enabled, currentUserId, in setLocationEnabled()
DCastController.java26 void setCurrentUserId(int currentUserId); in setCurrentUserId() argument
DCastControllerImpl.java149 public void setCurrentUserId(int currentUserId) { in setCurrentUserId() argument
150 mMediaRouter.rebindAsUser(currentUserId); in setCurrentUserId()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeCastController.java36 public void setCurrentUserId(int currentUserId) { in setCurrentUserId() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManager.java68 boolean userAllowsPrivateNotificationsInPublic(int currentUserId); in userAllowsPrivateNotificationsInPublic() argument
DNotificationViewHierarchyManager.java157 int currentUserId = mLockscreenUserManager.getCurrentUserId(); in updateNotificationViews() local
158 boolean devicePublic = mLockscreenUserManager.isLockscreenPublicMode(currentUserId); in updateNotificationViews()
162 && (userId == currentUserId || userId == UserHandle.USER_ALL in updateNotificationViews()
170 currentUserId); in updateNotificationViews()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java452 int currentUserId = ActivityManager.getCurrentUser(); in update() local
454 ArraySet<String> allowed = mAllowedPackages.get(currentUserId); in update()
463 if (grantUserId != currentUserId) { in update()
474 revokeNotificationListenerAccess(pkg, currentUserId); in update()
476 revokeCoarseLocationPermissionIfNeeded(pkg, currentUserId); in update()
483 grantNotificationListenerAccess(pkg, currentUserId); in update()
484 grantCoarseLocationPermissionIfNeeded(pkg, currentUserId); in update()
485 mNotificationAccessPackageToUserId.put(pkg, currentUserId); in update()
491 mAllowedPackages.put(currentUserId, allowed); in update()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java89 int currentUserId = ActivityManager.getCurrentUser(); in testUpdateLocationEnabled_sendBroadcast() local
90 Utils.updateLocationEnabled(mContext, true, currentUserId, in testUpdateLocationEnabled_sendBroadcast()
95 ArgumentMatchers.eq(UserHandle.of(currentUserId)), in testUpdateLocationEnabled_sendBroadcast()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/model/
DRecentsTaskLoadPlan.java93 int currentUserId) { in preloadPlan() argument
98 ActivityTaskManager.getMaxRecentTasksStatic(), currentUserId); in preloadPlan()
DRecentsTaskLoader.java155 int currentUserId) { in preloadTasks() argument
158 plan.preloadPlan(new PreloadOptions(), this, runningTaskId, currentUserId); in preloadTasks()
/frameworks/base/core/java/android/provider/
DCallLog.java846 final int currentUserId = userManager.getUserHandle(); in addCall() local
859 if (UserHandle.USER_SYSTEM == currentUserId) { in addCall()
890 if (userId == currentUserId) { in addCall()
901 : UserHandle.of(currentUserId); in addCall()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java108 public LoaderResult loadBitmap(int currentUserId, UserHandle selectedUser) { in loadBitmap() argument
114 selectedUser != null ? selectedUser.getIdentifier() : currentUserId; in loadBitmap()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java573 final int currentUserId = ActivityManager.getCurrentUser(); in testDream() local
574 if (callingUserId != currentUserId) { in testDream()
578 + ", currentUserId=" + currentUserId); in testDream()
/frameworks/base/services/core/java/com/android/server/wm/
DImmersiveModeConfirmation.java101 static boolean loadSetting(int currentUserId, Context context) { in loadSetting() argument
104 if (DEBUG) Slog.d(TAG, String.format("loadSetting() currentUserId=%d", currentUserId)); in loadSetting()
DActivityTaskManagerInternal.java451 public abstract void notifyLockedProfile(@UserIdInt int userId, int currentUserId); in notifyLockedProfile() argument
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardStatusView.java431 int currentUserId = KeyguardUpdateMonitor.getCurrentUser(); in onLogoutClicked() local
434 mIActivityManager.stopUser(currentUserId, true /*force*/, null); in onLogoutClicked()
/frameworks/base/core/java/com/android/internal/accessibility/
DAccessibilityShortcutController.java158 public void setCurrentUser(int currentUserId) { in setCurrentUser() argument
159 mUserId = currentUserId; in setCurrentUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java723 int currentUserId = getCurrentUser().id; in onPress() local
725 ActivityManager.getService().stopUser(currentUserId, true /*force*/, null); in onPress()
834 final int currentUserId = getCurrentUser().id;
835 final int[] profileIds = um.getEnabledProfileIds(currentUserId);
837 if (id != currentUserId) {
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java956 int currentUserId = getCurrentUserId();
959 currentUserId, false /* enabledOnly */);
963 && user.id != currentUserId && !user.isQuietModeEnabled()) {
1325 int currentUserId = getCurrentUserId();
1327 if (targetUserId == currentUserId) {
1347 UserInfo currentUserInfo = getUserInfo(currentUserId);
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java574 int currentUserId = ActivityManager.getCurrentUser(); in startConfirmation() local
575 UserInfo userInfo = UserManager.get(mContext).getUserInfo(currentUserId); in startConfirmation()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodManagerService.java1421 final int currentUserId = mSettings.getCurrentUserId(); in onUnlockUser() local
1423 Slog.d(TAG, "onUnlockUser: userId=" + userId + " curUserId=" + currentUserId); in onUnlockUser()
1425 if (userId != currentUserId) { in onUnlockUser()
1428 mSettings.switchCurrentUser(currentUserId, !mSystemReady); in onUnlockUser()
1611 final int currentUserId = mSettings.getCurrentUserId(); in systemRunning() local
1612 mSettings.switchCurrentUser(currentUserId, in systemRunning()
1613 !mUserManagerInternal.isUserUnlockingOrUnlocked(currentUserId)); in systemRunning()
1629 mSettingsObserver.registerContentObserverLocked(currentUserId); in systemRunning()
1649 mSettings.getEnabledInputMethodListLocked(), currentUserId, in systemRunning()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java1668 int currentUserId = KeyguardUpdateMonitor.getCurrentUser(); in sendUserPresentBroadcast() local
1669 final UserHandle currentUser = new UserHandle(currentUserId); in sendUserPresentBroadcast()
1676 getLockPatternUtils().userPresent(currentUserId); in sendUserPresentBroadcast()

12