Home
last modified time | relevance | path

Searched refs:users (Results 1 – 25 of 238) sorted by relevance

12345678910

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/
DTrustRepositoryTest.kt55 private val users = listOf(UserInfo(1, "user 1", 0), UserInfo(2, "user 1", 0)) constant in com.android.systemui.keyguard.data.repository.TrustRepositoryTest
66 userRepository.setUserInfos(users) in setUp()
87 val currentUserId = users[0].id in isCurrentUserTrustManaged_whenItChanges_emitsLatestValue()
88 userRepository.setSelectedUserInfo(users[0]) in isCurrentUserTrustManaged_whenItChanges_emitsLatestValue()
110 userRepository.setSelectedUserInfo(users[0]) in isCurrentUserTrustManaged_whenItChangesForDifferentUser_noops()
113 listener.value.onTrustManagedChanged(true, users[0].id) in isCurrentUserTrustManaged_whenItChangesForDifferentUser_noops()
115 listener.value.onTrustManagedChanged(false, users[1].id) in isCurrentUserTrustManaged_whenItChangesForDifferentUser_noops()
125 userRepository.setSelectedUserInfo(users[0]) in isCurrentUserTrustManaged_whenUserChangesWithoutRecentTrustChange_defaultsToFalse()
126 listener.value.onTrustManagedChanged(true, users[0].id) in isCurrentUserTrustManaged_whenUserChangesWithoutRecentTrustChange_defaultsToFalse()
128 userRepository.setSelectedUserInfo(users[1]) in isCurrentUserTrustManaged_whenUserChangesWithoutRecentTrustChange_defaultsToFalse()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceCreateProfileTest.java72 List<UserInfo> users = mUserManagerService.getUsers(/* excludeDying */ false); in setup() local
73 assertEquals("Multiple users so this test can't run.", 1, users.size()); in setup()
75 UserHandle.USER_SYSTEM, users.get(0).id); in setup()
91 List<UserInfo> users = in testGetProfiles() local
93 assertEquals("Profiles returned where none should exist", 1, users.size()); in testGetProfiles()
95 UserHandle.USER_SYSTEM, users.get(0).id); in testGetProfiles()
98 users = mUserManagerService.getProfiles(secondaryUser.id, /*excludeDying*/ false); in testGetProfiles()
99 assertEquals("Profiles returned where none should exist", 2, users.size()); in testGetProfiles()
100 assertTrue("Missing secondary user id", users.get(0).id == secondaryUser.id in testGetProfiles()
101 || users.get(1).id == secondaryUser.id); in testGetProfiles()
[all …]
/frameworks/base/packages/SystemUI/scripts/
Dcopy_profile_icons.sh3 for user in `adb $* shell ls /data/system/users | grep -v xml`
6 adb shell mkdir /data/user/${user}/users
7 for photo in `adb $* shell ls /data/system/users | grep -v xml`
10 adb shell mkdir /data/user/${user}/users/${photo}
11 adb pull /data/system/users/${photo}/photo.png
12 adb push photo.png /data/user/${user}/users/${photo}
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBaseUserSwitcherAdapterTest.kt50 private lateinit var users: ArrayList<UserRecord> in <lambda>() variable in com.android.systemui.statusbar.policy.BaseUserSwitcherAdapterTest
55 users = in <lambda>()
79 whenever(controller.users).thenAnswer { users } in <lambda>()
100 assertThat(underTest.count).isEqualTo(users.size) in <lambda>()
106 users = in <lambda>()
131 assertThat(underTest.count).isEqualTo(users.size - 1) in <lambda>()
137 users = in <lambda>()
162 assertThat(underTest.count).isEqualTo(users.size) in <lambda>()
175 assertThat(underTest.count).isEqualTo(users.size) in <lambda>()
181 .isEqualTo(users) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/docs/
Duser-switching.md3 Multiple users and the ability to switch between them is controlled by Settings -> System -> Multip…
9 In the QS footer, an icon becomes available for users to tap on. The view and its onClick actions a…
13 May allow changing or adding new users directly from they bouncer. See [KeyguardBouncer][1]
25 * Contains the current list of all system users
27 * Manages user switching and dialogs for exiting from guest users
28 * Is settings aware regarding adding users from the lockscreen
Duser-file-manager.md4 users in SystemUI. Due to constraints in SystemUI, we can only read/write files as the system user.
5 Therefore, for secondary users, we want to store secondary user specific files into the system user
31 corresponding to active users. Additionally, upon start up, the class will run the same query for
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java279 int[] users = getArrayForCommaSeparatedString( in getValidKeyphraseSoundModelForUser() local
289 if (users == null) { in getValidKeyphraseSoundModelForUser()
296 for (int user : users) { in getValidKeyphraseSoundModelForUser()
313 keyphraseId, recognitionModes, modelLocale, text, users); in getValidKeyphraseSoundModelForUser()
339 private static String getCommaSeparatedString(int[] users) { in getCommaSeparatedString() argument
340 if (users == null) { in getCommaSeparatedString()
344 for (int i = 0; i < users.length; i++) { in getCommaSeparatedString()
348 sb.append(users[i]); in getCommaSeparatedString()
358 int[] users = new int[usersStr.length]; in getArrayForCommaSeparatedString() local
360 users[i] = Integer.parseInt(usersStr[i]); in getArrayForCommaSeparatedString()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowManager.java460 List<UserInfo> users, int attemptCount, Handler retryHandler) { in onGetRebootEscrowKeyFailed() argument
462 for (UserInfo user : users) { in onGetRebootEscrowKeyFailed()
469 private List<UserInfo> getUsersToUnlock(List<UserInfo> users) { in getUsersToUnlock() argument
477 for (UserInfo user : users) { in getUsersToUnlock()
486 for (UserInfo user : users) { in getUsersToUnlock()
504 List<UserInfo> users = mUserManager.getUsers(); in loadRebootEscrowDataIfAvailable() local
505 List<UserInfo> rebootEscrowUsers = getUsersToUnlock(users); in loadRebootEscrowDataIfAvailable()
535 () -> loadRebootEscrowDataOnInternet(retryHandler, users, rebootEscrowUsers)); in loadRebootEscrowDataIfAvailable()
540 retryHandler, 0, users, rebootEscrowUsers)); in loadRebootEscrowDataIfAvailable()
546 List<UserInfo> users, in scheduleLoadRebootEscrowDataOrFail() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DPackageDexUsageTests.java408 Set<String> users = new HashSet<>(Arrays.asList( in testRecordDexFileUsers() local
413 assertTrue(record(packageDexUsageRecordUsers, mFooSplit2UsedByOtherApps0, users)); in testRecordDexFileUsers()
416 assertTrue(record(packageDexUsageRecordUsers, mFooSecondary2UsedByOtherApps0, users)); in testRecordDexFileUsers()
421 Set<String> userAll = new HashSet<>(users); in testRecordDexFileUsers()
430 Set<String> users = new HashSet<>(Arrays.asList( in testRecordDexFileUsersAndTheOwningPackage() local
435 assertTrue(record(packageDexUsageRecordUsers, mFooSplit2UsedByOtherApps0, users)); in testRecordDexFileUsersAndTheOwningPackage()
440 Set<String> expectedUsers = new HashSet<>(users); in testRecordDexFileUsersAndTheOwningPackage()
616 private void assertPackageDexUsage(PackageDexUsage packageDexUsage, Set<String> users, in assertPackageDexUsage() argument
618 assertPackageDexUsage(packageDexUsage, users, primary, Arrays.asList(secondaries)); in assertPackageDexUsage()
621 private void assertPackageDexUsage(PackageDexUsage packageDexUsage, Set<String> users, in assertPackageDexUsage() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBaseUserSwitcherAdapter.kt37 protected open val users: List<UserRecord> constant in com.android.systemui.statusbar.policy.BaseUserSwitcherAdapter
38 get() = controller.users.filter { in <lambda>()
48 return users.size in getCount()
52 return users[position] in getItem()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/viewmodel/
DStatusBarUserChipViewModel.kt44 interactor.users.mapLatest { users -> users.size > 1 } in <lambda>() method
DUserSwitcherViewModel.kt49 val users: Flow<List<UserViewModel>> = in <lambda>() constant in com.android.systemui.user.ui.viewmodel.UserSwitcherViewModel
50 userSwitcherInteractor.users.map { models -> models.map { user -> toViewModel(user) } } in <lambda>()
53 val maximumUserColumns: Flow<Int> = users.map { getMaxUserSwitcherItemColumns(it.size) } in <lambda>()
/frameworks/base/core/java/android/webkit/
DUserPackage.java50 List<UserInfo> users = getAllUsers(context); in getPackageInfosAllUsers() local
51 List<UserPackage> userPackages = new ArrayList<UserPackage>(users.size()); in getPackageInfosAllUsers()
52 for (UserInfo user : users) { in getPackageInfosAllUsers()
/frameworks/base/services/core/java/com/android/server/pm/pkg/
DPackageStateUtils.java37 public static int[] queryInstalledUsers(PackageStateInternal pkgState, int[] users, in queryInstalledUsers() argument
40 for (int user : users) { in queryInstalledUsers()
47 for (int user : users) { in queryInstalledUsers()
/frameworks/base/services/core/java/com/android/server/pm/
DKillAppBlocker.java93 int[] users = userManager.getUserIds(); in waitAppProcessGone() local
95 for (int i = 0; i < users.length; i++) { in waitAppProcessGone()
96 final int userId = users[i]; in waitAppProcessGone()
DAppsFilterImpl.java523 final UserInfo[] users = snapshot.getUserInfos(); in addPackage() local
529 settings, users, USER_ALL, settings.size()); in addPackage()
541 settings, users, USER_ALL, settings.size()); in addPackage()
546 users.length, settings.size(), newPkgSetting.getAppId()); in addPackage()
773 final UserInfo[] users = snapshot.getUserInfos(); in updateEntireShouldFilterCache() local
775 for (int u = 0; u < users.length; u++) { in updateEntireShouldFilterCache()
776 if (subjectUserId == users[u].id) { in updateEntireShouldFilterCache()
786 updateEntireShouldFilterCacheInner(snapshot, settings, users, userId); in updateEntireShouldFilterCache()
793 UserInfo[] users, in updateEntireShouldFilterCacheInner() argument
799 mShouldFilterCache.setCapacity(users.length * settings.size()); in updateEntireShouldFilterCacheInner()
[all …]
DAppsFilterBase.java270 PackageStateInternal setting, int[] users, in getVisibilityAllowList() argument
276 SparseArray<int[]> result = new SparseArray<>(users.length); in getVisibilityAllowList()
277 for (int u = 0; u < users.length; u++) { in getVisibilityAllowList()
278 final int userId = users[u]; in getVisibilityAllowList()
316 PackageStateInternal setting, int[] users, in getVisibilityAllowList() argument
318 return getVisibilityAllowList(snapshot, setting, users, in getVisibilityAllowList()
715 PrintWriter pw, @Nullable Integer filteringAppId, DumpState dumpState, int[] users, in dumpQueries() argument
724 for (int i = 0, size = users.length; packagesForUid == null && i < size; i++) { in dumpQueries()
725 packagesForUid = getPackagesForUid.apply(callingUid, users[i], appId, in dumpQueries()
751 dumpQueriesViaImplicitlyQueryable(pw, filteringAppId, users, expandPackages); in dumpQueries()
[all …]
DAppsFilterSnapshot.java52 PackageStateInternal setting, int[] users, in getVisibilityAllowList() argument
87 int[] users, in dumpQueries() argument
/frameworks/base/apex/jobscheduler/service/aconfig/
Dalarm.aconfig17 …description: "Persist list of users with alarms scheduled and wakeup stopped users before alarms a…
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/
DUserModule.java21 import com.android.settingslib.users.CreateUserDialogController;
22 import com.android.settingslib.users.EditUserInfoController;
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSettingsManager.java147 List<UserInfo> users = mUserManager.getUsers(); in dump() local
148 int numUsers = users.size(); in dump()
150 getSettingsForUser(users.get(i).id).dump(dump, "user_settings", in dump()
DUsbPermissionManager.java125 List<UserInfo> users = userManager.getUsers(); in dump() local
126 int numUsers = users.size(); in dump()
128 getPermissionsForUser(users.get(i).id).dump(dump, "user_permissions", in dump()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/bouncer/ui/viewmodel/
DBouncerViewModelKosmos.kt51 users = userSwitcherViewModel.users, in <lambda>()
/frameworks/base/services/core/java/com/android/server/storage/
DAppCollector.java118 List<UserInfo> users = mUm.getUsers(); in handleMessage() local
119 for (int userCount = 0, userSize = users.size(); in handleMessage()
121 UserInfo user = users.get(userCount); in handleMessage()
/frameworks/base/core/java/android/os/
DUserHandle.java307 public static int[] fromUserHandles(@NonNull List<UserHandle> users) { in fromUserHandles() argument
308 int[] userIds = new int[users.size()]; in fromUserHandles()
310 userIds[i] = users.get(i).getIdentifier(); in fromUserHandles()
318 List<UserHandle> users = new ArrayList<>(userIds.length); in toUserHandles() local
320 users.add(UserHandle.of(userIds[i])); in toUserHandles()
322 return users; in toUserHandles()

12345678910