Home
last modified time | relevance | path

Searched refs:entryValues (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DDefaultSubscriptionControllerTest.java114 final CharSequence[] entryValues = mListPreference.getEntryValues(); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues() local
115 assertThat(entryValues.length).isEqualTo(3); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
116 assertThat(entryValues[0]).isEqualTo("111"); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
117 assertThat(entryValues[1]).isEqualTo("222"); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
118 assertThat(entryValues[2]).isEqualTo( in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues()
142 final CharSequence[] entryValues = mListPreference.getEntryValues(); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues() local
143 assertThat(entryValues.length).isEqualTo(3); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
144 assertThat(entryValues[0]).isEqualTo("111"); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
145 assertThat(entryValues[1]).isEqualTo("222"); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
146 assertThat(entryValues[2]).isEqualTo( in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DLimitedMultiSelectDialogFragment.java68 final ArrayList<String> entries, final ArrayList<String> entryValues, in populateArguments() argument
72 args.putStringArrayList(ARG_ENTRY_VALUES, entryValues); in populateArguments()
83 final List<String> entryValues = getArguments().getStringArrayList(ARG_ENTRY_VALUES); in onCreateDialog() local
86 getActivity(), getArguments().getStringArrayList(ARG_ENTRIES), entryValues, in onCreateDialog()
119 for (int j = 0; j < entryValues.size(); j++) { in onCreateDialog()
120 if (entryValues.get(j).equals(value)) { in onCreateDialog()
163 final List<String> entryValues, final int maxSelectedValues) {
167 mEntryValues = ImmutableList.copyOf(entryValues);
/packages/apps/Settings/src/com/android/settings/accessibility/
DLocalePreference.java50 final CharSequence[] entryValues = new CharSequence[finalSize + 1]; in init() local
52 entryValues[0] = ""; in init()
57 entryValues[i + 1] = info.getLocale().toString(); in init()
61 setEntryValues(entryValues); in init()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DLocalePreference.java50 final CharSequence[] entryValues = new CharSequence[finalSize + 1]; in init() local
52 entryValues[0] = ""; in init()
57 entryValues[i + 1] = info.getLocale().toString(); in init()
61 setEntryValues(entryValues); in init()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTtsEngineSettingsFragment.java164 final CharSequence[] entryValues = in onCreatePreferences() local
170 mLocalePreference.setEntryValues(entryValues); in onCreatePreferences()
291 CharSequence[] entryValues = new CharSequence[availableLangs.size()+1]; in updateDefaultLocalePref() local
294 entryValues[0] = ""; in updateDefaultLocalePref()
302 entryValues[i++] = entry.second.toString(); in updateDefaultLocalePref()
306 mLocalePreference.setEntryValues(entryValues); in updateDefaultLocalePref()
/packages/apps/Settings/tests/unit/src/com/android/settings/display/
DThemePreferenceControllerTest.java99 CharSequence[] entryValues = arg.getValue(); in testUpdateState() local
100 assertThat(entryValues).asList().containsExactly( in testUpdateState()
138 CharSequence[] entryValues = arg.getValue(); in testUpdateState_withStaticOverlay() local
139 assertThat(entryValues).asList().containsExactly("com.android.Theme2"); in testUpdateState_withStaticOverlay()
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraSettings.java209 CharSequence entryValues[] = new CharSequence[maxValue - minValue + 1]; in buildExposureCompensation() local
211 entryValues[maxValue - i] = Integer.toString(Math.round(i / step)); in buildExposureCompensation()
217 exposure.setEntryValues(entryValues); in buildExposureCompensation()
228 CharSequence[] entryValues = new CharSequence[numOfCameras]; in buildCameraId() local
230 entryValues[i] = "" + i; in buildCameraId()
232 preference.setEntryValues(entryValues); in buildCameraId()
DIconListPreference.java89 CharSequence entryValues[] = getEntryValues(); in filterUnsupported() local
94 for (int i = 0, len = entryValues.length; i < len; i++) { in filterUnsupported()
95 if (supported.indexOf(entryValues[i].toString()) >= 0) { in filterUnsupported()
DListPreference.java149 ArrayList<CharSequence> entryValues = new ArrayList<CharSequence>(); in filterUnsupported() local
153 entryValues.add(mEntryValues[i]); in filterUnsupported()
158 mEntryValues = entryValues.toArray(new CharSequence[size]); in filterUnsupported()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/
DTmaPrefsFragment.java61 CharSequence[] entryValues = new CharSequence[count]; in createEnumPref() local
64 entryValues[i] = enumValues[i].getId(); in createEnumPref()
67 prefWidget.setEntryValues(entryValues); in createEnumPref()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/tts/
DTextToSpeechSettings.java188 final CharSequence[] entryValues = in onCreate() local
193 mLocalePreference.setEntryValues(entryValues); in onCreate()
518 CharSequence[] entryValues = new CharSequence[availableLangs.size() + 1]; in updateDefaultLocalePref() local
521 entryValues[0] = ""; in updateDefaultLocalePref()
529 entryValues[i++] = entry.second.toString(); in updateDefaultLocalePref()
533 mLocalePreference.setEntryValues(entryValues); in updateDefaultLocalePref()
/packages/apps/Settings/src/com/android/settings/tts/
DTextToSpeechSettings.java188 final CharSequence[] entryValues = in onCreate() local
193 mLocalePreference.setEntryValues(entryValues); in onCreate()
518 CharSequence[] entryValues = new CharSequence[availableLangs.size() + 1]; in updateDefaultLocalePref() local
521 entryValues[0] = ""; in updateDefaultLocalePref()
529 entryValues[i++] = entry.second.toString(); in updateDefaultLocalePref()
533 mLocalePreference.setEntryValues(entryValues); in updateDefaultLocalePref()
/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java352 CharSequence[] entryValues = new CharSequence[availableLangs.size() + 1]; in updateDefaultLanguagePreference() local
355 entryValues[0] = ""; in updateDefaultLanguagePreference()
360 entryValues[i++] = locale.toString(); in updateDefaultLanguagePreference()
364 mDefaultLanguagePreference.setEntryValues(entryValues); in updateDefaultLanguagePreference()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherSecurityPreferenceController.java59 String[] entryValues = {Integer.toString(WifiConfiguration.KeyMgmt.WPA2_PSK), in onCreateInternal() local
61 getPreference().setEntryValues(entryValues); in onCreateInternal()
/packages/apps/Camera2/src/com/android/camera/settings/
DCameraSettingsActivity.java420 String[] entryValues = new String[selectedSizes.size()]; in setEntriesForSelection() local
424 entryValues[i] = SettingsUtil.sizeToSettingString(size); in setEntriesForSelection()
427 preference.setEntryValues(entryValues); in setEntriesForSelection()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DEffectSettingPopup.java78 CharSequence[] entryValues = mPreference.getEntryValues(); in initialize() local
88 String value = entryValues[i].toString(); in initialize()