/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | DefaultSubscriptionControllerTest.java | 143 final CharSequence[] entryValues = mListPreference.getEntryValues(); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues() local 144 assertThat(entryValues.length).isEqualTo(3); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues() 145 assertThat(entryValues[0]).isEqualTo("111"); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues() 146 assertThat(entryValues[1]).isEqualTo("222"); in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues() 147 assertThat(entryValues[2]).isEqualTo( in displayPreference_twoSubscriptionsSub1Default_correctListPreferenceValues() 173 final CharSequence[] entryValues = mListPreference.getEntryValues(); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues() local 174 assertThat(entryValues.length).isEqualTo(3); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues() 175 assertThat(entryValues[0]).isEqualTo("111"); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues() 176 assertThat(entryValues[1]).isEqualTo("222"); in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues() 177 assertThat(entryValues[2]).isEqualTo( in displayPreference_twoSubscriptionsSub2Default_correctListPreferenceValues() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | EnabledNetworkModePreferenceControllerTest.java | 396 String[] entryValues = mController.getResourcesForSubId().getStringArray(id); in checkResource_stringArrayLength() local 397 assertEquals(4, entryValues.length); in checkResource_stringArrayLength() 401 entryValues = mController.getResourcesForSubId().getStringArray(id); in checkResource_stringArrayLength() 402 assertEquals(2, entryValues.length); in checkResource_stringArrayLength() 406 entryValues = mController.getResourcesForSubId().getStringArray(id); in checkResource_stringArrayLength() 407 assertEquals(2, entryValues.length); in checkResource_stringArrayLength() 411 entryValues = mController.getResourcesForSubId().getStringArray(id); in checkResource_stringArrayLength() 412 assertEquals(3, entryValues.length); in checkResource_stringArrayLength() 416 entryValues = mController.getResourcesForSubId().getStringArray(id); in checkResource_stringArrayLength() 417 assertEquals(1, entryValues.length); in checkResource_stringArrayLength() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | EnabledNetworkModePreferenceController.java | 238 String[] entryValues; in setPreferenceEntries() local 242 entryValues = getResourcesForSubId().getStringArray( in setPreferenceEntries() 244 entryValuesInt = Stream.of(entryValues).mapToInt(Integer::parseInt).toArray(); in setPreferenceEntries() 256 entryValues = getResourcesForSubId().getStringArray( in setPreferenceEntries() 258 entryValuesInt = Stream.of(entryValues).mapToInt(Integer::parseInt).toArray(); in setPreferenceEntries() 267 entryValues = getResourcesForSubId().getStringArray( in setPreferenceEntries() 269 entryValuesInt = Stream.of(entryValues).mapToInt(Integer::parseInt).toArray(); in setPreferenceEntries() 278 entryValues = getResourcesForSubId().getStringArray( in setPreferenceEntries() 280 entryValuesInt = Stream.of(entryValues).mapToInt(Integer::parseInt).toArray(); in setPreferenceEntries() 291 entryValues = getResourcesForSubId().getStringArray( in setPreferenceEntries() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/ |
D | FontScalePreferenceFragment.java | 50 final String[] entryValues = getContext().getResources() in onCreatePreferences() local 54 for (int i = 0; i < entryValues.length; i++) { in onCreatePreferences() 59 preference.setKey(entryValues[i]); in onCreatePreferences() 60 int scaleValue = (int) (Float.valueOf(entryValues[i]) * 100); in onCreatePreferences() 68 extras.putString(FontScalePreviewFragment.PREVIEW_FONT_SCALE_VALUE, entryValues[i]); in onCreatePreferences() 72 if (entryValues[i].equals(String.valueOf(mCurrentFontScaleValue))) { in onCreatePreferences()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | LocalePreference.java | 50 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/ |
D | TtsEngineSettingsFragment.java | 166 final CharSequence[] entryValues = in onCreatePreferences() local 172 mLocalePreference.setEntryValues(entryValues); in onCreatePreferences() 293 CharSequence[] entryValues = new CharSequence[availableLangs.size()+1]; in updateDefaultLocalePref() local 296 entryValues[0] = ""; in updateDefaultLocalePref() 304 entryValues[i++] = entry.second.toString(); in updateDefaultLocalePref() 308 mLocalePreference.setEntryValues(entryValues); in updateDefaultLocalePref()
|
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/display/ |
D | ThemePreferenceControllerTest.java | 99 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/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/preference/ |
D | MultiSelectListPreferenceFragment.java | 111 CharSequence[] entryValues = mPreference.getEntryValues(); in onViewCreated() local 113 if (entries == null || entryValues == null) { in onViewCreated() 119 if (entries.length != entryValues.length) { in onViewCreated() 130 String entryValue = entryValues[i].toString(); in onViewCreated()
|
D | ListPreferenceFragment.java | 109 CharSequence[] entryValues = mPreference.getEntryValues(); in onViewCreated() local 111 if (entries == null || entryValues == null) { in onViewCreated() 116 if (entries.length != entryValues.length) { in onViewCreated()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | IconListPreference.java | 89 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()
|
D | CameraSettings.java | 209 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()
|
D | ListPreference.java | 149 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/ |
D | TmaPrefsFragment.java | 74 CharSequence[] entryValues = new CharSequence[count]; in createEnumPref() local 77 entryValues[i] = enumValues[i].getId(); in createEnumPref() 80 prefWidget.setEntryValues(entryValues); in createEnumPref()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/ |
D | LeanbackListPreferenceDialogFragmentCompat.java | 246 AdapterMulti(CharSequence[] entries, CharSequence[] entryValues, in AdapterMulti() argument 249 this.mEntryValues = entryValues; in AdapterMulti() 305 AdapterSingle(CharSequence[] entries, CharSequence[] entryValues, in AdapterSingle() argument 308 this.mEntryValues = entryValues; in AdapterSingle()
|
D | TwoPanelListPreferenceDialogFragment.java | 134 TwoPanelAdapterSingle(CharSequence[] entries, CharSequence[] entryValues, in TwoPanelAdapterSingle() argument 137 mEntryValues = entryValues; in TwoPanelAdapterSingle()
|
/packages/apps/Settings/src/com/android/settings/tts/ |
D | TextToSpeechSettings.java | 200 final CharSequence[] entryValues = in onCreate() local 205 mLocalePreference.setEntryValues(entryValues); in onCreate() 547 CharSequence[] entryValues = new CharSequence[availableLangs.size() + 1]; in updateDefaultLocalePref() local 550 entryValues[0] = ""; in updateDefaultLocalePref() 558 entryValues[i++] = entry.second.toString(); in updateDefaultLocalePref() 562 mLocalePreference.setEntryValues(entryValues); in updateDefaultLocalePref()
|
/packages/apps/Car/Settings/src/com/android/car/settings/tts/ |
D | TtsPlaybackPreferenceController.java | 377 CharSequence[] entryValues = new CharSequence[availableLangs.size() + 1]; in updateDefaultLanguagePreference() local 380 entryValues[0] = ""; in updateDefaultLanguagePreference() 385 entryValues[i++] = locale.toString(); in updateDefaultLanguagePreference() 389 mDefaultLanguagePreference.setEntryValues(entryValues); in updateDefaultLanguagePreference()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiTetherSecurityPreferenceController.java | 60 String[] entryValues = { in onCreateInternal() local 63 getPreference().setEntryValues(entryValues); in onCreateInternal()
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | CameraSettingsActivity.java | 422 String[] entryValues = new String[selectedSizes.size()]; in setEntriesForSelection() local 426 entryValues[i] = SettingsUtil.sizeToSettingString(size); in setEntriesForSelection() 429 preference.setEntryValues(entryValues); in setEntriesForSelection()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | EffectSettingPopup.java | 78 CharSequence[] entryValues = mPreference.getEntryValues(); in initialize() local 88 String value = entryValues[i].toString(); in initialize()
|