/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountPreferenceControllerTest.java | 133 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/ |
D | BluetoothDeviceProfilesPreferenceControllerTest.java | 100 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/ |
D | TimeoutPreferenceControllerTest.java | 95 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/ |
D | AutoSyncWorkDataPreferenceControllerTest.java | 86 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()
|
D | AutoSyncPersonalDataPreferenceControllerTest.java | 95 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_oneProfile_shouldNotDisplay() 109 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_prefAvailable_shouldDisplay()
|
D | AutoSyncDataPreferenceControllerTest.java | 100 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/ |
D | OtaControllerTest.java | 101 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/ |
D | CrossProfileIntentFiltersSetterTest.java | 89 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/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 71 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/ |
D | BluetoothDetailsProfilesController.java | 191 private List<LocalBluetoothProfile> getProfiles() { in getProfiles() method in BluetoothDetailsProfilesController 266 for (LocalBluetoothProfile profile : getProfiles()) { in refresh()
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 216 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/ |
D | AccountPreferenceController.java | 176 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/ |
D | AccountPreferenceController.java | 176 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/ |
D | AutoSyncPersonalDataPreferenceController.java | 35 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
|
D | AutoSyncWorkDataPreferenceController.java | 43 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | AutoSyncPersonalDataPreferenceController.java | 35 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
|
D | AutoSyncWorkDataPreferenceController.java | 43 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/util/ |
D | DevicePolicyUtils.java | 36 final List<UserInfo> userInfoList = userManager.getProfiles(myUserId); in isBluetoothWorkContactSharingDisabled()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppCounter.java | 40 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
D | AppLister.java | 47 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppCounter.java | 40 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
D | AppLister.java | 47 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothDeviceProfilesPreferenceController.java | 58 for (LocalBluetoothProfile profile : getCachedDevice().getProfiles()) { in updateState()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowUserManager.java | 57 protected List<UserInfo> getProfiles(int userHandle) { in getProfiles() method in ShadowUserManager
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/ |
D | WorkModeConditionController.java | 111 List<UserInfo> profiles = mUm.getProfiles(UserHandle.myUserId()); in updateUserHandle()
|