Home
last modified time | relevance | path

Searched refs:currentUser (Results 1 – 25 of 77) sorted by relevance

1234

/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DActiveUnlockConfigTest.kt71 private var currentUser: Int = 0 variable in com.android.keyguard.ActiveUnlockConfigTest
77 whenever(selectedUserInteractor.getSelectedUserId()).thenReturn(currentUser) in setUp()
106 secureSettings.putIntForUser(ACTIVE_UNLOCK_ON_WAKE, 1, currentUser) in onWakeupSettingChanged()
142 secureSettings.putIntForUser(ACTIVE_UNLOCK_ON_UNLOCK_INTENT_LEGACY, 1, currentUser) in onUnlockIntentLegacySettingChanged()
179 secureSettings.putIntForUser(ACTIVE_UNLOCK_ON_UNLOCK_INTENT, 1, currentUser) in onUnlockIntentSettingChanged()
212 currentUser in onBioFailSettingChanged()
224 secureSettings.putIntForUser(ACTIVE_UNLOCK_ON_BIOMETRIC_FAIL, 1, currentUser) in onBioFailSettingChanged()
253 secureSettings.putIntForUser(ACTIVE_UNLOCK_ON_BIOMETRIC_FAIL, 1, currentUser) in faceErrorSettingsChanged()
257 secureSettings.putStringForUser(ACTIVE_UNLOCK_ON_FACE_ERRORS, "3", currentUser) in faceErrorSettingsChanged()
277 secureSettings.putStringForUser(ACTIVE_UNLOCK_ON_BIOMETRIC_FAIL, "1", currentUser) in faceAcquiredSettingsChanged()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/
DFakeDeviceProvisionedController.kt5 @JvmField var currentUser = 0 variable in com.android.systemui.statusbar.policy.FakeDeviceProvisionedController
22 return currentUser in isDeviceProvisioned()
30 return currentUser in usersSetup in isCurrentUserSetup()
34 currentUser = userId in setCurrentUser()
48 setUserSetup(currentUser, isSetup) in setCurrentUserSetup()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/
DWorkProfileAutoAddedAfterRestoreTest.kt62 private val currentUser: Int constant in com.android.systemui.qs.pipeline.domain.interactor.WorkProfileAutoAddedAfterRestoreTest
84 kosmos.fakeTileSpecRepository.setTiles(currentUser, currentTiles) in workTileRestoredAndPreviouslyAutoAdded_notAvailable_willBeAutoaddedInCorrectPosition()
90 val restoreData = RestoreData(restoredTiles, restoredAutoAdded, currentUser) in workTileRestoredAndPreviouslyAutoAdded_notAvailable_willBeAutoaddedInCorrectPosition()
114 kosmos.fakeTileSpecRepository.setTiles(currentUser, currentTiles) in workTileNotRestoredAndPreviouslyAutoAdded_wontBeAutoAddedWhenWorkProfileIsAdded()
120 val restoreData = RestoreData(restoredTiles, restoredAutoAdded, currentUser) in workTileNotRestoredAndPreviouslyAutoAdded_wontBeAutoAddedWhenWorkProfileIsAdded()
139 FakeQSTile(currentUser, workTileAvailable) in tileCreator()
141 FakeQSTile(currentUser) in tileCreator()
DNoLowNumberOfTilesTest.kt83 private val currentUser: Int constant in com.android.systemui.qs.pipeline.domain.interactor.NoLowNumberOfTilesTest
118 val restoreData = RestoreData(restoredTiles, emptySet(), currentUser) in noLessThanTwoTilesAfterOEMRestore_prependedDefault()
160 FakeQSTile(currentUser) in tileCreator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DUserActionsUtil.kt117 val currentUser = repository.getSelectedUserInfo() in currentUserCanCreateUsers() constant
118 if (!currentUser.isAdmin && currentUser.id != UserHandle.USER_SYSTEM) { in currentUserCanCreateUsers()
123 UserHandle.of(currentUser.id) in currentUserCanCreateUsers()
DGuestUserInteractor.kt194 val currentUser: UserInfo = repository.getSelectedUserInfo() in <lambda>() constant
195 if (currentUser.id != guestUserId) { in <lambda>()
199 " ($currentUser.id)" in <lambda>()
204 if (!currentUser.isGuest) { in <lambda>()
210 withContext(backgroundDispatcher) { manager.markGuestForDeletion(currentUser.id) } in <lambda>()
227 UserHandle.of(currentUser.id), in <lambda>()
247 UserHandle.of(currentUser.id), in <lambda>()
257 UserHandle.of(currentUser.id), in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DMultiUserSwitch.java38 void refreshContentDescription(String currentUser) { in refreshContentDescription() argument
41 if (!TextUtils.isEmpty(currentUser)) { in refreshContentDescription()
44 currentUser); in refreshContentDescription()
DNotificationListenerWithPlugins.java54 int currentUser) throws RemoteException { in registerAsSystemService() argument
55 super.registerAsSystemService(context, componentName, currentUser); in registerAsSystemService()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayApplier.java202 int currentUser, in applyCurrentUserOverlays() argument
239 setEnabled(transaction, overlayInfo, packageToDisable.first, currentUser, in applyCurrentUserOverlays()
246 setEnabled(transaction, overlayInfo, category, currentUser, managedProfiles, in applyCurrentUserOverlays()
270 OverlayIdentifier identifier, String category, int currentUser, in setEnabled() argument
278 UserHandle.of(currentUser)); in setEnabled()
281 + currentUser); in setEnabled()
285 transaction.setEnabled(identifier, enabled, currentUser); in setEnabled()
286 if (currentUser != UserHandle.SYSTEM.getIdentifier() in setEnabled()
DThemeOverlayController.java203 boolean currentUser = userId == mUserTracker.getUserId();
209 if (currentUser && !mAcceptColorEvents && isAsleep) {
217 if (currentUser && wallpaperColors != null) {
277 final int currentUser = mUserTracker.getUserId(); in handleWallpaperColors() local
286 if (userId != currentUser) { in handleWallpaperColors()
288 + "Not for current user: " + currentUser); in handleWallpaperColors()
314 currentUser); in handleWallpaperColors()
710 final int currentUser = mUserTracker.getUserId(); in updateThemeOverlays() local
713 currentUser); in updateThemeOverlays()
778 for (UserInfo userInfo : mUserManager.getEnabledProfiles(currentUser)) { in updateThemeOverlays()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsBindingControllerImpl.kt61 private var currentUser = userTracker.userHandle variable
64 get() = currentUser.identifier
96 currentUser, in createProviderManager()
180 if (newUser == currentUser) return in changeUser()
183 currentUser = newUser in changeUser()
208 append(" currentUser=$currentUser\n") in toString()
222 if (provider.user != currentUser) { in run()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/
DCustomTileServiceInteractor.kt72 private var currentUser: UserHandle = userRepository.getSelectedUserInfo().userHandle variable
133 if (user == currentUser) { in hasPendingBind()
136 currentUser = user in hasPendingBind()
177 get() = currentUser.identifier
179 get() = customTileInteractor.getTile(currentUser)
DCustomTileInteractor.kt57 private var currentUser: UserHandle? = null variable in com.android.systemui.qs.tiles.impl.custom.domain.interactor.CustomTileInteractor
95 if (currentUser == user) { in getTiles()
109 currentUser = user in getTiles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractor.kt163 private val currentUser = MutableStateFlow(userTracker.userId) constant
164 override val userId = currentUser.asStateFlow()
170 currentUser
179 currentUser.flatMapLatest { in <lambda>()
202 currentUser.value = user.id in startTileCollection()
289 launch { tileSpecRepository.prependDefault(currentUser.value) } in startTileCollection()
294 launch { tileSpecRepository.setTiles(currentUser.value, resolvedSpecs) } in startTileCollection()
311 val user = currentUser.value in removeTiles()
324 val user = currentUser.value in setTiles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeAuthRemover.java44 int currentUser = mSelectedUserInteractor.getSelectedUserId(); in transitionTo() local
45 if (mKeyguardUpdateMonitor.getUserUnlockedWithBiometric(currentUser)) { in transitionTo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DRecordingService.java150 UserHandle currentUser = new UserHandle(currentUserId); in onStartCommand() local
219 mNotificationManager.cancelAsUser(null, mNotificationId, currentUser); in onStartCommand()
395 private void postGroupNotification(UserHandle currentUser) { in postGroupNotification() argument
406 mNotificationManager.notifyAsUser(getTag(), NOTIF_BASE_ID, groupNotif, currentUser); in postGroupNotification() local
449 UserHandle currentUser = new UserHandle(userId); in saveRecording() local
451 createProcessingNotification(), currentUser); in saveRecording()
458 postGroupNotification(currentUser); in saveRecording()
460 currentUser); in saveRecording()
465 mNotificationManager.cancelAsUser(null, mNotificationId, currentUser); in saveRecording()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/
DFakeQSTile.kt65 override fun userSwitch(currentUser: Int) { in userSwitch()
66 user = currentUser in userSwitch()
/frameworks/base/services/core/java/com/android/server/incident/
DIncidentCompanionService.java421 UserInfo currentUser; in getCurrentUserIfAdmin() local
423 currentUser = ActivityManager.getService().getCurrentUser(); in getCurrentUserIfAdmin()
430 if (currentUser == null) { in getCurrentUserIfAdmin()
436 if (!currentUser.isAdmin()) { in getCurrentUserIfAdmin()
443 return currentUser.id; in getCurrentUserIfAdmin()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DGuestResetOrExitSessionReceiver.java107 UserInfo currentUser = mUserTracker.getUserInfo(); in onReceive() local
108 if (!currentUser.isGuest()) { in onReceive()
113 mResetSessionDialog = mResetSessionDialogFactory.create(currentUser.id); in onReceive()
117 currentUser.isEphemeral(), currentUser.id); in onReceive()
DGuestResumeSessionReceiver.java72 UserInfo currentUser = mUserTracker.getUserInfo();
73 if (!currentUser.isGuest()) {
92 mGuestSessionNotification.createPersistentNotification(currentUser,
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileHost.java283 int currentUser = mUserTracker.getUserId(); in onTuningChanged() local
284 if (currentUser != mCurrentUser) { in onTuningChanged()
287 mAutoTiles.changeUser(UserHandle.of(currentUser)); in onTuningChanged()
299 if (tileSpecs.equals(mTileSpecs) && currentUser == mCurrentUser) return; in onTuningChanged()
311 || ((CustomTile) tile).getUser() == currentUser)) { in onTuningChanged()
315 if (!(tile instanceof CustomTile) && mCurrentUser != currentUser) { in onTuningChanged()
316 tile.userSwitch(currentUser); in onTuningChanged()
353 mCurrentUser = currentUser; in onTuningChanged()
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
DKeyguardServiceDelegate.java91 public int currentUser; field in KeyguardServiceDelegate.KeyguardState
105 currentUser = UserHandle.USER_NULL; in reset()
192 if (mKeyguardState.currentUser != UserHandle.USER_NULL) {
194 mKeyguardService.setCurrentUser(mKeyguardState.currentUser);
426 mKeyguardState.currentUser = newUserId; in setCurrentUser()
488 pw.println(prefix + "currentUser=" + mKeyguardState.currentUser); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsRequestDialog.kt82 val currentUser = controller.currentUserId in onCreate() constant
84 if (requestUser != currentUser) { in onCreate()
85 Log.w(TAG, "Current user ($currentUser) different from request user ($requestUser)") in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java755 final int currentUser = mSelectedUserInteractor.getSelectedUserId();
756 if (mLockPatternUtils.isSecure(currentUser)) {
758 currentUser);
901 int currentUser = mSelectedUserInteractor.getSelectedUserId();
902 boolean trustAgentsEnabled = mUpdateMonitor.isTrustUsuallyManaged(currentUser);
904 mUpdateMonitor.isUnlockingWithBiometricsPossible(currentUser);
908 int strongAuth = strongAuthTracker.getStrongAuthForUser(currentUser);
910 strongAuthTracker.isNonStrongBiometricAllowedAfterIdleTimeout(currentUser);
1704 int currentUser = mSelectedUserInteractor.getSelectedUserId();
1706 mLockPatternUtils.getPowerButtonInstantlyLocks(currentUser)
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DKeyguardNotificationVisibilityProvider.kt228 val currentUser = lockscreenUserManager.currentUserId in userSettingsDisallowNotification() constant
231 disallowForUser(currentUser) -> true in userSettingsDisallowNotification()
233 notifUser == currentUser -> false in userSettingsDisallowNotification()

1234