Home
last modified time | relevance | path

Searched refs:userProfiles (Results 1 – 25 of 28) sorted by relevance

12

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
H A DUserTrackerImpl.kt91 return userProfiles.first { it.id == user }
100 override var userProfiles: List<UserInfo> by SynchronizedDelegate(emptyList())
157 userProfiles = profiles.map { UserInfo(it) }
214 onProfilesChanged(userProfiles)
224 userProfiles = profiles.map { UserInfo(it) } // save a "deep" copy
261 val ids = userProfiles.map { it.toFullString() }
H A DUserTracker.kt53 val userProfiles: List<UserInfo>
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
H A DUserTrackerImplTest.kt117 tracker.userProfiles
157 assertThat(tracker.userProfiles).hasSize(1)
159 val info = tracker.userProfiles[0]
180 assertThat(tracker.userProfiles).hasSize(1)
182 val info = tracker.userProfiles[0]
209 assertThat(tracker.userProfiles.map { it.id }).containsExactly(tracker.userId, profileID)
234 assertThat(tracker.userProfiles.map { it.id }).containsExactly(tracker.userId, profileID)
260 assertThat(tracker.userProfiles.map { it.id }).containsExactly(tracker.userId, profileID)
270 assertThat(tracker.userProfiles.map { it.id }).containsExactly(tracker.userId)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/
H A DKeyguardQuickAffordanceRemoteUserSelectionManagerTest.kt135 userInfos = userTracker.userProfiles,
150 userInfos = userTracker.userProfiles,
182 userInfos = userTracker.userProfiles,
195 userInfos = userTracker.userProfiles,
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/
H A DAppOpsPrivacyItemMonitorTest.kt111 `when`(userTracker.userProfiles).thenReturn(
168 verify(userTracker).userProfiles
175 verify(userTracker).userProfiles
279 `when`(userTracker.userProfiles)
303 `when`(userTracker.userProfiles)
327 `when`(userTracker.userProfiles)
H A DPrivacyDialogControllerTest.kt580 `when`(userTracker.userProfiles).thenReturn(listOf(
739 `when`(userTracker.userProfiles).thenReturn(listOf(
H A DPrivacyDialogControllerV2Test.kt562 `when`(userTracker.userProfiles).thenReturn(listOf(
766 `when`(userTracker.userProfiles).thenReturn(listOf(
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
H A DAppOpsPrivacyItemMonitor.kt95 if (userTracker.userProfiles.any { it.id == UserHandle.getUserId(uid) } ||
181 val currentUserProfiles = userTracker.userProfiles
223 val currentUserIds = userTracker.userProfiles.map { it.id }
H A DPrivacyDialogController.kt204 val userInfos = userTracker.userProfiles
H A DPrivacyDialogControllerV2.kt221 val userInfos = userTracker.userProfiles
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DRestrictedLockUtilsInternal.java118 final List<UserInfo> userProfiles = um.getProfiles(userId); in getManagedProfileId() local
119 for (UserInfo uInfo : userProfiles) { in getManagedProfileId()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/devicepolicy/
H A DMediaProjectionDevicePolicyModule.kt42 userTracker.userProfiles.find { it.isManagedProfile }?.userHandle
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/autoaddable/
H A DWorkTileAutoAddable.kt64 maybeSend(userTracker.userProfiles)
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/settings/
H A DFakeUserTracker.kt46 override val userProfiles: List<UserInfo>
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/
H A DNoteTaskController.kt140 userTracker.userProfiles
297 for (profile in userTracker.userProfiles) {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/smartspace/filters/
H A DLockscreenAndDreamTargetFilter.kt129 for (userInfo in userTracker.userProfiles) {
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DConditionProviders.java61 public ConditionProviders(Context context, UserProfiles userProfiles, IPackageManager pm) { in ConditionProviders() argument
62 super(context, new Object(), userProfiles, pm); in ConditionProviders()
H A DSnoozeHelper.java108 ManagedServices.UserProfiles userProfiles) { in SnoozeHelper() argument
116 mUserProfiles = userProfiles; in SnoozeHelper()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DRestrictedLockUtilsInternal.java357 List<UserInfo> userProfiles = um.getProfiles(userId); in getManagedProfileId() local
358 for (UserInfo uInfo : userProfiles) { in getManagedProfileId()
/aosp14/frameworks/base/services/core/java/com/android/server/camera/
H A DCameraServiceProxy.java1011 int[] userProfiles = mUserManager.getEnabledProfileIds(currentUserHandle); in getEnabledUserHandles() local
1012 Set<Integer> handles = new ArraySet<>(userProfiles.length); in getEnabledUserHandles()
1014 for (int id : userProfiles) { in getEnabledUserHandles()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DManagedServicesTest.java2263 public TestManagedServices(Context context, Object mutex, UserProfiles userProfiles, in TestManagedServices() argument
2265 super(context, mutex, userProfiles, pm); in TestManagedServices()
2318 public TestManagedServicesSettings(Context context, Object mutex, UserProfiles userProfiles, in TestManagedServicesSettings() argument
2320 super(context, mutex, userProfiles, pm, approvedServiceType); in TestManagedServicesSettings()
2331 … public TestManagedServicesNoSettings(Context context, Object mutex, UserProfiles userProfiles, in TestManagedServicesNoSettings() argument
2333 super(context, mutex, userProfiles, pm, approvedServiceType); in TestManagedServicesNoSettings()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/
H A DLockscreenSmartspaceController.kt581 for (userInfo in userTracker.userProfiles) {
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubbleController.java472 SparseArray<UserInfo> userProfiles = new SparseArray<>(); in onInit() local
474 userProfiles.put(user.id, user); in onInit()
476 mCurrentProfiles = userProfiles; in onInit()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DFgsManagerController.kt255 currentProfileIds.addAll(userTracker.userProfiles.map { it.id })
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/lockscreen/
H A DLockscreenSmartspaceControllerTest.kt222 `when`(userTracker.userProfiles).thenReturn(userList)

12