Home
last modified time | relevance | path

Searched refs:userHandles (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/profileselector/
DProfileSelectDialog.java81 List<UserHandle> userHandles = tile.userHandle; in updateUserHandlesIfNeeded() local
86 for (int i = userHandles.size() - 1; i >= 0; i--) { in updateUserHandlesIfNeeded()
87 if (userManager.getUserInfo(userHandles.get(i).getIdentifier()) == null) { in updateUserHandlesIfNeeded()
89 Log.d(TAG, "Delete the user: " + userHandles.get(i).getIdentifier()); in updateUserHandlesIfNeeded()
91 userHandles.remove(i); in updateUserHandlesIfNeeded()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectDialog.java81 List<UserHandle> userHandles = tile.userHandle; in updateUserHandlesIfNeeded() local
86 for (int i = userHandles.size() - 1; i >= 0; i--) { in updateUserHandlesIfNeeded()
87 if (userManager.getUserInfo(userHandles.get(i).getIdentifier()) == null) { in updateUserHandlesIfNeeded()
89 Log.d(TAG, "Delete the user: " + userHandles.get(i).getIdentifier()); in updateUserHandlesIfNeeded()
91 userHandles.remove(i); in updateUserHandlesIfNeeded()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DUtilsTest.java58 UserHandle[] userHandles = new UserHandle[] { in testGetManagedProfile() local
63 .thenReturn(new ArrayList<UserHandle>(Arrays.asList(userHandles))); in testGetManagedProfile()
70 UserHandle[] userHandles = new UserHandle[] { in testGetManagedProfile_notPresent() local
74 .thenReturn(new ArrayList<UserHandle>(Arrays.asList(userHandles))); in testGetManagedProfile_notPresent()
/packages/apps/Settings/src/com/android/settings/privacy/
DEnableContentCaptureWithServiceSettingsPreferenceController.java95 final ArrayList<UserHandle> userHandles = new ArrayList<>(userInfos.size()); in show() local
97 userHandles.add(info.getUserHandle()); in show()
101 UserAdapter adapter = UserAdapter.createUserAdapter(userManager, context, userHandles); in show()
104 final UserHandle user = userHandles.get(which); in show()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictAppPreferenceControllerTest.java109 final List<UserHandle> userHandles = new ArrayList<>(); in setUp() local
110 userHandles.add(new UserHandle(0)); in setUp()
111 doReturn(userHandles).when(mUserManager).getUserProfiles(); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipUtils.java60 final List<UserHandle> userHandles = userManager.getUserProfiles(); in getRestrictedAppsList() local
74 && userHandles.contains( in getRestrictedAppsList()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DBatteryTipUtils.java60 final List<UserHandle> userHandles = userManager.getUserProfiles(); in getRestrictedAppsList() local
74 && userHandles.contains( in getRestrictedAppsList()