/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/ |
H A D | LockSettingsShellCommand.java | 56 private int mCurrentUserId; field in LockSettingsShellCommand 208 if (mCurrentUserId == UserHandle.USER_CURRENT) { in parseArgs() 209 mCurrentUserId = ActivityManager.getCurrentUser(); in parseArgs() 223 if (mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId)) { in getOldCredential() 231 if (mLockPatternUtils.isLockPatternEnabled(mCurrentUserId)) { in getOldCredential() 289 mCurrentUserId = UserHandle.USER_ALL; in runRequireStrongAuth() 297 + mCurrentUserId + " because of " + mNew); in runRequireStrongAuth() 336 mLockPatternUtils.setLockScreenDisabled(disabled, mCurrentUserId); in runSetDisabled() 346 if (mLockPatternUtils.isSecure(mCurrentUserId)) { in checkCredential() 354 mCurrentUserId, null); in checkCredential() [all …]
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
H A D | FakeUserInfoHelper.java | 40 private int mCurrentUserId; field in FakeUserInfoHelper 43 mCurrentUserId = DEFAULT_USERID; in FakeUserInfoHelper() 80 int oldUserId = mCurrentUserId; in setCurrentUserIds() 81 mCurrentUserId = parentUser; in setCurrentUserIds() 91 if (oldUserId != mCurrentUserId) { in setCurrentUserIds() 92 dispatchOnCurrentUserChanged(oldUserId, mCurrentUserId); in setCurrentUserIds() 93 setUserVisibleInternal(mCurrentUserId, true); in setCurrentUserIds() 125 return ArrayUtils.contains(getProfileIds(mCurrentUserId), userId); in isCurrentUserId() 135 return mCurrentUserId; in getCurrentUserId()
|
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
H A D | MagnificationScaleProvider.java | 51 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in MagnificationScaleProvider 70 mCurrentUserId)); in putScale() 88 DEFAULT_MAGNIFICATION_SCALE, mCurrentUserId); in getScale() 99 SparseArray<Float> scales = mUsersScales.get(mCurrentUserId); in getScalesWithCurrentUser() 102 mUsersScales.put(mCurrentUserId, scales); in getScalesWithCurrentUser() 110 mCurrentUserId = userId; in onUserChanged() 133 + "mCurrentUserId=" + mCurrentUserId in toString()
|
/aosp14/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
H A D | KeyguardStateMonitor.java | 48 private int mCurrentUserId; field in KeyguardStateMonitor 55 mCurrentUserId = ActivityManager.getCurrentUser(); in KeyguardStateMonitor() 82 return mCurrentUserId; in getCurrentUser() 87 if (userId != mCurrentUserId) return; in onShowingStateChanged() 100 mCurrentUserId = userId; in setCurrentUser() 126 pw.println(prefix + "mCurrentUserId=" + mCurrentUserId); in dump()
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | TaskSnapshotCacheTest.java | 100 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testReduced_notCached() 102 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 106 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 110 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 117 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testRestoreFromDisk() 119 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk() 123 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk()
|
H A D | TaskSnapshotLowResDisabledTest.java | 130 mPersister.persistSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, createSnapshot()); in testReduced_notCached() 132 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 136 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 140 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 144 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached() 148 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/ |
H A D | TestCurrentUserIdentityInjector.java | 24 private Integer mCurrentUserId; field in TestCurrentUserIdentityInjector 27 mCurrentUserId = userId; in initializeCurrentUserId() 32 return mCurrentUserId; in getCurrentUserId()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationLockscreenUserManagerImpl.java | 200 mCurrentUserId = newUser; 207 mPresenter.onUserSwitched(mCurrentUserId); 210 listener.onUserChanged(mCurrentUserId); 220 protected int mCurrentUserId = 0; field in NotificationLockscreenUserManagerImpl 249 mCurrentUserId = mUserTracker.getUserId(); in NotificationLockscreenUserManagerImpl() 368 mCurrentUserId) != 0; in updateLockscreenNotificationSetting() 370 null /* admin */, mCurrentUserId); in updateLockscreenNotificationSetting() 380 mCurrentUserId) != 0; in updateLockscreenNotificationSetting() 446 return mLockscreenPublicMode.get(mCurrentUserId, false); in isLockscreenPublicMode() 564 return mCurrentUserId; in getCurrentUserId() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/ |
H A D | UserAwareBiometricSchedulerTest.java | 90 private int mCurrentUserId = UserHandle.USER_NULL; field in UserAwareBiometricSchedulerTest 103 () -> mCurrentUserId, in setUp() 126 mCurrentUserId = UserHandle.USER_NULL; in testScheduleOperation_whenNoUser() 141 mCurrentUserId = UserHandle.USER_NULL; in testScheduleOperation_whenNoUser_notStarted() 165 mCurrentUserId = UserHandle.USER_NULL; in testScheduleOperation_whenNoUser_notStarted_andReset() 187 mCurrentUserId = 10; in testScheduleOperation_whenSameUser() 190 when(nextClient.getTargetUserId()).thenReturn(mCurrentUserId); in testScheduleOperation_whenSameUser() 203 mCurrentUserId = 10; in testScheduleOperation_whenDifferentUser() 288 mCurrentUserId = UserHandle.USER_NULL; in onUserStopped() 299 mCurrentUserId = newUserId; in onUserStarted() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | SecurityControllerImpl.java | 100 private int mCurrentUserId; field in SecurityControllerImpl 179 return mDevicePolicyManager.getProfileOwnerAsUser(mCurrentUserId) != null; in hasProfileOwner() 200 final int profileId = getWorkProfileUserId(mCurrentUserId); in getWorkProfileOrganizationName() 226 return getWorkProfileUserId(mCurrentUserId) != UserHandle.USER_NULL; in hasWorkProfile() 286 UserHandle currentUser = new UserHandle(mCurrentUserId); in isVpnRestricted() 287 return mUserManager.getUserInfo(mCurrentUserId).isRestricted() in isVpnRestricted() 308 Boolean hasCACerts = mHasCACerts.get(mCurrentUserId); in hasCACertInCurrentUser() 314 int userId = getWorkProfileUserId(mCurrentUserId); in hasCACertInWorkProfile() 340 mCurrentUserId = newUserId; in onUserSwitched() 346 mVpnUserId = mCurrentUserId; in onUserSwitched() [all …]
|
H A D | Clock.java | 87 private int mCurrentUserId; field in Clock 124 mCurrentUserId = newUser; 156 bundle.putInt(CURRENT_USER_ID, mCurrentUserId); in onSaveInstanceState() 176 mCurrentUserId = bundle.getInt(CURRENT_USER_ID); in onRestoreInstanceState() 208 mCurrentUserId = mUserTracker.getUserId(); in onAttachedToWindow() 434 boolean is24 = DateFormat.is24HourFormat(context, mCurrentUserId); in getSmallTime() 522 boolean is24 = DateFormat.is24HourFormat(getContext(), mCurrentUserId); in dispatchDemoCommand()
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/ |
H A D | FingerprintUpdateActiveUserClient.java | 46 private final Supplier<Integer> mCurrentUserId; field in FingerprintUpdateActiveUserClient 61 mCurrentUserId = currentUserId; in FingerprintUpdateActiveUserClient() 71 if (mCurrentUserId.get() == getTargetUserId() && !mForceUpdateAuthenticatorId) { in start() 72 Slog.d(TAG, "Already user: " + mCurrentUserId + ", returning"); in start()
|
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/ |
H A D | InputMethodUtils.java | 242 private int mCurrentUserId; field in InputMethodUtils.InputMethodSettings 316 mCurrentUserId = userId; in switchCurrentUser() 326 ? sUserManagerInternal.getProfileParentId(mCurrentUserId) : mCurrentUserId; in putString() 333 return getStringForUser(key, defaultValue, mCurrentUserId); in getString() 353 ? sUserManagerInternal.getProfileParentId(mCurrentUserId) : mCurrentUserId; in putInt() 382 if (userId == mCurrentUserId) return true; in isCurrentProfile() 528 + ", " + mCurrentUserId); in getEnabledInputMethodsStr() 737 + mCurrentUserId); in putSelectedInputMethod() 745 + mCurrentUserId); in putSelectedSubtype() 803 return mCurrentUserId; in getCurrentUserId() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | LockscreenWallpaper.java | 85 private int mCurrentUserId; field in LockscreenWallpaper 103 mCurrentUserId = userTracker.getUserId(); in LockscreenWallpaper() 140 LoaderResult result = loadBitmap(mCurrentUserId, mSelectedUser); in getBitmap() 200 if (user != mCurrentUserId) { in setSelectedUser() 204 mCurrentUserId = user; in setSelectedUser() 249 final int currentUser = mCurrentUserId; in run() 285 iPw.println("mCurrentUserId=" + mCurrentUserId); in dump()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/ |
H A D | DreamMediaEntryComplicationTest.java | 91 private final Integer mCurrentUserId = 99; field in DreamMediaEntryComplicationTest 169 when(mLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testClickToOpenMediaOverLockscreen() 188 when(mActivityIntentHelper.wouldShowOverLockscreen(mIntent, mCurrentUserId)).thenReturn( in testClickToOpenMediaOverLockscreen() 206 when(mLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testClickToOpenMediaDismissingLockscreen() 225 when(mActivityIntentHelper.wouldShowOverLockscreen(mIntent, mCurrentUserId)).thenReturn( in testClickToOpenMediaDismissingLockscreen()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarRemoteInputCallbackTest.java | 67 private int mCurrentUserId = 0; field in StatusBarRemoteInputCallbackTest 90 when(mNotificationLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testActionDeviceLockedChangedWithDifferentUserIdCallsOnWorkChallengeChanged() 94 .putExtra(Intent.EXTRA_USER_HANDLE, mCurrentUserId + 1); in testActionDeviceLockedChangedWithDifferentUserIdCallsOnWorkChallengeChanged()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserVisibilityMediator.java | 135 private int mCurrentUserId = INITIAL_CURRENT_USER_ID; field in UserVisibilityMediator 279 mCurrentUserId = userId; in assignUserToDisplayOnStart() 464 if (userId == mCurrentUserId) { in canAssignUserToDisplayLocked() 1018 ipw.println(mCurrentUserId); in dump() 1114 return mCurrentUserId; in getCurrentUserId() 1121 if (userId == USER_NULL || mCurrentUserId == USER_NULL) { in isCurrentUserLocked() 1124 return mCurrentUserId == userId; in isCurrentUserLocked() 1130 if (userId == USER_NULL || mCurrentUserId == USER_NULL) { in isCurrentUserOrRunningProfileOfCurrentUser() 1133 if (mCurrentUserId == userId) { in isCurrentUserOrRunningProfileOfCurrentUser() 1137 == mCurrentUserId; in isCurrentUserOrRunningProfileOfCurrentUser()
|
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AccessibilityManagerService.java | 342 return getUserStateLocked(mCurrentUserId); in getCurrentUserStateLocked() 532 return mCurrentUserId; in getCurrentUserIdLocked() 721 if (userId != mCurrentUserId) { in registerBroadcastReceivers() 758 if (userId != mCurrentUserId) { in registerBroadcastReceivers() 805 if (userId != mCurrentUserId) { in registerBroadcastReceivers() 942 userId = mCurrentUserId; in disableAccessibilityMenuToMigrateIfNeeded() 1456 if (mCurrentUserId == userId) { in changeCurrentUserForTestAutomationIfNeededLocked() 1459 mCurrentUserId); in changeCurrentUserForTestAutomationIfNeededLocked() 1464 mRealCurrentUserId = mCurrentUserId; in changeCurrentUserForTestAutomationIfNeededLocked() 1817 mCurrentUserId = userId; in switchUser() [all …]
|
H A D | PolicyWarningUIController.java | 218 private int mCurrentUserId; field in PolicyWarningUIController.NotificationController 265 mCurrentUserId = userId; in onSwitchUser() 277 if (userId != mCurrentUserId) { in trySendNotification() 310 if (userId != mCurrentUserId) { in tryLaunchSettings() 325 if (userId != mCurrentUserId) { in onNotificationCanceled()
|
H A D | AccessibilitySecurityPolicy.java | 115 private int mCurrentUserId = UserHandle.USER_NULL; field in AccessibilitySecurityPolicy 148 mPolicyWarningUIController.onNonA11yCategoryServiceBound(mCurrentUserId, service); in setSendingNonA11yToolNotificationLocked() 761 if (mCurrentUserId == userId) { in onSwitchUserLocked() 768 mPolicyWarningUIController.onNonA11yCategoryServiceUnbound(mCurrentUserId, in onSwitchUserLocked() 772 mCurrentUserId = userId; in onSwitchUserLocked()
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/ |
H A 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wallpaper/ |
H A D | WallpaperManagerService.java | 844 private int mCurrentUserId = UserHandle.USER_NULL; field in WallpaperManagerService 1426 if (mCurrentUserId != getChangingUserId()) { in onPackageUpdateFinished() 1453 if (mCurrentUserId != getChangingUserId()) { in onPackageModified() 1468 if (mCurrentUserId != getChangingUserId()) { in onPackageUpdateStarted() 1492 if (mCurrentUserId != getChangingUserId()) { in onHandleForceStop() 1506 if (mCurrentUserId != getChangingUserId()) { in onSomePackagesChanged() 1790 if (mCurrentUserId == userId) { in onUnlockUser() 1857 if (mCurrentUserId == userId) { in switchUser() 1860 mCurrentUserId = userId; in switchUser() 2121 if (userId != mCurrentUserId) return; in clearWallpaperLocked() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputManagerService.java | 157 private int mCurrentUserId = UserHandle.USER_SYSTEM; field in TvInputManagerService 187 getOrCreateUserStateLocked(mCurrentUserId); in TvInputManagerService() 202 buildTvInputListLocked(mCurrentUserId, null); in onBootPhase() 216 buildTvInputListLocked(mCurrentUserId, null); in onUserUnlocking() 475 && parentInfo.id == mCurrentUserId) { in startUser() 484 if (userId == mCurrentUserId) { in stopUser() 503 if (mCurrentUserId == userId) { in switchUser() 517 releaseSessionOfUserLocked(mCurrentUserId); in switchUser() 518 unbindServiceOfUserLocked(mCurrentUserId); in switchUser() 520 mCurrentUserId = userId; in switchUser() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/statusbar/ |
H A D | StatusBarManagerService.java | 181 private int mCurrentUserId; field in StatusBarManagerService 460 mCurrentUserId = newUserId; 1125 disableForUser(what, token, pkg, mCurrentUserId); in disable() 1147 disable2ForUser(what, token, pkg, mCurrentUserId); in disable2() 1175 final int net1 = gatherDisableActionsLocked(mCurrentUserId, 1); in disableLocked() 1176 final int net2 = gatherDisableActionsLocked(mCurrentUserId, 2); in disableLocked() 1330 disableLocked(displayId, mCurrentUserId, flags, mSysUiVisToken, cause, 1); in setDisableFlags() 1505 gatherDisableActionsLocked(mCurrentUserId, 2), state.mImeToken, in registerStatusBar() 2182 final int userId = mCurrentUserId; in setNavBarMode() 2216 final int userId = mCurrentUserId; in getNavBarMode() [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
H A D | BubbleController.java | 205 private int mCurrentUserId; field in BubbleController 308 mCurrentUserId = ActivityManager.getCurrentUser(); in BubbleController() 372 mBubbleData.setCurrentUserId(mCurrentUserId); in onInit() 473 for (UserInfo user : mUserManager.getProfiles(mCurrentUserId)) { in onInit() 622 saveBubbles(mCurrentUserId); in onUserChanged() 623 mCurrentUserId = newUserId; in onUserChanged() 1191 + " current userId=" + mCurrentUserId); in updateBubble() 1305 mDataRepository.loadBubbles(mCurrentUserId, userIds, (bubbles) -> { in loadOverflowBubblesFromDisk() 1788 mDataRepository.removeBubbles(mCurrentUserId, bubblesToBeRemovedFromRepository); 1791 mDataRepository.addBubble(mCurrentUserId, update.addedBubble); [all …]
|