Home
last modified time | relevance | path

Searched refs:mUsers (Results 1 – 6 of 6) 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/
DUserManagerCompatVL.java40 protected LongArrayMap<UserHandle> mUsers; field in UserManagerCompatVL
65 if (mUsers != null) { in getUserForSerialNumber()
66 return mUsers.get(serialNumber); in getUserForSerialNumber()
90 mUsers = new LongArrayMap<>(); in enableAndResetCache()
96 mUsers.put(serial, user); in enableAndResetCache()
106 if (mUsers != null) { in getUserProfiles()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java55 private List<UserInfo> mUsers = Collections.emptyList(); field in EnterpriseSetDefaultAppsListPreferenceController
75 mUsers = new ArrayList<>(); in buildAppList()
90 mUsers.add(apps.get(0).userInfo); in buildAppList()
120 if (!mEnterprisePrivacyFeatureProvider.isInCompMode() && mUsers.size() == 1) { in updateUi()
123 for (int i = 0; i < mUsers.size(); i++) { in updateUi()
124 final UserInfo userInfo = mUsers.get(i); in updateUi()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java70 private List<UserInfo> mUsers; field in StorageAsyncLoaderTest
83 mUsers = new ArrayList<>(); in setUp()
84 mUsers.add(info); in setUp()
85 when(mUserManager.getUsers()).thenReturn(mUsers); in setUp()
139 mUsers.add(info); in testMultipleUsers()
193 mUsers.add(info); in testPackageIsNotDoubleCounted()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/
DOtaControllerTest.java76 private List<UserInfo> mUsers = new ArrayList<>(); field in OtaControllerTest
90 when(mUserManager.getUsers()).thenReturn(mUsers); in setUp()
173 mUsers.add(ui); in addMeatUser()
184 mUsers.add(ui); in addManagedProfile()
192 mUsers.add(ui); in addSystemUser()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java169 private ArrayList<UserInfo> mUsers = new ArrayList<>(); field in ContactsActor.MockUserManager
174 mUsers.add(PRIMARY_USER); // Add the primary user. in MockUserManager()
179 mUsers.clear(); in setUsers()
181 mUsers.add(ui); in setUsers()
192 for (UserInfo ui : mUsers) { in getUserInfo()
206 for (UserInfo ui : mUsers) { in getProfileParent()
216 return mUsers; in getUsers()