/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountSyncDetailsPreferenceControllerTest.java | 121 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in refreshUi_syncAdapterDoesNotHaveSameAccountType_shouldNotBeShown() 134 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in refreshUi_syncAdapterIsNotVisible_shouldNotBeShown() 149 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in refreshUi_syncAdapterIsNotSyncable_shouldNotBeShown() 166 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in refreshUi_syncAdapterDoesNotHaveProviderInfo_shouldNotBeShown() 191 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in refreshUi_providerInfoDoesNotHaveLabel_shouldNotBeShown() 216 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_providerLabelShouldBeSet() 231 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_masterSyncOff_syncDisabled_shouldNotBeChecked() 246 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_masterSyncOn_syncDisabled_shouldBeChecked() 261 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_masterSyncOff_syncEnabled_shouldBeChecked() 275 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_syncDisabled_summaryShouldBeSet() [all …]
|
D | AccountListPreferenceControllerTest.java | 110 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(1); in refreshUi_hasNoAccounts_shouldDisplayNoAccountPref() 124 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(2); in refreshUi_hasAccounts_shouldDisplayAccounts() 145 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(2); in refreshUi_hasUnauthenticatedAccount_shouldNotDisplayAccount() 162 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(2); in onAccountsUpdate_isThisUser_shouldForceUpdate() 169 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(1); in onAccountsUpdate_isThisUser_shouldForceUpdate() 181 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(2); in onAccountsUpdate_updatedUserIsNotCurrentUser_shouldNotForceUpdate() 188 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(2); in onAccountsUpdate_updatedUserIsNotCurrentUser_shouldNotForceUpdate() 197 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(2); in onUsersUpdate_shouldForceUpdate() 204 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(1); in onUsersUpdate_shouldForceUpdate()
|
D | ChooseAccountPreferenceControllerTest.java | 108 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in refreshUi_authenticatorPreferencesShouldBeSet() 126 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_hasAccountTypeFilter_shouldFilterAccounts() 141 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_hasAccountExclusionFilter_shouldFilterAccounts() 162 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_doesNotHaveAuthoritiesInFilter_shouldNotBeShown() 183 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in refreshUi_hasAuthoritiesInFilter_shouldBeShown() 194 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in onAccountsUpdate_currentUserUpdated_shouldForceUpdate() 202 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in onAccountsUpdate_currentUserUpdated_shouldForceUpdate()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicesGroupPreferenceControllerTest.java | 127 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_filterMatch_addsToGroup() 153 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_filterMismatch_removesFromGroup() 161 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in refreshUi_filterMismatch_removesFromGroup() 170 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_filterMismatch_removesFromPreferenceMap() 205 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onBluetoothStateChanged_turningOff_clearsPreferences() 209 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in onBluetoothStateChanged_turningOff_clearsPreferences() 221 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onDeviceAdded_refreshesUi() 233 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in onDeviceDeleted_refreshesUi() 239 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onDeviceDeleted_refreshesUi()
|
D | BluetoothDeviceProfilesPreferenceControllerTest.java | 104 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_addsNewProfiles() 112 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in refreshUi_addsNewProfiles() 128 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in refreshUi_removesRemovedProfiles() 135 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_removesRemovedProfiles()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/ |
D | MasterClearAccountsPreferenceControllerTest.java | 91 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onCreate_addsTitlePreference() 138 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in refreshUi_multipleProfiles_showsAllAccounts() 156 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in refreshUi_missingAccountDescription_skipsAccount() 166 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in refreshUi_accountAdded_addsPreferenceToGroup() 173 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in refreshUi_accountAdded_addsPreferenceToGroup() 184 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in refreshUi_accountRemoved_removesPreferenceFromGroup() 190 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_accountRemoved_removesPreferenceFromGroup()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/ |
D | UsersBasePreferenceControllerTest.java | 116 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in onCreate_populatesUsers() 135 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_userChange_updatesGroup() 147 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_userChange_updatesGroup() 160 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_noChange_doesNotUpdateGroup() 167 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_noChange_doesNotUpdateGroup() 183 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in onUsersUpdated_updatesGroup() 195 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in onUsersUpdated_updatesGroup()
|
D | PermissionsPreferenceControllerTest.java | 85 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(5); in testRefreshUi_populatesGroup() 92 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(5); in testRefreshUi_callingTwice_noDuplicates() 135 for (int i = 0; i < preferenceGroup.getPreferenceCount(); i++) { in getPreferenceForRestriction()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/ |
D | TrustedDeviceListPreferenceControllerTest.java | 112 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in onDeviceRemoved_refreshUi() 123 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in onDeviceRemoved_refreshUi() 133 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in onDeviceAdded_refreshUi() 145 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in onDeviceAdded_refreshUi() 157 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in refreshUi_noDevices_hasPassword_hidesGroup() 169 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in refreshUi_devices_hasPassword_showsGroup() 180 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_noPassword_showAuthenticationReminderPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | TrustAgentsPreferenceControllerTest.java | 105 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(0); in onStart_noTrustAgent_shouldNotAddPreference() 125 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(2); in onStart_hasAUninstalledTrustAgent_shouldRemoveOnePreferenceAndLeaveTwoPreferences() 145 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(4); in onStart_hasANewTrustAgent_shouldAddOnePreferenceAndHaveFourPreferences() 160 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(3); in onStart_hasUnrestrictedTrustAgent_shouldAddThreeChangeablePreferences() 161 for (int i = 0; i < mPreferenceScreen.getPreferenceCount(); i++) { in onStart_hasUnrestrictedTrustAgent_shouldAddThreeChangeablePreferences() 181 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(3); in onStart_hasRestrictedTructAgent_shouldAddThreeUnchangeablePreferences() 182 for (int i = 0; i < mPreferenceScreen.getPreferenceCount(); i++) { in onStart_hasRestrictedTructAgent_shouldAddThreeUnchangeablePreferences()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/ |
D | SuggestionsPreferenceControllerTest.java | 164 assertThat(mGroup.getPreferenceCount()).isEqualTo(1); in onLoadFinished_groupContainsSuggestionPreference() 172 assertThat(mGroup.getPreferenceCount()).isEqualTo(1); in onLoadFinished_newSuggestion_addsToGroup() 176 assertThat(mGroup.getPreferenceCount()).isEqualTo(2); in onLoadFinished_newSuggestion_addsToGroup() 182 assertThat(mGroup.getPreferenceCount()).isEqualTo(2); in onLoadFinished_removedSuggestion_removesFromGroup() 186 assertThat(mGroup.getPreferenceCount()).isEqualTo(1); in onLoadFinished_removedSuggestion_removesFromGroup() 228 assertThat(mGroup.getPreferenceCount()).isEqualTo(2); in dismissSuggestion_removesSuggestion() 233 assertThat(mGroup.getPreferenceCount()).isEqualTo(1); in dismissSuggestion_removesSuggestion()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsProfilesControllerTest.java | 206 assertThat(mProfiles.getPreferenceCount()).isEqualTo(mConnectableProfiles.size()); in getProfileSwitches() 209 for (int i = 0; i < mProfiles.getPreferenceCount(); i++) { in getProfileSwitches() 249 assertThat(mProfiles.getPreferenceCount()).isEqualTo(2); in multipleProfiles() 271 assertThat(mProfiles.getPreferenceCount()).isEqualTo(2); in disableThenReenableOneProfile() 279 assertThat(mProfiles.getPreferenceCount()).isEqualTo(2); in disableThenReenableOneProfile() 308 assertThat(mProfiles.getPreferenceCount()).isEqualTo(1); in pbapProfileStartsEnabled() 331 assertThat(mProfiles.getPreferenceCount()).isEqualTo(1); in pbapProfileStartsDisabled() 353 assertThat(mProfiles.getPreferenceCount()).isEqualTo(1); in mapProfile() 399 assertThat(mProfiles.getPreferenceCount()).isEqualTo(1); in highQualityAudio_prefIsAbsentWhenNotSupported() 421 assertThat(mProfiles.getPreferenceCount()).isEqualTo(2); in highQualityAudio_mediaAudioDisabledAndReEnabled()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/ |
D | PermissionAppsFragment.java | 233 int numPreferences = allowed.getPreferenceCount(); in onPermissionsLoaded() 239 numPreferences = allowedForeground.getPreferenceCount(); in onPermissionsLoaded() 245 numPreferences = denied.getPreferenceCount(); in onPermissionsLoaded() 252 for (int i = 0, n = mExtraScreen.getPreferenceCount(); i < n; i++) { in onPermissionsLoaded() 354 for (int i = 0, n = mExtraScreen.getPreferenceCount(); i < n; i++) { in onPermissionsLoaded() 382 grantedCount, mExtraScreen.getPreferenceCount())); in onPermissionsLoaded() 389 if (allowed.getPreferenceCount() == 0) { in onPermissionsLoaded() 395 if (allowedForeground.getPreferenceCount() == 0) { in onPermissionsLoaded() 400 if (denied.getPreferenceCount() == 0) { in onPermissionsLoaded()
|
D | AppPermissionsFragment.java | 282 int count = mExtraScreen.getPreferenceCount(); in updatePreferences() 289 if (allowed.getPreferenceCount() == 0) { in updatePreferences() 295 if (denied.getPreferenceCount() == 0) { in updatePreferences() 319 int numAllowed = allowed.getPreferenceCount(); in logAppPermissionsFragmentView() 338 int numDenied = denied.getPreferenceCount(); in logAppPermissionsFragmentView()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | CollapsibleCategory.java | 48 public int getPreferenceCount() { in getPreferenceCount() method in CollapsibleCategory 52 return super.getPreferenceCount(); in getPreferenceCount() 57 return super.getPreferenceCount(); in getRealPreferenceCount() 67 return super.getPreferenceCount() >= COLLAPSED_ITEM_COUNT + 1; in shouldShowCollapsePref()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceControllerTest.java | 90 assertThat(mLogicalPreferenceGroup.getPreferenceCount()).isEqualTo(0); in defaultInitialize_hasNoPreference() 97 assertThat(mLogicalPreferenceGroup.getPreferenceCount()).isEqualTo(0); in onDataLoaded_dataNotLoaded_hasNoPreference() 106 assertThat(mLogicalPreferenceGroup.getPreferenceCount()).isEqualTo(0); in onDataLoaded_statsSizeZero_hasNoPreference() 123 assertThat(mLogicalPreferenceGroup.getPreferenceCount()).isEqualTo(2); in onDataLoaded_statsLoaded_hasTwoPreference() 146 assertThat(mLogicalPreferenceGroup.getPreferenceCount()).isEqualTo(2); in onDataLoaded_statsLoaded_hasOnePreference()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/ |
D | KeyboardManagementPreferenceControllerTest.java | 113 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(4); in refreshUi_permitAllInputMethods_preferenceCountIs4() 129 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_multiplteAllowedImeByOrganization_allPreferencesVisible() 147 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_multipleEnabledInputMethods_allPreferencesEnabled() 165 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_multipleEnabledInputMethods_allPreferencesChecked() 184 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in refreshUi_disallowedByOrganization_noPreferencesShown() 249 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_oneInputMethod_noneEnabled_oneInputMethodPreferenceInView() 312 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded() 404 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in performClick_toggleTrue_showSecurityDialog_negative_noOtherPreferenceAdded() 508 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in performClick_toggleTrue_showDirectBootDialog_positive_noOtherPreferenceAdded() 637 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in performClick_toggleTrue_showDirectBootDialog_negative_noOtherPreferenceAdded() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/auto/ |
D | AutoPermissionAppsFragment.java | 187 int numPreferences = allowed.getPreferenceCount(); in onPermissionsLoaded() 193 numPreferences = allowedForeground.getPreferenceCount(); in onPermissionsLoaded() 199 numPreferences = denied.getPreferenceCount(); in onPermissionsLoaded() 283 if (allowed.getPreferenceCount() == 0) { in onPermissionsLoaded() 291 allowedForeground.setVisible(allowedForeground.getPreferenceCount() > 0); in onPermissionsLoaded() 293 if (denied.getPreferenceCount() == 0) { in onPermissionsLoaded()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | SettingsPreferenceFragmentTest.java | 78 doReturn(ITEM_COUNT).when(mPreferenceScreen).getPreferenceCount(); in setUp() 96 assertThat(nestedCategory.getPreferenceCount()).isEqualTo(0); in removePreference_nested_shouldRemove() 111 assertThat(mScreen.getPreferenceCount()).isEqualTo(0); in removePreference_flat_shouldRemove() 126 assertThat(mScreen.getPreferenceCount()).isEqualTo(1); in removePreference_doNotExist_shouldNotRemove() 180 when(mPreferenceScreen.getPreferenceCount()).thenReturn(1); in checkAvailablePrefs_selfAvialbalePreferenceNotAvailable_shouldHidePreference()
|
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/ |
D | EmergencyContactsPreferenceTest.java | 84 assertThat(mPreference.getPreferenceCount()).isEqualTo(0); in testDefaultProperties() 105 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in testAddAndRemoveEmergencyContact() 115 assertThat(mPreference.getPreferenceCount()).isEqualTo(0); in testAddAndRemoveEmergencyContact() 144 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in testReloadFromPreference() 161 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in testReloadFromPreference()
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/ |
D | EmergencyContactsPreferenceTest.java | 99 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in testWidgetClick_positiveButton() 105 assertThat(mPreference.getPreferenceCount()).isEqualTo(0); in testWidgetClick_positiveButton() 111 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in testWidgetClick_negativeButton() 117 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in testWidgetClick_negativeButton()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | ExtraSettingsPreferenceControllerTest.java | 89 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in testRefreshUi_notInitializedYet() 101 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in testRefreshUi_initialized_noPreferenceAdded() 126 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in testRefreshUi_initialized_preferenceAdded() 151 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in testRefreshUi_refreshedTwice_shouldOnlyAddPreferenceOnce()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | ChooseAccountPreferenceControllerTest.java | 128 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(0); in updateAuthDescriptions_oneProvider_shouldNotAddPreference() 153 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(0); in updateAuthDescriptions_oneAdminDisabledProvider_shouldNotAddPreference() 175 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(0); in updateAuthDescriptions_noProvider_shouldNotAddPreference() 205 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(2); in updateAuthDescriptions_twoProvider_shouldAddTwoPreference()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/ |
D | LocalePreferenceProviderTest.java | 99 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in testPopulateBasePreference_noSubSections() 124 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in testPopulateBasePreference_withSubSections() 129 assertThat(firstCategory.getPreferenceCount()).isEqualTo(2); in testPopulateBasePreference_withSubSections() 134 assertThat(secondCategory.getPreferenceCount()).isEqualTo(4); in testPopulateBasePreference_withSubSections()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/location/ |
D | RecentLocationRequestsPreferenceControllerTest.java | 87 assertThat(mScreen.getPreferenceCount()).isEqualTo(list.size()); in refreshUi_someRecentRequests_preferencesAddedToScreen() 102 assertThat(mScreen.getPreferenceCount()).isEqualTo(list1.size()); in refreshUi_newRecentRequests_listIsUpdated() 107 assertThat(mScreen.getPreferenceCount()).isEqualTo(list2.size()); in refreshUi_newRecentRequests_listIsUpdated()
|