/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsAmbientVolumePreferenceControllerTest.java | 101 when(mCachedDevice.getProfiles()).thenReturn(List.of(mVolumeControlProfile)); in isAvailable_notHearingDevice_returnFalse() 110 when(mCachedDevice.getProfiles()).thenReturn(List.of()); in isAvailable_notSupportVcp_returnFalse() 119 when(mCachedDevice.getProfiles()).thenReturn(List.of(mVolumeControlProfile)); in isAvailable_noValidAmbientControlPoint_returnFalse() 128 when(mCachedDevice.getProfiles()).thenReturn(List.of(mVolumeControlProfile)); in isAvailable_isHearingDevice_supportVcp_validAmbientControl_returnTrue() 137 when(mCachedDevice.getProfiles()).thenReturn(List.of(mVolumeControlProfile)); in refresh_notHearingDevice_verifyUiControllerNotRefresh() 148 when(mCachedDevice.getProfiles()).thenReturn(List.of()); in refresh_notSupportVcp_verifyUiControllerNotRefresh() 159 when(mCachedDevice.getProfiles()).thenReturn(List.of(mVolumeControlProfile)); in refresh_noValidAmbientControl_verifyUiControllerNotRefresh() 170 when(mCachedDevice.getProfiles()).thenReturn(List.of(mVolumeControlProfile)); in refresh_isHearingDevice_supportVcp_validAmbientControl_verifyUiControllerRefresh()
|
D | UtilsTest.java | 201 when(cachedDevice1.getProfiles()) in enableLeAudioProfile_multipleDeviceInGroup() 203 when(cachedDevice2.getProfiles()).thenReturn(ImmutableList.of(mLeAudioProfile)); in enableLeAudioProfile_multipleDeviceInGroup() 204 when(cachedDevice3.getProfiles()) in enableLeAudioProfile_multipleDeviceInGroup() 225 when(cachedDevice1.getProfiles()) in enableLeAudioProfile_dualModeEnabled_a2dpAndHfpNotChanged() 244 when(cachedDevice1.getProfiles()) in enableLeAudioProfile_dualModeDisabled_disableA2dpAndHfp() 273 when(cachedDevice1.getProfiles()) in disableLeAudioProfile_multipleDeviceInGroup() 275 when(cachedDevice2.getProfiles()).thenReturn(ImmutableList.of(mLeAudioProfile)); in disableLeAudioProfile_multipleDeviceInGroup() 276 when(cachedDevice3.getProfiles()) in disableLeAudioProfile_multipleDeviceInGroup() 297 when(cachedDevice1.getProfiles()) in disableLeAudioProfile_dualModeEnabled_a2dpAndHfpNotChanged() 316 when(cachedDevice1.getProfiles()) in disableLeAudioProfile_dualModeDisabled_enableA2dpAndHfp()
|
D | BluetoothDetailsHearingDeviceInputRoutingControllerTest.java | 145 when(mCachedDevice.getProfiles()).thenReturn(List.of(mHapClientProfile)); in isAvailable_validInput_supportHapProfile_returnTrue() 155 when(mCachedDevice.getProfiles()).thenReturn(Collections.emptyList()); in isAvailable_notSupportHapProfile_returnFalse() 165 when(mCachedDevice.getProfiles()).thenReturn(List.of(mHapClientProfile)); in isAvailable_notValidInputDevice_returnFalse() 177 when(mCachedDevice.getProfiles()).thenReturn(List.of(mHapClientProfile)); in isAvailable_validInputMember_supportHapProfile_returnTrue()
|
D | BluetoothDetailsHearingAidsPresetsControllerTest.java | 92 when(mCachedDevice.getProfiles()).thenReturn(List.of(mHapClientProfile)); in setUp() 105 when(mCachedDevice.getProfiles()).thenReturn(List.of(mHapClientProfile)); in isAvailable_supportHap_returnTrue() 112 when(mCachedDevice.getProfiles()).thenReturn(new ArrayList<>()); in isAvailable_notSupportHap_returnFalse()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
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() 285 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in updateDynamicRawDataToIndex_enabledUser_notManagedUser_shouldNotUpdate() 298 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in updateDynamicRawDataToIndex_managedUser_shouldAddTwo() [all …]
|
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()
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/bluetooth/ |
D | BluetoothDeviceProfilesPreferenceControllerTest.java | 140 when(mBondedCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile1)); in refreshUi_addsNewProfiles() 148 when(mBondedCachedDevice.getProfiles()).thenReturn(Arrays.asList(profile1, profile2)); in refreshUi_addsNewProfiles() 164 when(mBondedCachedDevice.getProfiles()).thenReturn(Arrays.asList(profile1, profile2)); in refreshUi_removesRemovedProfiles() 170 when(mBondedCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile2)); in refreshUi_removesRemovedProfiles() 186 when(mBondedCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in refreshUi_profiles_showsPreference() 195 when(mBondedCachedDevice.getProfiles()).thenReturn(Collections.emptyList()); in refreshUi_noProfiles_hidesPreference() 206 when(mBondedCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in profileChecked_setsProfilePreferred() 223 when(mBondedCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in profileChecked_connectsToProfile() 241 when(mBondedCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in profileUnchecked_setsProfileNotPreferred() 259 when(mBondedCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in profileUnchecked_disconnectsFromProfile() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingDevicePreferenceControllerTest.java | 342 doReturn(ImmutableList.of(mLeAudioProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_leaDeviceDisconnected_closeOpeningDialogsForIt() 357 doReturn(ImmutableList.of(mLeAudioProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_leaDeviceDisconnected_broadcastOn_doNothing() 369 doReturn(ImmutableList.of(mLeAudioProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_assistantProfileConnecting_doNothing() 382 doReturn(ImmutableList.of(mLeAudioProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_otherProfileConnected_doNothing() 393 doReturn(ImmutableList.of(mLeAudioProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_otherProfileConnecting_doNothing() 405 doReturn(ImmutableList.of(mLeAudioProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_assistantProfileConnected_handle() 420 doReturn(ImmutableList.of(mLeAudioProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_assistantProfileConnected_broadcastOn_doNothing() 435 doReturn(ImmutableList.of(mLeAudioProfile, mA2dpProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_nonLeaDeviceDisconnected_closeOpeningDialogsForIt() 450 doReturn(ImmutableList.of(mLeAudioProfile, mA2dpProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_nonLeaDeviceDisconnected_broadcastOn_doNothing() 466 doReturn(ImmutableList.of(mA2dpProfile, mHeadsetProfile)).when(mCachedDevice).getProfiles(); in onProfileConnectionStateChanged_nonLeaNotFirstProfileConnected_doNothing() [all …]
|
/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 | 111 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_oneProfile_shouldDisplay() 125 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_moreThanOneProfile_shouldNotDisplay()
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | UserManagerCompat.java | 77 public List<UserInfoCompat> getProfiles(@UserIdInt int userId) { in getProfiles() method in UserManagerCompat 78 return UserInfoCompat.convert(mUserManager.getProfiles(userId)); in getProfiles()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | LockScreenNotificationShowSensitiveControllerTest.java | 99 when(mUm.getProfiles(anyInt())).thenReturn(Arrays.asList(new UserInfo(0, "", 0))); in setUp() 110 when(mUm.getProfiles(anyInt())).thenReturn(Arrays.asList( in setUp() 159 when(mUm.getProfiles(anyInt())).thenReturn(Arrays.asList( in getAvailabilityStatus_noWorkProfile()
|
D | RedactNotificationPreferenceControllerTest.java | 110 when(mUm.getProfiles(anyInt())).thenReturn(Arrays.asList(new UserInfo(0, "", 0))); in setUp() 120 when(mUm.getProfiles(anyInt())).thenReturn(Arrays.asList( in setUp() 154 when(mUm.getProfiles(anyInt())).thenReturn(Arrays.asList( in getAvailabilityStatus_noWorkProfile()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/ |
D | RestrictedLockUtilsInternal.java | 337 List<UserInfo> userProfiles = um.getProfiles(userId); in getManagedProfileId() 455 for (UserInfo userInfo : UserManager.get(context).getProfiles(userId)) { in checkIfPasswordQualityIsSet() 525 for (UserInfo userInfo : UserManager.get(context).getProfiles(userId)) { in checkForLockSetting() 605 for (UserInfo userInfo : um.getProfiles(UserHandle.myUserId())) { in isAdminInCurrentUserOrProfile()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | InstalledAppCounterTest.java | 141 when(mUserManager.getProfiles(UserHandle.myUserId())).thenReturn(Arrays.asList( in testCountInstalledAppsAcrossAllUsers() 213 when(mUserManager.getProfiles(UserHandle.myUserId())).thenReturn(List.of( in testCountInstalledApps_archivingDisabled() 235 when(mUserManager.getProfiles(UserHandle.myUserId())).thenReturn(List.of( in testCountInstalledApps_archivingEnabled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryOptimizeUtilsTest.java | 234 doReturn(Arrays.asList(userInfo)).when(mMockUserManager).getProfiles(anyInt()); in testGetInstalledApplications_returnNull() 246 doReturn(Arrays.asList(userInfo)).when(mMockUserManager).getProfiles(anyInt()); in testGetInstalledApplications_returnInstalledApps() 343 doReturn(Arrays.asList(userInfo)).when(mMockUserManager).getProfiles(anyInt()); in runTestForResetWithMode()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | AutoSyncPersonalDataPreferenceController.java | 35 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
|
D | AutoSyncWorkDataPreferenceController.java | 44 && mUserManager.getProfiles(UserHandle.myUserId()).size() > 1; in isAvailable()
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 223 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile() 295 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getManagedProfileUserInfo()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | HearingAidUtils.java | 47 if (device.getProfiles().stream().anyMatch( in launchHearingAidPairingDialog()
|
/packages/apps/Car/Settings/src/com/android/car/settingslib/applications/ |
D | AppCounter.java | 46 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/enterprise/apps/ |
D | AppCounter.java | 46 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/apps/ |
D | AppCounter.java | 46 for (UserInfo user : mUm.getProfiles(UserHandle.myUserId())) { in doInBackground()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/ |
D | OtaControllerTest.java | 99 when(mUserManager.getProfiles(UserHandle.USER_SYSTEM)).thenReturn(mProfiles); in setUp() 239 when(mUserManager.getProfiles(userId)).thenReturn(Collections.singletonList(ui)); in addManagedProfile()
|