Home
last modified time | relevance | path

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

/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()
99 if (userHandles.size() == 1) { in show()
101 context.startActivityAsUser(intent, userHandles.get(0)); in show()
105 userHandles); in show()
108 final UserHandle user = userHandles.get(which); in show()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectDialog.java95 final List<UserHandle> userHandles = tile.userHandle; in updateUserHandlesIfNeeded() local
100 for (int i = userHandles.size() - 1; i >= 0; i--) { in updateUserHandlesIfNeeded()
101 if (userManager.getUserInfo(userHandles.get(i).getIdentifier()) == null) { in updateUserHandlesIfNeeded()
103 Log.d(TAG, "Delete the user: " + userHandles.get(i).getIdentifier()); in updateUserHandlesIfNeeded()
105 userHandles.remove(i); in updateUserHandlesIfNeeded()
/packages/apps/Settings/tests/legacy_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/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictAppPreferenceControllerTest.java115 final List<UserHandle> userHandles = new ArrayList<>(); in setUp() local
116 userHandles.add(new UserHandle(0)); in setUp()
117 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()