/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
H A D | ActionButtonsPreferenceTest.java | 364 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 D | InputMethodAndSubtypeEnablerManager.java | 95 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 D | InputMethodAndSubtypeEnablerManagerCompat.java | 96 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 D | InputMethodAndSubtypeUtilCompat.java | 205 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 D | InputMethodAndSubtypeUtil.java | 170 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 D | InputMethodPreference.java | 71 void onSaveInputMethodPreference(InputMethodPreference pref); in onSaveInputMethodPreference() argument
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/ |
H A D | AccessPointPreferenceTest.java | 75 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 D | TunerActivity.java | 109 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 D | RadioListPreference.java | 125 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 D | PluginFragment.java | 113 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 D | AbstractSerialNumberPreferenceController.java | 57 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 D | AbstractPreferenceController.java | 127 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 D | ViewRootRefreshRateController.java | 183 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 D | QwertyKeyListener.java | 92 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 D | MultiTapKeyListener.java | 91 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 D | PasswordTransformationMethod.java | 103 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 D | AccessPointPreference.java | 273 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 D | NetworkActivity.java | 227 boolean pref = sharedPrefs.getBoolean("summaryPref", false); in loadXmlFromNetwork() 256 if (pref) { in loadXmlFromNetwork()
|
/aosp14/frameworks/base/core/java/android/preference/ |
H A D | PreferenceActivity.java | 1423 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 D | PreferenceFragment.java | 155 boolean onPreferenceStartFragment(PreferenceFragment caller, Preference pref); in onPreferenceStartFragment() argument
|
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/ |
H A D | CompanionDeviceManagerService.java | 1325 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 D | android-33.jar | AndroidManifest.xml
META-INF/
META-INF/MANIFEST.MF
NOTICES/
NOTICES/libcore ... |