/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | UserVisibilityMediatorMUPANDTest.java | 51 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 …]
|
D | UserVisibilityMediatorSUSDTest.java | 81 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 …]
|
D | UserVisibilityMediatorVisibleBackgroundUserTestCase.java | 79 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/ |
D | ActivityIntentHelper.java | 54 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/ |
D | TimeZoneDetectorInternalImpl.java | 52 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/ |
D | MultiUserSettingsTests.java | 133 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/ |
D | MediaResumeListener.kt | 83 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/ |
D | CanUseIconPredicate.kt | 22 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()
|
D | ThumbnailBehavior.kt | 37 class ThumbnailBehavior(currentUserId: Int) : Behavior { 46 private val canUseIconPredicate = CanUseIconPredicate(currentUserId)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | StructureAdapter.kt | 28 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/ |
D | SensitiveContentCoordinatorTest.kt | 176 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/ |
D | TimeDetectorInternalImpl.java | 58 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/ |
D | TargetInfo.java | 139 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/ |
D | AccessibilitySecurityPolicyTest.java | 452 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/ |
D | SensitiveContentCoordinator.kt | 114 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/ |
D | TrustRepositoryTest.kt | 87 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/ |
D | BiometricSettingsRepository.kt | 191 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/ |
D | AidlResponseHandler.java | 155 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/ |
D | UserAwareController.kt | 28 val currentUserId: Int constant
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BubbleLogger.java | 139 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/ |
D | FingerprintUpdateActiveUserClient.java | 58 @NonNull Supplier<Integer> currentUserId, in FingerprintUpdateActiveUserClient() argument 64 mCurrentUserId = currentUserId; in FingerprintUpdateActiveUserClient()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | CastController.java | 26 void setCurrentUserId(int currentUserId); in setCurrentUserId() argument
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/ |
D | FakeCastController.java | 36 public void setCurrentUserId(int currentUserId) { in setCurrentUserId() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/devicepolicy/ |
D | MediaProjectionDevicePolicyModule.kt | 36 return UserHandle.of(activityManagerWrapper.currentUserId) in personalUserHandle()
|
/frameworks/opt/car/services/builtInServices/tests/src/com/android/internal/car/ |
D | CarServiceHelperServiceTest.java | 151 int currentUserId = 10; in testOnUserSwitching_notifiesICar() local 154 mHelper.onUserSwitching(newTargetUser(currentUserId), in testOnUserSwitching_notifiesICar() 158 currentUserId, targetUserId); in testOnUserSwitching_notifiesICar()
|