Home
last modified time | relevance | path

Searched refs:mUsers (Results 1 – 15 of 15) 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/providers/MediaProvider/src/com/android/providers/media/util/
DUserCache.java74 final ArrayList<UserHandle> mUsers = new ArrayList<>(); field in UserCache
87 mUsers.clear(); in update()
89 mUsers.add(Process.myUserHandle()); in update()
105 mUsers.add(profile); in update()
122 return (List<UserHandle>) mUsers.clone(); in updateAndGetUsers()
128 return (List<UserHandle>) mUsers.clone(); in getUsersCached()
221 return !Process.myUserHandle().equals(user) && mUsers.contains(user); in userSharesMediaWithParentCached()
228 for (UserHandle user : mUsers) { in dump()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUsersSpinner.java42 private UserInfo[] mUsers; field in UsersSpinner
56 mUsers = new UserInfo[size]; in init()
57 users.toArray(mUsers); in init()
60 UserInfo user = mUsers[i]; in init()
108 return mUsers[selectedIndex]; in getSelectedUser()
111 + ". Users: " + Arrays.toString(mUsers)); in getSelectedUser()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/
DUserPickerAdapter.java49 private List<UserRecord> mUsers; field in UserPickerAdapter
71 mUsers = users; in updateUsers()
122 UserRecord userRecord = mUsers.get(position); in onBindViewHolder()
132 return mUsers != null ? mUsers.size() : 0; in getItemCount()
164 for (int i = 0; i < mUsers.size(); i++) { in dump()
165 UserRecord userRecord = mUsers.get(i); in dump()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java63 private List<UserInfo> mUsers = Collections.emptyList(); field in EnterpriseSetDefaultAppsListPreferenceController
83 mUsers = new ArrayList<>(); in buildAppList()
98 mUsers.add(apps.get(0).userInfo); in buildAppList()
128 if (!mEnterprisePrivacyFeatureProvider.isInCompMode() && mUsers.size() == 1) { in updateUi()
133 for (int i = 0; i < mUsers.size(); i++) { in updateUi()
134 final UserInfo userInfo = mUsers.get(i); in updateUi()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java67 private List<UserInfo> mUsers = Collections.emptyList(); field in EnterpriseSetDefaultAppsListPreferenceController
87 mUsers = new ArrayList<>(); in buildAppList()
102 mUsers.add(apps.get(0).userInfo); in buildAppList()
132 if (!mEnterprisePrivacyFeatureProvider.isInCompMode() && mUsers.size() == 1) { in updateUi()
135 for (int i = 0; i < mUsers.size(); i++) { in updateUi()
136 final UserInfo userInfo = mUsers.get(i); in updateUi()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/display/
DSelfManagedVirtualDisplayView.java60 private List<UserInfo> mUsers; field in SelfManagedVirtualDisplayView
95 mUsers = getContext().getSystemService(UserManager.class).getAliveUsers(); in enableUserSwitching()
96 Log.d(TAG, "Enabling user switching. Users = " + mUsers); in enableUserSwitching()
97 mUsersSpinner.init(mUsers); in enableUserSwitching()
101 int visibility = visible && mUsers != null ? View.VISIBLE : View.GONE; in setUserSwitchingVisible()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
DStorageAsyncLoaderTest.java64 private List<UserInfo> mUsers; field in StorageAsyncLoaderTest
83 mUsers = new ArrayList<>(); in setUp()
84 mUsers.add(info); in setUp()
85 when(mMockProfileHelper.getAllProfiles()).thenReturn(mUsers); in setUp()
155 mUsers.add(info); in testMultipleUsers()
221 mUsers.add(info); in testPackageIsNotDoubleCounted()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/
DOtaControllerTest.java84 private List<UserInfo> mUsers = new ArrayList<>(); field in OtaControllerTest
98 when(mUserManager.getUsers()).thenReturn(mUsers); in setUp()
237 mUsers.add(ui); in addManagedProfile()
245 mUsers.add(ui); in addManagedUser()
251 mUsers.add(ui); in addSystemUser()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java76 private List<UserInfo> mUsers; field in StorageAsyncLoaderTest
90 mUsers = new ArrayList<>(); in setUp()
91 mUsers.add(info); in setUp()
92 when(mUserManager.getUsers()).thenReturn(mUsers); in setUp()
150 mUsers.add(info); in testMultipleUsers()
/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()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java185 private ArrayList<UserInfo> mUsers = new ArrayList<>(); field in ContactsActor.MockUserManager
190 mUsers.add(PRIMARY_USER); // Add the primary user. in MockUserManager()
195 mUsers.clear(); in setUsers()
197 mUsers.add(ui); in setUsers()
208 for (UserInfo ui : mUsers) { in getUserInfo()
222 for (UserInfo ui : mUsers) { in getProfileParent()
232 return mUsers; in getUsers()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserGridRecyclerView.java256 private List<UserRecord> mUsers; field in UserGridRecyclerView.UserAdapter
278 mUsers.clear(); in clearUsers()
285 mUsers = users; in updateUsers()
299 UserRecord userRecord = mUsers.get(position); in onBindViewHolder()
602 return mUsers.size(); in getItemCount()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java108 private final Set<UserHandle> mUsers = new HashSet<>(); field in PermissionMonitor
470 log("Users: " + mUsers.size() + ", UidToNetworkPerm: " + mUidToNetworkPerm.size()); in startMonitoring()
587 mUsers.add(user); in onUserAdded()
619 mUsers.remove(user); in onUserRemoved()
1263 for (UserHandle user : mUsers) { in onExternalApplicationsAvailable()
/packages/services/Car/tests/carservice_test/src/com/android/car/watchdog/
DCarWatchdogServiceTest.java97 private final UserHandle[] mUsers = new UserHandle[] { field in CarWatchdogServiceTest
151 mockUmGetUserHandles(mMockUserManager, /* excludeDying= */ false, mUsers); in setUp()