/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsShellCommand.java | 44 private int mCurrentUserId; field in LockSettingsShellCommand 59 mCurrentUserId = ActivityManager.getService().getCurrentUser().id; in onCommand() 169 mCurrentUserId = Integer.parseInt(getNextArgRequired()); in parseArgs() 194 mLockPatternUtils.saveLockPattern(stringToPattern(mNew), oldBytes, mCurrentUserId); in runSetPattern() local 202 mCurrentUserId); in runSetPassword() 210 mCurrentUserId); in runSetPin() 216 mLockPatternUtils.clearLock(oldBytes, mCurrentUserId); in runClear() 222 mLockPatternUtils.setLockScreenDisabled(disabled, mCurrentUserId); in runSetDisabled() 227 boolean isLockScreenDisabled = mLockPatternUtils.isLockScreenDisabled(mCurrentUserId); in runGetDisabled() 232 final boolean havePassword = mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId); in checkCredential() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationLockscreenUserManagerTest.java | 75 private int mCurrentUserId; field in NotificationLockscreenUserManagerTest 86 mCurrentUserId = ActivityManager.getCurrentUser(); in setUp() 88 when(mUserManager.getProfiles(mCurrentUserId)).thenReturn(Lists.newArrayList( in setUp() 89 new UserInfo(mCurrentUserId, "", 0), new UserInfo(mCurrentUserId + 1, "", 0))); in setUp() 125 assertTrue(mLockscreenUserManager.userAllowsPrivateNotificationsInPublic(mCurrentUserId)); in testLockScreenAllowPrivateNotificationsTrue() 133 assertFalse(mLockscreenUserManager.userAllowsPrivateNotificationsInPublic(mCurrentUserId)); in testLockScreenAllowPrivateNotificationsFalse() 147 .putExtra(Intent.EXTRA_USER_HANDLE, mCurrentUserId + 1); in testActionUserSwitchedCallsOnUserSwitched() 149 verify(mPresenter, times(1)).onUserSwitched(mCurrentUserId + 1); in testActionUserSwitchedCallsOnUserSwitched() 154 assertFalse(mLockscreenUserManager.isLockscreenPublicMode(mCurrentUserId)); in testIsLockscreenPublicMode() 155 mLockscreenUserManager.setLockscreenPublicMode(true, mCurrentUserId); in testIsLockscreenPublicMode() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotCacheTest.java | 87 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testReduced_notCached() 89 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 93 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 97 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 104 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testRestoreFromDisk() 106 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk() 110 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationLockscreenUserManagerImpl.java | 115 mCurrentUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, -1); 117 Log.v(TAG, "userId " + mCurrentUserId + " is in the house"); 124 mPresenter.onUserSwitched(mCurrentUserId); 127 listener.onUserChanged(mCurrentUserId); 166 protected int mCurrentUserId = 0; field in NotificationLockscreenUserManagerImpl 184 mCurrentUserId = ActivityManager.getCurrentUser(); in NotificationLockscreenUserManagerImpl() 280 userId = mCurrentUserId; in shouldTemporarilyHideNotifications() 291 || (userId != mCurrentUserId && shouldHideNotifications(mCurrentUserId)) in shouldHideNotifications() 304 return isLockscreenPublicMode(mCurrentUserId) in shouldHideNotifications() 342 mCurrentUserId) != 0; in updateLockscreenNotificationSetting() [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/policy/ |
D | SecurityControllerImpl.java | 95 private int mCurrentUserId; field in SecurityControllerImpl 163 return mDevicePolicyManager.getProfileOwnerAsUser(mCurrentUserId) != null; in hasProfileOwner() 168 for (int profileId : mUserManager.getProfileIdsWithDisabled(mCurrentUserId)) { in getProfileOwnerName() 184 final int profileId = getWorkProfileUserId(mCurrentUserId); in getWorkProfileOrganizationName() 210 return getWorkProfileUserId(mCurrentUserId) != UserHandle.USER_NULL; in hasWorkProfile() 241 UserHandle currentUser = new UserHandle(mCurrentUserId); in isVpnRestricted() 242 return mUserManager.getUserInfo(mCurrentUserId).isRestricted() in isVpnRestricted() 263 Boolean hasCACerts = mHasCACerts.get(mCurrentUserId); in hasCACertInCurrentUser() 269 int userId = getWorkProfileUserId(mCurrentUserId); in hasCACertInWorkProfile() 295 mCurrentUserId = newUserId; in onUserSwitched() [all …]
|
D | Clock.java | 79 private int mCurrentUserId; field in Clock 135 mCurrentUserId = newUserId; in Clock() 144 bundle.putInt(CURRENT_USER_ID, mCurrentUserId); in onSaveInstanceState() 164 mCurrentUserId = bundle.getInt(CURRENT_USER_ID); in onRestoreInstanceState() 197 mCurrentUserId = mCurrentUserTracker.getCurrentUserId(); in onAttachedToWindow() 385 boolean is24 = DateFormat.is24HourFormat(context, mCurrentUserId); in getSmallTime() 476 boolean is24 = DateFormat.is24HourFormat(getContext(), mCurrentUserId); in dispatchDemoCommand()
|
/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() 130 pw.println(prefix + "mCurrentUserId=" + mCurrentUserId); in dump()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 67 private int mCurrentUserId; field in LockscreenWallpaper 77 mCurrentUserId = ActivityManager.getCurrentUser(); in LockscreenWallpaper() 102 LoaderResult result = loadBitmap(mCurrentUserId, mSelectedUser); in getBitmap() 151 if (user != mCurrentUserId) { in setCurrentUser() 155 mCurrentUserId = user; in setCurrentUser() 191 final int currentUser = mCurrentUserId; in run()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ConfigurationMap.java | 38 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in ConfigurationMap 48 mUserManager.getProfiles(mCurrentUserId))) { in put() 87 mCurrentUserId = userId; in setNewUser()
|
D | WifiConfigManager.java | 331 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in WifiConfigManager 930 uid, mUserManager.getProfiles(mCurrentUserId)); in doesUidBelongToCurrentUser() 2932 if (userId == mCurrentUserId) { in handleUserSwitch() 2939 mCurrentUserId = userId; in handleUserSwitch() 2946 if (mUserManager.isUserUnlockingOrUnlocked(mCurrentUserId)) { in handleUserSwitch() 2950 Set<Integer> removedNetworkIds = clearInternalUserData(mCurrentUserId); in handleUserSwitch() 2952 mCurrentUserId = userId; in handleUserSwitch() 2954 if (mUserManager.isUserUnlockingOrUnlocked(mCurrentUserId)) { in handleUserSwitch() 2955 handleUserUnlockOrSwitch(mCurrentUserId); in handleUserSwitch() 2976 if (userId != mCurrentUserId) { in handleUserUnlock() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarRemoteInputCallbackTest.java | 59 private int mCurrentUserId = 0; field in StatusBarRemoteInputCallbackTest 80 when(mNotificationLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testActionDeviceLockedChangedWithDifferentUserIdCallsOnWorkChallengeChanged() 84 .putExtra(Intent.EXTRA_USER_HANDLE, mCurrentUserId + 1); in testActionDeviceLockedChangedWithDifferentUserIdCallsOnWorkChallengeChanged()
|
/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/biometrics/face/ |
D | FaceService.java | 376 mHalDeviceId, token, new ServiceListenerImpl(receiver), mCurrentUserId, in enroll() 401 enrollInternal(client, mCurrentUserId); in enroll() 419 mCurrentUserId, 0 /* groupId */, opId, restricted, opPackageName, in authenticate() 435 mCurrentUserId, 0 /* groupId */, opId, restricted, opPackageName, cookie, in prepareForAuthentication() 564 getBiometricUtils().renameBiometricForUser(getContext(), mCurrentUserId, in rename() 620 if (!FaceService.this.hasEnrolledBiometrics(mCurrentUserId)) { in resetLockout() 625 Slog.d(TAG, "Resetting lockout for user: " + mCurrentUserId); in resetLockout() 645 if (!FaceService.this.hasEnrolledBiometrics(mCurrentUserId)) { in setFeature() 656 final int faceId = getFirstTemplateForUser(mCurrentUserId); in setFeature() 683 if (!FaceService.this.hasEnrolledBiometrics(mCurrentUserId)) { in getFeature() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | ServiceWatcher.java | 132 private int mCurrentUserId; field in ServiceWatcher 223 mCurrentUserId = userId; in start() 226 if (userId == mCurrentUserId) { in start() 233 mCurrentUserId = ActivityManager.getCurrentUser(); in start() 263 mCurrentUserId); in bindBestPackage() 321 int userId = bestIsMultiuser ? UserHandle.USER_SYSTEM : mCurrentUserId; in bindBestPackage()
|
/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | InputMethodUtils.java | 772 private int mCurrentUserId; field in InputMethodUtils.InputMethodSettings 829 Slog.d(TAG, "--- Switch the current user from " + mCurrentUserId + " to " + userId); in switchCurrentUser() 831 if (mCurrentUserId != userId || mCopyOnWrite != copyOnWrite) { in switchCurrentUser() 836 mCurrentUserId = userId; in switchCurrentUser() 846 ? sUserManagerInternal.getProfileParentId(mCurrentUserId) : mCurrentUserId; in putString() 857 result = Settings.Secure.getStringForUser(mResolver, key, mCurrentUserId); in getString() 867 ? sUserManagerInternal.getProfileParentId(mCurrentUserId) : mCurrentUserId; in putInt() 877 return Settings.Secure.getIntForUser(mResolver, key, defaultValue, mCurrentUserId); in getInt() 896 if (userId == mCurrentUserId) return true; in isCurrentProfile() 1026 + ", " + mCurrentUserId); in getEnabledInputMethodsStr() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityManagerService.java | 263 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in AccessibilityManagerService 273 return getUserStateLocked(mCurrentUserId); in getCurrentUserStateLocked() 320 return mCurrentUserId; in getCurrentUserIdLocked() 384 if (getChangingUserId() != mCurrentUserId) { in registerBroadcastReceivers() 407 if (userId != mCurrentUserId) { in registerBroadcastReceivers() 426 if (userId != mCurrentUserId) { in registerBroadcastReceivers() 461 if (userId != mCurrentUserId) { in registerBroadcastReceivers() 560 + " and userId:" + mCurrentUserId); in addClient() 563 (resolvedUserId == mCurrentUserId) ? userState.getClientState() : 0, in addClient() 595 if (resolvedUserId == mCurrentUserId) { in sendAccessibilityEvent() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | AmbientBrightnessStatsTracker.java | 66 private @UserIdInt int mCurrentUserId; field in AmbientBrightnessStatsTracker 87 mAmbientBrightnessStats.log(mCurrentUserId, mInjector.getLocalDate(), in stop() 96 if (userId == mCurrentUserId) { in add() 97 mAmbientBrightnessStats.log(mCurrentUserId, mInjector.getLocalDate(), in add() 103 mCurrentUserId = userId; in add()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | IntentTile.java | 49 private int mCurrentUserId; field in IntentTile 88 mCurrentUserId = newUserId; in handleUserSwitch() 116 mContext.sendBroadcastAsUser(intent, new UserHandle(mCurrentUserId)); in sendIntent()
|
/frameworks/base/services/core/java/com/android/server/statusbar/ |
D | StatusBarManagerService.java | 91 private int mCurrentUserId; field in StatusBarManagerService 303 mCurrentUserId = newUserId; 670 disableForUser(what, token, pkg, mCurrentUserId); in disable() 692 disable2ForUser(what, token, pkg, mCurrentUserId); in disable2() 720 final int net1 = gatherDisableActionsLocked(mCurrentUserId, 1); in disableLocked() 721 final int net2 = gatherDisableActionsLocked(mCurrentUserId, 2); in disableLocked() 888 mCurrentUserId, in setSystemUiVisibility() 1054 return new RegisterStatusBarResult(icons, gatherDisableActionsLocked(mCurrentUserId, 1), in registerStatusBar() 1057 gatherDisableActionsLocked(mCurrentUserId, 2), in registerStatusBar() 1437 pw.println(" mCurrentUserId=" + mCurrentUserId); in dump()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputManagerService.java | 125 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in TvInputManagerService 141 getOrCreateUserStateLocked(mCurrentUserId); in TvInputManagerService() 156 buildTvInputListLocked(mCurrentUserId, null); in onBootPhase() 157 buildTvContentRatingSystemListLocked(mCurrentUserId); in onBootPhase() 167 if (mCurrentUserId != userHandle) { in onUnlockUser() 170 buildTvInputListLocked(mCurrentUserId, null); in onUnlockUser() 171 buildTvContentRatingSystemListLocked(mCurrentUserId); in onUnlockUser() 179 if (mCurrentUserId == getChangingUserId()) { in registerBroadcastReceivers() 180 buildTvInputListLocked(mCurrentUserId, packages); in registerBroadcastReceivers() 181 buildTvContentRatingSystemListLocked(mCurrentUserId); in registerBroadcastReceivers() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ConfigurationMapTest.java | 77 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in ConfigurationMapTest 97 mCurrentUserId = newUserId; in switchUser() 137 USER_PROFILES.get(mCurrentUserId))) { in verifyGetters()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/misc/ |
D | SystemServicesProxy.java | 107 private int mCurrentUserId; field in SystemServicesProxy 128 mCurrentUserId = mAm.getCurrentUser(); 148 mCurrentUserId = mAm.getCurrentUser(); in SystemServicesProxy() 351 return mCurrentUserId; in getCurrentUser()
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 880 private int mCurrentUserId = UserHandle.USER_NULL; field in WallpaperManagerService 1174 && mWallpaper.userId == mCurrentUserId) { 1371 && mWallpaper.userId == mCurrentUserId in processDisconnect() 1493 if (mCurrentUserId != getChangingUserId()) { in onPackageUpdateFinished() 1496 WallpaperData wallpaper = mWallpaperMap.get(mCurrentUserId); in onPackageUpdateFinished() 1519 if (mCurrentUserId != getChangingUserId()) { in onPackageModified() 1522 WallpaperData wallpaper = mWallpaperMap.get(mCurrentUserId); in onPackageModified() 1536 if (mCurrentUserId != getChangingUserId()) { in onPackageUpdateStarted() 1539 WallpaperData wallpaper = mWallpaperMap.get(mCurrentUserId); in onPackageUpdateStarted() 1561 if (mCurrentUserId != getChangingUserId()) { in onHandleForceStop() [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/fingerprint/ |
D | FingerprintService.java | 206 mHalDeviceId, token, new ServiceListenerImpl(receiver), mCurrentUserId, groupId, in enroll() 237 mCurrentUserId, groupId, opId, restricted, opPackageName, in authenticate() 252 mCurrentUserId, groupId, opId, restricted, opPackageName, cookie, in prepareForAuthentication() 431 if (!FingerprintService.this.hasEnrolledBiometrics(mCurrentUserId)) { in resetTimeout() 624 mCurrentUserId = UserHandle.USER_NULL; 776 if (userId != mCurrentUserId) { in updateActiveGroup() 805 mCurrentUserId = userId; in updateActiveGroup()
|