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.java110 protected final boolean checkCurrentUserId(int currentUserId, boolean debug) { in checkCurrentUserId() argument
112 if (processUserId != currentUserId) { in checkCurrentUserId()
115 + " 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/src/com/android/systemui/statusbar/
DNotificationViewHierarchyManager.java161 int currentUserId = mLockscreenUserManager.getCurrentUserId(); in updateNotificationViews() local
162 boolean devicePublic = mLockscreenUserManager.isLockscreenPublicMode(currentUserId); in updateNotificationViews()
166 && (userId == currentUserId || userId == UserHandle.USER_ALL in updateNotificationViews()
174 currentUserId); in updateNotificationViews()
DNotificationLockscreenUserManager.java68 boolean userAllowsPrivateNotificationsInPublic(int currentUserId); in userAllowsPrivateNotificationsInPublic() argument
/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/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeCastController.java36 public void setCurrentUserId(int currentUserId) { in setCurrentUserId() argument
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java93 int currentUserId = ActivityManager.getCurrentUser(); in testUpdateLocationEnabled_sendBroadcast() local
94 Utils.updateLocationEnabled(mContext, true, currentUserId, in testUpdateLocationEnabled_sendBroadcast()
99 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.java847 final int currentUserId = userManager.getUserHandle(); in addCall() local
860 if (UserHandle.USER_SYSTEM == currentUserId) { in addCall()
891 if (userId == currentUserId) { in addCall()
902 : UserHandle.of(currentUserId); in addCall()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java111 public LoaderResult loadBitmap(int currentUserId, UserHandle selectedUser) { in loadBitmap() argument
122 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.java457 public abstract void notifyLockedProfile(@UserIdInt int userId, int currentUserId); in notifyLockedProfile() argument
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardStatusView.java450 int currentUserId = KeyguardUpdateMonitor.getCurrentUser(); in onLogoutClicked() local
453 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.java724 int currentUserId = getCurrentUser().id; in onPress() local
726 ActivityManager.getService().stopUser(currentUserId, true /*force*/, null); in onPress()
835 final int currentUserId = getCurrentUser().id;
836 final int[] profileIds = um.getEnabledProfileIds(currentUserId);
838 if (id != currentUserId) {
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java978 int currentUserId = getCurrentUserId();
981 currentUserId, false /* enabledOnly */);
985 && user.id != currentUserId && !user.isQuietModeEnabled()) {
1357 int currentUserId = getCurrentUserId();
1359 if (targetUserId == currentUserId) {
1379 UserInfo currentUserInfo = getUserInfo(currentUserId);
/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/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java1430 int currentUserId = ActivityManager.getCurrentUser(); in startConfirmationForNetwork() local
1431 UserInfo userInfo = UserManager.get(mContext).getUserInfo(currentUserId); in startConfirmationForNetwork()
1454 int currentUserId = ActivityManager.getCurrentUser(); in startConfirmationForKey() local
1455 UserInfo userInfo = UserManager.get(mContext).getUserInfo(currentUserId); in startConfirmationForKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java1673 int currentUserId = KeyguardUpdateMonitor.getCurrentUser(); in sendUserPresentBroadcast() local
1674 final UserHandle currentUser = new UserHandle(currentUserId); in sendUserPresentBroadcast()
1681 getLockPatternUtils().userPresent(currentUserId); in sendUserPresentBroadcast()

12