Home
last modified time | relevance | path

Searched refs:mUsers (Results 1 – 10 of 10) sorted by relevance

/packages/apps/LegacyCamera/src/com/android/camera/
DCameraHolder.java50 private int mUsers = 0; // number of open() - number of release() field in CameraHolder
87 if (CameraHolder.this.mUsers == 0) releaseCamera(); in handleMessage()
122 Assert(mUsers == 0); in open()
147 ++mUsers; in open()
159 return mUsers == 0 ? open(cameraId) : null; in tryOpen()
171 Assert(mUsers == 1); in release()
172 --mUsers; in release()
178 Assert(mUsers == 0); in releaseCamera()
198 Assert(mUsers == 1 || mUsers == 0); in keep()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DUserManagerCompatVNMr1.java37 protected LongSparseArray<UserHandle> mUsers; field in UserManagerCompatVNMr1
84 if (mUsers != null) { in getUserForSerialNumber()
85 return mUsers.get(serialNumber); in getUserForSerialNumber()
104 mUsers = new LongSparseArray<>(); in enableAndResetCache()
110 mUsers.put(serial, user); in enableAndResetCache()
120 if (mUsers != null) { in getUserProfiles()
132 if (mUsers != null) { in hasWorkProfile()
133 return mUsers.size() > 1; in hasWorkProfile()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java58 private List<UserInfo> mUsers = Collections.emptyList(); field in EnterpriseSetDefaultAppsListPreferenceController
78 mUsers = new ArrayList<>(); in buildAppList()
93 mUsers.add(apps.get(0).userInfo); in buildAppList()
123 if (!mEnterprisePrivacyFeatureProvider.isInCompMode() && mUsers.size() == 1) { in updateUi()
126 for (int i = 0; i < mUsers.size(); i++) { in updateUi()
127 final UserInfo userInfo = mUsers.get(i); in updateUi()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java58 private List<UserInfo> mUsers = Collections.emptyList(); field in EnterpriseSetDefaultAppsListPreferenceController
78 mUsers = new ArrayList<>(); in buildAppList()
93 mUsers.add(apps.get(0).userInfo); in buildAppList()
123 if (!mEnterprisePrivacyFeatureProvider.isInCompMode() && mUsers.size() == 1) { in updateUi()
126 for (int i = 0; i < mUsers.size(); i++) { in updateUi()
127 final UserInfo userInfo = mUsers.get(i); in updateUi()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/
DOtaControllerTest.java86 private List<UserInfo> mUsers = new ArrayList<>(); field in OtaControllerTest
100 when(mUserManager.getUsers()).thenReturn(mUsers); in setUp()
254 mUsers.add(ui); in addMeatUser()
265 mUsers.add(ui); in addManagedProfile()
273 mUsers.add(ui); in addManagedUser()
279 mUsers.add(ui); in addSystemUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageAsyncLoaderTest.java73 private List<UserInfo> mUsers; field in StorageAsyncLoaderTest
84 mUsers = new ArrayList<>(); in setUp()
85 mUsers.add(info); in setUp()
86 when(mCarUserManagerHelper.getAllUsers()).thenReturn(mUsers); in setUp()
148 mUsers.add(info); in testMultipleUsers()
201 mUsers.add(info); in testPackageIsNotDoubleCounted()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java71 private List<UserInfo> mUsers; field in StorageAsyncLoaderTest
84 mUsers = new ArrayList<>(); in setUp()
85 mUsers.add(info); in setUp()
86 when(mUserManager.getUsers()).thenReturn(mUsers); in setUp()
140 mUsers.add(info); in testMultipleUsers()
194 mUsers.add(info); in testPackageIsNotDoubleCounted()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserGridRecyclerView.java204 private List<UserRecord> mUsers; field in UserGridRecyclerView.UserAdapter
239 mUsers.clear(); in clearUsers()
246 mUsers = users; in updateUsers()
260 UserRecord userRecord = mUsers.get(position); in onBindViewHolder()
383 return mUsers.size(); in getItemCount()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java178 private ArrayList<UserInfo> mUsers = new ArrayList<>(); field in ContactsActor.MockUserManager
183 mUsers.add(PRIMARY_USER); // Add the primary user. in MockUserManager()
188 mUsers.clear(); in setUsers()
190 mUsers.add(ui); in setUsers()
201 for (UserInfo ui : mUsers) { in getUserInfo()
215 for (UserInfo ui : mUsers) { in getProfileParent()
225 return mUsers; in getUsers()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/users/
DRestrictedProfileTest.java135 private final List<UserInfo> mUsers = new ArrayList<>(); field in RestrictedProfileTest.UserSetter
141 mUsers.addAll(Arrays.asList(users)); in addOtherUsers()
142 when(mUserManager.getUsers()).thenReturn(mUsers); in addOtherUsers()