/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/ |
D | KeyboardManagementPreferenceControllerTest.java | 78 private PreferenceGroup mPreferenceGroup; field in KeyboardManagementPreferenceControllerTest 86 mPreferenceGroup = new LogicalPreferenceGroup(mContext); in setUp() 88 KeyboardManagementPreferenceController.class, mPreferenceGroup); in setUp() 113 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(4); in refreshUi_permitAllInputMethods_preferenceCountIs4() 129 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_multiplteAllowedImeByOrganization_allPreferencesVisible() 130 assertThat(mPreferenceGroup.getPreference(i).isVisible()).isTrue(); in refreshUi_multiplteAllowedImeByOrganization_allPreferencesVisible() 147 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_multipleEnabledInputMethods_allPreferencesEnabled() 148 assertThat(mPreferenceGroup.getPreference(i).isEnabled()).isTrue(); in refreshUi_multipleEnabledInputMethods_allPreferencesEnabled() 165 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_multipleEnabledInputMethods_allPreferencesChecked() 166 assertThat(((SwitchPreference) mPreferenceGroup.getPreference(i)).isChecked()) in refreshUi_multipleEnabledInputMethods_allPreferencesChecked() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountSyncDetailsPreferenceControllerTest.java | 85 private LogicalPreferenceGroup mPreferenceGroup; field in AccountSyncDetailsPreferenceControllerTest 100 mPreferenceGroup = new LogicalPreferenceGroup(mContext); in setUp() 101 helper.setPreference(mPreferenceGroup); in setUp() 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() 217 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_providerLabelShouldBeSet() [all …]
|
D | ChooseAccountPreferenceControllerTest.java | 70 private PreferenceGroup mPreferenceGroup; field in ChooseAccountPreferenceControllerTest 90 mPreferenceGroup = new LogicalPreferenceGroup(application); in setUp() 92 ChooseAccountPreferenceController.class, mPreferenceGroup); in setUp() 108 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in refreshUi_authenticatorPreferencesShouldBeSet() 110 Preference acct1Pref = mPreferenceGroup.getPreference(0); in refreshUi_authenticatorPreferencesShouldBeSet() 113 Preference acct2Pref = mPreferenceGroup.getPreference(1); in refreshUi_authenticatorPreferencesShouldBeSet() 126 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_hasAccountTypeFilter_shouldFilterAccounts() 128 Preference acct1Pref = mPreferenceGroup.getPreference(0); in refreshUi_hasAccountTypeFilter_shouldFilterAccounts() 141 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_hasAccountExclusionFilter_shouldFilterAccounts() 143 Preference acct1Pref = mPreferenceGroup.getPreference(0); in refreshUi_hasAccountExclusionFilter_shouldFilterAccounts() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicesGroupPreferenceControllerTest.java | 76 private PreferenceGroup mPreferenceGroup; field in BluetoothDevicesGroupPreferenceControllerTest 102 mPreferenceGroup = new PreferenceCategory(context); in setUp() 108 controllerHelper.setPreference(mPreferenceGroup); in setUp() 127 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_filterMatch_addsToGroup() 129 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMatch_addsToGroup() 142 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMatch_addsToPreferenceMap() 153 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_filterMismatch_removesFromGroup() 155 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMismatch_removesFromGroup() 161 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in refreshUi_filterMismatch_removesFromGroup() 170 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_filterMismatch_removesFromPreferenceMap() [all …]
|
D | BluetoothDevicePickerPreferenceControllerTest.java | 85 private PreferenceGroup mPreferenceGroup; field in BluetoothDevicePickerPreferenceControllerTest 119 mPreferenceGroup = new LogicalPreferenceGroup(context); in setUp() 135 () -> mControllerHelper.setPreference(mPreferenceGroup)); in checkInitialized_noLaunchIntentSet_throwsIllegalStateException() 145 mControllerHelper.setPreference(mPreferenceGroup); in onStart_appliesFilterType() 149 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onStart_appliesFilterType() 150 assertThat(((BluetoothDevicePreference) mPreferenceGroup.getPreference( in onStart_appliesFilterType() 161 mControllerHelper.setPreference(mPreferenceGroup); in onDeviceClicked_bondedDevice_sendsPickedIntent() 164 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_bondedDevice_sendsPickedIntent() 182 mControllerHelper.setPreference(mPreferenceGroup); in onDeviceClicked_bondedDevice_goesBack() 185 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_bondedDevice_goesBack() [all …]
|
D | BluetoothDeviceProfilesPreferenceControllerTest.java | 65 private PreferenceGroup mPreferenceGroup; field in BluetoothDeviceProfilesPreferenceControllerTest 81 mPreferenceGroup = new PreferenceCategory(context); in setUp() 87 controllerHelper.setPreference(mPreferenceGroup); in setUp() 104 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_addsNewProfiles() 112 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in refreshUi_addsNewProfiles() 114 (BluetoothDeviceProfilePreference) mPreferenceGroup.getPreference(1); in refreshUi_addsNewProfiles() 128 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in refreshUi_removesRemovedProfiles() 135 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_removesRemovedProfiles() 137 (BluetoothDeviceProfilePreference) mPreferenceGroup.getPreference(0); in refreshUi_removesRemovedProfiles() 149 assertThat(mPreferenceGroup.isVisible()).isTrue(); in refreshUi_profiles_showsPreference() [all …]
|
D | BluetoothBondedDevicesPreferenceControllerTest.java | 78 private PreferenceGroup mPreferenceGroup; field in BluetoothBondedDevicesPreferenceControllerTest 111 mPreferenceGroup = new LogicalPreferenceGroup(context); in setUp() 113 BluetoothBondedDevicesPreferenceController.class, mPreferenceGroup); in setUp() 128 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in showsOnlyBondedDevices() 130 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in showsOnlyBondedDevices() 137 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onDeviceBondStateChanged_refreshesUi() 144 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in onDeviceBondStateChanged_refreshesUi() 152 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_notConnected_connectsToDevice() 164 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_connected_showsDisconnectConfirmDialog() 178 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in devicePreferenceButtonClicked_noUserRestrictions_launchesDetailsFragment() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/ |
D | AvailableMediaDeviceGroupControllerTest.java | 81 private PreferenceGroup mPreferenceGroup; field in AvailableMediaDeviceGroupControllerTest 95 mPreferenceGroup = spy(new PreferenceScreen(mContext, null)); in setUp() 96 when(mPreferenceGroup.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp() 109 mAvailableMediaDeviceGroupController.mPreferenceGroup = mPreferenceGroup; in setUp() 121 assertThat(mPreferenceGroup.isVisible()).isTrue(); in onDeviceAdded_firstAdd_becomeVisibleAndPreferenceAdded() 122 assertThat((Preference) mPreferenceGroup.findPreference(PREFERENCE_KEY_1)) in onDeviceAdded_firstAdd_becomeVisibleAndPreferenceAdded() 128 mPreferenceGroup.addPreference(mPreference); in onDeviceRemoved_lastRemove_becomeInvisibleAndPreferenceRemoved() 132 assertThat(mPreferenceGroup.isVisible()).isFalse(); in onDeviceRemoved_lastRemove_becomeInvisibleAndPreferenceRemoved() 133 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in onDeviceRemoved_lastRemove_becomeInvisibleAndPreferenceRemoved() 138 mPreferenceGroup.setVisible(true); in onDeviceRemoved_notLastRemove_stillVisible() [all …]
|
D | ConnectedDeviceGroupControllerTest.java | 74 private PreferenceGroup mPreferenceGroup; field in ConnectedDeviceGroupControllerTest 88 mPreferenceGroup = spy(new PreferenceScreen(mContext, null)); in setUp() 89 when(mPreferenceGroup.getPreferenceManager()).thenReturn(mPreferenceManager); in setUp() 96 mConnectedDeviceGroupController.mPreferenceGroup = mPreferenceGroup; in setUp() 103 assertThat(mPreferenceGroup.isVisible()).isTrue(); in onDeviceAdded_firstAdd_becomeVisibleAndPreferenceAdded() 104 assertThat((Preference) mPreferenceGroup.findPreference(PREFERENCE_KEY_1)) in onDeviceAdded_firstAdd_becomeVisibleAndPreferenceAdded() 110 mPreferenceGroup.addPreference(mPreference); in onDeviceRemoved_lastRemove_becomeInvisibleAndPreferenceRemoved() 114 assertThat(mPreferenceGroup.isVisible()).isFalse(); in onDeviceRemoved_lastRemove_becomeInvisibleAndPreferenceRemoved() 115 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in onDeviceRemoved_lastRemove_becomeInvisibleAndPreferenceRemoved() 120 mPreferenceGroup.setVisible(true); in onDeviceRemoved_notLastRemove_stillVisible() [all …]
|
D | PreviouslyConnectedDevicePreferenceControllerTest.java | 65 private PreferenceGroup mPreferenceGroup; field in PreviouslyConnectedDevicePreferenceControllerTest 78 mPreferenceGroup = spy(new PreferenceCategory(mContext)); in setUp() 79 doReturn(mPreferenceManager).when(mPreferenceGroup).getPreferenceManager(); in setUp() 80 mPreferenceGroup.setVisible(false); in setUp() 81 mPreConnectedDeviceController.setPreferenceGroup(mPreferenceGroup); in setUp() 127 assertThat(mPreferenceGroup.isVisible()).isTrue(); in onDeviceAdded_addDevicePreference_displayIt() 128 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onDeviceAdded_addDevicePreference_displayIt() 138 assertThat(mPreferenceGroup.isVisible()).isTrue(); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 139 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 145 mPreferenceGroup.addPreference(preference); in onDeviceRemoved_removeLastDevice_setInvisible() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/ |
D | MasterClearAccountsPreferenceControllerTest.java | 63 private PreferenceGroup mPreferenceGroup; field in MasterClearAccountsPreferenceControllerTest 75 mPreferenceGroup = new PreferenceCategory(mContext); in setUp() 77 MasterClearAccountsPreferenceController.class, mPreferenceGroup); in setUp() 91 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in onCreate_addsTitlePreference() 92 assertThat(mPreferenceGroup.getPreference(0).getTitle()).isEqualTo( in onCreate_addsTitlePreference() 105 assertThat(mPreferenceGroup.isVisible()).isTrue(); in refreshUi_accountsPresent_showsGroup() 116 assertThat(mPreferenceGroup.isVisible()).isFalse(); in refreshUi_noAccountsPresent_hidesGroup() 138 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in refreshUi_multipleProfiles_showsAllAccounts() 139 assertThat(mPreferenceGroup.getPreference(1).getTitle()).isEqualTo(accountName1); in refreshUi_multipleProfiles_showsAllAccounts() 140 assertThat(mPreferenceGroup.getPreference(2).getTitle()).isEqualTo(accountName2); in refreshUi_multipleProfiles_showsAllAccounts() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/ |
D | LocalePreferenceProviderTest.java | 69 private LogicalPreferenceGroup mPreferenceGroup; field in LocalePreferenceProviderTest 89 mPreferenceGroup = new LogicalPreferenceGroup(mContext); in setUp() 90 screen.addPreference(mPreferenceGroup); in setUp() 108 mLocalePreferenceProvider.populateBasePreference(mPreferenceGroup, mIgnorables, mock( in testPopulateBasePreference_noSubSections() 110 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in testPopulateBasePreference_noSubSections() 133 mLocalePreferenceProvider.populateBasePreference(mPreferenceGroup, mIgnorables, mock( in testPopulateBasePreference_withSubSections() 135 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in testPopulateBasePreference_withSubSections() 137 PreferenceCategory firstCategory = (PreferenceCategory) mPreferenceGroup.getPreference(0); in testPopulateBasePreference_withSubSections() 142 PreferenceCategory secondCategory = (PreferenceCategory) mPreferenceGroup.getPreference(1); in testPopulateBasePreference_withSubSections() 160 mLocalePreferenceProvider.populateBasePreference(mPreferenceGroup, mIgnorables, listener); in testClickListenerTriggered() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/ |
D | UsersBasePreferenceControllerTest.java | 79 private PreferenceGroup mPreferenceGroup; field in UsersBasePreferenceControllerTest 88 mPreferenceGroup = new LogicalPreferenceGroup(context); in setUp() 90 TestUsersBasePreferenceController.class, mPreferenceGroup); in setUp() 116 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in onCreate_populatesUsers() 135 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_userChange_updatesGroup() 136 currentPreferences.add(mPreferenceGroup.getPreference(i)); in refreshUi_userChange_updatesGroup() 147 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_userChange_updatesGroup() 148 newPreferences.add(mPreferenceGroup.getPreference(i)); in refreshUi_userChange_updatesGroup() 160 for (int i = 0; i < mPreferenceGroup.getPreferenceCount(); i++) { in refreshUi_noChange_doesNotUpdateGroup() 161 currentPreferences.add(mPreferenceGroup.getPreference(i)); in refreshUi_noChange_doesNotUpdateGroup() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | ExtraSettingsPreferenceControllerTest.java | 55 private PreferenceGroup mPreferenceGroup; field in ExtraSettingsPreferenceControllerTest 73 mPreferenceGroup = new LogicalPreferenceGroup(mContext); in setUp() 74 mPreferenceGroup.setIntent(FAKE_INTENT); in setUp() 76 ExtraSettingsPreferenceController.class, mPreferenceGroup); in setUp() 94 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in testRefreshUi_notInitializedYet() 106 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in testRefreshUi_initialized_noPreferenceAdded() 107 assertThat(mPreferenceGroup.isVisible()).isEqualTo(false); in testRefreshUi_initialized_noPreferenceAdded() 119 assertThat(mPreferenceGroup.isVisible()).isEqualTo(false); in testRefreshUi_noPreferenceAdded_shouldNotBeVisible() 131 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in testRefreshUi_initialized_preferenceAdded() 143 assertThat(mPreferenceGroup.isVisible()).isEqualTo(true); in testRefreshUi_preferenceAdded_shouldBeVisible() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/savedaccesspoints/ |
D | SavedAccessPointsPreferenceController.java | 56 private PreferenceGroup mPreferenceGroup; field in SavedAccessPointsPreferenceController 80 mPreferenceGroup = screen.findPreference(getPreferenceKey()); in displayPreference() 112 if (mPreferenceGroup == null) { in refreshSavedAccessPoints() 116 final Context prefContext = mPreferenceGroup.getContext(); in refreshSavedAccessPoints() 121 mChildrenCache.cacheRemoveAllPrefs(mPreferenceGroup); in refreshSavedAccessPoints() 140 mPreferenceGroup.addPreference(preference); in refreshSavedAccessPoints() 145 mChildrenCache.removeCachedPrefs(mPreferenceGroup); in refreshSavedAccessPoints() 147 if (mPreferenceGroup.getPreferenceCount() < 1) { in refreshSavedAccessPoints() 149 mPreferenceGroup.setVisible(false); in refreshSavedAccessPoints() 151 mPreferenceGroup.setVisible(true); in refreshSavedAccessPoints() [all …]
|
D | SubscribedAccessPointsPreferenceController.java | 55 private PreferenceGroup mPreferenceGroup; field in SubscribedAccessPointsPreferenceController 79 mPreferenceGroup = screen.findPreference(getPreferenceKey()); in displayPreference() 111 if (mPreferenceGroup == null) { in refreshSubscribedAccessPoints() 117 mPreferenceGroup.setVisible(false); in refreshSubscribedAccessPoints() 121 final Context prefContext = mPreferenceGroup.getContext(); in refreshSubscribedAccessPoints() 126 mChildrenCache.cacheRemoveAllPrefs(mPreferenceGroup); in refreshSubscribedAccessPoints() 143 mPreferenceGroup.addPreference(preference); in refreshSubscribedAccessPoints() 148 mChildrenCache.removeCachedPrefs(mPreferenceGroup); in refreshSubscribedAccessPoints() 150 if (mPreferenceGroup.getPreferenceCount() < 1) { in refreshSubscribedAccessPoints() 153 mPreferenceGroup.setVisible(false); in refreshSubscribedAccessPoints() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/savedaccesspoints/ |
D | SavedAccessPointsPreferenceController.java | 56 private PreferenceGroup mPreferenceGroup; field in SavedAccessPointsPreferenceController 80 mPreferenceGroup = screen.findPreference(getPreferenceKey()); in displayPreference() 112 if (mPreferenceGroup == null) { in refreshSavedAccessPoints() 116 final Context prefContext = mPreferenceGroup.getContext(); in refreshSavedAccessPoints() 121 mChildrenCache.cacheRemoveAllPrefs(mPreferenceGroup); in refreshSavedAccessPoints() 140 mPreferenceGroup.addPreference(preference); in refreshSavedAccessPoints() 145 mChildrenCache.removeCachedPrefs(mPreferenceGroup); in refreshSavedAccessPoints() 147 if (mPreferenceGroup.getPreferenceCount() < 1) { in refreshSavedAccessPoints() 149 mPreferenceGroup.setVisible(false); in refreshSavedAccessPoints() 151 mPreferenceGroup.setVisible(true); in refreshSavedAccessPoints() [all …]
|
D | SubscribedAccessPointsPreferenceController.java | 55 private PreferenceGroup mPreferenceGroup; field in SubscribedAccessPointsPreferenceController 79 mPreferenceGroup = screen.findPreference(getPreferenceKey()); in displayPreference() 111 if (mPreferenceGroup == null) { in refreshSubscribedAccessPoints() 117 mPreferenceGroup.setVisible(false); in refreshSubscribedAccessPoints() 121 final Context prefContext = mPreferenceGroup.getContext(); in refreshSubscribedAccessPoints() 126 mChildrenCache.cacheRemoveAllPrefs(mPreferenceGroup); in refreshSubscribedAccessPoints() 143 mPreferenceGroup.addPreference(preference); in refreshSubscribedAccessPoints() 148 mChildrenCache.removeCachedPrefs(mPreferenceGroup); in refreshSubscribedAccessPoints() 150 if (mPreferenceGroup.getPreferenceCount() < 1) { in refreshSubscribedAccessPoints() 153 mPreferenceGroup.setVisible(false); in refreshSubscribedAccessPoints() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/ |
D | TrustedDeviceListPreferenceControllerTest.java | 73 private PreferenceGroup mPreferenceGroup; field in TrustedDeviceListPreferenceControllerTest 85 mPreferenceGroup = new LogicalPreferenceGroup(mContext); in setUp() 87 TrustedDeviceListPreferenceController.class, mPreferenceGroup); in setUp() 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() 158 assertThat(mPreferenceGroup.isVisible()).isFalse(); in refreshUi_noDevices_hasPassword_hidesGroup() 169 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(3); in refreshUi_devices_hasPassword_showsGroup() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAppsPickerBasePreferenceControllerTest.java | 107 private PreferenceGroup mPreferenceGroup; field in DefaultAppsPickerBasePreferenceControllerTest 115 mPreferenceGroup = new LogicalPreferenceGroup(mContext); in setUp() 117 TestDefaultAppsPickerBasePreferenceController.class, mPreferenceGroup); in setUp() 128 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(1); in refreshUi_noCandidates_hasSingleNoneElement() 130 Preference preference = mPreferenceGroup.getPreference(0); in refreshUi_noCandidates_hasSingleNoneElement() 146 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(0); in refreshUi_noCandidates_noNoneElement() 160 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(2); in refreshUi_hasAdditionalCandidate_hasTwoElements() 175 assertThat(mPreferenceGroup.findPreference(testKey).getSummary()).isEqualTo( in refreshUi_hasAdditionalCandidateAsDefault_secondElementIsSelected() 191 Preference currentDefault = mPreferenceGroup.findPreference(testKey); in performClick_currentDefaultApp_nothingHappened() 192 Preference otherOption = mPreferenceGroup.getPreference(0); in performClick_currentDefaultApp_nothingHappened() [all …]
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/ |
D | AvailableMediaDeviceGroupController.java | 53 PreferenceGroup mPreferenceGroup; field in AvailableMediaDeviceGroupController 87 mPreferenceGroup = screen.findPreference(KEY); in displayPreference() 88 mPreferenceGroup.setVisible(false); in displayPreference() 111 if (mPreferenceGroup.getPreferenceCount() == 0) { in onDeviceAdded() 112 mPreferenceGroup.setVisible(true); in onDeviceAdded() 114 mPreferenceGroup.addPreference(preference); in onDeviceAdded() 119 mPreferenceGroup.removePreference(preference); in onDeviceRemoved() 120 if (mPreferenceGroup.getPreferenceCount() == 0) { in onDeviceRemoved() 121 mPreferenceGroup.setVisible(false); in onDeviceRemoved() 143 mPreferenceGroup. in updateTitle() [all …]
|
D | SavedDeviceGroupController.java | 49 PreferenceGroup mPreferenceGroup; field in SavedDeviceGroupController 76 mPreferenceGroup = screen.findPreference(KEY); in displayPreference() 77 mPreferenceGroup.setVisible(false); in displayPreference() 103 if (mPreferenceGroup.getPreferenceCount() == 0) { in onDeviceAdded() 104 mPreferenceGroup.setVisible(true); in onDeviceAdded() 106 mPreferenceGroup.addPreference(preference); in onDeviceAdded() 111 mPreferenceGroup.removePreference(preference); in onDeviceRemoved() 112 if (mPreferenceGroup.getPreferenceCount() == 0) { in onDeviceRemoved() 113 mPreferenceGroup.setVisible(false); in onDeviceRemoved()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/ |
D | AvailableMediaDeviceGroupController.java | 53 PreferenceGroup mPreferenceGroup; field in AvailableMediaDeviceGroupController 87 mPreferenceGroup = screen.findPreference(KEY); in displayPreference() 88 mPreferenceGroup.setVisible(false); in displayPreference() 109 if (mPreferenceGroup.getPreferenceCount() == 0) { in onDeviceAdded() 110 mPreferenceGroup.setVisible(true); in onDeviceAdded() 112 mPreferenceGroup.addPreference(preference); in onDeviceAdded() 117 mPreferenceGroup.removePreference(preference); in onDeviceRemoved() 118 if (mPreferenceGroup.getPreferenceCount() == 0) { in onDeviceRemoved() 119 mPreferenceGroup.setVisible(false); in onDeviceRemoved() 141 mPreferenceGroup. in updateTitle() [all …]
|
D | SavedDeviceGroupController.java | 49 PreferenceGroup mPreferenceGroup; field in SavedDeviceGroupController 77 mPreferenceGroup = screen.findPreference(KEY); in displayPreference() 78 mPreferenceGroup.setVisible(false); in displayPreference() 102 if (mPreferenceGroup.getPreferenceCount() == 0) { in onDeviceAdded() 103 mPreferenceGroup.setVisible(true); in onDeviceAdded() 105 mPreferenceGroup.addPreference(preference); in onDeviceAdded() 110 mPreferenceGroup.removePreference(preference); in onDeviceRemoved() 111 if (mPreferenceGroup.getPreferenceCount() == 0) { in onDeviceRemoved() 112 mPreferenceGroup.setVisible(false); in onDeviceRemoved()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | AccessPointListPreferenceControllerTest.java | 73 private PreferenceGroup mPreferenceGroup; field in AccessPointListPreferenceControllerTest 84 mPreferenceGroup = new LogicalPreferenceGroup(mContext); in setUp() 87 AccessPointListPreferenceController.class, mPreferenceGroup); in setUp() 109 assertThat(mPreferenceGroup.isVisible()).isEqualTo(false); in refreshUi_emptyList_notVisible() 118 assertThat(mPreferenceGroup.isVisible()).isEqualTo(true); in refreshUi_notEmpty_visible() 127 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(accessPointList.size()); in refreshUi_notEmpty_listCount() 138 (ButtonPasswordEditTextPreference) mPreferenceGroup.getPreference(0); in refreshUi_notSavedAccessPoint_noForgetButton() 150 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(allAccessPointList.size()); in onUxRestrictionsChanged_switchToSavedApOnly() 155 assertThat(mPreferenceGroup.getPreferenceCount()).isEqualTo(savedAccessPointList.size()); in onUxRestrictionsChanged_switchToSavedApOnly() 167 mPreferenceGroup.getPreference(0).performClick(); in performClick_noSecurityNotConnectedAccessPoint_connect() [all …]
|