Home
last modified time | relevance | path

Searched refs:halPropValue (Results 1 – 17 of 17) sorted by relevance

/packages/services/Car/service/src/com/android/car/hal/property/
DHalPropertyDebugUtils.java139 public static String toValueString(HalPropValue halPropValue) { in toValueString() argument
140 int propertyId = halPropValue.getPropId(); in toValueString()
146 if (halPropValue.getInt32ValuesSize() != 1) { in toValueString()
149 return halPropValue.getInt32Value(0) == 0 ? "FALSE" : "TRUE"; in toValueString()
152 if (halPropValue.getInt32ValuesSize() != 1) { in toValueString()
155 return getIntValueName(propertyId, halPropValue.getInt32Value(0), propertyUnits); in toValueString()
158 for (int i = 0; i < halPropValue.getInt32ValuesSize(); i++) { in toValueString()
159 stringJoiner.add(getIntValueName(propertyId, halPropValue.getInt32Value(i), in toValueString()
165 if (halPropValue.getFloatValuesSize() != 1) { in toValueString()
168 return halPropValue.getFloatValue(0) + propertyUnits; in toValueString()
[all …]
/packages/services/Car/service/src/com/android/car/hal/fakevhal/
DSimulationVehicleStub.java218 HalPropValue halPropValue = buildHalPropValue(carPropertyValue, in buildHalPropValueAndMaybeInvokeCallback() local
220 if (maybeInvokeCallback(halPropValue, propId, areaId)) { in buildHalPropValueAndMaybeInvokeCallback()
227 private boolean maybeInvokeCallback(HalPropValue halPropValue, int propId, int areaId) { in maybeInvokeCallback() argument
243 + "new value %s", propId, areaId, oldValue, halPropValue); in maybeInvokeCallback()
244 putPropValue(propId, areaId, halPropValue); in maybeInvokeCallback()
247 halPropValue)); in maybeInvokeCallback()
358 HalPropValue halPropValue = buildHalPropValue(carPropertyValue, in injectVehicleProperties() local
361 ((VehiclePropValue) halPropValue.toVehiclePropValue()).value)) { in injectVehicleProperties()
363 + toValueString(halPropValue)); in injectVehicleProperties()
DVehicleStubWrapper.java97 /* package */ void putPropValue(int propId, int areaId, HalPropValue halPropValue) { in putPropValue() argument
99 mPropValuesByPropIdAreaId.put(propId, areaId, halPropValue); in putPropValue()
186 HalPropValue halPropValue = mPropValuesByPropIdAreaId.get(propId, areaId); in getFakeHalPropValue() local
187 if (halPropValue == null) { in getFakeHalPropValue()
195 return halPropValue; in getFakeHalPropValue()
413 HalPropValue halPropValue = get(request.getHalPropValue()); in getAsync() local
415 halPropValue); in getAsync()
416 if (halPropValue == null) { in getAsync()
DFakeVehicleStub.java179 HalPropValue halPropValue = get(request.getHalPropValue()); in getAsync() local
181 halPropValue); in getAsync()
182 if (halPropValue == null) { in getAsync()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/fakevhal/
DSimulationVehicleStubUnitTest.java209 HalPropValue halPropValue = mock(HalPropValue.class); in testSet_thenGetDifferentValue() local
212 when(halPropValue.getPropId()).thenReturn(PROP_ID_1); in testSet_thenGetDifferentValue()
213 when(halPropValue.getAreaId()).thenReturn(AREA_ID_GLOBAL); in testSet_thenGetDifferentValue()
214 when(halPropValue.toVehiclePropValue()).thenReturn(vehiclePropValue); in testSet_thenGetDifferentValue()
215 HalPropValue originalHalPropValue = mSimulationVehicleStub.get(halPropValue); in testSet_thenGetDifferentValue()
219 mSimulationVehicleStub.set(halPropValue); in testSet_thenGetDifferentValue()
222 .that(mSimulationVehicleStub.get(halPropValue)) in testSet_thenGetDifferentValue()
229 HalPropValue halPropValue = mock(HalPropValue.class); in testSet_verifyOnPropertyEventIsCalled() local
232 when(halPropValue.getPropId()).thenReturn(PROP_ID_1); in testSet_verifyOnPropertyEventIsCalled()
233 when(halPropValue.getAreaId()).thenReturn(AREA_ID_GLOBAL); in testSet_verifyOnPropertyEventIsCalled()
[all …]
/packages/services/Car/service/src/com/android/car/
DVehicleStub.java113 public AsyncGetSetRequest(int serviceRequestId, HalPropValue halPropValue, in AsyncGetSetRequest() argument
116 mHalPropValue = halPropValue; in AsyncGetSetRequest()
146 public GetVehicleStubAsyncResult(int serviceRequestId, HalPropValue halPropValue) { in GetVehicleStubAsyncResult() argument
148 mHalPropValue = halPropValue; in GetVehicleStubAsyncResult()
DHidlVehicleStub.java239 HalPropValue halPropValue; in getAsync() local
241 halPropValue = get(getVehicleStubAsyncRequest.getHalPropValue()); in getAsync()
257 if (halPropValue == null) { in getAsync()
265 List.of(new GetVehicleStubAsyncResult(serviceRequestId, halPropValue))); in getAsync()
DAidlVehicleStub.java318 HalPropValue halPropValue = getOrSetSync(requestedPropValue, in get() local
332 return halPropValue; in get()
632 abstract void addVhalRequest(long vhalRequestId, HalPropValue halPropValue); in addVhalRequest() argument
984 public void addVhalRequest(long vhalRequestId, HalPropValue halPropValue) { in addVhalRequest() argument
987 mVhalRequestItems[mIndex].prop = (VehiclePropValue) halPropValue.toVehiclePropValue(); in addVhalRequest()
1038 public void addVhalRequest(long vhalRequestId, HalPropValue halPropValue) { in addVhalRequest() argument
1041 mVhalRequestItems[mIndex].value = (VehiclePropValue) halPropValue.toVehiclePropValue(); in addVhalRequest()
/packages/services/Car/service/src/com/android/car/hal/
DPropertyHalService.java703 HalPropValue halPropValue = getVehicleStubAsyncResult.getHalPropValue(); in parseGetAsyncResults() local
704 if (halPropValue.getStatus() == VehiclePropertyStatus.UNAVAILABLE) { in parseGetAsyncResults()
708 if (halPropValue.getStatus() != VehiclePropertyStatus.AVAILABLE) { in parseGetAsyncResults()
715 halPropValue.toCarPropertyValue(mgrPropId, halPropConfig)); in parseGetAsyncResults()
719 halPropIdToName(halPropValue.getPropId()), halPropValue.getAreaId()); in parseGetAsyncResults()
1006 HalPropValue halPropValue; in generateVehicleStubAsyncRequestLocked() local
1011 halPropValue = carPropertyValueToHalPropValueLocked(requestCarPropertyValue); in generateVehicleStubAsyncRequestLocked()
1016 halPropValue = mPropValueBuilder.build(halPropertyId, areaId); in generateVehicleStubAsyncRequestLocked()
1018 return new AsyncGetSetRequest(serviceRequestId, halPropValue, in generateVehicleStubAsyncRequestLocked()
1202 HalPropValue halPropValue; in getProperty() local
[all …]
DVehicleHal.java1258 HalPropValue halPropValue = createPropValueForInjecting(mPropValueBuilder, propertyId, in setPropertyFromCommand() local
1260 if (halPropValue == null) { in setPropertyFromCommand()
1265 set(halPropValue); in setPropertyFromCommand()
1362 HalPropValue halPropValue = halPropValues.get(i); in maybeHandleRecording() local
1363 HalPropConfig halPropConfig = mAllProperties.get(halPropValue.getPropId()); in maybeHandleRecording()
1366 halPropValue.getPropId()); in maybeHandleRecording()
1370 halPropValue.getPropId(), halPropConfig, /* isVhalPropId= */ true); in maybeHandleRecording()
/packages/services/Car/cpp/vhal/client/test/
DHidlVhalClientTest.cpp616 std::unique_ptr<IHalPropValue> halPropValue = in TEST_F() local
618 auto halPropValueClone = halPropValue->clone(); in TEST_F()
639 std::unique_ptr<IHalPropValue> halPropValue = in TEST_F() local
641 auto halPropValueClone = halPropValue->clone(); in TEST_F()
646 EXPECT_EQ(halPropValue->getInt32Values(), int32Values1); in TEST_F()
647 EXPECT_EQ(halPropValue->getFloatValues(), floatValues1); in TEST_F()
DAidlVhalClientTest.cpp1220 std::unique_ptr<IHalPropValue> halPropValue = in TEST_F() local
1222 auto halPropValueClone = halPropValue->clone(); in TEST_F()
1243 std::unique_ptr<IHalPropValue> halPropValue = in TEST_F() local
1245 auto halPropValueClone = halPropValue->clone(); in TEST_F()
1250 EXPECT_EQ(halPropValue->getInt32Values(), int32Values1); in TEST_F()
1251 EXPECT_EQ(halPropValue->getFloatValues(), floatValues1); in TEST_F()
/packages/services/Car/cpp/evs/apps/default/src/
DEvsStateControl.cpp301 auto halPropValue = mVehicle->createHalPropValue(pRequestedPropValue->prop); in invokeGet() local
303 halPropValue->setInt32Values(pRequestedPropValue->value.int32Values); in invokeGet()
305 VhalClientResult<std::unique_ptr<IHalPropValue>> result = mVehicle->getValueSync(*halPropValue); in invokeGet()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVehicleHalTest.java2410 HalPropValue halPropValue = captor.getValue();
2411 expectWithMessage("Boolean property Id").that(halPropValue.getPropId())
2413 expectWithMessage("Global area Id").that(halPropValue.getAreaId())
2415 expectWithMessage("Boolean property value").that(halPropValue.getInt32Value(0))
2426 HalPropValue halPropValue = captor.getValue();
2427 expectWithMessage("Int32 property Id").that(halPropValue.getPropId())
2429 expectWithMessage("Global area Id").that(halPropValue.getAreaId())
2431 expectWithMessage("Int32 property value").that(halPropValue.getInt32Value(0))
2443 HalPropValue halPropValue = captor.getValue();
2444 expectWithMessage("Int64 property Id").that(halPropValue.getPropId())
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogProcessService.cpp1120 auto halPropValue = vhalService->createHalPropValue(propId); in updateVhal() local
1121 halPropValue->setInt32Values(value.value.int32Values); in updateVhal()
1122 halPropValue->setInt64Values(value.value.int64Values); in updateVhal()
1123 halPropValue->setStringValue(value.value.stringValue); in updateVhal()
1124 if (auto result = vhalService->setValueSync(*halPropValue); !result.ok()) { in updateVhal()
/packages/services/Car/cpp/watchdog/stable_server/src/
DWatchdogProcessService.cpp1120 auto halPropValue = vhalService->createHalPropValue(propId); in updateVhal() local
1121 halPropValue->setInt32Values(value.value.int32Values); in updateVhal()
1122 halPropValue->setInt64Values(value.value.int64Values); in updateVhal()
1123 halPropValue->setStringValue(value.value.stringValue); in updateVhal()
1124 if (auto result = vhalService->setValueSync(*halPropValue); !result.ok()) { in updateVhal()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DAidlVehicleStubUnitTest.java1337 HalPropValue halPropValue = builder.build(TEST_PROP, 0, 0, 0, intValues); in testAidlVehicleCallbackOnPropertyEventLargeData() local
1341 verify(callback).onPropertyEvent(new ArrayList<HalPropValue>(Arrays.asList(halPropValue))); in testAidlVehicleCallbackOnPropertyEventLargeData()