Home
last modified time | relevance | path

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

1234

/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
H A 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()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
H A DAccountPreferenceControllerTest.java137 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 DAccountDashboardFragmentTest.java90 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 DShadowUserManager.java45 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 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()
H A DAutoSyncPersonalDataPreferenceControllerTest.java95 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_oneProfile_shouldNotDisplay()
109 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_prefAvailable_shouldDisplay()
H A DAutoSyncDataPreferenceControllerTest.java100 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 DUserTrackerImplTest.kt74 `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 DIntentForwarderActivityTest.java153 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 DRestrictedLockUtilsTest.java186 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 DAutoSyncPersonalDataPreferenceController.java35 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
H A DAutoSyncWorkDataPreferenceController.java43 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
H A DUserTrackerImpl.kt132 val profiles = userManager.getProfiles(user)
168 val profiles = userManager.getProfiles(userId)
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DMockSystemServices.java263 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 DISipService.aidl42 List<SipProfile> getProfiles(String opPackageName); in getProfiles() method
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/util/
H A DDevicePolicyUtils.java36 final List<UserInfo> userInfoList = userManager.getProfiles(myUserId); in isBluetoothWorkContactSharingDisabled()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DRestrictedLockUtilsInternal.java366 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 DAppCounter.java46 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
H A DAppLister.java50 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/
H A DAppCounter.java40 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
H A DAppLister.java47 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/specialaccess/interactacrossprofiles/
H A DInteractAcrossProfilesController.java53 final List<UserInfo> profiles = mUserManager.getProfiles(UserHandle.myUserId()); in getAvailabilityStatus()
/aosp12/frameworks/base/telephony/java/android/service/euicc/
H A DGetEuiccProfileInfoListResult.java70 public List<EuiccProfileInfo> getProfiles() { in getProfiles() method in GetEuiccProfileInfoListResult
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
H A DBluetoothDeviceProfilesPreferenceController.java58 for (LocalBluetoothProfile profile : getCachedDevice().getProfiles()) { in updateState()
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothDetailsProfilesController.java197 private List<LocalBluetoothProfile> getProfiles() { in getProfiles() method in BluetoothDetailsProfilesController
272 for (LocalBluetoothProfile profile : getProfiles()) { in refresh()

1234