Home
last modified time | relevance | path

Searched refs:getPreference (Results 1 – 25 of 213) sorted by relevance

123456789

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/
DKeyboardManagementPreferenceControllerTest.java130 assertThat(mPreferenceGroup.getPreference(i).isVisible()).isTrue(); in refreshUi_multiplteAllowedImeByOrganization_allPreferencesVisible()
148 assertThat(mPreferenceGroup.getPreference(i).isEnabled()).isTrue(); in refreshUi_multipleEnabledInputMethods_allPreferencesEnabled()
166 assertThat(((SwitchPreference) mPreferenceGroup.getPreference(i)).isChecked()) in refreshUi_multipleEnabledInputMethods_allPreferencesChecked()
210 Preference preference = mPreferenceGroup.getPreference(0); in refreshUi_verifyPreferenceIcon()
227 Preference preference = mPreferenceGroup.getPreference(0); in refreshUi_verifyPreferenceTitle()
246 Preference preference = mPreferenceGroup.getPreference(0); in refreshUi_verifyPreferenceSummary()
272 assertThat(mPreferenceGroup.getPreference(0).isEnabled()).isTrue(); in refreshUi_oneInputMethod_noneEnabled_preferenceEnabled()
284 assertThat(((SwitchPreference) mPreferenceGroup.getPreference(0)).isChecked()) in refreshUi_oneInputMethod_noneEnabled_preferenceNotChecked()
297 mPreferenceGroup.getPreference(0).performClick(); in performClick_toggleTrue_securityDialogShown()
313 mPreferenceGroup.getPreference(0).performClick(); in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded()
[all …]
DEnabledKeyboardPreferenceControllerTest.java145 Preference preference = mPreferenceGroup.getPreference(0); in refreshUi_verifyPreferenceIcon()
158 Preference preference = mPreferenceGroup.getPreference(0); in refreshUi_verifyPreferenceTitle()
173 Preference preference = mPreferenceGroup.getPreference(0); in refreshUi_verifyPreferenceSummary()
186 Preference preference = mPreferenceGroup.getPreference(0); in performClick_launchSettingsActivity()
210 Preference preference = mPreferenceGroup.getPreference(0); in performClick_noSettingsActivity_noCrash()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiStatusPreferenceController.java49 getPreference().setVisible(true); in updateState()
50 getPreference().setTitle(R.string.wifi_disabled); in updateState()
51 getPreference().setSelectable(false); in updateState()
52 getPreference().setIcon(R.drawable.ic_settings_about); in updateState()
55 getPreference().setVisible(true); in updateState()
56 getPreference().setTitle(R.string.loading_wifi_list); in updateState()
57 getPreference().setSelectable(true); in updateState()
58 getPreference().setIcon(null); in updateState()
61 getPreference().setVisible(false); in updateState()
DWifiTetherApBandPreferenceController.java55 getPreference().setEntries(mBandSummaries); in onCreateInternal()
56 getPreference().setEntryValues(mBandEntries); in onCreateInternal()
147 getPreference().setValue(mBandEntries[WifiConfiguration.AP_BAND_2GHZ]); in updateApBand()
149 getPreference().setValue(mBandEntries[mBandIndex]); in updateApBand()
DWifiTetherPasswordPreferenceController.java87 getPreference().setValidator(PASSWORD_VALIDATOR); in onCreateInternal()
176 getPreference().setText(mPassword); in updatePasswordDisplay()
177 getPreference().setVisible(mSecurityType != WifiConfiguration.KeyMgmt.NONE); in updatePasswordDisplay()
178 getPreference().setSummary(getSummary()); in updatePasswordDisplay()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceControllerTest.java217 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_providerLabelShouldBeSet()
232 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncDisabled_shouldNotBeChecked()
247 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOn_syncDisabled_shouldBeChecked()
262 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncEnabled_shouldBeChecked()
276 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncDisabled_summaryShouldBeSet()
296 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncEnabled_activelySyncing_summaryShouldBeSet()
314 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncEnabled_syncHasHappened_summaryShouldBeSet()
339 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_activelySyncing_notInitialSync_shouldHaveActiveSyncIcon()
359 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncPending_notInitialSync_shouldHaveActiveSyncIcon()
381 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncFailed_shouldHaveProblemSyncIcon()
[all …]
DChooseAccountPreferenceControllerTest.java110 Preference acct1Pref = mPreferenceGroup.getPreference(0); in refreshUi_authenticatorPreferencesShouldBeSet()
113 Preference acct2Pref = mPreferenceGroup.getPreference(1); in refreshUi_authenticatorPreferencesShouldBeSet()
128 Preference acct1Pref = mPreferenceGroup.getPreference(0); in refreshUi_hasAccountTypeFilter_shouldFilterAccounts()
143 Preference acct1Pref = mPreferenceGroup.getPreference(0); in refreshUi_hasAccountExclusionFilter_shouldFilterAccounts()
164 Preference acct2Pref = mPreferenceGroup.getPreference(0); in refreshUi_doesNotHaveAuthoritiesInFilter_shouldNotBeShown()
185 Preference acct1Pref = mPreferenceGroup.getPreference(0); in refreshUi_hasAuthoritiesInFilter_shouldBeShown()
188 Preference acct2Pref = mPreferenceGroup.getPreference(1); in refreshUi_hasAuthoritiesInFilter_shouldBeShown()
203 Preference acct3Pref = mPreferenceGroup.getPreference(2); in onAccountsUpdate_currentUserUpdated_shouldForceUpdate()
209 Preference acct1Pref = mPreferenceGroup.getPreference(0); in onPreferenceClick_shouldStartActivity()
226 Preference acct1Pref = mPreferenceGroup.getPreference(0); in onAccountAdded_shouldGoBack()
DAccountListPreferenceControllerTest.java111 Preference noAccountPref = mPreferenceCategory.getPreference(0); in refreshUi_hasNoAccounts_shouldDisplayNoAccountPref()
126 Preference firstPref = mPreferenceCategory.getPreference(0); in refreshUi_hasAccounts_shouldDisplayAccounts()
130 Preference secondPref = mPreferenceCategory.getPreference(1); in refreshUi_hasAccounts_shouldDisplayAccounts()
147 Preference firstPref = mPreferenceCategory.getPreference(0); in refreshUi_hasUnauthenticatedAccount_shouldNotDisplayAccount()
151 Preference secondPref = mPreferenceCategory.getPreference(1); in refreshUi_hasUnauthenticatedAccount_shouldNotDisplayAccount()
170 Preference firstPref = mPreferenceCategory.getPreference(0); in onAccountsUpdate_isThisUser_shouldForceUpdate()
205 Preference firstPref = mPreferenceCategory.getPreference(0); in onUsersUpdate_shouldForceUpdate()
215 Preference firstPref = mPreferenceCategory.getPreference(0); in onAccountPreferenceClicked_shouldLaunchAccountDetailsFragment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsPowerRoleControllerTest.java107 SwitchPreference pref = getPreference(); in displayRefresh_sink_shouldUncheck()
119 SwitchPreference pref = getPreference(); in displayRefresh_source_shouldCheck()
153 SwitchPreference pref = getPreference(); in onClick_sink_shouldSetSource()
166 SwitchPreference pref = getPreference(); in onClickTwice_sink_shouldSetSourceOnce()
180 SwitchPreference pref = getPreference(); in onClickDeviceAndRefresh_success_shouldClearSubtext()
198 SwitchPreference pref = getPreference(); in onClickDeviceAndRefresh_failed_shouldShowFailureText()
217 SwitchPreference pref = getPreference(); in onClickDevice_timedOut_shouldShowFailureText()
232 private SwitchPreference getPreference() { in getPreference() method in UsbDetailsPowerRoleControllerTest
233 return (SwitchPreference) mPreference.getPreference(0); in getPreference()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/language/
DLocalePreferenceProviderTest.java137 PreferenceCategory firstCategory = (PreferenceCategory) mPreferenceGroup.getPreference(0); in testPopulateBasePreference_withSubSections()
142 PreferenceCategory secondCategory = (PreferenceCategory) mPreferenceGroup.getPreference(1); in testPopulateBasePreference_withSubSections()
162 mPreferenceGroup.getPreference(0).performClick(); in testClickListenerTriggered()
163 verify(listener).onPreferenceClick(mPreferenceGroup.getPreference(0)); in testClickListenerTriggered()
164 mPreferenceGroup.getPreference(1).performClick(); in testClickListenerTriggered()
165 verify(listener).onPreferenceClick(mPreferenceGroup.getPreference(1)); in testClickListenerTriggered()
166 mPreferenceGroup.getPreference(2).performClick(); in testClickListenerTriggered()
167 verify(listener).onPreferenceClick(mPreferenceGroup.getPreference(2)); in testClickListenerTriggered()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDevicesGroupPreferenceControllerTest.java129 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMatch_addsToGroup()
142 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMatch_addsToPreferenceMap()
155 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMismatch_removesFromGroup()
172 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMismatch_removesFromPreferenceMap()
223 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceAdded_refreshesUi()
241 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceDeleted_refreshesUi()
265 (BluetoothDevicePreference) mPreferenceGroup.getPreference(1); in preferenceClicked_callsOnDeviceClicked()
279 (BluetoothDevicePreference) mPreferenceGroup.getPreference(1); in preferenceClicked_handled()
DBluetoothDevicePickerPreferenceControllerTest.java150 assertThat(((BluetoothDevicePreference) mPreferenceGroup.getPreference( in onStart_appliesFilterType()
164 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_bondedDevice_sendsPickedIntent()
185 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_bondedDevice_goesBack()
200 (BluetoothDevicePreference) mPreferenceGroup.getPreference(1); in onDeviceClicked_unbondedDevice_doesNotNeedAuth_sendsPickedIntent()
217 (BluetoothDevicePreference) mPreferenceGroup.getPreference(1); in onDeviceClicked_unbondedDevice_needsAuth_startsPairing()
232 (BluetoothDevicePreference) mPreferenceGroup.getPreference(1); in onDeviceClicked_unbondedDevice_needsAuth_pairingStartFails_resumesScanning()
249 (BluetoothDevicePreference) mPreferenceGroup.getPreference(1); in onDeviceBondStateChanged_selectedDeviceBonded_sendsPickedIntent()
270 (BluetoothDevicePreference) mPreferenceGroup.getPreference(1); in onDeviceBondStateChanged_selectedDeviceBonded_goesBack()
DBluetoothUnbondedDevicesPreferenceControllerTest.java143 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in showsUnbondedDevices()
153 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in configUnbondedDeviceFilterIncludesPhones_showsUnbondedPhones()
161 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_startsPairing()
172 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_pairingStartFails_resumesScanning()
186 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_requestsPhonebookAccess()
198 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_requestsMessageAccess()
DBluetoothDeviceProfilesPreferenceControllerTest.java114 (BluetoothDeviceProfilePreference) mPreferenceGroup.getPreference(1); in refreshUi_addsNewProfiles()
137 (BluetoothDeviceProfilePreference) mPreferenceGroup.getPreference(0); in refreshUi_removesRemovedProfiles()
168 (BluetoothDeviceProfilePreference) mPreferenceGroup.getPreference(0); in profileChecked_setsProfilePreferred()
183 (BluetoothDeviceProfilePreference) mPreferenceGroup.getPreference(0); in profileChecked_connectsToProfile()
199 (BluetoothDeviceProfilePreference) mPreferenceGroup.getPreference(0); in profileUnchecked_setsProfileNotPreferred()
215 (BluetoothDeviceProfilePreference) mPreferenceGroup.getPreference(0); in profileUnchecked_disconnectsFromProfile()
DBluetoothBondedDevicesPreferenceControllerTest.java130 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in showsOnlyBondedDevices()
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()
193 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in devicePreferenceButton_disallowConfigBluetooth_actionStaysHidden()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceControllerTest.java117 TwoStatePreference preference = (TwoStatePreference) mPreferenceGroup.getPreference(0); in onStart_serviceAccessGranted_setsPreferenceChecked()
129 TwoStatePreference preference = (TwoStatePreference) mPreferenceGroup.getPreference(0); in onStart_serviceAccessNotGranted_setsPreferenceUnchecked()
139 TwoStatePreference preference = (TwoStatePreference) mPreferenceGroup.getPreference(0); in preferenceClicked_serviceAccessGranted_showsRevokeConfirmDialog()
154 TwoStatePreference preference = (TwoStatePreference) mPreferenceGroup.getPreference(0); in preferenceClicked_serviceAccessNotGranted_showsGrantConfirmDialog()
171 TwoStatePreference preference = (TwoStatePreference) mPreferenceGroup.getPreference(0); in revokeConfirmed_revokesNotificationAccess()
194 TwoStatePreference preference = (TwoStatePreference) mPreferenceGroup.getPreference(0); in revokeConfirmed_notificationPolicyAccessNotGranted_removesAutomaticZenRules()
225 TwoStatePreference preference = (TwoStatePreference) mPreferenceGroup.getPreference(0); in grantConfirmed_grantsNotificationAccess()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUsersBasePreferenceControllerTest.java136 currentPreferences.add(mPreferenceGroup.getPreference(i)); in refreshUi_userChange_updatesGroup()
148 newPreferences.add(mPreferenceGroup.getPreference(i)); in refreshUi_userChange_updatesGroup()
161 currentPreferences.add(mPreferenceGroup.getPreference(i)); in refreshUi_noChange_doesNotUpdateGroup()
168 newPreferences.add(mPreferenceGroup.getPreference(i)); in refreshUi_noChange_doesNotUpdateGroup()
184 currentPreferences.add(mPreferenceGroup.getPreference(i)); in onUsersUpdated_updatesGroup()
196 newPreferences.add(mPreferenceGroup.getPreference(i)); in onUsersUpdated_updatesGroup()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DMasterClearAccountsPreferenceControllerTest.java92 assertThat(mPreferenceGroup.getPreference(0).getTitle()).isEqualTo( in onCreate_addsTitlePreference()
139 assertThat(mPreferenceGroup.getPreference(1).getTitle()).isEqualTo(accountName1); in refreshUi_multipleProfiles_showsAllAccounts()
140 assertThat(mPreferenceGroup.getPreference(2).getTitle()).isEqualTo(accountName2); in refreshUi_multipleProfiles_showsAllAccounts()
157 assertThat(mPreferenceGroup.getPreference(1).getTitle()).isNotEqualTo(accountNameNoDesc); in refreshUi_missingAccountDescription_skipsAccount()
174 assertThat(mPreferenceGroup.getPreference(2).getTitle()).isEqualTo(addedAccountName); in refreshUi_accountAdded_addsPreferenceToGroup()
191 assertThat(mPreferenceGroup.getPreference(0).getTitle()).isNotEqualTo(accountNameToRemove); in refreshUi_accountRemoved_removesPreferenceFromGroup()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DAccessPointListPreferenceControllerTest.java138 (ButtonPasswordEditTextPreference) mPreferenceGroup.getPreference(0); in refreshUi_notSavedAccessPoint_noForgetButton()
167 mPreferenceGroup.getPreference(0).performClick(); in performClick_noSecurityNotConnectedAccessPoint_connect()
178 mPreferenceGroup.getPreference(0).performClick(); in performClick_activeAccessPoint_showDetailsFragment()
190 mPreferenceGroup.getPreference(0).performClick(); in performClick_savedAccessPoint_connect()
213 (ButtonPasswordEditTextPreference) mPreferenceGroup.getPreference(0); in performButtonClick_savedAccessPoint_forgetsNetwork()
231 mPreferenceGroup.getPreference(0).callChangeListener(password); in callChangeListener_newSecureAccessPoint_wifiAdded()
251 mPreferenceGroup.getPreference(0).callChangeListener(password); in callChangeListener_newSecureAccessPoint_wifiEnabled()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/suggestions/
DSuggestionsPreferenceControllerTest.java165 Preference addedPref = mGroup.getPreference(0); in onLoadFinished_groupContainsSuggestionPreference()
187 assertThat(((SuggestionPreference) mGroup.getPreference(0)).getSuggestion()).isEqualTo( in onLoadFinished_removedSuggestion_removesFromGroup()
229 SuggestionPreference pref = (SuggestionPreference) mGroup.getPreference(0); in dismissSuggestion_removesSuggestion()
234 assertThat(((SuggestionPreference) mGroup.getPreference(0)).getSuggestion()).isEqualTo( in dismissSuggestion_removesSuggestion()
241 SuggestionPreference pref = (SuggestionPreference) mGroup.getPreference(0); in dismissSuggestion_lastSuggestion_hidesGroup()
251 SuggestionPreference pref = (SuggestionPreference) mGroup.getPreference(0); in dismissSuggestion_callsSuggestionControllerDismiss()
/packages/apps/Car/Settings/src/com/android/car/settings/suggestions/
DSuggestionsPreferenceController.java170 getPreference().removePreference( in updateSuggestionPreferences()
171 getPreference().findPreference(getSuggestionPreferenceKey(oldSuggestion))); in updateSuggestionPreferences()
177 Preference curPref = getPreference().findPreference( in updateSuggestionPreferences()
182 getPreference().addPreference(newSuggPref); in updateSuggestionPreferences()
218 getPreference().removePreference(preference); in dismissSuggestion()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageUsageBasePreferenceController.java66 getPreference().setSummary(R.string.memory_calculating_size); in onCreateInternal()
67 getPreference().setMax(PROGRESS_MAX); in onCreateInternal()
93 getPreference().setSummary( in setStorageSize()
105 getPreference().setProgress(progressPercent); in setStorageSize()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DExtraSettingsPreferenceController.java85 for (int i = 0; i < getPreference().getPreferenceCount(); i++) { in onApplyUxRestrictions()
86 Preference preference = getPreference().getPreference(i); in onApplyUxRestrictions()
123 getPreference().addPreference(setting); in addExtraSettings()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageMediaCategoryDetailPreferenceControllerTest.java94 assertThat(mLogicalPreferenceGroup.getPreference(0).getTitle()).isEqualTo(LABEL); in onDataLoaded_addPreference_hasTwoPreferences()
95 assertThat(mLogicalPreferenceGroup.getPreference(0).getSummary()).isEqualTo(SIZE_STR); in onDataLoaded_addPreference_hasTwoPreferences()
97 assertThat(mLogicalPreferenceGroup.getPreference(1).getTitle()).isEqualTo( in onDataLoaded_addPreference_hasTwoPreferences()
99 assertThat(mLogicalPreferenceGroup.getPreference(1).getSummary()).isEqualTo( in onDataLoaded_addPreference_hasTwoPreferences()
DStorageApplicationListPreferenceControllerTest.java89 assertThat(mLogicalPreferenceGroup.getPreference(0).getTitle()).isEqualTo(LABEL); in onDataLoaded_addPreference_hasOnePreference()
90 assertThat(mLogicalPreferenceGroup.getPreference(0).getSummary()).isEqualTo(SIZE_STR); in onDataLoaded_addPreference_hasOnePreference()
121 assertThat(mLogicalPreferenceGroup.getPreference(0).getTitle()).isEqualTo(LABEL); in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()
122 assertThat(mLogicalPreferenceGroup.getPreference(0).getSummary()).isEqualTo( in onDataLoaded_updatePreference_hasOnePreferenceWithUpdatedValues()

123456789