/packages/apps/LegacyCamera/src/com/android/camera/ |
D | CameraHolder.java | 50 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/ |
D | UserCache.java | 74 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/ |
D | UsersSpinner.java | 42 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/ |
D | UserPickerAdapter.java | 49 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/ |
D | EnterpriseSetDefaultAppsListPreferenceController.java | 63 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/ |
D | EnterpriseSetDefaultAppsListPreferenceController.java | 67 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/ |
D | SelfManagedVirtualDisplayView.java | 60 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/ |
D | StorageAsyncLoaderTest.java | 64 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/ |
D | OtaControllerTest.java | 84 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/ |
D | StorageAsyncLoaderTest.java | 76 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/ |
D | RestrictedProfileTest.java | 135 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/ |
D | ContactsActor.java | 185 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/ |
D | UserGridRecyclerView.java | 256 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/ |
D | PermissionMonitor.java | 108 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/ |
D | CarWatchdogServiceTest.java | 97 private final UserHandle[] mUsers = new UserHandle[] { field in CarWatchdogServiceTest 151 mockUmGetUserHandles(mMockUserManager, /* excludeDying= */ false, mUsers); in setUp()
|