Searched refs:newValue (Results 51 - 75 of 170) sorted by relevance

1234567

/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
H A DInlineSwitchPayloadTest.java112 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 Dvhal_emulator.py246 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 DCaptionCustomFragment.java144 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 DDevelopmentFragment.java1002 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 DGeneralPreferences.java304 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 DAmbientDisplayNotificationsPreferenceControllerTest.java148 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 DLocationPreferenceControllerTest.java186 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 DTouchTargetEnforcerTest.java131 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 DToggleAutoclickPreferenceFragment.java160 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
161 if (preference == mDelay && newValue instanceof Integer) {
164 seekBarProgressToDelay((int)newValue));
H A DToggleDaltonizerPreferenceFragment.java70 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 DManagedProfileSettings.java129 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 DPictureInPictureDetails.java72 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 DMockedServiceManager.java80 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 DAirplaneModeEnabler.java122 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
127 Boolean value = (Boolean) newValue;
/packages/apps/Settings/src/com/android/settings/applications/assist/
H A DAssistContextPreferenceController.java111 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
114 (boolean) newValue ? 1 : 0);
/packages/apps/Settings/src/com/android/settings/display/
H A DAmbientDisplayAlwaysOnPreferenceController.java72 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
73 int enabled = (boolean) newValue ? ON : OFF;
H A DAmbientDisplayNotificationsPreferenceController.java76 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
77 boolean value = (Boolean) newValue;
H A DAutoRotatePreferenceController.java65 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
66 final boolean locked = !(boolean) newValue;
/packages/apps/Settings/src/com/android/settings/gestures/
H A DDoubleTwistPreferenceController.java87 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
88 final int enabled = (boolean) newValue ? ON : OFF;
H A DPickupGesturePreferenceController.java84 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
85 final boolean enabled = (boolean) newValue;
/packages/apps/Settings/src/com/android/settings/notification/
H A DPulseNotificationPreferenceController.java96 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
97 final boolean val = (Boolean) newValue;
H A DVibrateWhenRingPreferenceController.java95 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
96 final boolean val = (Boolean) newValue;
/packages/apps/Settings/src/com/android/settings/qstile/
H A DDevelopmentTileConfigActivity.java89 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 DAccessibilityShortcutFragment.java51 enablePref.setOnPreferenceChangeListener((preference, newValue) -> {
52 setAccessibilityShortcutEnabled((Boolean) newValue);
H A DAccessibilityShortcutServiceFragment.java48 (preference, newValue) -> {
52 if ((Boolean) newValue && !TextUtils.equals(newCompString, currentService)) {

Completed in 433 milliseconds

1234567