/packages/apps/Settings/tests/unit/src/com/android/settings/notification/app/ |
D | ChannelListPreferenceControllerTest.java | 90 assertEquals(1, mGroupList.getPreferenceCount()); in testUpdateFullList_incrementalUpdates() 100 assertEquals(1, mGroupList.getPreferenceCount()); in testUpdateFullList_incrementalUpdates() 103 assertEquals(2, group1.getPreferenceCount()); in testUpdateFullList_incrementalUpdates() 115 assertEquals(1, mGroupList.getPreferenceCount()); in testUpdateFullList_incrementalUpdates() 118 assertEquals(3, group1.getPreferenceCount()); in testUpdateFullList_incrementalUpdates() 132 assertEquals(1, mGroupList.getPreferenceCount()); in testUpdateFullList_incrementalUpdates() 135 assertEquals(3, group1.getPreferenceCount()); in testUpdateFullList_incrementalUpdates() 152 assertEquals(2, mGroupList.getPreferenceCount()); in testUpdateFullList_incrementalUpdates() 155 assertEquals(2, group0.getPreferenceCount()); in testUpdateFullList_incrementalUpdates() 163 assertEquals(3, group1.getPreferenceCount()); in testUpdateFullList_incrementalUpdates() [all …]
|
/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 …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | LogicalRootPreferenceGroupTest.java | 56 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in addPreference_toParent_notToGroup() 57 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(2); in addPreference_toParent_notToGroup() 79 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in injectPreferencesToParent_whenOrderingAsAdded() 80 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(4); in injectPreferencesToParent_whenOrderingAsAdded() 111 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in injectPreferencesToParent_NotOrderingAsAdded_fail() 112 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(3); in injectPreferencesToParent_NotOrderingAsAdded_fail()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/ |
D | ProfilesBasePreferenceControllerTest.java | 131 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onCreate_populatesUsers() 139 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in onCreate_populatesOtherUsers() 148 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in onCreate_populatesGuestUsers() 167 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_userChange_updatesGroup() 181 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_userChange_updatesGroup() 195 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_noChange_doesNotUpdateGroup() 202 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_noChange_doesNotUpdateGroup() 216 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in onUsersUpdated_updatesGroup() 230 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in onUsersUpdated_updatesGroup()
|
/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() 62 for (int i = 0; i < super.getPreferenceCount(); i++) { in getVisiblePreferenceCount()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | ChannelListPreferenceController.java | 138 if (groupPrefsList.getPreferenceCount() == 1 in updateFullList() 173 int preferenceCount = groupPrefsList.getPreferenceCount(); in findOrCreateGroupCategoryForKey() 198 int initialPrefCount = groupPrefsList.getPreferenceCount(); in updateGroupList() 207 int postAddPrefCount = groupPrefsList.getPreferenceCount(); in updateGroupList() 230 int preferenceCount = groupPrefGroup.getPreferenceCount(); in findOrCreateChannelPrefForKey() 253 int initialPrefCount = groupPrefGroup.getPreferenceCount(); in updateGroupPreferences() 267 boolean initiallyEmpty = groupPrefGroup.getPreferenceCount() == finalOrderedPrefs.size(); in updateGroupPreferences() 284 int postAddPrefCount = groupPrefGroup.getPreferenceCount(); in updateGroupPreferences() 296 appDefinedGroupToggle != null && groupPrefGroup.getPreferenceCount() > 0 in updateGroupPreferences() 301 while (groupPrefGroup.getPreferenceCount() > 1) { in updateGroupPreferences() [all …]
|
/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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | TrustAgentsPreferenceControllerTest.java | 106 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(0); in onStart_noTrustAgent_shouldNotAddPreference() 127 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(2); in onStart_hasAUninstalledTrustAgent_shouldRemoveOnePreferenceAndLeaveTwoPreferences() 148 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(4); in onStart_hasANewTrustAgent_shouldAddOnePreferenceAndHaveFourPreferences() 164 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(3); in onStart_hasUnrestrictedTrustAgent_shouldAddThreeChangeablePreferences() 165 for (int i = 0; i < mPreferenceScreen.getPreferenceCount(); i++) { in onStart_hasUnrestrictedTrustAgent_shouldAddThreeChangeablePreferences() 186 assertThat(mPreferenceScreen.getPreferenceCount()).isEqualTo(3); in onStart_hasRestrictedTructAgent_shouldAddThreeUnchangeablePreferences() 187 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/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | FactoryResetAccountsPreferenceControllerTest.java | 126 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in onCreate_addsTitlePreference() 173 assertThat(mPreference.getPreferenceCount()).isEqualTo(3); in refreshUi_multipleProfiles_showsAllAccounts() 189 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in refreshUi_missingAccountDescription_skipsAccount() 198 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in refreshUi_accountAdded_addsPreferenceToGroup() 205 assertThat(mPreference.getPreferenceCount()).isEqualTo(3); in refreshUi_accountAdded_addsPreferenceToGroup() 215 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in refreshUi_accountRemoved_removesPreferenceFromGroup() 221 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in refreshUi_accountRemoved_removesPreferenceFromGroup()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceControllerTest.java | 120 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in defaultInitialize_hasNoPreference() 127 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in onDataLoaded_dataNotLoaded_hasNoPreference() 134 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in onDataLoaded_statsSizeZero_hasNoPreference() 152 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in onDataLoaded_statsLoaded_hasTwoPreference() 168 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in onDataLoaded_statsLoaded_hasOnePreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/ |
D | PreviouslyConnectedDevicePreferenceControllerTest.java | 230 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in onDeviceAdded_addDevicePreference_displayIt() 240 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in onDeviceAdded_addDockDevicePreference_displayIt() 263 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(4); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 274 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onDeviceAdded_addPreferenceNotExistInRecentlyDevices_noCrash() 285 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onDeviceAdded_addPreferenceNotExistInRecentlyDevices_doNothing() 300 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onDeviceRemoved_removeLastDevice_showSeeAllPreference() 351 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(4); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 385 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in updatePreferenceGroup_bluetoothIsDisable_shouldShowOnlySeeAllPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsCompanionAppsControllerTest.java | 149 assertThat(mProfiles.getPreferenceCount()).isEqualTo(1); in addOneAssociation_preferenceShouldBeAdded() 153 assertThat(mProfiles.getPreferenceCount()).isEqualTo(0); in addOneAssociation_preferenceShouldBeAdded() 162 assertThat(mProfiles.getPreferenceCount()).isEqualTo(0); in removeOneAssociation_preferenceShouldBeRemoved() 175 assertThat(mProfiles.getPreferenceCount()).isEqualTo(i + 1); in addMultipleAssociations_preferencesShouldBeAdded() 188 assertThat(mProfiles.getPreferenceCount()).isEqualTo(mPackages.size() - i - 1); in removeMultipleAssociations_preferencesShouldBeRemoved()
|
D | BluetoothDetailsProfilesControllerTest.java | 228 assertThat(mProfiles.getPreferenceCount() - 1).isEqualTo(mConnectableProfiles.size()); in getProfileSwitches() 231 for (int i = 0; i < mProfiles.getPreferenceCount(); i++) { in getProfileSwitches() 274 assertThat(mProfiles.getPreferenceCount()).isEqualTo(3); in multipleProfiles() 296 assertThat(mProfiles.getPreferenceCount()).isEqualTo(3); in disableThenReenableOneProfile() 304 assertThat(mProfiles.getPreferenceCount()).isEqualTo(3); in disableThenReenableOneProfile() 337 assertThat(mProfiles.getPreferenceCount()).isEqualTo(2); in pbapProfileStartsEnabled() 364 assertThat(mProfiles.getPreferenceCount()).isEqualTo(2); in pbapProfileStartsDisabled() 388 assertThat(mProfiles.getPreferenceCount()).isEqualTo(2); in mapProfile() 436 assertThat(mProfiles.getPreferenceCount()).isEqualTo(2); in highQualityAudio_prefIsAbsentWhenNotSupported() 459 assertThat(mProfiles.getPreferenceCount()).isEqualTo(3); in highQualityAudio_mediaAudioDisabledAndReEnabled()
|
/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/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | AppConversationListPreferenceControllerTest.java | 101 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in updateState_someConversations_loadsConversations() 121 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in updateState_someConversations_loadsNotDemotedOnly() 135 assertThat(mPreference.getPreferenceCount()).isEqualTo(0); in updateState_noConversations_hides() 158 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in updateState_refreshes() 168 assertThat(mPreference.getPreferenceCount()).isEqualTo(0); in updateState_refreshes()
|
/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/unit/src/com/android/car/settings/location/ |
D | LocationInfotainmentAppsPreferenceControllerTest.java | 112 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in refreshUi_oneInfotainmentApp_showApp() 135 assertThat(mPreference.getPreferenceCount()).isEqualTo(0); in refreshUi_throwsNoException() 144 assertThat(mPreference.getPreferenceCount()).isEqualTo(0); in refreshUi_isRequiredApp() 164 assertThat(mPreference.getPreferenceCount()).isEqualTo(0); in refreshUi_permissionNotGranted_hideApp() 177 assertThat(mPreference.getPreferenceCount()).isEqualTo(0); in refreshUi_appDisabled_hideApp()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/ |
D | AccountListPreferenceControllerTest.java | 145 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in onCreate_hasNoAccounts_shouldDisplayNoAccountPref() 159 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in onCreate_hasAccounts_shouldDisplayAccounts() 180 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in onCreate_hasUnauthenticatedAccount_shouldNotDisplayAccount() 199 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in onAccountsUpdate_isThisUser_shouldForceUpdate() 206 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in onAccountsUpdate_isThisUser_shouldForceUpdate() 219 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in onAccountsUpdate_updatedUserIsNotCurrentUser_shouldNotForceUpdate() 226 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in onAccountsUpdate_updatedUserIsNotCurrentUser_shouldNotForceUpdate() 235 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in onUsersUpdate_shouldForceUpdate() 242 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in onUsersUpdate_shouldForceUpdate()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/inputmethod/ |
D | KeyboardManagementPreferenceControllerTest.java | 154 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(4); in refreshUi_permitAllInputMethods_preferenceCountIs4() 172 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_multiplteAllowedImeByOrganization_allPreferencesVisible() 192 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_multipleEnabledInputMethods_allPreferencesEnabled() 212 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_multipleEnabledInputMethods_allPreferencesChecked() 233 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(infos.size()); in refreshUi_disallowedByOrganization_preferenceShownDisabled() 235 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_disallowedByOrganization_preferenceShownDisabled() 253 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in refreshUi_skipVoiceTyping() 325 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_oneInputMethod_noneEnabled_oneInputMethodPreferenceInView() 410 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded() 510 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in performClick_toggleTrue_showSecurityDialog_negative_noOtherPreferenceAdded() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/ |
D | AudioStreamsProgressCategoryPreferenceTest.java | 59 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in addAudioStreamPreference_singlePreference() 74 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in addAudioStreamPreference_multiPreference_sorted() 91 assertThat(mPreference.getPreferenceCount()).isEqualTo(0); in removeAudioStreamPreferences_shouldBeEmpty()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/ |
D | MicrophoneRecentAccessesPreferenceControllerTest.java | 157 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in refreshUi_noRecentRequests_exceptForSomeRecentSystemAppRequests_showsViewAll() 184 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in refreshUi_noRecentRequests_includingNoSystemAppRequests_doesNotShowViewAll() 214 assertThat(mPreference.getPreferenceCount()).isEqualTo(RECENT_APPS_MAX_COUNT); in refreshUi_someRecentRequests_preferencesAddedToScreen_capsAtMax() 245 assertThat(mPreference.getPreferenceCount()).isEqualTo(list1.size()); in refreshUi_newRecentRequests_listIsUpdated() 250 assertThat(mPreference.getPreferenceCount()).isEqualTo(list2.size()); in refreshUi_newRecentRequests_listIsUpdated()
|
D | CameraRecentAccessesPreferenceControllerTest.java | 160 assertThat(mPreference.getPreferenceCount()).isEqualTo(2); in refreshUi_noRecentRequests_exceptForSomeRecentSystemAppRequests_showsViewAll() 187 assertThat(mPreference.getPreferenceCount()).isEqualTo(1); in refreshUi_noRecentRequests_includingNoSystemAppRequests_doesNotShowViewAll() 217 assertThat(mPreference.getPreferenceCount()).isEqualTo(RECENT_APPS_MAX_COUNT); in refreshUi_someRecentRequests_preferencesAddedToScreen_capsAtMax() 248 assertThat(mPreference.getPreferenceCount()).isEqualTo(list1.size()); in refreshUi_newRecentRequests_listIsUpdated() 253 assertThat(mPreference.getPreferenceCount()).isEqualTo(list2.size()); in refreshUi_newRecentRequests_listIsUpdated()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | SettingsPreferenceFragmentTest.java | 90 doReturn(ITEM_COUNT).when(mPreferenceScreen).getPreferenceCount(); in setUp() 117 assertThat(nestedCategory.getPreferenceCount()).isEqualTo(0); in removePreference_nested_shouldRemove() 132 assertThat(mScreen.getPreferenceCount()).isEqualTo(0); in removePreference_flat_shouldRemove() 147 assertThat(mScreen.getPreferenceCount()).isEqualTo(1); in removePreference_doNotExist_shouldNotRemove() 201 when(mPreferenceScreen.getPreferenceCount()).thenReturn(1); in checkAvailablePrefs_selfAvialbalePreferenceNotAvailable_shouldHidePreference()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | ExtraSettingsPreferenceControllerTest.java | 94 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in testRefreshUi_notInitializedYet() 106 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in testRefreshUi_initialized_noPreferenceAdded() 131 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in testRefreshUi_initialized_preferenceAdded() 156 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in testRefreshUi_refreshedTwice_shouldOnlyAddPreferenceOnce()
|