/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | RoleObserverTest.java | 112 private List<UserHandle> mUsers; field in RoleObserverTest 140 mUsers = new ArrayList<>(); in setUp() 141 mUsers.add(new UserHandle(0)); in setUp() 142 mUsers.add(new UserHandle(10)); in setUp() 143 when(mUm.getUserHandles(anyBoolean())).thenReturn(mUsers); in setUp() 207 mUsers.get(0))) in testInit_forNonBlockableDefaultApps() 211 mUsers.get(0))) in testInit_forNonBlockableDefaultApps() 218 ROLE_DIALER, dialer0.get(0), mUsers.get(0).getIdentifier())); in testInit_forNonBlockableDefaultApps() 220 ROLE_DIALER, dialer0.get(0), mUsers.get(1).getIdentifier())); in testInit_forNonBlockableDefaultApps() 223 ROLE_EMERGENCY, emer0.get(0), mUsers.get(0).getIdentifier())); in testInit_forNonBlockableDefaultApps() [all …]
|
D | NotificationHistoryManagerTest.java | 60 List<UserInfo> mUsers; field in NotificationHistoryManagerTest 96 mUsers = new ArrayList<>(); in setUp() 99 mUsers.add(userSystem); in setUp() 102 mUsers.add(userFullSecondary); in setUp() 105 mUsers.add(userProfile); in setUp() 106 when(mUserManager.getUsers()).thenReturn(mUsers); in setUp() 121 for (UserInfo info : mUsers) { in setUp() 196 mUsers = new ArrayList<>(); in testAddProfile_historyEnabledInPrimary() 199 mUsers.add(userFullSecondary); in testAddProfile_historyEnabledInPrimary() 202 mUsers.add(userProfile); in testAddProfile_historyEnabledInPrimary() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | PolicyVersionUpgraderTest.java | 87 int[] mUsers; field in PolicyVersionUpgraderTest.FakePolicyUpgraderDataProvider 113 return mUsers; in getUsersForUpgrade() 140 mProvider.mUsers = new int[]{0}; in setUp() 146 final int userId = mProvider.mUsers[0]; in testSameVersionDoesNothing() 159 mProvider.mUsers = new int[]{0, 10}; in testUpgrade0To1RemovesPasswordMetrics() 162 for (int userId : mProvider.mUsers) { in testUpgrade0To1RemovesPasswordMetrics() 171 for (int user : mProvider.mUsers) { in testUpgrade0To1RemovesPasswordMetrics() 180 mProvider.mUsers = new int[]{0, ownerUser}; in testUpgrade1To2MarksDoForPermissionControl() 183 for (int userId : mProvider.mUsers) { in testUpgrade1To2MarksDoForPermissionControl() 191 assertThat(getBooleanValueTag(readPoliciesFileToStream(mProvider.mUsers[0]), in testUpgrade1To2MarksDoForPermissionControl() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/ |
D | TestSystemImpl.java | 35 List<Integer> mUsers = new ArrayList<>(); field in TestSystemImpl 50 mUsers.add(PRIMARY_USER_ID); in TestSystemImpl() 55 mUsers.add(userId); in addUser() 81 for(int userId : mUsers) { in enablePackageForAllUsers() 88 for (int userId : mUsers) { in installExistingPackageForAllUsers() 139 for (int userId : mUsers) { in getPackageInfoForProviderAllUsers() 158 if (!mUsers.contains(userId)) { in setPackageInfoForUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | AppCollectorTest.java | 65 private List<UserInfo> mUsers; field in AppCollectorTest 83 mUsers = new ArrayList<>(); in setUp() 84 mUsers.add(new UserInfo(0, "", 0)); in setUp() 88 when(mUm.getUsers()).thenReturn(mUsers); in setUp() 128 mUsers.add(new UserInfo(1, "", 0)); in testMultipleUsersOneApp() 153 mUsers.add(new UserInfo(1, "", 0)); in testAppNotFoundDoesntCauseCrash()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 453 private final SparseArray<UserData> mUsers; field in UserManagerService 1051 mUsers = users != null ? users : new SparseArray<>(); in UserManagerService() 1172 final int userSize = mUsers.size(); in cleanupPartialUsers() 1174 UserInfo ui = mUsers.valueAt(i).info; in cleanupPartialUsers() 1200 final int userSize = mUsers.size(); in cleanupPreCreatedUsers() 1203 UserInfo ui = mUsers.valueAt(i).info; in cleanupPreCreatedUsers() 1224 return mUsers.get(userId).account; in getUserAccount() 1234 final UserData userData = mUsers.get(userId); in setUserAccount() 1256 final int userSize = mUsers.size(); in getPrimaryUser() 1258 UserInfo ui = mUsers.valueAt(i).info; in getPrimaryUser() [all …]
|
D | ShortcutService.java | 336 private final SparseArray<ShortcutUser> mUsers = new SparseArray<>(); field in ShortcutService 767 mUsers.delete(userId); in unloadUserLocked() 1343 return mUsers.get(userId) != null; in isUserLoadedLocked() 1362 ShortcutUser userPackages = mUsers.get(userId); in getUserShortcutsLocked() 1368 mUsers.put(userId, userPackages); in getUserShortcutsLocked() 1390 for (int i = mUsers.size() - 1; i >= 0; i--) { in forEachLoadedUserLocked() 1391 c.accept(mUsers.valueAt(i)); in forEachLoadedUserLocked() 4704 private final List<Integer> mUsers = new ArrayList<>(); 4715 mUsers.add(userId); 4731 if (mUsers.size() == 0) { [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | UserManagerServiceTest.java | 150 private final SparseArray<UserData> mUsers = new SparseArray<>(); field in UserManagerServiceTest 200 mPackagesLock, mTestDir, mUsers); in setFixtures() 213 mUsers.clear(); in tearDown() 427 mUsers.get(OTHER_USER_ID).info.flags &= ~UserInfo.FLAG_FULL; in testGetPreviousFullUserToEnterForeground_SkipsNonFullUsers() 440 mUsers.get(OTHER_USER_ID).info.partial = true; in testGetPreviousFullUserToEnterForeground_SkipsPartialUsers() 453 mUsers.get(OTHER_USER_ID).info.flags |= UserInfo.FLAG_DISABLED; in testGetPreviousFullUserToEnterForeground_SkipsDisabledUsers() 555 for (int i = 0; i < mUsers.size(); i++) { in testMainUser_hasNoCallsOrSMSRestrictionsByDefault() 556 UserData userData = mUsers.valueAt(i); in testMainUser_hasNoCallsOrSMSRestrictionsByDefault() 558 mUsers.delete(i); in testMainUser_hasNoCallsOrSMSRestrictionsByDefault() 1003 mUsers.put(userData.info.id, userData); in addUserData() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | RegisteredServicesCacheTest.java | 66 private List<UserInfo> mUsers; field in RegisteredServicesCacheTest 76 mUsers = new ArrayList<>(); in setUp() 77 mUsers.add(new UserInfo(0, "Owner", UserInfo.FLAG_ADMIN)); in setUp() 78 mUsers.add(new UserInfo(1, "User1", 0)); in setUp() 257 return mUsers; in getUsers()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppTimeLimitController.java | 77 private final SparseArray<UserData> mUsers = new SparseArray<>(); field in AppTimeLimitController 705 UserData userData = mUsers.get(userId); in getOrCreateUserDataLocked() 708 mUsers.put(userId, userData); in getOrCreateUserDataLocked() 728 mUsers.remove(userId); in onUserRemoved() 1021 final int nUsers = mUsers.size(); in dump() 1024 mUsers.valueAt(user).currentlyActive; in dump() 1038 final int nUsers = mUsers.size(); in dump() 1041 mUsers.valueAt(i).dump(pw); in dump()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/ |
D | RemoteTransitionHandler.java | 377 private int mUsers = 0; field in RemoteTransitionHandler.RemoteDeathHandler 387 ++mUsers; in addUser() 394 --mUsers; in removeUser() 398 return mUsers; in getUserCount()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 279 private final SparseArray<UserAccounts> mUsers = new SparseArray<>(); field in AccountManagerService 1401 synchronized (mUsers) { in getUserAccountsNotChecked() 1402 UserAccounts accounts = mUsers.get(userId); in getUserAccountsNotChecked() 1408 mUsers.append(userId, accounts); in getUserAccountsNotChecked() 1432 Preconditions.checkState(Thread.holdsLock(mUsers), "mUsers lock must be held"); in syncDeCeAccountsLocked() 1448 synchronized (mUsers) { in purgeOldGrantsAll() 1449 for (int i = 0; i < mUsers.size(); i++) { in purgeOldGrantsAll() 1450 purgeOldGrants(mUsers.valueAt(i)); in purgeOldGrantsAll() 1482 synchronized (mUsers) { in removeVisibilityValuesForPackage() 1483 int numberOfUsers = mUsers.size(); in removeVisibilityValuesForPackage() [all …]
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | SoundTrigger.java | 589 private final int[] mUsers; field in SoundTrigger.Keyphrase 608 this.mUsers = users != null ? users : new int[0]; in Keyphrase() 647 return mUsers; in getUsers()
|