Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeScheduleSelectorController.java96 return mPreference.findIndexOfValue(mContext.getString(resId)); in getCurrentMode()
101 final int newMode = mPreference.findIndexOfValue((String) newValue); in onPreferenceChange()
105 if (newMode == mPreference.findIndexOfValue( in onPreferenceChange()
112 } else if (newMode == mPreference.findIndexOfValue( in onPreferenceChange()
119 } else if (newMode == mPreference.findIndexOfValue( in onPreferenceChange()
122 } else if (newMode == mPreference.findIndexOfValue( in onPreferenceChange()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DAppLinkStatePreferenceController.java127 return getPreference().findIndexOfValue( in linkStateToIndex()
130 return getPreference().findIndexOfValue( in linkStateToIndex()
134 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/Settings/src/com/android/settings/development/
DBluetoothMaxConnectedAudioDevicesPreferenceController.java71 if (listPreference.findIndexOfValue(newValueString) <= 0) { in onPreferenceChange()
87 index = listPreference.findIndexOfValue(currentValue); in updateState()
DSimulateColorSpacePreferenceController.java81 final int index = listPreference.findIndexOfValue(mode); in updateSimulateColorSpace()
124 final int index = ((ListPreference) mPreference).findIndexOfValue(mode); in usingDevelopmentColorSpace()
DAbstractBluetoothA2dpPreferenceController.java103 final int index = mPreference.findIndexOfValue(newValue.toString()); in onPreferenceChange()
/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()
DBasicSettingPopup.java83 int index = mPreference.findIndexOfValue(mPreference.getValue()); in reloadPreference()
DInLineSettingKnob.java122 int index = mPreference.findIndexOfValue(mOverrideValue); in updateView()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.kt132 val index: Int = preference.findIndexOfValue(newValue as String) in onPreferenceChange()
137 val i: Int = simpleMenuPreference.findIndexOfValue(newValue as String) in onPreferenceChange()
265 val idx: Int = it.findIndexOfValue(value) in refresh()
DScreensaverSettingsActivity.kt75 val index: Int = clockStylePref.findIndexOfValue(newValue as String?) in onPreferenceChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DSimulateColorSpacePreferenceControllerTest.java126 when(mPreference.findIndexOfValue(anyString())).thenReturn(-1); in updateState_settingOnControlledByAccessibility_shouldSetOverridedSummary()
141 when(mPreference.findIndexOfValue(anyString())).thenReturn(-1); in onDeveloperOptionsSwitchDisabled_notControlledByDevOptions_shouldDisableAndReset()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DListWithEntrySummaryPreference.java94 builder.setSingleChoiceItems(la, findIndexOfValue(getValue()), listener); in onPrepareDialogBuilder()
128 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/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEmergencyListPreference.java66 int index = findIndexOfValue(value); in getSummary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSubScreenFragment.java63 final int entryIndex = listPreference.findIndexOfValue(listPreference.getValue()); in updateListPreferenceSummaryToCurrentValue()
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcForegroundPreferenceController.java117 listPreference.setSummary(mListEntries[listPreference.findIndexOfValue(newValueString)]); in onPreferenceChange()
/packages/services/Telephony/src/com/android/phone/settings/
DAccountSelectionPreference.java119 if (index != findIndexOfValue(getValue())) { in onPreferenceChange()
/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java305 return mDefaultLanguagePreference.findIndexOfValue(localeString); in findLocaleIndex()
322 int index = mDefaultLanguagePreference.findIndexOfValue(mSampleTextLocale.toString()); in isDefaultLocaleValid()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetNetworkSubscriptionPreferenceController.java102 int index = preference.findIndexOfValue(subscriptionIdStr); in handlePreferenceChanged()
/packages/apps/Settings/src/com/android/settings/widget/
DUpdatableListPreferenceDialogFragment.java158 mClickedDialogEntryIndex = preference.findIndexOfValue(preference.getValue()); in setPreferenceData()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DSpellCheckerPreference.java73 builder.setSingleChoiceItems(getEntries(), findIndexOfValue(getValue()), listener); in onPrepareDialogBuilder()

12