/packages/apps/Settings/tests/robotests/src/com/android/settings/search/ |
H A D | InlineSwitchPayloadTest.java | 112 int newValue = payload.getValue(mContext); 114 assertThat(newValue).isEqualTo(1 - currentValue); 122 int newValue = 1; 124 Settings.System.putInt(resolver, SCREEN_BRIGHTNESS_MODE, newValue); 126 payload.setValue(mContext, newValue); 129 assertThat(updatedValue).isEqualTo(1 - newValue);
|
/packages/services/Car/tools/emulator/ |
H A D | vhal_emulator.py | 246 for newValue in getByAttributeOrKey(value, 'int32_values', []): 247 propValue.int32_values.append(newValue) 248 for newValue in getByAttributeOrKey(value, 'int64_values', []): 249 propValue.int64_values.append(newValue) 250 for newValue in getByAttributeOrKey(value, 'float_values', []): 251 propValue.float_values.append(newValue)
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
H A D | CaptionCustomFragment.java | 144 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 151 setCaptionsFontFamily((String) newValue); 154 setCaptionsTextColor((String) newValue); 157 setCaptionsTextOpacity((String) newValue); 160 setCaptionsEdgeType((String) newValue); 163 setCaptionsEdgeColor((String) newValue); 166 setCaptionsBackgroundColor((String) newValue); 169 setCaptionsBackgroundOpacity((String) newValue); 172 setCaptionsWindowColor((String) newValue); 175 setCaptionsWindowOpacity((String) newValue); [all...] |
H A D | DevelopmentFragment.java | 1002 private void writeTrackFrameTimeOptions(Object newValue) { argument 1004 newValue == null ? "" : newValue.toString()); 1028 private void writeShowNonRectClipOptions(Object newValue) { argument 1030 newValue == null ? "" : newValue.toString()); 1075 private void writeDebugHwOverdrawOptions(Object newValue) { argument 1077 newValue == null ? "" : newValue.toString()); 1264 private void writeLogdSizeOption(Object newValue) { argument 1302 writeUsbConfigurationOption(Object newValue) argument 1354 writeAnimationScaleOption(int which, ListPreference pref, Object newValue) argument 1383 writeOverlayDisplayDevicesOptions(Object newValue) argument 1407 writeOpenGLTracesOptions(Object newValue) argument 1435 writeAppProcessLimitOptions(Object newValue) argument 1616 onPreferenceChange(Preference preference, Object newValue) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | GeneralPreferences.java | 304 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 308 if ((Boolean)newValue) { 316 mHideDeclined.setChecked((Boolean) newValue); 322 mWeekStart.setValue((String) newValue); 325 mDefaultReminder.setValue((String) newValue); 328 if (newValue instanceof String) { 329 Utils.setRingTonePreference(activity, (String) newValue); 330 String ringtone = getRingtoneTitleFromUri(activity, (String) newValue); 335 mVibrate.setChecked((Boolean) newValue);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
H A D | AmbientDisplayNotificationsPreferenceControllerTest.java | 148 int newValue = 1; 152 ((InlinePayload) mController.getResultPayload()).setValue(mContext, newValue); 155 assertThat(updatedValue).isEqualTo(newValue); 165 int newValue = ((InlinePayload) mController.getResultPayload()).getValue(mContext); 167 assertThat(newValue).isEqualTo(currentValue);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
H A D | LocationPreferenceControllerTest.java | 186 int newValue = Secure.LOCATION_MODE_BATTERY_SAVING; 190 ((InlinePayload) mController.getResultPayload()).setValue(mContext, newValue); 194 assertThat(updatedValue).isEqualTo(newValue); 204 int newValue = ((InlinePayload) mController.getResultPayload()).getValue(mContext); 206 assertThat(newValue).isEqualTo(expectedValue);
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
H A D | TouchTargetEnforcerTest.java | 131 private void assertBoundsCorrect(int oldValue, int newValue) { argument 132 assertThat(newValue, greaterThanOrEqualTo(mEdgeValue)); 134 assertThat(newValue, equalTo(oldValue));
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | ToggleAutoclickPreferenceFragment.java | 160 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 161 if (preference == mDelay && newValue instanceof Integer) { 164 seekBarProgressToDelay((int)newValue));
|
H A D | ToggleDaltonizerPreferenceFragment.java | 70 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 72 Settings.Secure.putInt(getContentResolver(), TYPE, Integer.parseInt((String) newValue));
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
H A D | ManagedProfileSettings.java | 129 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 131 if ((boolean) newValue) { 139 int value = ((boolean) newValue == true) ? 1 : 0;
|
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | PictureInPictureDetails.java | 72 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 74 logSpecialPermissionChange((Boolean) newValue, mPackageName); 76 (Boolean) newValue);
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/ |
H A D | MockedServiceManager.java | 80 final Object obj, final Object newValue) 90 field.set(obj, newValue); 79 replaceInstance(final Class c, final String instanceName, final Object obj, final Object newValue) argument
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | AirplaneModeEnabler.java | 122 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 127 Boolean value = (Boolean) newValue;
|
/packages/apps/Settings/src/com/android/settings/applications/assist/ |
H A D | AssistContextPreferenceController.java | 111 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 114 (boolean) newValue ? 1 : 0);
|
/packages/apps/Settings/src/com/android/settings/display/ |
H A D | AmbientDisplayAlwaysOnPreferenceController.java | 72 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 73 int enabled = (boolean) newValue ? ON : OFF;
|
H A D | AmbientDisplayNotificationsPreferenceController.java | 76 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 77 boolean value = (Boolean) newValue;
|
H A D | AutoRotatePreferenceController.java | 65 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 66 final boolean locked = !(boolean) newValue;
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
H A D | DoubleTwistPreferenceController.java | 87 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 88 final int enabled = (boolean) newValue ? ON : OFF;
|
H A D | PickupGesturePreferenceController.java | 84 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 85 final boolean enabled = (boolean) newValue;
|
/packages/apps/Settings/src/com/android/settings/notification/ |
H A D | PulseNotificationPreferenceController.java | 96 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 97 final boolean val = (Boolean) newValue;
|
H A D | VibrateWhenRingPreferenceController.java | 95 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 96 final boolean val = (Boolean) newValue;
|
/packages/apps/Settings/src/com/android/settings/qstile/ |
H A D | DevelopmentTileConfigActivity.java | 89 public boolean onPreferenceChange(Preference preference, Object newValue) { argument 92 getPackageManager().setComponentEnabledSetting(cn, (Boolean) newValue
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessibility/ |
H A D | AccessibilityShortcutFragment.java | 51 enablePref.setOnPreferenceChangeListener((preference, newValue) -> { 52 setAccessibilityShortcutEnabled((Boolean) newValue);
|
H A D | AccessibilityShortcutServiceFragment.java | 48 (preference, newValue) -> { 52 if ((Boolean) newValue && !TextUtils.equals(newCompString, currentService)) {
|