Home
last modified time | relevance | path

Searched refs:floatValues (Results 1 – 25 of 30) sorted by relevance

12

/packages/services/Car/tools/emulator/
Ddiagjson.example19 "floatValues": [
63 "floatValues": [
107 "floatValues": [
151 "floatValues": [
195 "floatValues": [
239 "floatValues": [
283 "floatValues": [
327 "floatValues": [
371 "floatValues": [
415 "floatValues": [
[all …]
Dobd2_to_diagjson.py133 self.store.floatValues = []
137 self.store.floatValues.append(d)
140 def floatValues(self): member in Event
143 for value in self.store.floatValues:
153 for floatValue in json.floatValues:
167 for id, value in self.floatValues():
/packages/services/Car/service/src/com/android/car/hal/
DHalPropValueBuilder.java334 float[] floatValues, long[] int64Values, String stringValue, byte[] byteValues) { in build() argument
336 Objects.requireNonNull(floatValues, "Use empty value, not null for empty values"); in build()
341 return new AidlHalPropValue(prop, areaId, timestamp, status, int32Values, floatValues, in build()
344 return new HidlHalPropValue(prop, areaId, timestamp, status, int32Values, floatValues, in build()
407 mVehiclePropValue.value.floatValues = new float[]{value}; in AidlHalPropValue()
412 mVehiclePropValue.value.floatValues = values; in AidlHalPropValue()
436 float[] floatValues, long[] int64Values, String stringValue, byte[] byteValues) { in AidlHalPropValue() argument
439 mVehiclePropValue.value.floatValues = floatValues; in AidlHalPropValue()
466 if (mVehiclePropValue.value.floatValues == null) { in AidlHalPropValue()
467 mVehiclePropValue.value.floatValues = EMPTY_FLOAT_ARRAY; in AidlHalPropValue()
[all …]
DVehicleHal.java1525 float[] floatValues = new float[dataList.size()]; in createPropValueForInjecting() local
1527 floatValues[i] = Float.parseFloat(dataList.get(i)); in createPropValueForInjecting()
1530 floatValues); in createPropValueForInjecting()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarSensorEvent.java133 public final float[] floatValues; field in CarSensorEvent
143 floatValues = in.createFloatArray(); in CarSensorEvent()
159 dest.writeFloatArray(floatValues); in writeToParcel()
180 floatValues = new float[floatValueSize]; in CarSensorEvent()
186 CarSensorEvent(int sensorType, long timestamp, float[] floatValues, int[] intValues, in CarSensorEvent() argument
190 this.floatValues = floatValues; in CarSensorEvent()
231 data.temperature = floatValues[INDEX_ENVIRONMENT_TEMPERATURE]; in getEnvironmentData()
377 if (floatValues == null) { in getFuelLevelData()
380 if (floatValues[0] < 0) { in getFuelLevelData()
383 data.level = floatValues[0]; in getFuelLevelData()
[all …]
DCarSensorManager.java460 event.floatValues[0] = (float) propertyValue.getValue(); in createCarSensorEvent()
/packages/services/Car/libs/vehicle-hal-support-lib/src/com/android/car/hal/test/
DAidlVehiclePropValueBuilder.java47 mPropValue.value.floatValues = new float[0]; in AidlVehiclePropValueBuilder()
72 if (propValue.value.floatValues != null) { in clone()
73 newValue.value.floatValues = propValue.value.floatValues.clone(); in clone()
75 newValue.value.floatValues = new float[0]; in clone()
150 int oldSize = mPropValue.value.floatValues.length; in addFloatValues()
154 newValues[i] = mPropValue.value.floatValues[i]; in addFloatValues()
159 mPropValue.value.floatValues = newValues; in addFloatValues()
DDiagnosticJson.java34 public final SparseArray<Float> floatValues; field in DiagnosticJson
41 SparseArray<Float> floatValues, in DiagnosticJson() argument
46 this.floatValues = Objects.requireNonNull(floatValues); in DiagnosticJson()
55 new SparseArrayIterator<>(floatValues) in build()
DHidlVehiclePropValueBuilder.java52 newValue.value.floatValues.addAll(propValue.value.floatValues); in clone()
88 mPropValue.value.floatValues.add(val); in addFloatValue()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DDiagnosticJsonTestUtils.java41 expected.value.floatValues = new float[size]; in buildEmptyVehiclePropertyValue()
43 expected.value.floatValues[i] = 0f; in buildEmptyVehiclePropertyValue()
DDiagnosticHalServiceTest.java115 float[] floatValues = new float[]{0.0f, TEST_FLOAT_VALUE}; in getTestFreezeFrame() local
124 int32Values, floatValues, new long[0], TEST_STRING, byteValues); in getTestFreezeFrame()
132 float[] floatValues = new float[]{0.0f, TEST_FLOAT_VALUE}; in getTestLiveFrame() local
141 int32Values, floatValues, new long[0], TEST_STRING, byteValues); in getTestLiveFrame()
DHalPropValueTest.java60 hidlValue.value.floatValues.add(TEST_FLOAT_VALUE); in getTestHidlPropValue()
77 aidlValue.value.floatValues = new float[] {TEST_FLOAT_VALUE}; in getTestAidlPropValue()
176 assertThat(vehiclePropValue.value.floatValues).containsExactly( in testBuildFromFloatHidl()
196 assertThat(vehiclePropValue.value.floatValues).containsExactly( in testBuildFromFloatsHidl()
341 assertThat(vehiclePropValue.value.floatValues).usingExactEquality().containsExactly( in testBuildFromFloatAidl()
361 assertThat(vehiclePropValue.value.floatValues).usingExactEquality().containsExactly( in testBuildFromFloatsAidl()
522 hidlValue.value.floatValues.add(TEST_FLOAT_VALUE); in testToCarPropertyValueFromHidlFloat()
540 hidlValue.value.floatValues.add(TEST_FLOAT_VALUE); in testToCarPropertyValueFromHidlFloatVec()
541 hidlValue.value.floatValues.add(TEST_FLOAT_VALUE); in testToCarPropertyValueFromHidlFloatVec()
638 hidlValue.value.floatValues.add(TEST_FLOAT_VALUE); in testToCarPropertyValueFromHidlMixed()
[all …]
DDiagnosticJsonTest.java79 assertThat(actual.value.floatValues[SOME_FLOAT_ID]).isEqualTo(SOME_FLOAT_VALUE); in testBuild_passingBuilderWithFullVehicleProperty()
/packages/services/Car/cpp/vhal/client/src/
DAidlHalPropValue.cpp75 mPropValue.value.floatValues = values; in setFloatValues()
79 return mPropValue.value.floatValues; in getFloatValues()
DHidlHalPropValue.cpp75 mPropValue.value.floatValues = values; in setFloatValues()
79 return mPropValue.value.floatValues; in getFloatValues()
/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticEvent.java187 SparseArray<Float> floatValues, in CarDiagnosticEvent() argument
192 mFloatValues = floatValues; in CarDiagnosticEvent()
428 Float[] floatValues = new Float[floatKeys.length]; in hashCode() local
435 floatValues[i] = mFloatValues.valueAt(i); in hashCode()
440 int floatValuesHash = Objects.hash((Object[]) floatValues); in hashCode()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/fakevhal/
DFakeVhalConfigParserUnitTest.java524 expectRawPropertyValues.floatValues = new float[]{2.3f, 49.0f}; in testParseDefaultValueFloat()
775 areaRawPropValues1.floatValues = new float[]{15000.0f}; in testParseJsonConfig()
865 assertThat(result.get(VehicleProperty.INFO_FUEL_CAPACITY).getInitialValue().floatValues[0]) in testParseDefaultConfigFile()
DFakeVehicleStubUnitTest.java785 rawPropValues.floatValues = new float[]{10}; in testSetMethodPropDefaultValueExist()
998 rawPropValues.floatValues = new float[]{10}; in testSetAsyncForSingleProp()
1061 rawPropValues.floatValues = new float[]{10}; in testSetAsyncForSpecialPropRemoteException()
1089 rawPropValues1.floatValues = new float[]{10}; in testSetAsyncOnMultipleRequests()
1618 rawPropValues.floatValues = new float[]{10}; in testSetValueForSpecialProp()
/packages/services/Car/service/src/com/android/car/hal/fakevhal/
DFakeVehicleStub.java858 float[] floatValues = rawPropValues.floatValues; in withinRange() local
897 for (float floatValue : floatValues) { in withinRange()
DFakeVhalConfigParser.java590 rawPropValues.floatValues = parseFloatArrayValue(reader, fieldName, errors); in parseDefaultValue()
/packages/services/Car/cpp/vhal/client/test/
DHidlVhalClientTest.cpp541 .floatValues = {1.1, 2.2}, in TEST_F()
564 .floatValues = floatValues1, in TEST_F()
DAidlVhalClientTest.cpp1073 .floatValues = {1.1, 2.2}, in TEST_F()
1096 .floatValues = floatValues1, in TEST_F()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyManagerTest.java1063 propWithFloat.value.floatValues = new float[]{0f}; in testOnChangeEventInvalidPayload()
1483 tempValue.value.floatValues = new float[]{INIT_TEMP_VALUE}; in configureMockedHal()
1653 vehiclePropValue.value.floatValues = new float[]{floatValue}; in newTirePressureVehiclePropValue()
DCarDiagnosticManagerTest.java742 diagnosticJson.floatValues.get(FloatSensorIndex.OXYGEN_SENSOR1_VOLTAGE), in testDiagnosticJson()
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
DClusterHomeManagerTest.java212 event.value.floatValues = new float[]{0f}; in testClusterSwitchUi_InvalidProp()

12