Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiEntryPreferenceTest.java87 final WifiEntryPreference pref = in constructor_shouldSetWifiEntryTitleAndSummary() local
90 assertThat(pref.getTitle()).isEqualTo(MOCK_TITLE); in constructor_shouldSetWifiEntryTitleAndSummary()
91 assertThat(pref.getSummary()).isEqualTo(MOCK_SUMMARY); in constructor_shouldSetWifiEntryTitleAndSummary()
98 final WifiEntryPreference pref = in constructor_shouldSetIcon() local
101 assertThat(pref.getIcon()).isEqualTo(mMockDrawable0); in constructor_shouldSetIcon()
106 final WifiEntryPreference pref = in titleChanged_refresh_shouldUpdateTitle() local
111 pref.refresh(); in titleChanged_refresh_shouldUpdateTitle()
113 assertThat(pref.getTitle()).isEqualTo(updatedTitle); in titleChanged_refresh_shouldUpdateTitle()
118 final WifiEntryPreference pref = in summaryChanged_refresh_shouldUpdateSummary() local
123 pref.refresh(); in summaryChanged_refresh_shouldUpdateSummary()
[all …]
DAccessPointPreferenceTest.java69 final AccessPointPreference pref = mock(AccessPointPreference.class); in refresh_openNetwork_updateContentDescription() local
70 when(pref.getTitle()).thenReturn(ssid); in refresh_openNetwork_updateContentDescription()
71 when(pref.getSummary()).thenReturn(summary); in refresh_openNetwork_updateContentDescription()
74 RuntimeEnvironment.application, pref, ap)) in refresh_openNetwork_updateContentDescription()
84 AccessPointPreference pref = createWithAccessPoint(mockAccessPoint); in refresh_shouldUpdateIcon() local
85 pref.refresh(); in refresh_shouldUpdateIcon()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DActionButtonsPreferenceTest.java255 final ActionButtonsPreference pref = mock(ActionButtonsPreference.class); in createMock() local
256 when(pref.setButton1Text(anyInt())).thenReturn(pref); in createMock()
257 when(pref.setButton1Icon(anyInt())).thenReturn(pref); in createMock()
258 when(pref.setButton1Enabled(anyBoolean())).thenReturn(pref); in createMock()
259 when(pref.setButton1Visible(anyBoolean())).thenReturn(pref); in createMock()
260 when(pref.setButton1OnClickListener(any(View.OnClickListener.class))).thenReturn(pref); in createMock()
262 when(pref.setButton2Text(anyInt())).thenReturn(pref); in createMock()
263 when(pref.setButton2Icon(anyInt())).thenReturn(pref); in createMock()
264 when(pref.setButton2Enabled(anyBoolean())).thenReturn(pref); in createMock()
265 when(pref.setButton2Visible(anyBoolean())).thenReturn(pref); in createMock()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodAndSubtypeEnablerManager.java88 public boolean onPreferenceChange(final Preference pref, final Object newValue) { in onPreferenceChange() argument
95 if (mAutoSelectionPrefsMap.get(imiId) == pref) { in onPreferenceChange()
96 final TwoStatePreference autoSelectionPref = (TwoStatePreference) pref; in onPreferenceChange()
104 if (pref instanceof InputMethodSubtypePreference) { in onPreferenceChange()
105 final InputMethodSubtypePreference subtypePref = (InputMethodSubtypePreference) pref; in onPreferenceChange()
167 for (final Preference pref : subtypePreferences) { in addInputMethodSubtypePreferences()
168 activeInputMethodsCategory.addPreference(pref); in addInputMethodSubtypePreferences()
169 pref.setOnPreferenceChangeListener(this); in addInputMethodSubtypePreferences()
170 InputMethodAndSubtypeUtil.removeUnnecessaryNonPersistentPreference(pref); in addInputMethodSubtypePreferences()
183 for (final Preference pref : subtypePrefs) { in isNoSubtypesExplicitlySelected()
[all …]
DInputMethodAndSubtypeEnablerManagerCompat.java89 public boolean onPreferenceChange(final Preference pref, final Object newValue) { in onPreferenceChange() argument
96 if (mAutoSelectionPrefsMap.get(imiId) == pref) { in onPreferenceChange()
97 final TwoStatePreference autoSelectionPref = (TwoStatePreference) pref; in onPreferenceChange()
105 if (pref instanceof InputMethodSubtypePreference) { in onPreferenceChange()
106 final InputMethodSubtypePreference subtypePref = (InputMethodSubtypePreference) pref; in onPreferenceChange()
168 for (final Preference pref : subtypePreferences) { in addInputMethodSubtypePreferences()
169 activeInputMethodsCategory.addPreference(pref); in addInputMethodSubtypePreferences()
170 pref.setOnPreferenceChangeListener(this); in addInputMethodSubtypePreferences()
171 InputMethodAndSubtypeUtil.removeUnnecessaryNonPersistentPreference(pref); in addInputMethodSubtypePreferences()
184 for (final Preference pref : subtypePrefs) { in isNoSubtypesExplicitlySelected()
[all …]
DInputMethodAndSubtypeUtilCompat.java170 final Preference pref = context.findPreference(imiId); in saveInputMethodSubtypeList() local
171 if (pref == null) { in saveInputMethodSubtypeList()
176 final boolean isImeChecked = (pref instanceof TwoStatePreference) ? in saveInputMethodSubtypeList()
177 ((TwoStatePreference) pref).isChecked() in saveInputMethodSubtypeList()
297 final Preference pref = context.findPreference(imiId); in loadInputMethodSubtypeList() local
298 if (pref instanceof TwoStatePreference) { in loadInputMethodSubtypeList()
299 final TwoStatePreference subtypePref = (TwoStatePreference) pref; in loadInputMethodSubtypeList()
322 final TwoStatePreference pref = (TwoStatePreference) preferenceScreen in setSubtypesPreferenceEnabled() local
324 if (pref != null) { in setSubtypesPreferenceEnabled()
325 pref.setEnabled(enabled); in setSubtypesPreferenceEnabled()
[all …]
DInputMethodAndSubtypeUtil.java170 final Preference pref = context.findPreference(imiId); in saveInputMethodSubtypeList() local
171 if (pref == null) { in saveInputMethodSubtypeList()
176 final boolean isImeChecked = (pref instanceof TwoStatePreference) ? in saveInputMethodSubtypeList()
177 ((TwoStatePreference) pref).isChecked() in saveInputMethodSubtypeList()
297 final Preference pref = context.findPreference(imiId); in loadInputMethodSubtypeList() local
298 if (pref instanceof TwoStatePreference) { in loadInputMethodSubtypeList()
299 final TwoStatePreference subtypePref = (TwoStatePreference) pref; in loadInputMethodSubtypeList()
322 final TwoStatePreference pref = (TwoStatePreference) preferenceScreen in setSubtypesPreferenceEnabled() local
324 if (pref != null) { in setSubtypesPreferenceEnabled()
325 pref.setEnabled(enabled); in setSubtypesPreferenceEnabled()
[all …]
DInputMethodPreference.java69 void onSaveInputMethodPreference(InputMethodPreference pref); in onSaveInputMethodPreference() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerActivity.java94 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { in onPreferenceStartFragment() argument
96 Class<?> cls = Class.forName(pref.getFragment()); in onPreferenceStartFragment()
99 b.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey()); in onPreferenceStartFragment()
102 setTitle(pref.getTitle()); in onPreferenceStartFragment()
114 public boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { in onPreferenceStartScreen() argument
118 b.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey()); in onPreferenceStartScreen()
DRadioListPreference.java122 SelectablePreference pref = new SelectablePreference(context); in update() local
123 getPreferenceScreen().addPreference(pref); in update()
124 pref.setTitle(entry); in update()
125 pref.setChecked(Objects.equals(current, values[i])); in update()
126 pref.setKey(String.valueOf(i)); in update()
DPluginFragment.java113 SwitchPreference pref = new PluginPreference(prefContext, app, mPluginEnabler); in loadPrefs()
114 pref.setSummary("Plugins: " + toString(plugins.get(app.packageName))); in loadPrefs()
115 screen.addPreference(pref); in loadPrefs()
/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/src/com/android/settingslib/deviceinfo/
DAbstractSerialNumberPreferenceController.java57 final Preference pref = screen.findPreference(KEY_SERIAL_NUMBER); in displayPreference() local
58 if (pref != null) { in displayPreference()
59 pref.setSummary(mSerialNumber); in displayPreference()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/
DAbstractPreferenceController.java92 final Preference pref = group.findPreference(key); in setVisible() local
93 if (pref != null) { in setVisible()
94 pref.setVisible(isVisible); in setVisible()
/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.java103 int pref = TextKeyListener.getInstance().getPrefs(v.getContext()); in onTextChanged() local
104 if ((pref & TextKeyListener.SHOW_PASSWORD) != 0) { in onTextChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPointPreference.java273 static CharSequence buildContentDescription(Context context, Preference pref, AccessPoint ap) { in buildContentDescription() argument
274 CharSequence contentDescription = pref.getTitle(); in buildContentDescription()
275 final CharSequence summary = pref.getSummary(); in buildContentDescription()
/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/base/core/java/android/preference/
DPreferenceActivity.java1422 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { in onPreferenceStartFragment() argument
1423 startPreferencePanel(pref.getFragment(), pref.getExtras(), pref.getTitleRes(), in onPreferenceStartFragment()
1424 pref.getTitle(), null, 0); in onPreferenceStartFragment()
DPreferenceFragment.java154 boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref); in onPreferenceStartFragment() argument
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java216 SharedPreferences pref = getContext().getSharedPreferences( in maybeGrantAutoRevokeExemptions() local
219 if (pref.getBoolean(PREF_KEY_AUTO_REVOKE_GRANTS_DONE, false)) { in maybeGrantAutoRevokeExemptions()
237 pref.edit().putBoolean(PREF_KEY_AUTO_REVOKE_GRANTS_DONE, true).apply(); in maybeGrantAutoRevokeExemptions()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt54929 field public static final java.lang.String AUTH_SCHEME_PREF = "http.auth.scheme-pref";