Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeScheduleSelectorController.java81 return mPreference.findIndexOfValue(mContext.getString(resId)); in getCurrentMode()
86 final int newMode = mPreference.findIndexOfValue((String) newValue); in onPreferenceChange()
90 if (newMode == mPreference.findIndexOfValue( in onPreferenceChange()
97 } else if (newMode == mPreference.findIndexOfValue( in onPreferenceChange()
104 } else if (newMode == mPreference.findIndexOfValue( in onPreferenceChange()
/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.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()
DScreensaverSettingsActivity.java82 final int index = clockStylePref.findIndexOfValue((String) newValue); in onPreferenceChange()
/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()
DBluetoothAudioBitsPerSamplePreferenceController.java61 final int index = mPreference.findIndexOfValue(newValue.toString()); in writeConfigurationValues()
DBluetoothAudioSampleRatePreferenceController.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()
DSimulateColorSpacePreferenceController.java82 final int index = listPreference.findIndexOfValue(mode); in updateSimulateColorSpace()
123 final int index = ((ListPreference) mPreference).findIndexOfValue(mode); in usingDevelopmentColorSpace()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorButton.java59 index = mPreference.findIndexOfValue(mPreference.getValue()); in reloadPreference()
61 index = mPreference.findIndexOfValue(mOverrideValue); in reloadPreference()
DCameraPicker.java63 int index = mPreference.findIndexOfValue(mPreference.getValue()); in onClick()
DInLineSettingItem.java80 mIndex = mPreference.findIndexOfValue(mPreference.getValue()); in reloadPreference()
DInLineSettingSwitch.java66 int index = mPreference.findIndexOfValue(mOverrideValue); in updateView()
/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/Settings/tests/robotests/src/com/android/settings/development/
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/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.java297 return mDefaultLanguagePreference.findIndexOfValue(localeString); in findLocaleIndex()
314 int index = mDefaultLanguagePreference.findIndexOfValue(mSampleTextLocale.toString()); in isDefaultLocaleValid()
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEmergencyListPreference.java66 int index = findIndexOfValue(value); in getSummary()

12