Home
last modified time | relevance | path

Searched refs:findIndexOfValue (Results 1 – 25 of 62) sorted by relevance

123

/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DAppLinkStatePreferenceController.java121 return getPreference().findIndexOfValue( in linkStateToIndex()
124 return getPreference().findIndexOfValue( in linkStateToIndex()
128 return getPreference().findIndexOfValue( in linkStateToIndex()
/packages/apps/LegacyCamera/src/com/android/camera/
DListPreference.java116 if (findIndexOfValue(value) < 0) throw new IllegalArgumentException(); in setValue()
125 public int findIndexOfValue(String value) { in findIndexOfValue() method in ListPreference
133 return mEntries[findIndexOfValue(getValue())].toString(); in getEntry()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.kt133 val index: Int = preference.findIndexOfValue(newValue as String) in onPreferenceChange()
138 val i: Int = simpleMenuPreference.findIndexOfValue(newValue as String) in onPreferenceChange()
267 val idx: Int = it.findIndexOfValue(value) in refresh()
DSettingsActivity.java168 final int index = preference.findIndexOfValue((String) newValue); in onPreferenceChange()
175 final int i = simpleMenuPreference.findIndexOfValue((String) newValue); in onPreferenceChange()
303 final int idx = weekStartPref.findIndexOfValue(value); in refresh()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DBluetoothMaxConnectedAudioDevicesPreferenceController.java67 if (listPreference.findIndexOfValue(newValueString) <= 0) { in onPreferenceChange()
83 index = listPreference.findIndexOfValue(currentValue); in updateState()
DBluetoothAudioCodecPreferenceController.java61 final int index = mPreference.findIndexOfValue(newValue.toString()); in writeConfigurationValues()
68 switch (mPreference.findIndexOfValue(oldValue)) { in writeConfigurationValues()
DSimulateColorSpacePreferenceController.java82 final int index = listPreference.findIndexOfValue(mode); in updateSimulateColorSpace()
123 final int index = ((ListPreference) mPreference).findIndexOfValue(mode); in usingDevelopmentColorSpace()
DBluetoothAudioQualityPreferenceController.java61 final int index = mPreference.findIndexOfValue(newValue.toString()); in writeConfigurationValues()
DBluetoothAudioChannelModePreferenceController.java61 final int index = mPreference.findIndexOfValue(newValue.toString()); in writeConfigurationValues()
/packages/apps/Settings/src/com/android/settings/development/
DBluetoothMaxConnectedAudioDevicesPreferenceController.java67 if (listPreference.findIndexOfValue(newValueString) <= 0) { in onPreferenceChange()
83 index = listPreference.findIndexOfValue(currentValue); in updateState()
DBluetoothAudioCodecPreferenceController.java61 final int index = mPreference.findIndexOfValue(newValue.toString()); in writeConfigurationValues()
68 switch (mPreference.findIndexOfValue(oldValue)) { in writeConfigurationValues()
DSimulateColorSpacePreferenceController.java82 final int index = listPreference.findIndexOfValue(mode); in updateSimulateColorSpace()
123 final int index = ((ListPreference) mPreference).findIndexOfValue(mode); in usingDevelopmentColorSpace()
DBluetoothAudioQualityPreferenceController.java61 final int index = mPreference.findIndexOfValue(newValue.toString()); in writeConfigurationValues()
DBluetoothAudioChannelModePreferenceController.java61 final int index = mPreference.findIndexOfValue(newValue.toString()); in writeConfigurationValues()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DBluetoothAudioChannelModePreferenceControllerTest.java80 when(mPreference.findIndexOfValue(mListValues[2])).thenReturn(2); in writeConfigurationValues_option2_shouldWriteOption2ToSharedStore()
88 when(mPreference.findIndexOfValue(mListValues[0])).thenReturn(0); in writeConfigurationValues_default_shouldSetDefault()
DBluetoothAudioBitsPerSamplePreferenceControllerTest.java81 when(mPreference.findIndexOfValue(mListValues[2])).thenReturn(2); in writeConfigurationValues_option2_shouldWriteOption2ToSharedStore()
89 when(mPreference.findIndexOfValue(mListValues[0])).thenReturn(0); in writeConfigurationValues_default_shouldSetDefault()
DBluetoothAudioQualityPreferenceControllerTest.java80 when(mPreference.findIndexOfValue(mListValues[3])).thenReturn(3); in writeConfigurationValues_option3_shouldWrite1003ToSharedStore()
88 when(mPreference.findIndexOfValue(mListValues[0])).thenReturn(0); in writeConfigurationValues_default_shouldSetDefault()
DBluetoothAudioCodecPreferenceControllerTest.java85 when(mPreference.findIndexOfValue(mListValues[2])).thenReturn(2); in writeConfigurationValues_option2_shouldWriteOption2ToSharedStore()
95 when(mPreference.findIndexOfValue(mListValues[0])).thenReturn(0); in writeConfigurationValues_default_shouldSetDefaultPriority()
DSimulateColorSpacePreferenceControllerTest.java129 when(mPreference.findIndexOfValue(anyString())).thenReturn(-1); in updateState_settingOnControlledByAccessibility_shouldSetOverridedSummary()
142 when(mPreference.findIndexOfValue(anyString())).thenReturn(-1); in onDeveloperOptionsSwitchDisabled_notControlledByDevOptions_shouldDisableAndReset()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorButton.java59 index = mPreference.findIndexOfValue(mPreference.getValue()); in reloadPreference()
61 index = mPreference.findIndexOfValue(mOverrideValue); in reloadPreference()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DListWithEntrySummaryPreference.java92 builder.setSingleChoiceItems(la, findIndexOfValue(getValue()), listener); in onPrepareDialogBuilder()
126 if (position == mSelector.findIndexOfValue(mSelector.getValue())) { in getView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DListWithEntrySummaryPreference.java92 builder.setSingleChoiceItems(la, findIndexOfValue(getValue()), listener); in onPrepareDialogBuilder()
126 if (position == mSelector.findIndexOfValue(mSelector.getValue())) { in getView()
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/ui/
DAssistedDialingSettingFragment.java98 entries[countryChooserPref.findIndexOfValue(userHomeCountryCode.get())]; in updateCountryChooserSummary()
195 listPref.setSummary(entries[listPref.findIndexOfValue(newValue.toString())]); in updateListSummary()
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java168 mUseSipCalling.findIndexOfValue(mSipPreferences.getSipCallOption()); in onResume()
174 mUseSipCalling.findIndexOfValue(mSipPreferences.getSipCallOption()); in onResume()
213 mUseSipCalling.setValueIndex(mUseSipCalling.findIndexOfValue(option)); in onPreferenceChange()
/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java273 return mDefaultLanguagePreference.findIndexOfValue(localeString); in findLocaleIndex()
291 int index = mDefaultLanguagePreference.findIndexOfValue(defaultLocale.toString()); in isDefaultLocaleValid()

123