Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A DActionButtonsPreferenceTest.java364 when(pref.setButton1Text(anyInt())).thenReturn(pref); in createMock()
365 when(pref.setButton1Icon(anyInt())).thenReturn(pref); in createMock()
366 when(pref.setButton1Enabled(anyBoolean())).thenReturn(pref); in createMock()
367 when(pref.setButton1Visible(anyBoolean())).thenReturn(pref); in createMock()
370 when(pref.setButton2Text(anyInt())).thenReturn(pref); in createMock()
371 when(pref.setButton2Icon(anyInt())).thenReturn(pref); in createMock()
372 when(pref.setButton2Enabled(anyBoolean())).thenReturn(pref); in createMock()
376 when(pref.setButton3Text(anyInt())).thenReturn(pref); in createMock()
377 when(pref.setButton3Icon(anyInt())).thenReturn(pref); in createMock()
382 when(pref.setButton4Text(anyInt())).thenReturn(pref); in createMock()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
H A DInputMethodAndSubtypeEnablerManager.java95 if (mAutoSelectionPrefsMap.get(imiId) == pref) { in onPreferenceChange()
104 if (pref instanceof InputMethodSubtypePreference) { in onPreferenceChange()
167 for (final Preference pref : subtypePreferences) { in addInputMethodSubtypePreferences()
169 pref.setOnPreferenceChangeListener(this); in addInputMethodSubtypePreferences()
183 for (final Preference pref : subtypePrefs) { in isNoSubtypesExplicitlySelected()
184 if (pref instanceof TwoStatePreference && ((TwoStatePreference) pref).isChecked()) { in isNoSubtypesExplicitlySelected()
199 for (final Preference pref : subtypePrefs) { in setAutoSelectionSubtypesEnabled()
200 if (pref instanceof TwoStatePreference) { in setAutoSelectionSubtypesEnabled()
204 pref.setEnabled(!autoSelectionEnabled); in setAutoSelectionSubtypesEnabled()
242 for (final Preference pref : subtypePrefs) { in updateImplicitlyEnabledSubtypesOf()
[all …]
H A DInputMethodAndSubtypeEnablerManagerCompat.java96 if (mAutoSelectionPrefsMap.get(imiId) == pref) { in onPreferenceChange()
105 if (pref instanceof InputMethodSubtypePreference) { in onPreferenceChange()
168 for (final Preference pref : subtypePreferences) { in addInputMethodSubtypePreferences()
170 pref.setOnPreferenceChangeListener(this); in addInputMethodSubtypePreferences()
184 for (final Preference pref : subtypePrefs) { in isNoSubtypesExplicitlySelected()
185 if (pref instanceof TwoStatePreference && ((TwoStatePreference) pref).isChecked()) { in isNoSubtypesExplicitlySelected()
200 for (final Preference pref : subtypePrefs) { in setAutoSelectionSubtypesEnabled()
201 if (pref instanceof TwoStatePreference) { in setAutoSelectionSubtypesEnabled()
205 pref.setEnabled(!autoSelectionEnabled); in setAutoSelectionSubtypesEnabled()
243 for (final Preference pref : subtypePrefs) { in updateImplicitlyEnabledSubtypesOf()
[all …]
H A DInputMethodAndSubtypeUtilCompat.java205 final Preference pref = fragment.findPreference(imiId); in saveInputMethodSubtypeListForUserInternal() local
206 if (pref == null) { in saveInputMethodSubtypeListForUserInternal()
212 if (pref instanceof TwoStatePreference) { in saveInputMethodSubtypeListForUserInternal()
214 } else if (pref instanceof PrimarySwitchPreference) { in saveInputMethodSubtypeListForUserInternal()
340 final Preference pref = context.findPreference(imiId); in loadInputMethodSubtypeList() local
341 if (pref instanceof TwoStatePreference) { in loadInputMethodSubtypeList()
367 if (pref != null) { in setSubtypesPreferenceEnabled()
368 pref.setEnabled(enabled); in setSubtypesPreferenceEnabled()
396 if (pref != null) { in updateSubtypesPreferenceChecked()
404 final String key = pref.getKey(); in removeUnnecessaryNonPersistentPreference()
[all …]
H A DInputMethodAndSubtypeUtil.java170 final Preference pref = context.findPreference(imiId); in saveInputMethodSubtypeList() local
171 if (pref == null) { 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()
324 if (pref != null) { in setSubtypesPreferenceEnabled()
325 pref.setEnabled(enabled); in setSubtypesPreferenceEnabled()
353 if (pref != null) { in updateSubtypesPreferenceChecked()
361 final String key = pref.getKey(); in removeUnnecessaryNonPersistentPreference()
362 if (pref.isPersistent() || key == null) { in removeUnnecessaryNonPersistentPreference()
[all …]
H A DInputMethodPreference.java71 void onSaveInputMethodPreference(InputMethodPreference pref); in onSaveInputMethodPreference() argument
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
H A DAccessPointPreferenceTest.java75 final AccessPointPreference pref = mock(AccessPointPreference.class); in refresh_openNetwork_updateContentDescription() local
76 when(pref.getTitle()).thenReturn(ssid); in refresh_openNetwork_updateContentDescription()
77 when(pref.getSummary()).thenReturn(summary); in refresh_openNetwork_updateContentDescription()
80 RuntimeEnvironment.application, pref, ap)) in refresh_openNetwork_updateContentDescription()
90 AccessPointPreference pref = createWithAccessPoint(mockAccessPoint); in refresh_shouldUpdateIcon() local
91 pref.refresh(); in refresh_shouldUpdateIcon()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DTunerActivity.java109 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { in onPreferenceStartFragment() argument
111 Class<?> cls = Class.forName(pref.getFragment()); in onPreferenceStartFragment()
114 b.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey()); in onPreferenceStartFragment()
117 setTitle(pref.getTitle()); in onPreferenceStartFragment()
129 public boolean onPreferenceStartScreen(PreferenceFragment caller, PreferenceScreen pref) { in onPreferenceStartScreen() argument
133 b.putString(PreferenceFragment.ARG_PREFERENCE_ROOT, pref.getKey()); in onPreferenceStartScreen()
H A DRadioListPreference.java125 SelectablePreference pref = new SelectablePreference(context); in update() local
126 getPreferenceScreen().addPreference(pref); in update()
127 pref.setTitle(entry); in update()
128 pref.setChecked(Objects.equals(current, values[i])); in update()
129 pref.setKey(String.valueOf(i)); in update()
H A 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()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
H A 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()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/
H A DAbstractPreferenceController.java127 final Preference pref = group.findPreference(key); in setVisible() local
128 if (pref != null) { in setVisible()
129 pref.setVisible(isVisible); in setVisible()
/aosp14/frameworks/base/core/java/android/view/
H A DViewRootRefreshRateController.java183 private static String refreshRatePrefToString(@RefreshRatePref int pref) { in refreshRatePrefToString() argument
184 switch (pref) { in refreshRatePrefToString()
192 return "Unknown pref=" + pref; in refreshRatePrefToString()
/aosp14/frameworks/base/core/java/android/text/method/
H A DQwertyKeyListener.java92 int pref = 0; in onKeyDown() local
95 pref = TextKeyListener.getInstance().getPrefs(view.getContext()); in onKeyDown()
204 if ((pref & TextKeyListener.AUTO_CAP) != 0 in onKeyDown()
255 if ((pref & TextKeyListener.AUTO_TEXT) != 0 && mAutoText && in onKeyDown()
289 if ((pref & TextKeyListener.AUTO_PERIOD) != 0 && mAutoText) { in onKeyDown()
H A 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()
H A DPasswordTransformationMethod.java103 int pref = TextKeyListener.getInstance().getPrefs(v.getContext()); in onTextChanged() local
104 if ((pref & TextKeyListener.SHOW_PASSWORD) != 0) { in onTextChanged()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
H A 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()
/aosp14/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DNetworkActivity.java227 boolean pref = sharedPrefs.getBoolean("summaryPref", false); in loadXmlFromNetwork()
256 if (pref) { in loadXmlFromNetwork()
/aosp14/frameworks/base/core/java/android/preference/
H A DPreferenceActivity.java1423 public boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref) { in onPreferenceStartFragment() argument
1424 startPreferencePanel(pref.getFragment(), pref.getExtras(), pref.getTitleRes(), in onPreferenceStartFragment()
1425 pref.getTitle(), null, 0); in onPreferenceStartFragment()
H A DPreferenceFragment.java155 boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref); in onPreferenceStartFragment() argument
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/
H A DCompanionDeviceManagerService.java1325 SharedPreferences pref = getContext().getSharedPreferences( in maybeGrantAutoRevokeExemptions() local
1328 if (pref.getBoolean(PREF_KEY_AUTO_REVOKE_GRANTS_DONE, false)) { in maybeGrantAutoRevokeExemptions()
1344 pref.edit().putBoolean(PREF_KEY_AUTO_REVOKE_GRANTS_DONE, true).apply(); in maybeGrantAutoRevokeExemptions()
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...