Home
last modified time | relevance | path

Searched refs:newValue (Results 1 – 25 of 476) sorted by relevance

12345678910>>...20

/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacPolicy.java41 Integer newValue = (Integer) config.getMaxValue(areaId); in HvacPolicy() local
42 if (newValue != null && newValue < mMaxHardwareFanSpeed) { in HvacPolicy()
43 mMaxHardwareFanSpeed = newValue; in HvacPolicy()
55 Float newValue = (Float) config.getMaxValue(areaId); in HvacPolicy() local
56 if (newValue != null && newValue < mMaxHardwareTemp) { in HvacPolicy()
57 mMaxHardwareTemp = newValue; in HvacPolicy()
59 newValue = (Float) config.getMinValue(areaId); in HvacPolicy()
60 if (newValue != null && newValue > mMinHardwareTemp) { in HvacPolicy()
61 mMinHardwareTemp = newValue; in HvacPolicy()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DVehiclePropValueBuilder.java45 VehiclePropValue newValue = new VehiclePropValue(); in clone() local
47 newValue.prop = propValue.prop; in clone()
48 newValue.areaId = propValue.areaId; in clone()
49 newValue.timestamp = propValue.timestamp; in clone()
50 newValue.value.stringValue = propValue.value.stringValue; in clone()
51 newValue.value.int32Values.addAll(propValue.value.int32Values); in clone()
52 newValue.value.floatValues.addAll(propValue.value.floatValues); in clone()
53 newValue.value.int64Values.addAll(propValue.value.int64Values); in clone()
54 newValue.value.bytes.addAll(propValue.value.bytes); in clone()
56 return newValue; in clone()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DDevelopmentFragment.java713 private void writeBtHciSnoopLogOptions(Object newValue) { in writeBtHciSnoopLogOptions() argument
715 newValue == null ? "" : newValue.toString()); in writeBtHciSnoopLogOptions()
1036 private void writeTrackFrameTimeOptions(Object newValue) { in writeTrackFrameTimeOptions() argument
1038 newValue == null ? "" : newValue.toString()); in writeTrackFrameTimeOptions()
1062 private void writeShowNonRectClipOptions(Object newValue) { in writeShowNonRectClipOptions() argument
1064 newValue == null ? "" : newValue.toString()); in writeShowNonRectClipOptions()
1109 private void writeDebugHwOverdrawOptions(Object newValue) { in writeDebugHwOverdrawOptions() argument
1111 newValue == null ? "" : newValue.toString()); in writeDebugHwOverdrawOptions()
1269 private void writeUsbConfigurationOption(Object newValue) { in writeUsbConfigurationOption() argument
1271 String function = newValue.toString(); in writeUsbConfigurationOption()
[all …]
DCaptionCustomFragment.java145 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
152 setCaptionsFontFamily((String) newValue); in onPreferenceChange()
155 setCaptionsTextColor((String) newValue); in onPreferenceChange()
158 setCaptionsTextOpacity((String) newValue); in onPreferenceChange()
161 setCaptionsEdgeType((String) newValue); in onPreferenceChange()
164 setCaptionsEdgeColor((String) newValue); in onPreferenceChange()
167 setCaptionsBackgroundColor((String) newValue); in onPreferenceChange()
170 setCaptionsBackgroundOpacity((String) newValue); in onPreferenceChange()
173 setCaptionsWindowColor((String) newValue); in onPreferenceChange()
176 setCaptionsWindowOpacity((String) newValue); in onPreferenceChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DTogglePreferenceControllerTest.java69 boolean newValue = true; in testUpdatesPreferenceOnChange_turnsOn()
70 mToggleController.setChecked(!newValue); in testUpdatesPreferenceOnChange_turnsOn()
72 mToggleController.onPreferenceChange(mPreference, newValue); in testUpdatesPreferenceOnChange_turnsOn()
74 assertThat(mToggleController.isChecked()).isEqualTo(newValue); in testUpdatesPreferenceOnChange_turnsOn()
79 boolean newValue = false; in testUpdatesPreferenceOnChange_turnsOff()
80 mToggleController.setChecked(!newValue); in testUpdatesPreferenceOnChange_turnsOff()
82 mToggleController.onPreferenceChange(mPreference, newValue); in testUpdatesPreferenceOnChange_turnsOff()
84 assertThat(mToggleController.isChecked()).isEqualTo(newValue); in testUpdatesPreferenceOnChange_turnsOff()
DSliderPreferenceControllerTest.java48 final int newValue = 28; in onPreferenceChange_updatesPosition() local
50 mSliderController.onPreferenceChange(mPreference, newValue); in onPreferenceChange_updatesPosition()
52 assertThat(mSliderController.getSliderPosition()).isEqualTo(newValue); in onPreferenceChange_updatesPosition()
57 final int newValue = 28; in updateState_setsPreferenceToCurrentValue() local
58 mSliderController.setSliderPosition(newValue); in updateState_setsPreferenceToCurrentValue()
62 assertThat(mPreference.getValue()).isEqualTo(newValue); in updateState_setsPreferenceToCurrentValue()
DSettingsSliderPreferenceControllerTest.java50 final int newValue = 28; in onPreferenceChange_updatesPosition() local
52 mSliderController.onPreferenceChange(mPreference, newValue); in onPreferenceChange_updatesPosition()
54 assertThat(mSliderController.getSliderPosition()).isEqualTo(newValue); in onPreferenceChange_updatesPosition()
59 final int newValue = 28; in updateState_setsPreferenceToCurrentValue() local
60 mSliderController.setSliderPosition(newValue); in updateState_setsPreferenceToCurrentValue()
64 assertThat(mPreference.getProgress()).isEqualTo(newValue); in updateState_setsPreferenceToCurrentValue()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/
DDatabaseManager.java245 public boolean setCustomMeta(BluetoothDevice device, int key, byte[] newValue) { in setCustomMeta() argument
262 if (oldValue != null && Arrays.equals(oldValue, newValue)) { in setCustomMeta()
266 logManufacturerInfo(device, key, newValue); in setCustomMeta()
268 data.setCustomizedMeta(key, newValue); in setCustomMeta()
271 mAdapterService.metadataChanged(address, key, newValue); in setCustomMeta()
409 public void setA2dpSupportsOptionalCodecs(BluetoothDevice device, int newValue) { in setA2dpSupportsOptionalCodecs() argument
415 if (newValue != BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN in setA2dpSupportsOptionalCodecs()
416 && newValue != BluetoothA2dp.OPTIONAL_CODECS_NOT_SUPPORTED in setA2dpSupportsOptionalCodecs()
417 && newValue != BluetoothA2dp.OPTIONAL_CODECS_SUPPORTED) { in setA2dpSupportsOptionalCodecs()
418 Log.e(TAG, "setA2dpSupportsOptionalCodecs: invalid value " + newValue); in setA2dpSupportsOptionalCodecs()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsControllerTestBase.java91 DeviceConfig setName(String newValue) { in setName() argument
92 this.name = newValue; in setName()
96 DeviceConfig setAddress(String newValue) { in setAddress() argument
97 this.address = newValue; in setAddress()
101 DeviceConfig setMajorDeviceClass(int newValue) { in setMajorDeviceClass() argument
102 this.majorDeviceClass = newValue; in setMajorDeviceClass()
106 DeviceConfig setConnected(boolean newValue) { in setConnected() argument
107 this.connected = newValue; in setConnected()
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DMetadataResponseListener.java43 V newValue = partialResult.get(mKey); in onProgressed() local
44 if (newValue != null) { in onProgressed()
45 mUpdatable.update(newValue); in onProgressed()
51 V newValue = totalCaptureResult.get(mKey); in onCompleted() local
52 if (newValue != null) { in onCompleted()
53 mUpdatable.update(newValue); in onCompleted()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DWifiCallingSliceHelper.java386 final boolean newValue = intent.getBooleanExtra(EXTRA_TOGGLE_STATE, in handleWifiCallingChanged()
390 if (!newValue || activationAppIntent == null) { in handleWifiCallingChanged()
393 if (newValue != currentValue) { in handleWifiCallingChanged()
394 imsManager.setWfcSetting(newValue); in handleWifiCallingChanged()
432 int newValue = errorValue; in handleWifiCallingPreferenceChanged() local
437 newValue = ImsConfig.WfcModeFeatureValueConstants.WIFI_ONLY; in handleWifiCallingPreferenceChanged()
441 newValue = ImsConfig.WfcModeFeatureValueConstants.WIFI_PREFERRED; in handleWifiCallingPreferenceChanged()
444 newValue = ImsConfig.WfcModeFeatureValueConstants.CELLULAR_PREFERRED; in handleWifiCallingPreferenceChanged()
447 if (newValue != errorValue && newValue != currentValue) { in handleWifiCallingPreferenceChanged()
449 imsManager.setWfcMode(newValue, false); in handleWifiCallingPreferenceChanged()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelper.java376 final boolean newValue = intent.getBooleanExtra(EXTRA_TOGGLE_STATE, in handleWifiCallingChanged()
380 if (!newValue || activationAppIntent == null) { in handleWifiCallingChanged()
383 if (newValue != currentValue) { in handleWifiCallingChanged()
385 imsMmTelManager.setVoWiFiSettingEnabled(newValue); in handleWifiCallingChanged()
423 int newValue = errorValue; in handleWifiCallingPreferenceChanged() local
428 newValue = ImsMmTelManager.WIFI_MODE_WIFI_ONLY; in handleWifiCallingPreferenceChanged()
432 newValue = ImsMmTelManager.WIFI_MODE_WIFI_PREFERRED; in handleWifiCallingPreferenceChanged()
435 newValue = ImsMmTelManager.WIFI_MODE_CELLULAR_PREFERRED; in handleWifiCallingPreferenceChanged()
438 if (newValue != errorValue && newValue != currentValue) { in handleWifiCallingPreferenceChanged()
440 imsMmTelManager.setVoWiFiModeSetting(newValue); in handleWifiCallingPreferenceChanged()
/packages/apps/Settings/src/com/android/settings/development/
DDebugGpuOverdrawPreferenceController.java54 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
55 writeDebugHwOverdrawOptions(newValue); in onPreferenceChange()
65 private void writeDebugHwOverdrawOptions(Object newValue) { in writeDebugHwOverdrawOptions() argument
67 newValue == null ? "" : newValue.toString()); in writeDebugHwOverdrawOptions()
DProfileGpuRenderingPreferenceController.java53 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
54 writeTrackFrameTimeOptions(newValue); in onPreferenceChange()
64 private void writeTrackFrameTimeOptions(Object newValue) { in writeTrackFrameTimeOptions() argument
66 newValue == null ? "" : newValue.toString()); in writeTrackFrameTimeOptions()
DDebugNonRectClipOperationsPreferenceController.java54 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
55 writeShowNonRectClipOptions(newValue); in onPreferenceChange()
65 private void writeShowNonRectClipOptions(Object newValue) { in writeShowNonRectClipOptions() argument
67 newValue == null ? "" : newValue.toString()); in writeShowNonRectClipOptions()
DBackgroundProcessLimitPreferenceController.java54 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
55 writeAppProcessLimitOptions(newValue); in onPreferenceChange()
90 private void writeAppProcessLimitOptions(Object newValue) { in writeAppProcessLimitOptions() argument
92 final int limit = newValue != null ? Integer.parseInt(newValue.toString()) : -1; in writeAppProcessLimitOptions()
DWindowAnimationScalePreferenceController.java63 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
64 writeAnimationScaleOption(newValue); in onPreferenceChange()
79 private void writeAnimationScaleOption(Object newValue) { in writeAnimationScaleOption() argument
81 float scale = newValue != null ? Float.parseFloat(newValue.toString()) : DEFAULT_VALUE; in writeAnimationScaleOption()
DTransitionAnimationScalePreferenceController.java64 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
65 writeAnimationScaleOption(newValue); in onPreferenceChange()
80 private void writeAnimationScaleOption(Object newValue) { in writeAnimationScaleOption() argument
82 float scale = newValue != null ? Float.parseFloat(newValue.toString()) : DEFAULT_VALUE; in writeAnimationScaleOption()
DAnimatorDurationScalePreferenceController.java62 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
63 writeAnimationScaleOption(newValue); in onPreferenceChange()
78 private void writeAnimationScaleOption(Object newValue) { in writeAnimationScaleOption() argument
80 float scale = newValue != null ? Float.parseFloat(newValue.toString()) : DEFAULT_VALUE; in writeAnimationScaleOption()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DDebugNonRectClipOperationsPreferenceController.java54 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
55 writeShowNonRectClipOptions(newValue); in onPreferenceChange()
65 private void writeShowNonRectClipOptions(Object newValue) { in writeShowNonRectClipOptions() argument
67 newValue == null ? "" : newValue.toString()); in writeShowNonRectClipOptions()
DDebugGpuOverdrawPreferenceController.java54 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
55 writeDebugHwOverdrawOptions(newValue); in onPreferenceChange()
65 private void writeDebugHwOverdrawOptions(Object newValue) { in writeDebugHwOverdrawOptions() argument
67 newValue == null ? "" : newValue.toString()); in writeDebugHwOverdrawOptions()
DProfileGpuRenderingPreferenceController.java53 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
54 writeTrackFrameTimeOptions(newValue); in onPreferenceChange()
64 private void writeTrackFrameTimeOptions(Object newValue) { in writeTrackFrameTimeOptions() argument
66 newValue == null ? "" : newValue.toString()); in writeTrackFrameTimeOptions()
DBackgroundProcessLimitPreferenceController.java54 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
55 writeAppProcessLimitOptions(newValue); in onPreferenceChange()
90 private void writeAppProcessLimitOptions(Object newValue) { in writeAppProcessLimitOptions() argument
92 final int limit = newValue != null ? Integer.parseInt(newValue.toString()) : -1; in writeAppProcessLimitOptions()
DTransitionAnimationScalePreferenceController.java64 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
65 writeAnimationScaleOption(newValue); in onPreferenceChange()
80 private void writeAnimationScaleOption(Object newValue) { in writeAnimationScaleOption() argument
82 float scale = newValue != null ? Float.parseFloat(newValue.toString()) : DEFAULT_VALUE; in writeAnimationScaleOption()
DAnimatorDurationScalePreferenceController.java62 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument
63 writeAnimationScaleOption(newValue); in onPreferenceChange()
78 private void writeAnimationScaleOption(Object newValue) { in writeAnimationScaleOption() argument
80 float scale = newValue != null ? Float.parseFloat(newValue.toString()) : DEFAULT_VALUE; in writeAnimationScaleOption()

12345678910>>...20