/packages/services/Car/libs/vehicle-hal-support-lib/src/com/android/car/hal/test/ |
D | AidlVehiclePropValueBuilder.java | 59 VehiclePropValue newValue = new VehiclePropValue(); in clone() local 61 newValue.prop = propValue.prop; in clone() 62 newValue.areaId = propValue.areaId; in clone() 63 newValue.status = propValue.status; in clone() 64 newValue.timestamp = propValue.timestamp; in clone() 65 newValue.value = new RawPropValues(); in clone() 66 newValue.value.stringValue = propValue.value.stringValue; in clone() 68 newValue.value.int32Values = propValue.value.int32Values.clone(); in clone() 70 newValue.value.int32Values = new int[0]; in clone() 73 newValue.value.floatValues = propValue.value.floatValues.clone(); in clone() [all …]
|
D | HidlVehiclePropValueBuilder.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/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/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/optics/ |
D | Lens.kt | 90 abstract fun set(entity: S, newValue: B): T in get() 139 is Action.Update -> Action.Update(set(entity, res.newValue)) in modify() 178 override fun set(entity: S, newValue: NewB): T = in compose() 181 newValue = other.set(entity = this@Lens.get(entity) as AIn, newValue = newValue) in compose() 223 override fun set(entity: Entity, newValue: Focus): Entity = setter(entity, newValue) in create() 244 override fun set(entity: S, newValue: B): T = setter(entity, newValue) in create()
|
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/plugins/plugintoggle/ |
D | PluginToggleReducer.kt | 29 override val newValue: Boolean, constant in com.android.car.customization.tool.features.plugins.plugintoggle.ToggleCarUiLibPluginAction 32 override fun clone(newValue: Boolean) = copy(newValue = newValue) in clone() 43 pluginManager.changeCarUiPluginState(action.newValue) in clone() 44 return menu.modifySwitch(context, action.itemId, action.newValue) in clone()
|
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/features/oemtokens/oemtokenstoggle/ |
D | OemTokensToggleReducer.kt | 32 override val newValue: Boolean, constant in com.android.car.customization.tool.features.oemtokens.oemtokenstoggle.ToggleOemTokensAction 35 override fun clone(newValue: Boolean) = copy(newValue = newValue) in clone() 45 overlayManager.setEnabled(action.rroPackage, action.newValue, UserHandle.CURRENT) in clone() 47 return menu.modifySwitch(context, action.itemId, action.newValue) in clone()
|
/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/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsControllerTestBase.java | 95 DeviceConfig setName(String newValue) { in setName() argument 96 this.name = newValue; in setName() 100 DeviceConfig setAddress(String newValue) { in setAddress() argument 101 this.address = newValue; in setAddress() 105 DeviceConfig setMajorDeviceClass(int newValue) { in setMajorDeviceClass() argument 106 this.majorDeviceClass = newValue; in setMajorDeviceClass() 110 DeviceConfig setConnected(boolean newValue) { in setConnected() argument 111 this.connected = newValue; in setConnected()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | MultiScalePropertyFactory.java | 76 public void setValue(T obj, float newValue) { in setValue() argument 90 float minValue = Math.min(mMinOfOthers, newValue); in setValue() 91 float maxValue = Math.max(mMaxOfOthers, newValue); in setValue() 92 float multValue = mMultiplicationOfOthers * newValue; in setValue() 94 mValue = newValue; in setValue() 99 + " newValue=" + newValue + " mInx=" + mInx in setValue()
|
/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/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/preference/ |
D | HealthSwitchPreference.kt | 58 loggingClickListener = OnPreferenceChangeListener { preference, newValue -> in <lambda>() method 59 if (newValue is Boolean && newValue) { in <lambda>() 61 } else if (newValue is Boolean) { in <lambda>() 64 onPreferenceChangeListener?.onPreferenceChange(preference, newValue)!! in <lambda>()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/ |
D | MatchContentFrameRateFragment.java | 118 int newValue; in onPreferenceTreeClick() local 121 newValue = Settings.Secure.MATCH_CONTENT_FRAMERATE_SEAMLESSS_ONLY; in onPreferenceTreeClick() 125 newValue = Settings.Secure.MATCH_CONTENT_FRAMERATE_ALWAYS; in onPreferenceTreeClick() 129 newValue = Settings.Secure.MATCH_CONTENT_FRAMERATE_NEVER; in onPreferenceTreeClick() 139 if (newValue != oldValue) { in onPreferenceTreeClick() 143 newValue); in onPreferenceTreeClick() local 145 logToggleInteracted(toggleIdFromSetting(newValue), true); in onPreferenceTreeClick()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | DebugNonRectClipOperationsPreferenceController.java | 55 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument 56 writeShowNonRectClipOptions(newValue); in onPreferenceChange() 66 private void writeShowNonRectClipOptions(Object newValue) { in writeShowNonRectClipOptions() argument 68 newValue == null ? "" : newValue.toString()); in writeShowNonRectClipOptions()
|
D | ProfileGpuRenderingPreferenceController.java | 54 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument 55 writeTrackFrameTimeOptions(newValue); in onPreferenceChange() 65 private void writeTrackFrameTimeOptions(Object newValue) { in writeTrackFrameTimeOptions() argument 67 newValue == null ? "" : newValue.toString()); in writeTrackFrameTimeOptions()
|
D | DebugGpuOverdrawPreferenceController.java | 55 public boolean onPreferenceChange(Preference preference, Object newValue) { in onPreferenceChange() argument 56 writeDebugHwOverdrawOptions(newValue); in onPreferenceChange() 66 private void writeDebugHwOverdrawOptions(Object newValue) { in writeDebugHwOverdrawOptions() argument 68 newValue == null ? "" : newValue.toString()); in writeDebugHwOverdrawOptions()
|
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 | 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 | TransitionAnimationScalePreferenceController.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()
|
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/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | DevelopmentFragment.java | 792 private void writeBtHciSnoopLogOptions(Object newValue) { in writeBtHciSnoopLogOptions() argument 794 newValue == null ? "" : newValue.toString()); in writeBtHciSnoopLogOptions() 1110 private void writeTrackFrameTimeOptions(Object newValue) { in writeTrackFrameTimeOptions() argument 1112 newValue == null ? "" : newValue.toString()); in writeTrackFrameTimeOptions() 1136 private void writeShowNonRectClipOptions(Object newValue) { in writeShowNonRectClipOptions() argument 1138 newValue == null ? "" : newValue.toString()); in writeShowNonRectClipOptions() 1183 private void writeDebugHwOverdrawOptions(Object newValue) { in writeDebugHwOverdrawOptions() argument 1185 newValue == null ? "" : newValue.toString()); in writeDebugHwOverdrawOptions() 1459 private void writeUsbConfigurationOption(Object newValue) { in writeUsbConfigurationOption() argument 1461 String function = newValue.toString(); in writeUsbConfigurationOption() [all …]
|
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | UserPackageInfosLiveData.kt | 59 override fun setValue(newValue: List<LightPackageInfo>?) { in <lambda>() 60 if (newValue != value) { in <lambda>() 64 for (packageInfo in newValue ?: emptyList()) { in <lambda>() 68 super.setValue(newValue) in <lambda>() 127 override fun newValue(key: UserHandle): UserPackageInfosLiveData { in <lambda>() method
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSliceHelper.java | 380 final boolean newValue = !(intent.getBooleanExtra(EXTRA_TOGGLE_STATE, in handleWifiCallingChanged() 386 if ((newValue != currentValue) && (activationAppIntent == null || !newValue)) { in handleWifiCallingChanged() 391 imsMmTelManager.setVoWiFiSettingEnabled(newValue); in handleWifiCallingChanged() 397 + " from " + currentValue + " to " + newValue); in handleWifiCallingChanged() 446 int newValue = errorValue; in handleWifiCallingPreferenceChanged() local 451 newValue = ImsMmTelManager.WIFI_MODE_WIFI_ONLY; in handleWifiCallingPreferenceChanged() 455 newValue = ImsMmTelManager.WIFI_MODE_WIFI_PREFERRED; in handleWifiCallingPreferenceChanged() 458 newValue = ImsMmTelManager.WIFI_MODE_CELLULAR_PREFERRED; in handleWifiCallingPreferenceChanged() 461 if (newValue != errorValue && newValue != currentValue) { in handleWifiCallingPreferenceChanged() 464 imsMmTelManager.setVoWiFiModeSetting(newValue); in handleWifiCallingPreferenceChanged()
|