/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | SoundPreferenceControllerTest.java | 141 NotificationSoundPreference pref = mock(NotificationSoundPreference.class); in testDisplayPreference_savesPreference() local 142 when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(pref); in testDisplayPreference_savesPreference() 146 verify(pref, times(1)).onActivityResult(anyInt(), anyInt(), any()); in testDisplayPreference_savesPreference() 157 Preference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_disabledByAdmin() local 158 mController.updateState(pref); in testUpdateState_disabledByAdmin() 160 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 171 Preference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_notBlockable() local 172 mController.updateState(pref); in testUpdateState_notBlockable() 174 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable() 187 NotificationSoundPreference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_configurable() local [all …]
|
D | BubblePreferenceControllerTest.java | 220 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local 221 mController.updateState(pref); in testUpdateState_disabledByAdmin() 223 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 234 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_channelNotBlockable() local 235 mController.updateState(pref); in testUpdateState_channelNotBlockable() 237 assertTrue(pref.isEnabled()); in testUpdateState_channelNotBlockable() 248 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_channel() local 249 mController.updateState(pref); in testUpdateState_channel() 251 assertTrue(pref.isChecked()); in testUpdateState_channel() 255 mController.updateState(pref); in testUpdateState_channel() [all …]
|
D | AllowSoundPreferenceControllerTest.java | 135 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local 136 mController.updateState(pref); in testUpdateState_disabledByAdmin() 138 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 149 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_notBlockable_oem() local 150 mController.updateState(pref); in testUpdateState_notBlockable_oem() 152 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable_oem() 162 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_configurable() local 163 mController.updateState(pref); in testUpdateState_configurable() 165 assertTrue(pref.isEnabled()); in testUpdateState_configurable() 174 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_checkedForHighImportanceChannel() local [all …]
|
D | BadgePreferenceControllerTest.java | 183 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local 184 mController.updateState(pref); in testUpdateState_disabledByAdmin() 186 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 197 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_channelNotBlockable() local 198 mController.updateState(pref); in testUpdateState_channelNotBlockable() 200 assertTrue(pref.isEnabled()); in testUpdateState_channelNotBlockable() 210 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_channel() local 211 mController.updateState(pref); in testUpdateState_channel() 213 assertTrue(pref.isChecked()); in testUpdateState_channel() 217 mController.updateState(pref); in testUpdateState_channel() [all …]
|
D | DndPreferenceControllerTest.java | 106 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_disabledByAdmin() local 107 mController.updateState(pref); in testUpdateState_disabledByAdmin() 109 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 119 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_notBlockable() local 120 mController.updateState(pref); in testUpdateState_notBlockable() 122 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable() 132 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_configurable() local 133 mController.updateState(pref); in testUpdateState_configurable() 135 assertTrue(pref.isEnabled()); in testUpdateState_configurable() 144 RestrictedSwitchPreference pref = in testUpdateState_bypassDnd() local [all …]
|
D | ImportancePreferenceControllerTest.java | 154 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_disabledByAdmin() local 155 mController.updateState(pref); in testUpdateState_disabledByAdmin() 157 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 168 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_notConfigurable() local 169 mController.updateState(pref); in testUpdateState_notConfigurable() 171 assertFalse(pref.isEnabled()); in testUpdateState_notConfigurable() 183 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_systemButConfigurable() local 184 mController.updateState(pref); in testUpdateState_systemButConfigurable() 186 assertTrue(pref.isEnabled()); in testUpdateState_systemButConfigurable() 198 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_defaultApp() local [all …]
|
D | VibrationPreferenceControllerTest.java | 136 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_disabledByAdmin() local 137 mController.updateState(pref); in testUpdateState_disabledByAdmin() 139 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 149 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_notBlockable() local 150 mController.updateState(pref); in testUpdateState_notBlockable() 152 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable() 162 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_configurable() local 163 mController.updateState(pref); in testUpdateState_configurable() 165 assertTrue(pref.isEnabled()); in testUpdateState_configurable() 174 RestrictedSwitchPreference pref = in testUpdateState_vibrateOn() local [all …]
|
D | VisibilityPreferenceControllerTest.java | 164 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_disabledByAdmin_disableSecure() local 165 mController.updateState(pref); in testUpdateState_disabledByAdmin_disableSecure() 167 verify(pref, times(2)).addRestrictedItem(any()); in testUpdateState_disabledByAdmin_disableSecure() 186 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_disabledByAdmin_disableUnredacted() local 187 mController.updateState(pref); in testUpdateState_disabledByAdmin_disableUnredacted() 189 verify(pref, times(1)).addRestrictedItem(any()); in testUpdateState_disabledByAdmin_disableUnredacted() 201 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noLockScreenNotificationsGlobally() local 202 mController.updateState(pref); in testUpdateState_noLockScreenNotificationsGlobally() 206 verify(pref, times(1)).setEntryValues(argumentCaptor.capture()); in testUpdateState_noLockScreenNotificationsGlobally() 226 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noLockScreenNotificationsGloballyInProfile() local [all …]
|
D | HighImportancePreferenceControllerTest.java | 137 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_disabledByAdmin() local 138 mController.updateState(pref); in testUpdateState_disabledByAdmin() 140 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 151 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_notConfigurable() local 152 mController.updateState(pref); in testUpdateState_notConfigurable() 154 assertFalse(pref.isEnabled()); in testUpdateState_notConfigurable() 166 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_systemButConfigurable() local 167 mController.updateState(pref); in testUpdateState_systemButConfigurable() 169 assertTrue(pref.isEnabled()); in testUpdateState_systemButConfigurable() 181 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_defaultApp() local [all …]
|
D | MinImportancePreferenceControllerTest.java | 137 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_disabledByAdmin() local 138 mController.updateState(pref); in testUpdateState_disabledByAdmin() 140 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 151 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_notConfigurable() local 152 mController.updateState(pref); in testUpdateState_notConfigurable() 154 assertFalse(pref.isEnabled()); in testUpdateState_notConfigurable() 166 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_systemButConfigurable() local 167 mController.updateState(pref); in testUpdateState_systemButConfigurable() 169 assertTrue(pref.isEnabled()); in testUpdateState_systemButConfigurable() 181 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_defaultApp() local [all …]
|
D | LightsPreferenceControllerTest.java | 154 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local 155 mController.updateState(pref); in testUpdateState_disabledByAdmin() 157 assertFalse(pref.isEnabled()); in testUpdateState_disabledByAdmin() 167 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_notBlockable() local 168 mController.updateState(pref); in testUpdateState_notBlockable() 170 assertTrue(pref.isEnabled()); in testUpdateState_notBlockable() 179 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_lightsOn() local 180 mController.updateState(pref); in testUpdateState_lightsOn() 181 assertTrue(pref.isChecked()); in testUpdateState_lightsOn() 190 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_lightsOff() local [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStorageSettingsTest.java | 109 final ActionButtonsPreference pref = mock(ActionButtonsPreference.class); in createMock() local 110 when(pref.setButton1Text(anyInt())).thenReturn(pref); in createMock() 111 when(pref.setButton1Icon(anyInt())).thenReturn(pref); in createMock() 112 when(pref.setButton1Enabled(anyBoolean())).thenReturn(pref); in createMock() 113 when(pref.setButton1Visible(anyBoolean())).thenReturn(pref); in createMock() 114 when(pref.setButton1OnClickListener(any(View.OnClickListener.class))).thenReturn(pref); in createMock() 116 when(pref.setButton2Text(anyInt())).thenReturn(pref); in createMock() 117 when(pref.setButton2Icon(anyInt())).thenReturn(pref); in createMock() 118 when(pref.setButton2Enabled(anyBoolean())).thenReturn(pref); in createMock() 119 when(pref.setButton2Visible(anyBoolean())).thenReturn(pref); in createMock() [all …]
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipEditor.java | 329 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/packageinstaller/permission/ui/wear/ |
D | AppPermissionsFragmentWear.java | 181 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/ |
D | BluetoothDetailsButtonsControllerTest.java | 189 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 …]
|
D | BluetoothDetailsProfilesControllerTest.java | 252 SwitchPreference pref = switches.get(0); in disableThenReenableOneProfile() local 255 assertThat(pref.isChecked()).isTrue(); in disableThenReenableOneProfile() 256 pref.performClick(); in disableThenReenableOneProfile() 257 assertThat(pref.isChecked()).isFalse(); in disableThenReenableOneProfile() 264 pref.performClick(); in disableThenReenableOneProfile() 265 assertThat(pref.isChecked()).isTrue(); in disableThenReenableOneProfile() 293 SwitchPreference pref = switches.get(0); in pbapProfileStartsEnabled() local 294 assertThat(pref.getTitle()).isEqualTo(mContext.getString(R.string.bluetooth_profile_pbap)); in pbapProfileStartsEnabled() 295 assertThat(pref.isChecked()).isTrue(); in pbapProfileStartsEnabled() 297 pref.performClick(); in pbapProfileStartsEnabled() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountSyncDetailsPreferenceControllerTest.java | 217 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/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsPowerRoleControllerTest.java | 107 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/PermissionController/src/com/android/packageinstaller/permission/ui/television/ |
D | AllAppPermissionsFragment.java | 173 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 …]
|
D | PermissionAppsFragment.java | 230 SwitchPreference pref = new SwitchPreference(context); in onPermissionsLoaded() local 231 pref.setOnPreferenceChangeListener(this); in onPermissionsLoaded() 232 pref.setKey(app.getKey()); in onPermissionsLoaded() 233 pref.setIcon(app.getIcon()); in onPermissionsLoaded() 234 pref.setTitle(app.getLabel()); in onPermissionsLoaded() 236 pref.setSummary(getString(R.string.permission_summary_enabled_system_fixed)); in onPermissionsLoaded() 238 pref.setSummary(getString(R.string.permission_summary_enforced_by_policy)); in onPermissionsLoaded() 240 pref.setPersistent(false); in onPermissionsLoaded() 241 pref.setEnabled(!app.isSystemFixed() && !app.isPolicyFixed()); in onPermissionsLoaded() 242 pref.setChecked(app.areRuntimePermissionsGranted()); in onPermissionsLoaded() [all …]
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | VpnSettings.java | 354 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/ |
D | VpnSettings.java | 355 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/services/Telephony/src/com/android/phone/ |
D | CdmaCallForwardOptions.java | 155 CallForwardEditPreference pref = mPreferences.get(mInitIndex); in onResume() local 156 pref.init(this, mPhone, mReplaceInvalidCFNumbers, mCallForwardByUssd); in onResume() 157 pref.startCallForwardOptionsQuery(); in onResume() 162 for (CallForwardEditPreference pref : mPreferences) { in onResume() 163 Bundle bundle = mIcicle.getParcelable(pref.getKey()); in onResume() 164 pref.setToggled(bundle.getBoolean(KEY_TOGGLE)); in onResume() 165 pref.setEnabled(bundle.getBoolean(KEY_ENABLE)); in onResume() 169 pref.init(this, mPhone, mReplaceInvalidCFNumbers, mCallForwardByUssd); in onResume() 170 pref.restoreCallForwardInfo(cf); in onResume() 182 for (CallForwardEditPreference pref : mPreferences) { in onSaveInstanceState() [all …]
|
D | GsmUmtsCallForwardOptions.java | 146 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/ |
D | RadioButtonPickerFragment.java | 153 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 …]
|