Home
last modified time | relevance | path

Searched refs:pref (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/support/v7/preference/tests/src/android/support/v7/preference/tests/
DPreferenceParentGroupTest.java62 CheckBoxPreference pref = new CheckBoxPreference(mContext); in parentAddRemoveTest() local
63 assertNull(pref.getParent()); in parentAddRemoveTest()
68 category.addPreference(pref); in parentAddRemoveTest()
69 assertEquals(category, pref.getParent()); in parentAddRemoveTest()
74 category.removePreference(pref); in parentAddRemoveTest()
75 assertNull(pref.getParent()); in parentAddRemoveTest()
93 CheckBoxPreference pref = new CheckBoxPreference(mContext); in parentReassignTest() local
94 assertNull(pref.getParent()); in parentReassignTest()
96 category1.addPreference(pref); in parentReassignTest()
97 assertEquals(category1, pref.getParent()); in parentReassignTest()
[all …]
DPreferenceDataStoreTest.java170 CheckBoxPreference pref = new CheckBoxPreference(mContext); in testInitialValueIsFromDataStoreOnPreference() local
171 pref.setKey("CheckboxTestPref"); in testInitialValueIsFromDataStoreOnPreference()
172 pref.setPreferenceDataStore(mDataStore); in testInitialValueIsFromDataStoreOnPreference()
174 mScreen.addPreference(pref); in testInitialValueIsFromDataStoreOnPreference()
176 assertTrue(pref.isChecked()); in testInitialValueIsFromDataStoreOnPreference()
189 CheckBoxPreference pref = new CheckBoxPreference(mContext); in testInitialValueIsFromDataStoreOnPreferenceManager() local
190 pref.setKey("CheckboxTestPref"); in testInitialValueIsFromDataStoreOnPreferenceManager()
192 mScreen.addPreference(pref); in testInitialValueIsFromDataStoreOnPreferenceManager()
194 assertTrue(pref.isChecked()); in testInitialValueIsFromDataStoreOnPreferenceManager()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodAndSubtypeEnablerManager.java87 public boolean onPreferenceChange(final Preference pref, final Object newValue) { in onPreferenceChange() argument
94 if (mAutoSelectionPrefsMap.get(imiId) == pref) { in onPreferenceChange()
95 final TwoStatePreference autoSelectionPref = (TwoStatePreference) pref; in onPreferenceChange()
103 if (pref instanceof InputMethodSubtypePreference) { in onPreferenceChange()
104 final InputMethodSubtypePreference subtypePref = (InputMethodSubtypePreference) pref; in onPreferenceChange()
166 for (final Preference pref : subtypePreferences) { in addInputMethodSubtypePreferences()
167 activeInputMethodsCategory.addPreference(pref); in addInputMethodSubtypePreferences()
168 pref.setOnPreferenceChangeListener(this); in addInputMethodSubtypePreferences()
169 InputMethodAndSubtypeUtil.removeUnnecessaryNonPersistentPreference(pref); in addInputMethodSubtypePreferences()
182 for (final Preference pref : subtypePrefs) { in isNoSubtypesExplicitlySelected()
[all …]
DInputMethodAndSubtypeUtil.java169 final Preference pref = context.findPreference(imiId); in saveInputMethodSubtypeList() local
170 if (pref == null) { in saveInputMethodSubtypeList()
175 final boolean isImeChecked = (pref instanceof TwoStatePreference) ? in saveInputMethodSubtypeList()
176 ((TwoStatePreference) pref).isChecked() in saveInputMethodSubtypeList()
296 final Preference pref = context.findPreference(imiId); in loadInputMethodSubtypeList() local
297 if (pref instanceof TwoStatePreference) { in loadInputMethodSubtypeList()
298 final TwoStatePreference subtypePref = (TwoStatePreference) pref; in loadInputMethodSubtypeList()
321 final TwoStatePreference pref = (TwoStatePreference) preferenceScreen in setSubtypesPreferenceEnabled() local
323 if (pref != null) { in setSubtypesPreferenceEnabled()
324 pref.setEnabled(enabled); in setSubtypesPreferenceEnabled()
[all …]
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/
DInputMethodSettingsImpl.java153 final Preference pref = mSubtypeEnablerPreference; in updateSubtypeEnabler() local
154 if (pref == null) { in updateSubtypeEnabler()
157 final Context context = pref.getContext(); in updateSubtypeEnabler()
164 pref.setTitle(title); in updateSubtypeEnabler()
165 final Intent intent = pref.getIntent(); in updateSubtypeEnabler()
171 pref.setSummary(summary); in updateSubtypeEnabler()
174 pref.setIcon(mSubtypeEnablerIconRes); in updateSubtypeEnabler()
176 pref.setIcon(mSubtypeEnablerIcon); in updateSubtypeEnabler()
/frameworks/support/samples/SupportPreferenceDemos/src/com/example/android/supportpreference/
DFragmentSupportPreferencesLeanback.java51 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { in onPreferenceStartFragment() argument
53 Fragment.instantiate(getActivity(), pref.getFragment(), pref.getExtras()); in onPreferenceStartFragment()
64 public boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { in onPreferenceStartScreen() argument
67 args.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey()); in onPreferenceStartScreen()
DFragmentSupportPreferencesCompat.java44 public boolean onPreferenceStartScreen(PreferenceFragmentCompat caller, PreferenceScreen pref) { in onPreferenceStartScreen() argument
47 args.putString(PreferenceFragmentCompat.ARG_PREFERENCE_ROOT, pref.getKey()); in onPreferenceStartScreen()
DFragmentSupportPreferences.java44 public boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { in onPreferenceStartScreen() argument
47 args.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey()); in onPreferenceStartScreen()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerActivity.java77 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { in onPreferenceStartFragment() argument
79 Class<?> cls = Class.forName(pref.getFragment()); in onPreferenceStartFragment()
82 b.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey()); in onPreferenceStartFragment()
85 setTitle(pref.getTitle()); in onPreferenceStartFragment()
97 public boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { in onPreferenceStartScreen() argument
101 b.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey()); in onPreferenceStartScreen()
DRadioListPreference.java124 SelectablePreference pref = new SelectablePreference(context); in update() local
125 getPreferenceScreen().addPreference(pref); in update()
126 pref.setTitle(entry); in update()
127 pref.setChecked(Objects.equal(current, values[i])); in update()
128 pref.setKey(String.valueOf(i)); in update()
DPluginFragment.java102 SwitchPreference pref = new PluginPreference(prefContext, app); in loadPrefs()
103 pref.setSummary("Plugins: " + toString(plugins.get(app.packageName))); in loadPrefs()
104 screen.addPreference(pref); in loadPrefs()
/frameworks/support/v17/preference-leanback/src/android/support/v17/preference/
DLeanbackSettingsFragment.java101 public boolean onPreferenceDisplayDialog(@NonNull PreferenceFragment caller, Preference pref) { in onPreferenceDisplayDialog() argument
103 throw new IllegalArgumentException("Cannot display dialog for preference " + pref in onPreferenceDisplayDialog()
107 if (pref instanceof ListPreference) { in onPreferenceDisplayDialog()
108 final ListPreference listPreference = (ListPreference) pref; in onPreferenceDisplayDialog()
112 } else if (pref instanceof MultiSelectListPreference) { in onPreferenceDisplayDialog()
113 MultiSelectListPreference listPreference = (MultiSelectListPreference) pref; in onPreferenceDisplayDialog()
/frameworks/layoutlib/bridge/src/android/preference/
DPreference_Delegate.java41 /*package*/ static View getView(Preference pref, View convertView, ViewGroup parent) { in getView() argument
42 Context context = pref.getContext(); in getView()
44 convertView = pref.getView_Original(convertView, parent); in getView()
46 Object cookie = bc.getCookie(pref); in getView()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DAccessPointPreferenceTest.java76 final AccessPointPreference pref = mock(AccessPointPreference.class); in refresh_openNetwork_updateContentDescription() local
77 when(pref.getTitle()).thenReturn(ssid); in refresh_openNetwork_updateContentDescription()
78 when(pref.getSummary()).thenReturn(summary); in refresh_openNetwork_updateContentDescription()
81 RuntimeEnvironment.application, pref, ap)) in refresh_openNetwork_updateContentDescription()
/frameworks/opt/vcard/tests/res/raw/
Dv30_ios_613_multiline.vcf11 item1.EMAIL;type=INTERNET;type=pref:bob@smithauto.com
13 TEL;type=CELL;type=VOICE;type=pref:(650) 555-1212
15 item2.URL;type=pref:www.smithauto.com
/frameworks/base/core/java/android/text/method/
DQwertyKeyListener.java92 int pref = 0; in onKeyDown() local
95 pref = TextKeyListener.getInstance().getPrefs(view.getContext()); in onKeyDown()
199 if ((pref & TextKeyListener.AUTO_CAP) != 0 in onKeyDown()
250 if ((pref & TextKeyListener.AUTO_TEXT) != 0 && mAutoText && in onKeyDown()
284 if ((pref & TextKeyListener.AUTO_PERIOD) != 0 && mAutoText) { in onKeyDown()
DMultiTapKeyListener.java91 int pref = 0; in onKeyDown() local
94 pref = TextKeyListener.getInstance().getPrefs(view.getContext()); in onKeyDown()
179 if ((pref & TextKeyListener.AUTO_CAP) != 0 && in onKeyDown()
DPasswordTransformationMethod.java101 int pref = TextKeyListener.getInstance().getPrefs(v.getContext()); in onTextChanged() local
102 if ((pref & TextKeyListener.SHOW_PASSWORD) != 0) { in onTextChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPointPreference.java276 static CharSequence buildContentDescription(Context context, Preference pref, AccessPoint ap) { in buildContentDescription() argument
277 CharSequence contentDescription = pref.getTitle(); in buildContentDescription()
278 final CharSequence summary = pref.getSummary(); in buildContentDescription()
/frameworks/support/v7/preference/src/android/support/v7/preference/
DPreferenceGroupAdapter.java285 for (final Preference pref : mPreferenceListInternal) { in onPreferenceVisibilityChange()
286 if (preference.equals(pref)) { in onPreferenceVisibilityChange()
289 if (pref.isVisible()) { in onPreferenceVisibilityChange()
DPreferenceFragmentCompat.java173 boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference pref); in onPreferenceStartFragment() argument
189 boolean onPreferenceStartScreen(PreferenceFragmentCompat caller, PreferenceScreen pref); in onPreferenceStartScreen() argument
201 Preference pref); in onPreferenceDisplayDialog() argument
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DWiFiKeyManager.java87 int pref = 0; in chooseClientAlias() local
89 keyPrefs.put(keyType, pref++); in chooseClientAlias()
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java227 boolean pref = sharedPrefs.getBoolean("summaryPref", false); in loadXmlFromNetwork()
256 if (pref) { in loadXmlFromNetwork()
/frameworks/support/v14/preference/src/android/support/v14/preference/
DPreferenceFragment.java184 boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref); in onPreferenceStartFragment() argument
200 boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref); in onPreferenceStartScreen() argument
211 boolean onPreferenceDisplayDialog(@NonNull PreferenceFragment caller, Preference pref); in onPreferenceDisplayDialog() argument
/frameworks/base/core/java/android/preference/
DPreferenceActivity.java1432 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { in onPreferenceStartFragment() argument
1433 startPreferencePanel(pref.getFragment(), pref.getExtras(), pref.getTitleRes(), in onPreferenceStartFragment()
1434 pref.getTitle(), null, 0); in onPreferenceStartFragment()

12