Home
last modified time | relevance | path

Searched refs:pref (Results 1 – 25 of 440) sorted by relevance

12345678910>>...18

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DConversationPriorityPreferenceControllerTest.java117 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_disabledByAdmin() local
118 mController.updateState(pref); in testUpdateState_disabledByAdmin()
120 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin()
131 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_notConfigurable() local
132 mController.updateState(pref); in testUpdateState_notConfigurable()
134 assertFalse(pref.isEnabled()); in testUpdateState_notConfigurable()
146 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_systemButConfigurable() local
147 mController.updateState(pref); in testUpdateState_systemButConfigurable()
149 assertTrue(pref.isEnabled()); in testUpdateState_systemButConfigurable()
161 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_defaultApp() local
[all …]
DSoundPreferenceControllerTest.java142 NotificationSoundPreference pref = mock(NotificationSoundPreference.class); in testDisplayPreference_savesPreference() local
143 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testDisplayPreference_savesPreference()
147 verify(pref, times(1)).onActivityResult(anyInt(), anyInt(), any()); in testDisplayPreference_savesPreference()
158 Preference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_disabledByAdmin() local
159 mController.updateState(pref); in testUpdateState_disabledByAdmin()
161 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin()
172 Preference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_notBlockable() local
173 mController.updateState(pref); in testUpdateState_notBlockable()
175 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable()
188 NotificationSoundPreference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_configurable() local
[all …]
DBubblePreferenceControllerTest.java251 Preference pref = new RestrictedSwitchPreference(mContext); in updateState_disabledByAdmin() local
252 mController.updateState(pref); in updateState_disabledByAdmin()
254 assertFalse(pref.isEnabled()); in updateState_disabledByAdmin()
266 BubblePreference pref = new BubblePreference(mContext); in updateState_app_disabledByAdmin() local
267 mAppPageController.updateState(pref); in updateState_app_disabledByAdmin()
269 assertFalse(pref.isEnabled()); in updateState_app_disabledByAdmin()
281 Preference pref = new RestrictedSwitchPreference(mContext); in updateState_channel_channelNotBlockable() local
282 mController.updateState(pref); in updateState_channel_channelNotBlockable()
284 assertTrue(pref.isEnabled()); in updateState_channel_channelNotBlockable()
296 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in updateState_channel() local
[all …]
DAllowSoundPreferenceControllerTest.java136 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local
137 mController.updateState(pref); in testUpdateState_disabledByAdmin()
139 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin()
150 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_notBlockable_oem() local
151 mController.updateState(pref); in testUpdateState_notBlockable_oem()
153 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable_oem()
163 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_configurable() local
164 mController.updateState(pref); in testUpdateState_configurable()
166 assertTrue(pref.isEnabled()); in testUpdateState_configurable()
175 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_checkedForHighImportanceChannel() local
[all …]
DBadgePreferenceControllerTest.java184 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local
185 mController.updateState(pref); in testUpdateState_disabledByAdmin()
187 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin()
198 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_channelNotBlockable() local
199 mController.updateState(pref); in testUpdateState_channelNotBlockable()
201 assertTrue(pref.isEnabled()); in testUpdateState_channelNotBlockable()
211 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_channel() local
212 mController.updateState(pref); in testUpdateState_channel()
214 assertTrue(pref.isChecked()); in testUpdateState_channel()
218 mController.updateState(pref); in testUpdateState_channel()
[all …]
DDndPreferenceControllerTest.java107 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_disabledByAdmin() local
108 mController.updateState(pref); in testUpdateState_disabledByAdmin()
110 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin()
120 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_notBlockable() local
121 mController.updateState(pref); in testUpdateState_notBlockable()
123 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable()
133 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_configurable() local
134 mController.updateState(pref); in testUpdateState_configurable()
136 assertTrue(pref.isEnabled()); in testUpdateState_configurable()
145 RestrictedSwitchPreference pref = in testUpdateState_bypassDnd() local
[all …]
DImportancePreferenceControllerTest.java155 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_disabledByAdmin() local
156 mController.updateState(pref); in testUpdateState_disabledByAdmin()
158 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin()
169 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_notConfigurable() local
170 mController.updateState(pref); in testUpdateState_notConfigurable()
172 assertFalse(pref.isEnabled()); in testUpdateState_notConfigurable()
184 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_systemButConfigurable() local
185 mController.updateState(pref); in testUpdateState_systemButConfigurable()
187 assertTrue(pref.isEnabled()); in testUpdateState_systemButConfigurable()
199 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_defaultApp() local
[all …]
DVibrationPreferenceControllerTest.java137 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_disabledByAdmin() local
138 mController.updateState(pref); in testUpdateState_disabledByAdmin()
140 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin()
150 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_notBlockable() local
151 mController.updateState(pref); in testUpdateState_notBlockable()
153 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable()
163 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_configurable() local
164 mController.updateState(pref); in testUpdateState_configurable()
166 assertTrue(pref.isEnabled()); in testUpdateState_configurable()
175 RestrictedSwitchPreference pref = in testUpdateState_vibrateOn() local
[all …]
DHighImportancePreferenceControllerTest.java138 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_disabledByAdmin() local
139 mController.updateState(pref); in testUpdateState_disabledByAdmin()
141 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin()
152 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_notConfigurable() local
153 mController.updateState(pref); in testUpdateState_notConfigurable()
155 assertFalse(pref.isEnabled()); in testUpdateState_notConfigurable()
167 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_systemButConfigurable() local
168 mController.updateState(pref); in testUpdateState_systemButConfigurable()
170 assertTrue(pref.isEnabled()); in testUpdateState_systemButConfigurable()
182 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_defaultApp() local
[all …]
DMinImportancePreferenceControllerTest.java138 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_disabledByAdmin() local
139 mController.updateState(pref); in testUpdateState_disabledByAdmin()
141 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin()
152 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_notConfigurable() local
153 mController.updateState(pref); in testUpdateState_notConfigurable()
155 assertFalse(pref.isEnabled()); in testUpdateState_notConfigurable()
167 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_systemButConfigurable() local
168 mController.updateState(pref); in testUpdateState_systemButConfigurable()
170 assertTrue(pref.isEnabled()); in testUpdateState_systemButConfigurable()
182 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_defaultApp() local
[all …]
DVisibilityPreferenceControllerTest.java165 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_disabledByAdmin_disableSecure() local
166 mController.updateState(pref); in testUpdateState_disabledByAdmin_disableSecure()
168 verify(pref, times(2)).addRestrictedItem(any()); in testUpdateState_disabledByAdmin_disableSecure()
187 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_disabledByAdmin_disableUnredacted() local
188 mController.updateState(pref); in testUpdateState_disabledByAdmin_disableUnredacted()
190 verify(pref, times(1)).addRestrictedItem(any()); in testUpdateState_disabledByAdmin_disableUnredacted()
202 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noLockScreenNotificationsGlobally() local
203 mController.updateState(pref); in testUpdateState_noLockScreenNotificationsGlobally()
207 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noLockScreenNotificationsGlobally()
227 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noLockScreenNotificationsGloballyInProfile() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStorageSettingsTest.java138 final ActionButtonsPreference pref = mock(ActionButtonsPreference.class); in createMock() local
139 when(pref.setButton1Text(anyInt())).thenReturn(pref); in createMock()
140 when(pref.setButton1Icon(anyInt())).thenReturn(pref); in createMock()
141 when(pref.setButton1Enabled(anyBoolean())).thenReturn(pref); in createMock()
142 when(pref.setButton1Visible(anyBoolean())).thenReturn(pref); in createMock()
143 when(pref.setButton1OnClickListener(any(View.OnClickListener.class))).thenReturn(pref); in createMock()
145 when(pref.setButton2Text(anyInt())).thenReturn(pref); in createMock()
146 when(pref.setButton2Icon(anyInt())).thenReturn(pref); in createMock()
147 when(pref.setButton2Enabled(anyBoolean())).thenReturn(pref); in createMock()
148 when(pref.setButton2Visible(anyBoolean())).thenReturn(pref); in createMock()
[all …]
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipEditor.java329 EditTextPreference pref = (EditTextPreference) key.preference; in isEditTextEmpty() local
330 return TextUtils.isEmpty(pref.getText()) in isEditTextEmpty()
331 || pref.getSummary().equals(getString(key.defaultSummary)); in isEditTextEmpty()
340 EditTextPreference pref = (EditTextPreference) p; in validateAndSetResult() local
348 pref.setText(getDefaultDisplayName()); in validateAndSetResult()
355 pref.setText(getString(R.string.default_port)); in validateAndSetResult()
359 firstEmptyFieldTitle = pref.getTitle(); in validateAndSetResult()
445 public boolean onPreferenceChange(Preference pref, Object newValue) { in onPreferenceChange() argument
450 if (pref instanceof CheckBoxPreference) { in onPreferenceChange()
456 pref.setSummary(getPreferenceKey(pref).defaultSummary); in onPreferenceChange()
[all …]
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DAppPermissionsFragmentWear.java181 final SwitchPreference pref = createSwitchPreferenceForPermission(group, perm); in initializePermissionGroupList() local
182 showOrAddToNonSystemPreferences(pref, nonSystemPreferences, isPlatform); in initializePermissionGroupList()
185 final SwitchPreference pref = createSwitchPreferenceForGroup(group); in initializePermissionGroupList() local
186 showOrAddToNonSystemPreferences(pref, nonSystemPreferences, isPlatform); in initializePermissionGroupList()
196 private void showOrAddToNonSystemPreferences(SwitchPreference pref, in showOrAddToNonSystemPreferences() argument
201 getPreferenceScreen().addPreference(pref); in showOrAddToNonSystemPreferences()
203 nonSystemPreferences.add(pref); in showOrAddToNonSystemPreferences()
209 final SwitchPreference pref = new PermissionSwitchPreference(getActivity()); in createSwitchPreferenceForPermission() local
210 pref.setKey(perm.name); in createSwitchPreferenceForPermission()
211 pref.setTitle(perm.loadLabel(mPackageManager)); in createSwitchPreferenceForPermission()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsButtonsControllerTest.java189 final ActionButtonsPreference pref = mock(ActionButtonsPreference.class); in createMock() local
190 when(pref.setButton1Text(anyInt())).thenReturn(pref); in createMock()
191 when(pref.setButton1Icon(anyInt())).thenReturn(pref); in createMock()
192 when(pref.setButton1Enabled(anyBoolean())).thenReturn(pref); in createMock()
193 when(pref.setButton1Visible(anyBoolean())).thenReturn(pref); in createMock()
194 when(pref.setButton1OnClickListener(any(View.OnClickListener.class))).thenReturn(pref); in createMock()
196 when(pref.setButton2Text(anyInt())).thenReturn(pref); in createMock()
197 when(pref.setButton2Icon(anyInt())).thenReturn(pref); in createMock()
198 when(pref.setButton2Enabled(anyBoolean())).thenReturn(pref); in createMock()
199 when(pref.setButton2Visible(anyBoolean())).thenReturn(pref); in createMock()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsPowerRoleControllerTest.java107 SwitchPreference pref = getPreference(); in displayRefresh_sink_shouldUncheck() local
108 assertThat(pref.isChecked()).isFalse(); in displayRefresh_sink_shouldUncheck()
119 SwitchPreference pref = getPreference(); in displayRefresh_source_shouldCheck() local
120 assertThat(pref.isChecked()).isTrue(); in displayRefresh_source_shouldCheck()
153 SwitchPreference pref = getPreference(); in onClick_sink_shouldSetSource() local
154 pref.performClick(); in onClick_sink_shouldSetSource()
157 assertThat(pref.getSummary()) in onClick_sink_shouldSetSource()
166 SwitchPreference pref = getPreference(); in onClickTwice_sink_shouldSetSourceOnce() local
167 pref.performClick(); in onClickTwice_sink_shouldSetSourceOnce()
169 assertThat(pref.getSummary()) in onClickTwice_sink_shouldSetSourceOnce()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceControllerTest.java217 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_providerLabelShouldBeSet() local
218 assertThat(pref.getTitle()).isEqualTo("label"); in refreshUi_providerLabelShouldBeSet()
232 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncDisabled_shouldNotBeChecked() local
233 assertThat(pref.isChecked()).isFalse(); in refreshUi_masterSyncOff_syncDisabled_shouldNotBeChecked()
247 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOn_syncDisabled_shouldBeChecked() local
248 assertThat(pref.isChecked()).isTrue(); in refreshUi_masterSyncOn_syncDisabled_shouldBeChecked()
262 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncEnabled_shouldBeChecked() local
263 assertThat(pref.isChecked()).isTrue(); in refreshUi_masterSyncOff_syncEnabled_shouldBeChecked()
276 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncDisabled_summaryShouldBeSet() local
277 assertThat(pref.getSummary()).isEqualTo(mContext.getString(R.string.sync_disabled)); in refreshUi_syncDisabled_summaryShouldBeSet()
[all …]
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DAllAppPermissionsFragment.java173 PreferenceGroup pref = findOrCreate(group != null ? group : perm, pm, prefs); in updateUi() local
174 pref.addPreference(getPreference(perm, group)); in updateUi()
218 PreferenceGroup pref = (PreferenceGroup) findPreference(group.name); in findOrCreate() local
219 if (pref == null) { in findOrCreate()
220 pref = new PreferenceCategory(getActivity()); in findOrCreate()
221 pref.setKey(group.name); in findOrCreate()
222 pref.setLayoutResource(R.layout.preference_category_material); in findOrCreate()
223 pref.setTitle(group.loadLabel(pm)); in findOrCreate()
224 prefs.add(pref); in findOrCreate()
225 getPreferenceScreen().addPreference(pref); in findOrCreate()
[all …]
/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardFeatureProviderImpl.java124 boolean forceRoundedIcon, int sourceMetricsCategory, Preference pref, Tile tile, in bindPreferenceToTileAndGetObservers() argument
126 if (pref == null) { in bindPreferenceToTileAndGetObservers()
130 pref.setKey(key); in bindPreferenceToTileAndGetObservers()
132 pref.setKey(getDashboardKeyForTile(tile)); in bindPreferenceToTileAndGetObservers()
135 DynamicDataObserver observer = bindTitleAndGetObserver(pref, tile); in bindPreferenceToTileAndGetObservers()
139 observer = bindSummaryAndGetObserver(pref, tile); in bindPreferenceToTileAndGetObservers()
143 observer = bindSwitchAndGetObserver(pref, tile); in bindPreferenceToTileAndGetObservers()
147 bindIcon(pref, tile, forceRoundedIcon); in bindPreferenceToTileAndGetObservers()
158 pref.setFragment(clsName); in bindPreferenceToTileAndGetObservers()
166 pref.setOnPreferenceClickListener(preference -> { in bindPreferenceToTileAndGetObservers()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DBaseSettingsFragment.java43 public final boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { in onPreferenceStartFragment() argument
44 if (pref.getFragment() != null) { in onPreferenceStartFragment()
45 if (pref instanceof SlicePreference) { in onPreferenceStartFragment()
46 SlicePreference slicePref = (SlicePreference) pref; in onPreferenceStartFragment()
50 Bundle b = pref.getExtras(); in onPreferenceStartFragment()
56 Fragment.instantiate(getActivity(), pref.getFragment(), pref.getExtras()); in onPreferenceStartFragment()
81 public final boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { in onPreferenceStartScreen() argument
86 public boolean onPreferenceDisplayDialog(@NonNull PreferenceFragment caller, Preference pref) { in onPreferenceDisplayDialog() argument
88 if (pref instanceof LeanbackPickerDialogPreference) { in onPreferenceDisplayDialog()
90 pref; in onPreferenceDisplayDialog()
[all …]
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java354 for (Preference pref : updates) { in setShownPreferences()
355 vpnGroup.addPreference(pref); in setShownPreferences()
362 LegacyVpnPreference pref = (LegacyVpnPreference) preference; in onPreferenceClick() local
363 VpnProfile profile = pref.getProfile(); in onPreferenceClick()
376 AppPreference pref = (AppPreference) preference; in onPreferenceClick() local
377 boolean connected = (pref.getState() == AppPreference.STATE_CONNECTED); in onPreferenceClick()
381 UserHandle user = UserHandle.of(pref.getUserId()); in onPreferenceClick()
385 Intent appIntent = pm.getLaunchIntentForPackage(pref.getPackageName()); in onPreferenceClick()
391 Log.w(LOG_TAG, "VPN provider does not exist: " + pref.getPackageName(), nnfe); in onPreferenceClick()
396 PackageInfo pkgInfo = pref.getPackageInfo(); in onPreferenceClick()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DVpnSettings.java355 for (Preference pref : updates) { in setShownPreferences()
356 vpnGroup.addPreference(pref); in setShownPreferences()
363 LegacyVpnPreference pref = (LegacyVpnPreference) preference; in onPreferenceClick() local
364 VpnProfile profile = pref.getProfile(); in onPreferenceClick()
377 AppPreference pref = (AppPreference) preference; in onPreferenceClick() local
378 boolean connected = (pref.getState() == AppPreference.STATE_CONNECTED); in onPreferenceClick()
382 UserHandle user = UserHandle.of(pref.getUserId()); in onPreferenceClick()
386 Intent appIntent = pm.getLaunchIntentForPackage(pref.getPackageName()); in onPreferenceClick()
392 Log.w(LOG_TAG, "VPN provider does not exist: " + pref.getPackageName(), nnfe); in onPreferenceClick()
397 PackageInfo pkgInfo = pref.getPackageInfo(); in onPreferenceClick()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeAllBypassingAppsPreferenceController.java130 Preference pref = mPreferenceCategory.findPreference(key); in updateAppList() local
131 if (pref == null) { in updateAppList()
132 pref = new AppPreference(mPrefContext); in updateAppList()
133 pref.setKey(key); in updateAppList()
134 pref.setOnPreferenceClickListener(preference -> { in updateAppList()
149 pref.setTitle(BidiFormatter.getInstance().unicodeWrap(app.label)); in updateAppList()
150 pref.setIcon(app.icon); in updateAppList()
152 pref.setSummary(R.string.zen_mode_bypassing_apps_summary_some); in updateAppList()
154 pref.setSummary(R.string.zen_mode_bypassing_apps_summary_all); in updateAppList()
157 appsBypassingDnd.add(pref); in updateAppList()
[all …]
/packages/services/Telephony/src/com/android/phone/
DGsmUmtsCallForwardOptions.java146 CallForwardEditPreference pref = mPreferences.get(mInitIndex); in onResume() local
147 pref.init(this, mPhone, mReplaceInvalidCFNumbers, mCallForwardByUssd); in onResume()
148 pref.startCallForwardOptionsQuery(); in onResume()
153 for (CallForwardEditPreference pref : mPreferences) { in onResume()
154 Bundle bundle = mIcicle.getParcelable(pref.getKey()); in onResume()
155 pref.setToggled(bundle.getBoolean(KEY_TOGGLE)); in onResume()
156 pref.setEnabled(bundle.getBoolean(KEY_ENABLE)); in onResume()
160 pref.init(this, mPhone, mReplaceInvalidCFNumbers, mCallForwardByUssd); in onResume()
161 pref.restoreCallForwardInfo(cf); in onResume()
173 for (CallForwardEditPreference pref : mPreferences) { in onSaveInstanceState()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DRadioButtonPickerFragment.java153 public void bindPreferenceExtra(RadioButtonPreference pref, in bindPreferenceExtra() argument
191 RadioButtonPreference pref = new RadioButtonPreference(getPrefContext()); in updateCandidates() local
193 pref.setLayoutResource(customLayoutResId); in updateCandidates()
195 bindPreference(pref, info.getKey(), info, defaultKey); in updateCandidates()
196 bindPreferenceExtra(pref, info.getKey(), info, defaultKey, systemDefaultKey); in updateCandidates()
197 screen.addPreference(pref); in updateCandidates()
207 public RadioButtonPreference bindPreference(RadioButtonPreference pref, in bindPreference() argument
209 pref.setTitle(info.loadLabel()); in bindPreference()
210 Utils.setSafeIcon(pref, info.loadIcon()); in bindPreference()
211 pref.setKey(key); in bindPreference()
[all …]

12345678910>>...18