Home
last modified time | relevance | path

Searched refs:getProfiles (Results 1 – 25 of 52) sorted by relevance

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java133 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_oneProfile_shouldAddOneAccountCategory()
147 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_twoProfiles_shouldAddTwoAccountCategory()
161 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory()
177 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_oneNewProfile_shouldAddOneAccountCategory()
195 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_oneProfileRemoved_shouldRemoveOneAccountCategory()
211 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_oneProfile_shouldSetAccountTitleWithUserName()
228 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_noPreferenceScreen_shouldNotCrash()
246 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_noPreferenceManager_shouldNotCrash()
268 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in updateRawDataToIndex_DisabledUser_shouldNotUpdate()
280 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in updateRawDataToIndex_EnabledUser_shouldAddOne()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDeviceProfilesPreferenceControllerTest.java100 when(mCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile1)); in refreshUi_addsNewProfiles()
108 when(mCachedDevice.getProfiles()).thenReturn(Arrays.asList(profile1, profile2)); in refreshUi_addsNewProfiles()
124 when(mCachedDevice.getProfiles()).thenReturn(Arrays.asList(profile1, profile2)); in refreshUi_removesRemovedProfiles()
130 when(mCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile2)); in refreshUi_removesRemovedProfiles()
145 when(mCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in refreshUi_profiles_showsPreference()
154 when(mCachedDevice.getProfiles()).thenReturn(Collections.emptyList()); in refreshUi_noProfiles_hidesPreference()
165 when(mCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in profileChecked_setsProfilePreferred()
180 when(mCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in profileChecked_connectsToProfile()
196 when(mCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in profileUnchecked_setsProfileNotPreferred()
212 when(mCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in profileUnchecked_disconnectsFromProfile()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DTimeoutPreferenceControllerTest.java95 when(mUserManager.getProfiles(anyInt())).thenReturn(Collections.emptyList()); in testUpdateStateNoAdminTimeouts()
104 when(mUserManager.getProfiles(profileUserId)).thenReturn(Collections.emptyList()); in testUpdateStateWithAdminTimeouts()
115 when(mUserManager.getProfiles(profileUserId)).thenReturn(Collections.emptyList()); in testUpdateStateWithAdminTimeoutsAndRestriction()
146 when(mUserManager.getProfiles(profileUserId)).thenReturn(Collections.emptyList()); in updateState_selectedTimeoutLargerThanAdminMax_shouldSetSummaryToUpdatedPrefValue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DAutoSyncWorkDataPreferenceControllerTest.java86 when(mUserManager.getProfiles(eq(UserHandle.USER_SYSTEM))).thenReturn(infos); in checkIsAvailable_singleUserProfile_shouldNotDisplay()
99 when(mUserManager.getProfiles(eq(UserHandle.USER_SYSTEM))).thenReturn(infos); in checkIsAvailable_null_workProfileUserHandle_shouldNotDisplay()
115 when(mUserManager.getProfiles(eq(UserHandle.USER_SYSTEM))).thenReturn(infos); in multipleProfile_shouldInitWithWorkProfileUserHandle()
DAutoSyncPersonalDataPreferenceControllerTest.java95 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_oneProfile_shouldNotDisplay()
109 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_prefAvailable_shouldDisplay()
DAutoSyncDataPreferenceControllerTest.java100 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_oneProfile_shouldDisplay()
114 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_moreThanOneProfile_shouldNotDisplay()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/
DOtaControllerTest.java101 when(mUserManager.getProfiles(UserHandle.USER_SYSTEM)).thenReturn(mProfiles); in setUp()
255 when(mUserManager.getProfiles(userId)).thenReturn(Collections.singletonList(ui)); in addMeatUser()
267 when(mUserManager.getProfiles(userId)).thenReturn(Collections.singletonList(ui)); in addManagedProfile()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DCrossProfileIntentFiltersSetterTest.java89 when(mUserManager.getProfiles(TEST_PARENT_USER_ID)) in testResetFilters_NoProfiles()
104 when(mUserManager.getProfiles(TEST_PARENT_USER_ID)) in testResetFilters_OneProfile()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java71 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getManagedProfileUserId()
227 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesController.java191 private List<LocalBluetoothProfile> getProfiles() { in getProfiles() method in BluetoothDetailsProfilesController
266 for (LocalBluetoothProfile profile : getProfiles()) { in refresh()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java216 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
257 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getManagedProfileUserInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountPreferenceController.java176 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateRawDataToIndex()
277 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUi()
566 return mUm.isLinkedUser() || mUm.getProfiles(UserHandle.myUserId()).size() == 1; in isSingleProfile()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java176 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateRawDataToIndex()
277 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUi()
566 return mUm.isLinkedUser() || mUm.getProfiles(UserHandle.myUserId()).size() == 1; in isSingleProfile()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DAutoSyncPersonalDataPreferenceController.java35 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
DAutoSyncWorkDataPreferenceController.java43 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
/packages/apps/Settings/src/com/android/settings/users/
DAutoSyncPersonalDataPreferenceController.java35 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
DAutoSyncWorkDataPreferenceController.java43 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
/packages/apps/Bluetooth/src/com/android/bluetooth/util/
DDevicePolicyUtils.java36 final List<UserInfo> userInfoList = userManager.getProfiles(myUserId); in isBluetoothWorkContactSharingDisabled()
/packages/apps/Settings/src/com/android/settings/applications/
DAppCounter.java40 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
DAppLister.java47 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppCounter.java40 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
DAppLister.java47 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDeviceProfilesPreferenceController.java58 for (LocalBluetoothProfile profile : getCachedDevice().getProfiles()) { in updateState()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowUserManager.java57 protected List<UserInfo> getProfiles(int userHandle) { in getProfiles() method in ShadowUserManager
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DWorkModeConditionController.java111 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUserHandle()

123