Searched refs:newValue (Results 1 - 25 of 170) sorted by relevance

1234567

/packages/apps/Camera2/src/com/android/camera/one/v2/common/
H A DMetadataResponseListener.java43 V newValue = partialResult.get(mKey);
44 if (newValue != null) {
45 mUpdatable.update(newValue);
51 V newValue = totalCaptureResult.get(mKey);
52 if (newValue != null) {
53 mUpdatable.update(newValue);
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DStorageLowState.java68 public static void setIsStorageLow(boolean newValue) { argument
69 if (sIsStorageLow == newValue) {
73 sIsStorageLow = newValue;
77 if (newValue) {
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
H A DInlinePayloadTest.java39 int newValue = payload.getValue(mContext);
41 assertThat(newValue).isEqualTo(currentValue);
50 int newValue = payload.getValue(mContext);
52 assertThat(newValue).isEqualTo(currentValue);
61 int newValue = payload.getValue(mContext);
63 assertThat(newValue).isEqualTo(currentValue);
69 int newValue = 1;
73 payload.setValue(mContext, newValue);
76 assertThat(updatedValue).isEqualTo(newValue);
82 int newValue
[all...]
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
H A DVehiclePropValueBuilder.java45 VehiclePropValue newValue = new VehiclePropValue();
47 newValue.prop = propValue.prop;
48 newValue.areaId = propValue.areaId;
49 newValue.timestamp = propValue.timestamp;
50 newValue.value.stringValue = propValue.value.stringValue;
51 newValue.value.int32Values.addAll(propValue.value.int32Values);
52 newValue.value.floatValues.addAll(propValue.value.floatValues);
53 newValue.value.int64Values.addAll(propValue.value.int64Values);
54 newValue.value.bytes.addAll(propValue.value.bytes);
56 return newValue;
[all...]
/packages/apps/Settings/src/com/android/settings/search/
H A DInlinePayload.java138 * @param newValue is the requested value for the setting.
141 public boolean setValue(Context context, int newValue) { argument
142 newValue = standardizeInput(newValue);
146 return Settings.Global.putInt(context.getContentResolver(), mSettingKey, newValue);
148 return Settings.Secure.putInt(context.getContentResolver(), mSettingKey, newValue);
150 return Settings.System.putInt(context.getContentResolver(), mSettingKey, newValue);
/packages/apps/Settings/src/com/android/settings/widget/
H A DMasterSwitchController.java66 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
68 return mListener.onSwitchToggled((Boolean) newValue);
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A DBluetoothDetailsControllerTestBase.java81 public DeviceConfig setName(String newValue) { argument
82 this.name = newValue;
86 public DeviceConfig setAddress(String newValue) { argument
87 this.address = newValue;
91 public DeviceConfig setMajorDeviceClass(int newValue) { argument
92 this.majorDeviceClass = newValue;
96 public DeviceConfig setConnected(boolean newValue) { argument
97 this.connected = newValue;
/packages/apps/Camera2/src/com/android/camera/util/
H A DListenerCombiner.java76 * @param newValue the new value of the input.
79 public boolean setInput(Input input, boolean newValue) { argument
81 mInputs.put(input, newValue);
85 if (newValue == mOutput) {
/packages/apps/Contacts/src/com/android/contacts/preference/
H A DDisplayOrderPreference.java76 int newValue = Integer.parseInt(value);
77 if (newValue != mPreferences.getDisplayOrder()) {
78 mPreferences.setDisplayOrder(newValue);
H A DPhoneticNameDisplayPreference.java79 final int newValue = Integer.parseInt(value);
80 if (newValue != mPreferences.getPhoneticNameDisplayPreference()) {
81 mPreferences.setPhoneticNameDisplayPreference(newValue);
H A DSortOrderPreference.java76 int newValue = Integer.parseInt(value);
77 if (newValue != mPreferences.getSortOrder()) {
78 mPreferences.setSortOrder(newValue);
/packages/apps/Dialer/java/com/android/contacts/common/preference/
H A DDisplayOrderPreference.java75 int newValue = Integer.parseInt(value);
76 if (newValue != mPreferences.getDisplayOrder()) {
77 mPreferences.setDisplayOrder(newValue);
H A DSortOrderPreference.java75 int newValue = Integer.parseInt(value);
76 if (newValue != mPreferences.getSortOrder()) {
77 mPreferences.setSortOrder(newValue);
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
H A DAutoBrightnessPreferenceControllerTest.java85 int newValue = 1;
89 ((InlinePayload) mController.getResultPayload()).setValue(mContext, newValue);
92 assertThat(updatedValue).isEqualTo(newValue);
101 int newValue = ((InlinePayload) mController.getResultPayload()).getValue(mContext);
103 assertThat(newValue).isEqualTo(currentValue);
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
H A DDoubleTapPowerPreferenceControllerTest.java115 int newValue = 1;
121 payload.setValue(mContext, newValue);
126 assertThat(updatedValue).isEqualTo(newValue);
137 int newValue = ((InlinePayload) mController.getResultPayload()).getValue(mContext);
138 newValue = 1 - newValue; // DoubleTapPower is a non-standard switch
139 assertThat(newValue).isEqualTo(currentValue);
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/
H A DGarageModeSettingsFragment.java132 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
134 updateGarageSwitch((boolean) newValue);
138 updateGarageTimeLimit(Integer.valueOf((String) newValue));
146 private void updateGarageSwitch(boolean newValue) { argument
148 KEY_GARAGE_MODE_ENABLED, newValue ? 1 : 0);
151 private void updateGarageTimeLimit(int newValue) { argument
153 KEY_GARAGE_MODE_MAINTENANCE_WINDOW, newValue * 60 * 1000);
/packages/apps/Settings/src/com/android/settings/notification/
H A DZenModePrioritySettings.java63 public boolean onPreferenceChange(Preference preference, Object newValue) {
65 final boolean val = (Boolean) newValue;
79 public boolean onPreferenceChange(Preference preference, Object newValue) {
81 final boolean val = (Boolean) newValue;
95 public boolean onPreferenceChange(Preference preference, Object newValue) {
97 final int val = Integer.parseInt((String) newValue);
116 public boolean onPreferenceChange(Preference preference, Object newValue) {
118 final int val = Integer.parseInt((String) newValue);
137 public boolean onPreferenceChange(Preference preference, Object newValue) {
139 final boolean val = (Boolean) newValue;
[all...]
H A DZenModeVisualInterruptionSettings.java56 public boolean onPreferenceChange(Preference preference, Object newValue) {
58 final boolean val = (Boolean) newValue;
70 public boolean onPreferenceChange(Preference preference, Object newValue) {
72 final boolean val = (Boolean) newValue;
/packages/apps/Calendar/src/com/android/calendar/
H A DQuickResponseSettings.java86 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
89 if (!mResponses[i].equals(newValue)) {
90 mResponses[i] = (String) newValue;
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DPhotosDeletionPreference.java81 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
82 boolean checked = (boolean) newValue;
84 return super.onPreferenceChange(preference, newValue);
/packages/services/Telecomm/src/com/android/server/telecom/
H A DRespondViaSmsSettings.java94 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
97 Log.d(this, " newValue = '%s'", newValue);
103 // Preference itself gets updated, so we need to use newValue here
105 pref.setTitle((String) newValue);
109 editor.putString(pref.getKey(), (String) newValue).commit();
/packages/apps/Camera2/src/com/android/camera/async/
H A DConcurrentState.java66 public void update(T newValue) { argument
67 mValue = newValue;
/packages/apps/Settings/src/com/android/settings/datetime/
H A DAutoTimePreferenceController.java60 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
61 boolean autoEnabled = (Boolean) newValue;
H A DAutoTimeZonePreferenceController.java62 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
63 boolean autoZoneEnabled = (Boolean) newValue;
/packages/apps/Settings/src/com/android/settings/display/
H A DBatteryPercentagePreferenceController.java60 public boolean onPreferenceChange(Preference preference, Object newValue) { argument
61 boolean showPercentage = (Boolean) newValue;

Completed in 515 milliseconds

1234567