/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
D | HvacPolicy.java | 41 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/ |
D | VehiclePropValueBuilder.java | 45 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/Settings/tests/unit/src/com/android/settings/core/ |
D | TogglePreferenceControllerTest.java | 69 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()
|
D | SettingsSliderPreferenceControllerTest.java | 52 final int newValue = 28; in onPreferenceChange_updatesPosition() local 54 mSliderController.onPreferenceChange(mPreference, newValue); in onPreferenceChange_updatesPosition() 56 assertThat(mSliderController.getSliderPosition()).isEqualTo(newValue); in onPreferenceChange_updatesPosition() 61 final int newValue = 28; in updateState_setsPreferenceToCurrentValue() local 62 mSliderController.setSliderPosition(newValue); in updateState_setsPreferenceToCurrentValue() 66 assertThat(mPreference.getProgress()).isEqualTo(newValue); in updateState_setsPreferenceToCurrentValue()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | DevelopmentFragment.java | 763 private void writeBtHciSnoopLogOptions(Object newValue) { in writeBtHciSnoopLogOptions() argument 765 newValue == null ? "" : newValue.toString()); in writeBtHciSnoopLogOptions() 1081 private void writeTrackFrameTimeOptions(Object newValue) { in writeTrackFrameTimeOptions() argument 1083 newValue == null ? "" : newValue.toString()); in writeTrackFrameTimeOptions() 1107 private void writeShowNonRectClipOptions(Object newValue) { in writeShowNonRectClipOptions() argument 1109 newValue == null ? "" : newValue.toString()); in writeShowNonRectClipOptions() 1154 private void writeDebugHwOverdrawOptions(Object newValue) { in writeDebugHwOverdrawOptions() argument 1156 newValue == null ? "" : newValue.toString()); in writeDebugHwOverdrawOptions() 1384 private void writeUsbConfigurationOption(Object newValue) { in writeUsbConfigurationOption() argument 1386 String function = newValue.toString(); in writeUsbConfigurationOption() [all …]
|
D | CaptionCustomFragment.java | 145 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/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
D | DatabaseManager.java | 229 public boolean setCustomMeta(BluetoothDevice device, int key, byte[] newValue) { in setCustomMeta() argument 246 if (oldValue != null && Arrays.equals(oldValue, newValue)) { in setCustomMeta() 250 logManufacturerInfo(device, key, newValue); in setCustomMeta() 252 data.setCustomizedMeta(key, newValue); in setCustomMeta() 255 mAdapterService.metadataChanged(address, key, newValue); in setCustomMeta() 393 public void setA2dpSupportsOptionalCodecs(BluetoothDevice device, int newValue) { in setA2dpSupportsOptionalCodecs() argument 399 if (newValue != BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN in setA2dpSupportsOptionalCodecs() 400 && newValue != BluetoothA2dp.OPTIONAL_CODECS_NOT_SUPPORTED in setA2dpSupportsOptionalCodecs() 401 && newValue != BluetoothA2dp.OPTIONAL_CODECS_SUPPORTED) { in setA2dpSupportsOptionalCodecs() 402 Log.e(TAG, "setA2dpSupportsOptionalCodecs: invalid value " + newValue); in setA2dpSupportsOptionalCodecs() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsControllerTestBase.java | 91 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/ |
D | MetadataResponseListener.java | 43 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/apps/Settings/tests/robotests/src/com/android/settings/core/ |
D | SliderPreferenceControllerTest.java | 48 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()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/ |
D | MatchContentFrameRateFragment.java | 107 int newValue; in onPreferenceTreeClick() local 110 newValue = Settings.Secure.MATCH_CONTENT_FRAMERATE_SEAMLESSS_ONLY; in onPreferenceTreeClick() 114 newValue = Settings.Secure.MATCH_CONTENT_FRAMERATE_ALWAYS; in onPreferenceTreeClick() 118 newValue = Settings.Secure.MATCH_CONTENT_FRAMERATE_NEVER; in onPreferenceTreeClick() 128 if (newValue != oldValue) { in onPreferenceTreeClick() 132 newValue); in onPreferenceTreeClick() local 134 logToggleInteracted(toggleIdFromSetting(newValue), true); in onPreferenceTreeClick()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/ |
D | EmbeddedSliceSwitchPreference.java | 108 boolean newValue = !isChecked(); in onClick() 115 Intent i = new Intent().putExtra(EXTRA_TOGGLE_STATE, newValue); in onClick() 121 newValue = !newValue; in onClick() 124 if (callChangeListener(newValue)) { in onClick() 125 setChecked(newValue); in onClick()
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSliceHelper.java | 378 final boolean newValue = intent.getBooleanExtra(EXTRA_TOGGLE_STATE, in handleWifiCallingChanged() 382 if (!newValue || activationAppIntent == null) { in handleWifiCallingChanged() 385 if (newValue != currentValue) { in handleWifiCallingChanged() 387 imsMmTelManager.setVoWiFiSettingEnabled(newValue); in handleWifiCallingChanged() 425 int newValue = errorValue; in handleWifiCallingPreferenceChanged() local 430 newValue = ImsMmTelManager.WIFI_MODE_WIFI_ONLY; in handleWifiCallingPreferenceChanged() 434 newValue = ImsMmTelManager.WIFI_MODE_WIFI_PREFERRED; in handleWifiCallingPreferenceChanged() 437 newValue = ImsMmTelManager.WIFI_MODE_CELLULAR_PREFERRED; in handleWifiCallingPreferenceChanged() 440 if (newValue != errorValue && newValue != currentValue) { in handleWifiCallingPreferenceChanged() 442 imsMmTelManager.setVoWiFiModeSetting(newValue); in handleWifiCallingPreferenceChanged()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DebugGpuOverdrawPreferenceController.java | 54 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()
|
D | ProfileGpuRenderingPreferenceController.java | 53 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()
|
D | DebugNonRectClipOperationsPreferenceController.java | 54 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()
|
D | BackgroundProcessLimitPreferenceController.java | 54 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()
|
D | TransitionAnimationScalePreferenceController.java | 64 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()
|
D | AnimatorDurationScalePreferenceController.java | 62 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()
|
D | WindowAnimationScalePreferenceController.java | 63 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()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | UserPackageInfosLiveData.kt | 57 override fun setValue(newValue: List<LightPackageInfo>?) { in <lambda>() 58 if (newValue != value) { in <lambda>() 62 for (packageInfo in newValue ?: emptyList()) { in <lambda>() 66 super.setValue(newValue) in <lambda>() 108 override fun newValue(key: UserHandle): UserPackageInfosLiveData { in <lambda>() method
|
/packages/apps/Settings/src/com/android/settings/development/autofill/ |
D | AutofillLoggingLevelPreferenceController.java | 72 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument 73 writeLevel(newValue); in onPreferenceChange() 112 private void writeLevel(Object newValue) { in writeLevel() argument 114 if (newValue instanceof String) { in writeLevel() 115 level = Integer.parseInt((String) newValue); in writeLevel()
|
/packages/services/Car/tools/emulator/ |
D | vhal_emulator.py | 248 for newValue in getByAttributeOrKey(value, 'int32_values', []): 249 propValue.int32_values.append(newValue) 250 for newValue in getByAttributeOrKey(value, 'int64_values', []): 251 propValue.int64_values.append(newValue) 252 for newValue in getByAttributeOrKey(value, 'float_values', []): 253 propValue.float_values.append(newValue)
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | SpellCheckerPreference.java | 100 public boolean callChangeListener(Object newValue) { in callChangeListener() argument 101 newValue = newValue != null ? mScis[Integer.parseInt((String) newValue)] : null; in callChangeListener() 102 return super.callChangeListener(newValue); in callChangeListener()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | MetricsUtils.java | 117 int newValue = histogram.get(key) + 1; in addValueToLogHistogram() local 118 histogram.put(key, newValue); in addValueToLogHistogram() 120 return newValue; in addValueToLogHistogram() 163 int newValue = histogram.get(bucket) + 1; in addValueToLinearHistogram() local 164 histogram.put(bucket, newValue); in addValueToLinearHistogram() 166 return newValue; in addValueToLinearHistogram()
|