/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsShellCommand.java | 42 private int mCurrentUserId; field in LockSettingsShellCommand 56 mCurrentUserId = ActivityManager.getService().getCurrentUser().id; in onCommand() 114 mCurrentUserId = Integer.parseInt(getNextArgRequired()); in parseArgs() 138 mLockPatternUtils.saveLockPattern(stringToPattern(mNew), mOld, mCurrentUserId); in runSetPattern() local 143 mLockPatternUtils.saveLockPassword(mNew, mOld, PASSWORD_QUALITY_ALPHABETIC, mCurrentUserId); in runSetPassword() 148 mLockPatternUtils.saveLockPassword(mNew, mOld, PASSWORD_QUALITY_NUMERIC, mCurrentUserId); in runSetPin() 153 mLockPatternUtils.clearLock(mOld, mCurrentUserId); in runClear() 159 mLockPatternUtils.setLockScreenDisabled(disabled, mCurrentUserId); in runSetDisabled() 164 boolean isLockScreenDisabled = mLockPatternUtils.isLockScreenDisabled(mCurrentUserId); in runGetDisabled() 169 final boolean havePassword = mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId); in checkCredential() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | TaskSnapshotCacheTest.java | 85 mPersister.persistSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, createSnapshot()); in testReduced_notCached() 87 assertNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testReduced_notCached() 91 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testReduced_notCached() 95 assertNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testReduced_notCached() 102 mPersister.persistSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, createSnapshot()); in testRestoreFromDisk() 104 assertNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testRestoreFromDisk() 108 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, sWm.mCurrentUserId, in testRestoreFromDisk()
|
/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
D | KeyguardStateMonitor.java | 49 private int mCurrentUserId; field in KeyguardStateMonitor 56 mCurrentUserId = ActivityManager.getCurrentUser(); in KeyguardStateMonitor() 99 mCurrentUserId = userId; in setCurrentUser() 103 return mCurrentUserId; in getCurrentUser() 134 pw.println(prefix + "mCurrentUserId=" + mCurrentUserId); in dump()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerImpl.java | 85 private int mCurrentUserId; field in SecurityControllerImpl 148 return mDevicePolicyManager.getProfileOwnerAsUser(mCurrentUserId) != null; in hasProfileOwner() 153 for (int profileId : mUserManager.getProfileIdsWithDisabled(mCurrentUserId)) { in getProfileOwnerName() 169 final int profileId = getWorkProfileUserId(mCurrentUserId); in getWorkProfileOrganizationName() 195 return getWorkProfileUserId(mCurrentUserId) != UserHandle.USER_NULL; in hasWorkProfile() 226 UserHandle currentUser = new UserHandle(mCurrentUserId); in isVpnRestricted() 227 return mUserManager.getUserInfo(mCurrentUserId).isRestricted() in isVpnRestricted() 248 Boolean hasCACerts = mHasCACerts.get(mCurrentUserId); in hasCACertInCurrentUser() 254 int userId = getWorkProfileUserId(mCurrentUserId); in hasCACertInWorkProfile() 280 mCurrentUserId = newUserId; in onUserSwitched() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
D | CurrentUserTracker.java | 65 private int mCurrentUserId; field in CurrentUserTracker.UserReceiver 89 return mCurrentUserId; in getCurrentUserId() 97 mCurrentUserId = ActivityManager.getCurrentUser(); in addTracker() 115 if (mCurrentUserId != newUserId) { in notifyUserSwitched() 116 mCurrentUserId = newUserId; in notifyUserSwitched()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 62 private int mCurrentUserId; field in LockscreenWallpaper 72 mCurrentUserId = ActivityManager.getCurrentUser(); in LockscreenWallpaper() 94 LoaderResult result = loadBitmap(mCurrentUserId, mSelectedUser); in getBitmap() 138 if (user != mCurrentUserId) { in setCurrentUser() 142 mCurrentUserId = user; in setCurrentUser() 178 final int currentUser = mCurrentUserId; in run()
|
D | StatusBar.java | 932 mCurrentUserId = ActivityManager.getCurrentUser(); in start() 933 setHeadsUpUser(mCurrentUserId); in start() 1507 mBarService.onClearAllNotifications(mCurrentUserId); in clearAllNotifications() 1641 return new UserHandle(mCurrentUserId); in getCurrentUserHandle() 1985 boolean devicePublic = isLockscreenPublicMode(mCurrentUserId); in updateNotificationShade() 1990 && !userAllowsPrivateNotificationsInPublic(mCurrentUserId); in updateNotificationShade() 2085 boolean currentUserWantsRedaction = !userAllowsPrivateNotificationsInPublic(mCurrentUserId); in needsRedaction() 2924 mCurrentUserId); in isUsingDarkTheme() 3744 mContext, intent, mCurrentUserId); in startActivityDismissingKeyguard() 4650 && mStatusBarKeyguardViewManager.isSecure(mCurrentUserId); in updatePublicMode() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ConfigurationMap.java | 22 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in ConfigurationMap 32 mUserManager.getProfiles(mCurrentUserId))) { in put() 71 mCurrentUserId = userId; in setNewUser()
|
D | WifiConfigManager.java | 288 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in WifiConfigManager 733 uid, mUserManager.getProfiles(mCurrentUserId)); in doesUidBelongToCurrentUser() 2518 if (userId == mCurrentUserId) { in handleUserSwitch() 2526 if (mUserManager.isUserUnlockingOrUnlocked(mCurrentUserId)) { in handleUserSwitch() 2530 Set<Integer> removedNetworkIds = clearInternalUserData(mCurrentUserId); in handleUserSwitch() 2532 mCurrentUserId = userId; in handleUserSwitch() 2534 if (mUserManager.isUserUnlockingOrUnlocked(mCurrentUserId)) { in handleUserSwitch() 2535 handleUserUnlockOrSwitch(mCurrentUserId); in handleUserSwitch() 2561 if (userId == mCurrentUserId && mPendingUnlockStoreRead) { in handleUserUnlock() 2562 handleUserUnlockOrSwitch(mCurrentUserId); in handleUserUnlock() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | LocationBlacklist.java | 53 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in LocationBlacklist 121 mCurrentUserId = userId; in switchUser() 130 mCurrentUserId); in getStringArrayLocked()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ServiceWatcher.java | 74 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in ServiceWatcher 188 return mPm.queryIntentServicesAsUser(intent, flags, mCurrentUserId).isEmpty(); in isServiceMissing() 208 mCurrentUserId); in bindBestPackageLocked() 265 final int userId = bestIsMultiuser ? UserHandle.USER_SYSTEM : mCurrentUserId; in bindBestPackageLocked() 408 mCurrentUserId = userId; in switchUser() 415 if (userId == mCurrentUserId) { in unlockUser()
|
D | TextServicesManagerService.java | 1014 private int mCurrentUserId; field in TextServicesManagerService.TextServicesSettings 1041 Slog.d(TAG, "--- Swtich the current user from " + mCurrentUserId + " to " in switchCurrentUser() 1044 if (mCurrentUserId != userId || mCopyOnWrite != copyOnWrite) { in switchCurrentUser() 1049 mCurrentUserId = userId; in switchCurrentUser() 1058 Settings.Secure.putStringForUser(mResolver, key, str, mCurrentUserId); in putString() 1068 result = Settings.Secure.getStringForUser(mResolver, key, mCurrentUserId); in getString() 1077 Settings.Secure.putIntForUser(mResolver, key, value, mCurrentUserId); in putInt() 1086 return Settings.Secure.getIntForUser(mResolver, key, defaultValue, mCurrentUserId); in getInt() 1101 if (userId == mCurrentUserId) return true; in isCurrentProfile() 1111 return mCurrentUserId; in getCurrentUserId() [all …]
|
D | LocationManagerService.java | 241 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in LocationManagerService 341 updateUserProfiles(mCurrentUserId); in systemRunning() 402 updateUserProfiles(mCurrentUserId); in systemRunning() 526 PackageManager.GET_META_DATA, mCurrentUserId); in ensureFallbackFusedProviderPresentLocked() 757 if (mCurrentUserId == userId) { in switchUser() 768 mCurrentUserId = userId; in switchUser() 1357 return Settings.Secure.isLocationProviderEnabledForUser(resolver, provider, mCurrentUserId); in isAllowedByCurrentUserSettingsLocked() 2648 " (current user: " + mCurrentUserId + ", app: " + in handleLocationChangedLocked()
|
/frameworks/base/services/core/java/com/android/server/statusbar/ |
D | StatusBarManagerService.java | 91 private int mCurrentUserId; field in StatusBarManagerService 213 mCurrentUserId = newUserId; 455 disableForUser(what, token, pkg, mCurrentUserId); in disable() 475 disable2ForUser(what, token, pkg, mCurrentUserId); in disable2() 501 final int net1 = gatherDisableActionsLocked(mCurrentUserId, 1); in disableLocked() 502 final int net2 = gatherDisableActionsLocked(mCurrentUserId, 2); in disableLocked() 649 mCurrentUserId, in setSystemUiVisibility() 734 switches[0] = gatherDisableActionsLocked(mCurrentUserId, 1); in registerStatusBar() 740 switches[6] = gatherDisableActionsLocked(mCurrentUserId, 2); in registerStatusBar() 1045 pw.println(" mCurrentUserId=" + mCurrentUserId); in dump()
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | InputMethodUtils.java | 850 private int mCurrentUserId; field in InputMethodUtils.InputMethodSettings 923 Slog.d(TAG, "--- Switch the current user from " + mCurrentUserId + " to " + userId); in switchCurrentUser() 925 if (mCurrentUserId != userId || mCopyOnWrite != copyOnWrite) { in switchCurrentUser() 930 mCurrentUserId = userId; in switchCurrentUser() 939 Settings.Secure.putStringForUser(mResolver, key, str, mCurrentUserId); in putString() 949 result = Settings.Secure.getStringForUser(mResolver, key, mCurrentUserId); in getString() 958 Settings.Secure.putIntForUser(mResolver, key, value, mCurrentUserId); in putInt() 967 return Settings.Secure.getIntForUser(mResolver, key, defaultValue, mCurrentUserId); in getInt() 986 if (userId == mCurrentUserId) return true; in isCurrentProfile() 1117 + ", " + mCurrentUserId); in getEnabledInputMethodsStr() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | IntentTile.java | 51 private int mCurrentUserId; field in IntentTile 90 mCurrentUserId = newUserId; in handleUserSwitch() 118 mContext.sendBroadcastAsUser(intent, new UserHandle(mCurrentUserId)); in sendIntent()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputManagerService.java | 124 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in TvInputManagerService 140 getOrCreateUserStateLocked(mCurrentUserId); in TvInputManagerService() 155 buildTvInputListLocked(mCurrentUserId, null); in onBootPhase() 156 buildTvContentRatingSystemListLocked(mCurrentUserId); in onBootPhase() 166 if (mCurrentUserId != userHandle) { in onUnlockUser() 169 buildTvInputListLocked(mCurrentUserId, null); in onUnlockUser() 170 buildTvContentRatingSystemListLocked(mCurrentUserId); in onUnlockUser() 178 if (mCurrentUserId == getChangingUserId()) { in registerBroadcastReceivers() 179 buildTvInputListLocked(mCurrentUserId, packages); in registerBroadcastReceivers() 180 buildTvContentRatingSystemListLocked(mCurrentUserId); in registerBroadcastReceivers() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ConfigurationMapTest.java | 76 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in ConfigurationMapTest 96 mCurrentUserId = newUserId; in switchUser() 136 USER_PROFILES.get(mCurrentUserId))) { in verifyGetters()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityManagerService.java | 248 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in AccessibilityManagerService 258 return getUserStateLocked(mCurrentUserId); in getCurrentUserStateLocked() 295 if (getChangingUserId() != mCurrentUserId) { in registerBroadcastReceivers() 318 if (userId != mCurrentUserId) { in registerBroadcastReceivers() 343 if (userId != mCurrentUserId) { in registerBroadcastReceivers() 380 if (userId != mCurrentUserId) { in registerBroadcastReceivers() 480 + " and userId:" + mCurrentUserId); in addClient() 483 (resolvedUserId == mCurrentUserId) ? userState.getClientState() : 0, in addClient() 515 if (resolvedUserId == mCurrentUserId) { in sendAccessibilityEvent() 613 if (resolvedUserId != mCurrentUserId) { in interrupt() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 128 private volatile int mCurrentUserId = UserHandle.USER_SYSTEM; field in UserController 225 if (oldUserId == UserHandle.USER_SYSTEM || oldUserId == mCurrentUserId) { in stopRunningUsersLocked() 741 if (oldUserId == UserHandle.USER_SYSTEM || oldUserId == mCurrentUserId 763 mCurrentUserId, false /* enabledOnly */); 767 && user.id != mCurrentUserId && !user.isQuietModeEnabled()) { 830 final int oldUserId = mCurrentUserId; 873 mCurrentUserId = userId; 885 final Integer currentUserIdInt = mCurrentUserId; 1426 final List<UserInfo> profiles = mInjector.getUserManager().getProfiles(mCurrentUserId, 1511 return getUserInfo(mCurrentUserId); [all …]
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 717 int mCurrentUserId; field in WallpaperManagerService 845 && mWallpaper.userId == mCurrentUserId) { 908 && mWallpaper.userId == mCurrentUserId in processDisconnect() 1036 if (mCurrentUserId != getChangingUserId()) { in onPackageUpdateFinished() 1039 WallpaperData wallpaper = mWallpaperMap.get(mCurrentUserId); in onPackageUpdateFinished() 1062 if (mCurrentUserId != getChangingUserId()) { in onPackageModified() 1065 WallpaperData wallpaper = mWallpaperMap.get(mCurrentUserId); in onPackageModified() 1079 if (mCurrentUserId != getChangingUserId()) { in onPackageUpdateStarted() 1082 WallpaperData wallpaper = mWallpaperMap.get(mCurrentUserId); in onPackageUpdateStarted() 1104 if (mCurrentUserId != getChangingUserId()) { in onHandleForceStop() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | ImmersiveModeConfirmation.java | 77 private int mCurrentUserId; field in ImmersiveModeConfirmation 99 mCurrentUserId = currentUserId; in loadSetting() 100 if (DEBUG) Slog.d(TAG, String.format("loadSetting() mCurrentUserId=%d", mCurrentUserId)); in loadSetting()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbService.java | 109 private @UserIdInt int mCurrentUserId; field in UsbService 163 mCurrentUserId = newUserId; in onSwitchUser() 227 return mUserManager.isSameProfileGroup(userIdInt, mCurrentUserId); in isCallerInCurrentUserProfileGroupLocked() 471 if (mCurrentUserId == UserHandle.getCallingUserId()) { in setUsbDeviceConnectionHandler()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaRouterService.java | 96 private int mCurrentUserId = -1; field in MediaRouterService 360 pw.println(" mCurrentUserId=" + mCurrentUserId); in dump() 412 if (mCurrentUserId != userId) { in switchUser() 413 final int oldUserId = mCurrentUserId; in switchUser() 414 mCurrentUserId = userId; // do this first in switchUser() 568 if (userRecord.mUserId == mCurrentUserId) { in initializeUserLocked() 578 if (userRecord.mUserId != mCurrentUserId in disposeUserIfNeededLocked()
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
D | FingerprintService.java | 127 private int mCurrentUserId = UserHandle.USER_NULL; field in FingerprintService 393 mCurrentUserId = UserHandle.USER_NULL; in handleError() 813 receiver, mCurrentUserId, groupId, opId, restricted, opPackageName) { in startAuthentication() 1102 PerformanceStats stats = pmap.get(mCurrentUserId); in authenticate() 1105 pmap.put(mCurrentUserId, stats); in authenticate() 1405 if (userId != mCurrentUserId) { in updateActiveGroup() 1422 mCurrentUserId = userId; in updateActiveGroup()
|