/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
H A 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()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
H A D | AccountPreferenceControllerTest.java | 137 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_oneProfile_shouldAddOneAccountCategory() 151 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_twoProfiles_shouldAddTwoAccountCategory() 165 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory() 181 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_oneNewProfile_shouldAddOneAccountCategory() 199 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_oneProfileRemoved_shouldRemoveOneAccountCategory() 215 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_oneProfile_shouldSetAccountTitleWithUserName() 232 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_noPreferenceScreen_shouldNotCrash() 250 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_noPreferenceManager_shouldNotCrash() 272 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in updateRawDataToIndex_DisabledUser_shouldNotUpdate() 284 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in updateDynamicRawDataToIndex_enabledUser_notManagedUser_shouldNotUpdate() [all …]
|
H A D | AccountDashboardFragmentTest.java | 90 doReturn(infos).when(mUserManager).getProfiles(anyInt()); in searchIndexProvider_hasManagedProfile_shouldNotIndex() 103 doReturn(infos).when(mUserManager).getProfiles(anyInt()); in searchIndexProvider_hasAccounts_shouldIndex()
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/ |
H A D | ShadowUserManager.java | 45 protected List<UserInfo> getProfiles() { in getProfiles() method in ShadowUserManager 62 protected List<UserInfo> getProfiles(@UserIdInt int userHandle) { in getProfiles() method in ShadowUserManager 63 return getProfiles(); in getProfiles()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/users/ |
H A 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()
|
H A 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()
|
H A 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()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/ |
H A D | UserTrackerImplTest.kt | 74 `when`(userManager.getProfiles(anyInt())).thenAnswer { invocation -> 134 verify(userManager).getProfiles(testID) 154 verify(userManager).getProfiles(newID) 171 `when`(userManager.getProfiles(anyInt())).thenAnswer { invocation -> 228 `when`(userManager.getProfiles(anyInt())).thenAnswer { invocation ->
|
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
H A D | IntentForwarderActivityTest.java | 153 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToManagedProfile_canForward_sendIntent() 186 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToManagedProfile_cannotForward_sendIntent() 207 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToManagedProfile_noManagedProfile_sendIntent() 225 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in launchInSameProfile_chooserIntent() 263 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToManagedProfile_canForward_selectorIntent() 569 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToManagedProfile_LoggingTest() 596 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in forwardToParent_LoggingTest() 622 when(mUserManager.getProfiles(anyInt())).thenReturn(profiles); in setupShouldSkipDisclosureTest()
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
H A D | RestrictedLockUtilsTest.java | 186 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_doesMatchAllowedFeature_unifiedManagedProfile() 214 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_notMatchOtherFeatures_unifiedManagedProfile() 237 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_onlyMatchesProfile_separateManagedProfile() 273 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_onlyMatchesParent_profileParentPolicy()
|
/aosp12/packages/apps/Settings/src/com/android/settings/users/ |
H A D | AutoSyncPersonalDataPreferenceController.java | 35 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
|
H A D | AutoSyncWorkDataPreferenceController.java | 43 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
H A D | UserTrackerImpl.kt | 132 val profiles = userManager.getProfiles(user) 168 val profiles = userManager.getProfiles(userId)
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | MockSystemServices.java | 263 when(userManager.getProfiles(anyInt())).thenAnswer( in addUser() 266 return getProfiles(userId12); in addUser() 272 List<UserInfo> profiles = getProfiles(userId13); in addUser() 312 private List<UserInfo> getProfiles(int userId) { in getProfiles() method in MockSystemServices
|
/aosp12/frameworks/opt/net/voip/src/java/android/net/sip/ |
H A D | ISipService.aidl | 42 List<SipProfile> getProfiles(String opPackageName); in getProfiles() method
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/util/ |
H A D | DevicePolicyUtils.java | 36 final List<UserInfo> userInfoList = userManager.getProfiles(myUserId); in isBluetoothWorkContactSharingDisabled()
|
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | RestrictedLockUtilsInternal.java | 366 List<UserInfo> userProfiles = um.getProfiles(userId); in getManagedProfileId() 487 for (UserInfo userInfo : UserManager.get(context).getProfiles(userId)) { in checkIfPasswordQualityIsSet() 558 for (UserInfo userInfo : UserManager.get(context).getProfiles(userId)) { in checkForLockSetting() 689 for (UserInfo userInfo : um.getProfiles(UserHandle.myUserId())) { in isAdminInCurrentUserOrProfile()
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/apps/ |
H A D | AppCounter.java | 46 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
H A D | AppLister.java | 50 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
/aosp12/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | AppCounter.java | 40 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
H A D | AppLister.java | 47 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
/aosp12/packages/apps/Settings/src/com/android/settings/applications/specialaccess/interactacrossprofiles/ |
H A D | InteractAcrossProfilesController.java | 53 final List<UserInfo> profiles = mUserManager.getProfiles(UserHandle.myUserId()); in getAvailabilityStatus()
|
/aosp12/frameworks/base/telephony/java/android/service/euicc/ |
H A D | GetEuiccProfileInfoListResult.java | 70 public List<EuiccProfileInfo> getProfiles() { in getProfiles() method in GetEuiccProfileInfoListResult
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
H A D | BluetoothDeviceProfilesPreferenceController.java | 58 for (LocalBluetoothProfile profile : getCachedDevice().getProfiles()) { in updateState()
|
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | BluetoothDetailsProfilesController.java | 197 private List<LocalBluetoothProfile> getProfiles() { in getProfiles() method in BluetoothDetailsProfilesController 272 for (LocalBluetoothProfile profile : getProfiles()) { in refresh()
|