Home
last modified time | relevance | path

Searched refs:currentUserId (Results 1 – 25 of 94) sorted by relevance

1234

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserVisibilityMediatorMUPANDTest.java51 int currentUserId = INITIAL_CURRENT_USER_ID; in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId() local
60 expectVisibleUsers(currentUserId, visibleBgUserId); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
70 expectUserIsVisible(currentUserId); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
71 expectUserIsVisibleOnDisplay(currentUserId, DEFAULT_DISPLAY); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
72 expectUserIsNotVisibleOnDisplay(currentUserId, INVALID_DISPLAY); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
73 expectDisplayAssignedToUser(currentUserId, INVALID_DISPLAY); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
83 expectVisibleUsers(currentUserId, visibleBgUserId); in testStartVisibleBgUser_onDefaultDisplay_initialCurrentUserId()
91 int currentUserId = OTHER_USER_ID; in testStartVisibleBgUser_onDefaultDisplay_nonInitialCurrentUserId() local
97 onVisible(currentUserId), in testStartVisibleBgUser_onDefaultDisplay_nonInitialCurrentUserId()
99 startForegroundUser(currentUserId); in testStartVisibleBgUser_onDefaultDisplay_nonInitialCurrentUserId()
[all …]
DUserVisibilityMediatorSUSDTest.java81 int currentUserId = USER_ID; in testSwitchFgUser_onDefaultDisplay() local
86 onVisible(currentUserId)); in testSwitchFgUser_onDefaultDisplay()
89 int result = mMediator.assignUserToDisplayOnStart(currentUserId, currentUserId, FG, in testSwitchFgUser_onDefaultDisplay()
92 expectUserCannotBeUnassignedFromDisplay(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
94 expectUserIsVisible(currentUserId); in testSwitchFgUser_onDefaultDisplay()
95 expectUserIsNotVisibleOnDisplay(currentUserId, INVALID_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
96 expectUserIsVisibleOnDisplay(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
97 expectUserIsVisibleOnDisplay(currentUserId, SECONDARY_DISPLAY_ID); in testSwitchFgUser_onDefaultDisplay()
98 expectVisibleUsers(currentUserId); in testSwitchFgUser_onDefaultDisplay()
100 expectDisplayAssignedToUser(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
[all …]
DUserVisibilityMediatorVisibleBackgroundUserTestCase.java79 int currentUserId = USER_ID; in testSwitchFgUser_onDefaultDisplay() local
84 onVisible(currentUserId)); in testSwitchFgUser_onDefaultDisplay()
87 int result = mMediator.assignUserToDisplayOnStart(currentUserId, currentUserId, FG, in testSwitchFgUser_onDefaultDisplay()
90 expectUserCannotBeUnassignedFromDisplay(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
92 expectUserIsVisible(currentUserId); in testSwitchFgUser_onDefaultDisplay()
93 expectUserIsVisibleOnDisplay(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
94 expectUserIsNotVisibleOnDisplay(currentUserId, INVALID_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
95 expectUserIsNotVisibleOnDisplay(currentUserId, SECONDARY_DISPLAY_ID); in testSwitchFgUser_onDefaultDisplay()
96 expectVisibleUsers(currentUserId); in testSwitchFgUser_onDefaultDisplay()
98 expectDisplayAssignedToUser(currentUserId, DEFAULT_DISPLAY); in testSwitchFgUser_onDefaultDisplay()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DActivityIntentHelper.java54 public boolean wouldLaunchResolverActivity(Intent intent, int currentUserId) { in wouldLaunchResolverActivity() argument
55 ActivityInfo targetActivityInfo = getTargetActivityInfo(intent, currentUserId, in wouldLaunchResolverActivity()
63 public boolean wouldPendingLaunchResolverActivity(PendingIntent intent, int currentUserId) { in wouldPendingLaunchResolverActivity() argument
64 ActivityInfo targetActivityInfo = getPendingTargetActivityInfo(intent, currentUserId, in wouldPendingLaunchResolverActivity()
79 public ActivityInfo getTargetActivityInfo(Intent intent, int currentUserId, in getTargetActivityInfo() argument
87 intent, flags, currentUserId); in getTargetActivityInfo()
94 ResolveInfo resolved = mPm.resolveActivityAsUser(intent, flags, currentUserId); in getTargetActivityInfo()
105 public ActivityInfo getPendingTargetActivityInfo(PendingIntent intent, int currentUserId, in getPendingTargetActivityInfo() argument
119 ResolveInfo resolved = mPm.resolveActivityAsUser(intent.getIntent(), flags, currentUserId); in getPendingTargetActivityInfo()
134 public boolean wouldShowOverLockscreen(Intent intent, int currentUserId) { in wouldShowOverLockscreen() argument
[all …]
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DTimeZoneDetectorInternalImpl.java52 int currentUserId = mCurrentUserIdentityInjector.getCurrentUserId(); in getCapabilitiesAndConfigForDpm() local
55 currentUserId, bypassUserPolicyChecks); in getCapabilitiesAndConfigForDpm()
62 int currentUserId = mCurrentUserIdentityInjector.getCurrentUserId(); in updateConfigurationForDpm() local
65 currentUserId, configuration, bypassUserPolicyChecks); in updateConfigurationForDpm()
72 int currentUserId = mCurrentUserIdentityInjector.getCurrentUserId(); in setManualTimeZoneForDpm() local
75 currentUserId, suggestion, bypassUserPolicyChecks); in setManualTimeZoneForDpm()
/frameworks/base/tests/MultiUser/src/com/android/test/multiuser/
DMultiUserSettingsTests.java133 final int currentUserId = mContext.getUserId(); in testChangingFontScaleOfTheForegroundUser_shouldAffectUI() local
134 final float oldFontScale = getFontScaleOfUser(currentUserId); in testChangingFontScaleOfTheForegroundUser_shouldAffectUI()
138 setFontScaleOfUser(newFontScale, currentUserId); in testChangingFontScaleOfTheForegroundUser_shouldAffectUI()
142 setFontScaleOfUser(oldFontScale, currentUserId); in testChangingFontScaleOfTheForegroundUser_shouldAffectUI()
152 final int currentUserId = mContext.getUserId(); in testChangingFontWeightOfTheForegroundUser_shouldAffectUI() local
153 final int oldFontWeight = getFontWeightOfUser(currentUserId); in testChangingFontWeightOfTheForegroundUser_shouldAffectUI()
157 setFontWeightOfUser(newFontWeight, currentUserId); in testChangingFontWeightOfTheForegroundUser_shouldAffectUI()
161 setFontWeightOfUser(oldFontWeight, currentUserId); in testChangingFontWeightOfTheForegroundUser_shouldAffectUI()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/resume/
DMediaResumeListener.kt83 private var currentUserId: Int = context.userId variable
91 if (userId == currentUserId) { in onReceive()
101 currentUserId = newUser in onUserChanged()
173 val listString = prefs.getString(MEDIA_PREFERENCE_KEY + currentUserId, null) in loadSavedComponents()
201 "loaded resume components for $currentUserId: " + in loadSavedComponents()
224 val inf = pm.resolveServiceAsUser(intent, 0, currentUserId) in loadMediaResumptionControls()
227 mediaBrowserFactory.create(mediaBrowserCallback, it.first, currentUserId) in loadMediaResumptionControls()
230 Log.d(TAG, "User $currentUserId does not have component ${it.first}") in loadMediaResumptionControls()
261 val resumeInfo = pm.queryIntentServicesAsUser(serviceIntent, 0, currentUserId) in onMediaDataLoaded()
307 currentUserId in tryUpdateResumptionList()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DCanUseIconPredicate.kt22 class CanUseIconPredicate(private val currentUserId: Int) : (Icon) -> Boolean { constant in com.android.systemui.controls.ui.CanUseIconPredicate
26 ContentProvider.getUserIdFromUri(icon.uri, currentUserId) == currentUserId in invoke()
DThumbnailBehavior.kt37 class ThumbnailBehavior(currentUserId: Int) : Behavior {
46 private val canUseIconPredicate = CanUseIconPredicate(currentUserId)
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DStructureAdapter.kt28 private val currentUserId: Int, constant in com.android.systemui.controls.management.StructureAdapter
35 currentUserId, in onCreateViewHolder()
45 class StructureHolder(view: View, currentUserId: Int) :
54 controlAdapter = ControlAdapter(elevation, currentUserId) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DSensitiveContentCoordinatorTest.kt176 whenever(lockscreenUserManager.currentUserId).thenReturn(1) in onBeforeRenderList_deviceUnlocked_notifDoesNotNeedRedaction()
196 whenever(lockscreenUserManager.currentUserId).thenReturn(1) in onBeforeRenderList_deviceUnlocked_notifDoesNotNeedRedaction_sensitiveActive()
218 whenever(lockscreenUserManager.currentUserId).thenReturn(1) in onBeforeRenderList_deviceUnlocked_notifDoesNotNeedRedaction_shouldProtectNotification()
244 whenever(lockscreenUserManager.currentUserId).thenReturn(1) in onBeforeRenderList_deviceUnlocked_notifWouldNeedRedaction()
264 whenever(lockscreenUserManager.currentUserId).thenReturn(1) in onBeforeRenderList_deviceUnlocked_notifWouldNeedRedaction_sensitiveActive()
286 whenever(lockscreenUserManager.currentUserId).thenReturn(1) in onBeforeRenderList_deviceUnlocked_notifWouldNeedRedaction_shouldProtectNotification()
312 whenever(lockscreenUserManager.currentUserId).thenReturn(1) in onBeforeRenderList_deviceLocked_userAllowsPublicNotifs()
332 whenever(lockscreenUserManager.currentUserId).thenReturn(1) in onBeforeRenderList_deviceLocked_userAllowsPublicNotifs_sensitiveActive()
354 whenever(lockscreenUserManager.currentUserId).thenReturn(1) in onBeforeRenderList_deviceLocked_userAllowsPublicNotifs_shouldProtectNotification()
380 whenever(lockscreenUserManager.currentUserId).thenReturn(1) in onBeforeRenderList_deviceLocked_userDisallowsPublicNotifs_notifDoesNotNeedRedaction()
[all …]
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorInternalImpl.java58 int currentUserId = mCurrentUserIdentityInjector.getCurrentUserId(); in getCapabilitiesAndConfigForDpm() local
61 mServiceConfigAccessor.getConfigurationInternal(currentUserId); in getCapabilitiesAndConfigForDpm()
69 int currentUserId = mCurrentUserIdentityInjector.getCurrentUserId(); in updateConfigurationForDpm() local
72 currentUserId, configuration, bypassUserPolicyCheck); in updateConfigurationForDpm()
/frameworks/base/core/java/com/android/internal/app/chooser/
DTargetInfo.java139 final int currentUserId = UserHandle.myUserId(); in prepareIntentForCrossProfileLaunch() local
140 if (targetUserId != currentUserId) { in prepareIntentForCrossProfileLaunch()
141 intent.fixUris(currentUserId); in prepareIntentForCrossProfileLaunch()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilitySecurityPolicyTest.java452 final int currentUserId = 10; in resolveProfileParent_userIdIsCurrentUser_returnCurrentUser() local
453 final int userId = currentUserId; in resolveProfileParent_userIdIsCurrentUser_returnCurrentUser()
455 .thenReturn(currentUserId); in resolveProfileParent_userIdIsCurrentUser_returnCurrentUser()
458 currentUserId); in resolveProfileParent_userIdIsCurrentUser_returnCurrentUser() local
464 final int currentUserId = 20; in resolveProfileParent_userIdNotCurrentUser_shouldGetProfileParent() local
465 when(mMockA11yUserManager.getCurrentUserIdLocked()).thenReturn(currentUserId); in resolveProfileParent_userIdNotCurrentUser_shouldGetProfileParent()
486 final int currentUserId = callingParentId; in resolveCallingUserId_callingParentIsCurrentUser_returnCurrentUser() local
488 .thenReturn(currentUserId); in resolveCallingUserId_callingParentIsCurrentUser_returnCurrentUser()
493 UserHandle.USER_CURRENT_OR_SELF), currentUserId); in resolveCallingUserId_callingParentIsCurrentUser_returnCurrentUser() local
502 final int currentUserId = 30; in resolveCallingUserId_callingParentNotCurrentUserAndNoPerm_shouldException() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DSensitiveContentCoordinator.kt114 val currentUserId = lockscreenUserManager.currentUserId in bindCoordinator() constant
115 val devicePublic = lockscreenUserManager.isLockscreenPublicMode(currentUserId) in bindCoordinator()
117 !lockscreenUserManager.userAllowsPrivateNotificationsInPublic(currentUserId)) || in bindCoordinator()
133 currentUserId -> false in bindCoordinator()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/
DTrustRepositoryTest.kt87 val currentUserId = users[0].id in isCurrentUserTrustManaged_whenItChanges_emitsLatestValue() constant
90 listener.value.onTrustManagedChanged(true, currentUserId) in isCurrentUserTrustManaged_whenItChanges_emitsLatestValue()
93 listener.value.onTrustManagedChanged(false, currentUserId) in isCurrentUserTrustManaged_whenItChanges_emitsLatestValue()
152 val currentUserId = users[0].id in isCurrentUserTrusted_whenTrustChanges_emitsLatestValue() constant
155 listener.value.onTrustChanged(true, false, currentUserId, 0, emptyList()) in isCurrentUserTrusted_whenTrustChanges_emitsLatestValue()
158 listener.value.onTrustChanged(false, false, currentUserId, 0, emptyList()) in isCurrentUserTrusted_whenTrustChanges_emitsLatestValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DBiometricSettingsRepository.kt191 selectedUserId.flatMapLatest { currentUserId -> in currentUserId() method
200 if (sensorBiometricType.isFingerprint && userId == currentUserId) { in currentUserId()
211 authController.isFingerprintEnrolled(currentUserId), in currentUserId()
365 MutableStateFlow(AuthenticationFlags(currentUserId, getStrongAuthForUser(currentUserId)))
370 Pair(currentUserId, isNonStrongBiometricAllowedAfterIdleTimeout(currentUserId))
399 private val currentUserId constant
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
DAidlResponseHandler.java155 final int currentUserId; in onEnrollmentProgress() local
159 currentUserId = client.getTargetUserId(); in onEnrollmentProgress()
162 .getUniqueName(mContext, currentUserId); in onEnrollmentProgress()
163 final Fingerprint fingerprint = new Fingerprint(name, currentUserId, in onEnrollmentProgress()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DUserAwareController.kt28 val currentUserId: Int constant
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleLogger.java139 void logShowOverflow(String packageName, int currentUserId) { in logShowOverflow() argument
140 mUiEventLogger.log(BubbleLogger.Event.BUBBLE_OVERFLOW_SELECTED, currentUserId, in logShowOverflow()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
DFingerprintUpdateActiveUserClient.java58 @NonNull Supplier<Integer> currentUserId, in FingerprintUpdateActiveUserClient() argument
64 mCurrentUserId = currentUserId; in FingerprintUpdateActiveUserClient()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DCastController.java26 void setCurrentUserId(int currentUserId); in setCurrentUserId() argument
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeCastController.java36 public void setCurrentUserId(int currentUserId) { in setCurrentUserId() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/devicepolicy/
DMediaProjectionDevicePolicyModule.kt36 return UserHandle.of(activityManagerWrapper.currentUserId) in personalUserHandle()
/frameworks/opt/car/services/builtInServices/tests/src/com/android/internal/car/
DCarServiceHelperServiceTest.java151 int currentUserId = 10; in testOnUserSwitching_notifiesICar() local
154 mHelper.onUserSwitching(newTargetUser(currentUserId), in testOnUserSwitching_notifiesICar()
158 currentUserId, targetUserId); in testOnUserSwitching_notifiesICar()

1234