Searched refs:pref (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/support/v7/preference/tests/src/android/support/v7/preference/tests/
H A DPreferenceParentGroupTest.java62 CheckBoxPreference pref = new CheckBoxPreference(mContext);
63 assertNull(pref.getParent());
68 category.addPreference(pref);
69 assertEquals(category, pref.getParent());
74 category.removePreference(pref);
75 assertNull(pref.getParent());
93 CheckBoxPreference pref = new CheckBoxPreference(mContext);
94 assertNull(pref.getParent());
96 category1.addPreference(pref);
97 assertEquals(category1, pref
[all...]
H A DPreferenceDataStoreTest.java170 CheckBoxPreference pref = new CheckBoxPreference(mContext);
171 pref.setKey("CheckboxTestPref");
172 pref.setPreferenceDataStore(mDataStore);
174 mScreen.addPreference(pref);
176 assertTrue(pref.isChecked());
189 CheckBoxPreference pref = new CheckBoxPreference(mContext);
190 pref.setKey("CheckboxTestPref");
192 mScreen.addPreference(pref);
194 assertTrue(pref.isChecked());
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
H A DInputMethodAndSubtypeEnablerManager.java87 public boolean onPreferenceChange(final Preference pref, final Object newValue) { argument
94 if (mAutoSelectionPrefsMap.get(imiId) == pref) {
95 final TwoStatePreference autoSelectionPref = (TwoStatePreference) pref;
103 if (pref instanceof InputMethodSubtypePreference) {
104 final InputMethodSubtypePreference subtypePref = (InputMethodSubtypePreference) pref;
166 for (final Preference pref : subtypePreferences) {
167 activeInputMethodsCategory.addPreference(pref);
168 pref.setOnPreferenceChangeListener(this);
169 InputMethodAndSubtypeUtil.removeUnnecessaryNonPersistentPreference(pref);
182 for (final Preference pref
[all...]
H A DInputMethodAndSubtypeUtil.java169 final Preference pref = context.findPreference(imiId);
170 if (pref == null) {
174 // <code>pref</code> is an instance of TwoStatePreference.
175 final boolean isImeChecked = (pref instanceof TwoStatePreference) ?
176 ((TwoStatePreference) pref).isChecked()
296 final Preference pref = context.findPreference(imiId);
297 if (pref instanceof TwoStatePreference) {
298 final TwoStatePreference subtypePref = (TwoStatePreference) pref;
321 final TwoStatePreference pref = (TwoStatePreference) preferenceScreen
323 if (pref !
359 removeUnnecessaryNonPersistentPreference(final Preference pref) argument
[all...]
/frameworks/support/frameworks/support/samples/SupportPreferenceDemos/src/com/example/android/supportpreference/
H A DFragmentSupportPreferencesLeanback.java51 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { argument
53 Fragment.instantiate(getActivity(), pref.getFragment(), pref.getExtras());
64 public boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { argument
67 args.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey());
H A DFragmentSupportPreferences.java44 public boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { argument
47 args.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey());
H A DFragmentSupportPreferencesCompat.java44 public boolean onPreferenceStartScreen(PreferenceFragmentCompat caller, PreferenceScreen pref) { argument
47 args.putString(PreferenceFragmentCompat.ARG_PREFERENCE_ROOT, pref.getKey());
/frameworks/support/samples/SupportPreferenceDemos/src/com/example/android/supportpreference/
H A DFragmentSupportPreferencesLeanback.java51 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { argument
53 Fragment.instantiate(getActivity(), pref.getFragment(), pref.getExtras());
64 public boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { argument
67 args.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey());
H A DFragmentSupportPreferences.java44 public boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { argument
47 args.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey());
H A DFragmentSupportPreferencesCompat.java44 public boolean onPreferenceStartScreen(PreferenceFragmentCompat caller, PreferenceScreen pref) { argument
47 args.putString(PreferenceFragmentCompat.ARG_PREFERENCE_ROOT, pref.getKey());
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/
H A DInputMethodSettingsImpl.java153 final Preference pref = mSubtypeEnablerPreference;
154 if (pref == null) {
157 final Context context = pref.getContext();
164 pref.setTitle(title);
165 final Intent intent = pref.getIntent();
171 pref.setSummary(summary);
174 pref.setIcon(mSubtypeEnablerIconRes);
176 pref.setIcon(mSubtypeEnablerIcon);
/frameworks/layoutlib/bridge/src/android/preference/
H A DPreference_Delegate.java41 /*package*/ static View getView(Preference pref, View convertView, ViewGroup parent) { argument
42 Context context = pref.getContext();
44 convertView = pref.getView_Original(convertView, parent);
46 Object cookie = bc.getCookie(pref);
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DTunerActivity.java77 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { argument
79 Class<?> cls = Class.forName(pref.getFragment());
82 b.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey());
85 setTitle(pref.getTitle());
97 public boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { argument
101 b.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey());
H A DRadioListPreference.java124 SelectablePreference pref = new SelectablePreference(context);
125 getPreferenceScreen().addPreference(pref);
126 pref.setTitle(entry);
127 pref.setChecked(Objects.equal(current, values[i]));
128 pref.setKey(String.valueOf(i));
H A DPluginFragment.java102 SwitchPreference pref = new PluginPreference(prefContext, app);
103 pref.setSummary("Plugins: " + toString(plugins.get(app.packageName)));
104 screen.addPreference(pref);
/frameworks/support/v17/preference-leanback/src/android/support/v17/preference/
H A DLeanbackSettingsFragment.java101 public boolean onPreferenceDisplayDialog(@NonNull PreferenceFragment caller, Preference pref) { argument
103 throw new IllegalArgumentException("Cannot display dialog for preference " + pref
107 if (pref instanceof ListPreference) {
108 final ListPreference listPreference = (ListPreference) pref;
112 } else if (pref instanceof MultiSelectListPreference) {
113 MultiSelectListPreference listPreference = (MultiSelectListPreference) pref;
119 // else if (pref instanceof EditTextPreference) {
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
H A DAccessPointPreferenceTest.java76 final AccessPointPreference pref = mock(AccessPointPreference.class);
77 when(pref.getTitle()).thenReturn(ssid);
78 when(pref.getSummary()).thenReturn(summary);
81 RuntimeEnvironment.application, pref, ap))
/frameworks/base/core/java/android/text/method/
H A DQwertyKeyListener.java92 int pref = 0;
95 pref = TextKeyListener.getInstance().getPrefs(view.getContext());
199 if ((pref & TextKeyListener.AUTO_CAP) != 0
250 if ((pref & TextKeyListener.AUTO_TEXT) != 0 && mAutoText &&
284 if ((pref & TextKeyListener.AUTO_PERIOD) != 0 && mAutoText) {
H A DMultiTapKeyListener.java91 int pref = 0;
94 pref = TextKeyListener.getInstance().getPrefs(view.getContext());
179 if ((pref & TextKeyListener.AUTO_CAP) != 0 &&
H A DPasswordTransformationMethod.java101 int pref = TextKeyListener.getInstance().getPrefs(v.getContext());
102 if ((pref & TextKeyListener.SHOW_PASSWORD) != 0) {
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
H A DAccessPointPreference.java89 // Used for dummy pref.
155 // Used for dummy pref.
250 mContentDescription = buildContentDescription(getContext(), this /* pref */, mAccessPoint);
276 static CharSequence buildContentDescription(Context context, Preference pref, AccessPoint ap) { argument
277 CharSequence contentDescription = pref.getTitle();
278 final CharSequence summary = pref.getSummary();
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DPreferenceGroupAdapter.java264 // Send the pref object as a placeholder to ensure the view holder is recycled in place
283 // Index (inferred) in mPreferenceList of the item preceding the newly visible pref
285 for (final Preference pref : mPreferenceListInternal) {
286 if (preference.equals(pref)) {
289 if (pref.isVisible()) {
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DWiFiKeyManager.java87 int pref = 0;
89 keyPrefs.put(keyType, pref++);
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DNetworkActivity.java94 // pref settings allow it.
227 boolean pref = sharedPrefs.getBoolean("summaryPref", false);
256 if (pref) {
312 // connection (mobile or Wi-Fi), or because the pref setting is WIFI, and there
/frameworks/support/v14/preference/src/android/support/v14/preference/
H A DPreferenceFragment.java181 * @param pref The preference requesting the fragment.
184 boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref); argument
197 * @param pref The preference screen to navigate to.
200 boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref); argument
208 * @param pref The preference requesting the dialog.
211 boolean onPreferenceDisplayDialog(@NonNull PreferenceFragment caller, Preference pref); argument

Completed in 507 milliseconds

12