Home
last modified time | relevance | path

Searched refs:int32Values (Results 1 – 25 of 28) sorted by relevance

12

/packages/services/Car/service/src/com/android/car/hal/
DHalPropValueBuilder.java329 public HalPropValue build(int prop, int areaId, long timestamp, int status, int[] int32Values, in build() argument
331 Objects.requireNonNull(int32Values, "Use empty value, not null for empty values"); in build()
337 return new AidlHalPropValue(prop, areaId, timestamp, status, int32Values, floatValues, in build()
340 return new HidlHalPropValue(prop, areaId, timestamp, status, int32Values, floatValues, in build()
393 mVehiclePropValue.value.int32Values = new int[]{value}; in AidlHalPropValue()
398 mVehiclePropValue.value.int32Values = values; in AidlHalPropValue()
431 AidlHalPropValue(int prop, int areaId, long timestamp, int status, int[] int32Values, in AidlHalPropValue() argument
434 mVehiclePropValue.value.int32Values = int32Values; in AidlHalPropValue()
459 if (mVehiclePropValue.value.int32Values == null) { in AidlHalPropValue()
460 mVehiclePropValue.value.int32Values = new int[0]; in AidlHalPropValue()
[all …]
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/hal/test/
DAidlVehiclePropValueBuilder.java45 mPropValue.value.int32Values = new int[0]; in AidlVehiclePropValueBuilder()
66 if (propValue.value.int32Values != null) { in clone()
67 newValue.value.int32Values = propValue.value.int32Values.clone(); in clone()
69 newValue.value.int32Values = new int[0]; in clone()
122 int oldSize = mPropValue.value.int32Values.length; in addIntValues()
126 newValues[i] = mPropValue.value.int32Values[i]; in addIntValues()
131 mPropValue.value.int32Values = newValues; in addIntValues()
194 mPropValue.value.int32Values = new int[1]; in setBooleanValue()
195 mPropValue.value.int32Values[0] = value ? 1 : 0; in setBooleanValue()
DHidlVehiclePropValueBuilder.java51 newValue.value.int32Values.addAll(propValue.value.int32Values); in clone()
80 mPropValue.value.int32Values.add(val); in addIntValue()
111 mPropValue.value.int32Values.clear(); in setBooleanValue()
112 mPropValue.value.int32Values.add(value ? 1 : 0); in setBooleanValue()
/packages/services/Car/cpp/evs/apps/default/
DEvsStateControl.cpp265 mTurnSignalValue.value.int32Values = {sMockSignal}; in selectStateForCurrentConditions()
281 mGearValue.value.int32Values = {sMockGear}; in selectStateForCurrentConditions()
282 mTurnSignalValue.value.int32Values = {sMockSignal}; in selectStateForCurrentConditions()
288 if (mGearValue.value.int32Values[0] == int32_t(VehicleGear::GEAR_REVERSE)) { in selectStateForCurrentConditions()
290 } else if (mTurnSignalValue.value.int32Values[0] == int32_t(VehicleTurnSignal::RIGHT)) { in selectStateForCurrentConditions()
292 } else if (mTurnSignalValue.value.int32Values[0] == int32_t(VehicleTurnSignal::LEFT)) { in selectStateForCurrentConditions()
294 } else if (mGearValue.value.int32Values[0] == int32_t(VehicleGear::GEAR_PARK)) { in selectStateForCurrentConditions()
305 halPropValue->setInt32Values(pRequestedPropValue->value.int32Values); in invokeGet()
312 pRequestedPropValue->value.int32Values = result.value()->getInt32Values(); in invokeGet()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DObd2FreezeFrameGeneratorTest.java112 assertEquals(1155, (long) vehiclePropValue.value.int32Values[0xC]); in testObd2FreezeFrameGeneration()
113 assertEquals(130, (long) vehiclePropValue.value.int32Values[0xD]); in testObd2FreezeFrameGeneration()
116 assertEquals(1155, (long) vehiclePropValue.value.int32Values[0xC]); in testObd2FreezeFrameGeneration()
117 assertEquals(131, (long) vehiclePropValue.value.int32Values[0xD]); in testObd2FreezeFrameGeneration()
DObd2LiveFrameGeneratorTest.java90 assertEquals(1155, (long) vehiclePropValue.value.int32Values[0xC]); in testObd2LiveFrameGeneration()
91 assertEquals(130, (long) vehiclePropValue.value.int32Values[0xD]); in testObd2LiveFrameGeneration()
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
DClusterHomeManagerTest.java248 event.value.int32Values = new int[]{DISPLAY_ON}; in testClusterState_InvalidProp()
258 newValues[i] = event.value.int32Values[i]; in testClusterState_InvalidProp()
260 event.value.int32Values = newValues; in testClusterState_InvalidProp()
272 assertThat(value.value.int32Values[9]).isEqualTo(UI_TYPE_1); in testClusterReportState()
273 assertThat(value.value.int32Values[10]).isEqualTo(UI_TYPE_2); in testClusterReportState()
285 assertThat(value.value.int32Values).isEqualTo(new int[]{UI_TYPE_1}); in testClusterRequestDisplay()
480 event.value.int32Values = new int[]{uiType}; in createSwitchUiEvent()
490 event.value.int32Values = new int[] {onOff, boundsLeft, boundsTop, boundsRight, in createDisplayStateEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DDiagnosticHalServiceTest.java86 int[] int32Values = new int[]{0, TEST_INT32_VALUE}; in getTestFreezeFrame() local
96 int32Values, floatValues, new long[0], TEST_STRING, byteValues); in getTestFreezeFrame()
103 int[] int32Values = new int[]{0, TEST_INT32_VALUE}; in getTestLiveFrame() local
113 int32Values, floatValues, new long[0], TEST_STRING, byteValues); in getTestLiveFrame()
DHalPropValueTest.java58 hidlValue.value.int32Values.add(TEST_INT32_VALUE); in getTestHidlPropValue()
75 aidlValue.value.int32Values = new int[] {TEST_INT32_VALUE}; in getTestAidlPropValue()
138 assertThat(vehiclePropValue.value.int32Values).containsExactly(TEST_INT32_VALUE); in testBuildFromInt32Hidl()
157 assertThat(vehiclePropValue.value.int32Values).containsExactly( in testBuildFromInt32sHidl()
303 assertThat(vehiclePropValue.value.int32Values).asList().containsExactly(TEST_INT32_VALUE); in testBuildFromInt32Aidl()
322 assertThat(vehiclePropValue.value.int32Values).asList().containsExactly( in testBuildFromInt32sAidl()
462 hidlValue.value.int32Values.add(1); in testToCarPropertyValueFromHidlBool()
484 hidlValue.value.int32Values.add(TEST_INT32_VALUE); in testToCarPropertyValueFromHidlInt32()
502 hidlValue.value.int32Values.add(TEST_INT32_VALUE); in testToCarPropertyValueFromHidlInt32Vec()
503 hidlValue.value.int32Values.add(TEST_INT32_VALUE); in testToCarPropertyValueFromHidlInt32Vec()
[all …]
DVmsHalServiceTest.java229 ArrayList<Integer> int32Values = in testHandleInvalidEvent() local
234 /*int32Values=*/toIntArray(int32Values), /*floatValues=*/new float[0], in testHandleInvalidEvent()
242 int32Values.add(LAYER_VERSION); in testHandleInvalidEvent()
245 /*int32Values=*/toIntArray(int32Values), /*floatValues=*/new float[0], in testHandleInvalidEvent()
253 int32Values.add(PUBLISHER_ID); in testHandleInvalidEvent()
256 /*int32Values=*/toIntArray(int32Values), /*floatValues=*/new float[0], in testHandleInvalidEvent()
264 int32Values.set(0, VmsMessageType.PUBLISHER_ID_REQUEST); in testHandleInvalidEvent()
267 /*int32Values=*/toIntArray(int32Values), /*floatValues=*/new float[0], in testHandleInvalidEvent()
DDiagnosticJsonTestUtils.java36 expected.value.int32Values = new int[size]; in buildEmptyVehiclePropertyValue()
38 expected.value.int32Values[i] = 0; in buildEmptyVehiclePropertyValue()
DInputHalServiceTest.java673 ArrayList<Integer> int32Values = new ArrayList<>(); in makeRotaryPropValue() local
674 int32Values.add(rotaryInputType); in makeRotaryPropValue()
675 int32Values.add(detents); in makeRotaryPropValue()
676 int32Values.add(targetDisplayType); in makeRotaryPropValue()
678 int32Values.add(delayBetweenDetents); in makeRotaryPropValue()
681 /*status=*/0, toIntArray(int32Values)); in makeRotaryPropValue()
DDiagnosticJsonTest.java78 assertThat(actual.value.int32Values[SOME_INT_ID]).isEqualTo(SOME_INT_VALUE); in testBuild_passingBuilderWithFullVehicleProperty()
/packages/services/Car/cpp/vhal/client/src/
DAidlHalPropValue.cpp54 mPropValue.value.int32Values = values; in setInt32Values()
58 return mPropValue.value.int32Values; in getInt32Values()
DHidlHalPropValue.cpp54 mPropValue.value.int32Values = values; in setInt32Values()
58 return mPropValue.value.int32Values; in getInt32Values()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsHalServiceSubscriptionEventTest.java79 int[] v = getMockHalClient().receiveMessage().value.int32Values; in subscriptionTestLogic()
111 int[] v = getMockHalClient().receiveMessage().value.int32Values; in subscribeViaHal()
DVmsSubscriberManagerTest.java370 int[] values = getMockHalClient().receiveMessage().value.int32Values; in testComplexAvailableLayers()
415 int[] values = getMockHalClient().receiveMessage().value.int32Values; in testDoubleOfferingAvailableLayers()
459 values = getMockHalClient().receiveMessage().value.int32Values; in testDoubleOfferingAvailableLayers()
DMockedVmsTestBase.java85 int[] v = mHalClient.receiveMessage().value.int32Values; in setUpVms()
100 v = mHalClient.receiveMessage().value.int32Values; in setUpVms()
DCarPropertyManagerTest.java639 firstFakeValueDriveSide.value.int32Values = new int[]{2}; in testOnChangeEventWithSameAreaId()
645 secFakeValueDriveSide.value.int32Values = new int[]{3}; // 0 in HAL indicate false; in testOnChangeEventWithSameAreaId()
671 fakeValueDriveSide.value.int32Values = new int[]{4}; in testOnChangeEventWithDifferentAreaId()
678 fakeValuePsgSide.value.int32Values = new int[]{5}; in testOnChangeEventWithDifferentAreaId()
708 twoIntsProp.value.int32Values = new int[]{0, 1}; in testOnChangeEventInvalidPayload()
/packages/services/Car/car-test-lib/src/android/car/test/mocks/
DCarArgumentMatchers.java155 if (mValues.length != argument.value.int32Values.length) { in matches()
162 if (mValues[i] != argument.value.int32Values[i]) { in matches()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/
DEventLogHelper.java356 public static void writeCarUserHalGetUserAuthReq(@Nullable Object[] int32Values) { in writeCarUserHalGetUserAuthReq() argument
357 EventLog.writeEvent(EventLogTags.CAR_USER_HAL_GET_USER_AUTH_REQ, int32Values); in writeCarUserHalGetUserAuthReq()
373 public static void writeCarUserHalSetUserAuthReq(@Nullable Object[] int32Values) { in writeCarUserHalSetUserAuthReq() argument
374 EventLog.writeEvent(EventLogTags.CAR_USER_HAL_SET_USER_AUTH_REQ, int32Values); in writeCarUserHalSetUserAuthReq()
/packages/services/Car/cpp/vhal/client/test/
DAidlVhalClientTest.cpp313 .int32Values = {1}, in TEST_F()
367 .int32Values = {1}, in TEST_F()
402 .int32Values = {1}, in TEST_F()
503 .int32Values = {1}, in TEST_F()
868 .value.int32Values = {1}, in TEST_F()
DHidlVhalClientTest.cpp152 .value.int32Values = {1},
403 .value.int32Values = {1}, in TEST_F()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DVehicleStubTest.java257 propValue.value.int32Values = supportedPropIds; in testGetAllPropConfigsHidlMultipleRequests()
778 propValue.value.int32Values.add(TEST_VALUE); in testSetHidl()
792 propValue.value.int32Values.add(TEST_VALUE); in testSetHidlError()
983 propValue.value.int32Values.add(TEST_VALUE); in testHidlVehicleCallbackOnPropertyEvent()
1019 propValue.value.int32Values = new int[]{TEST_VALUE}; in testAidlVehicleCallbackOnPropertyEventSmallData()
1040 propValue.value.int32Values = intValues; in testAidlVehicleCallbackOnPropertyEventLargeData()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DCarArgumentMatchersTest.java124 prop.value.int32Values = new int[]{VEHICLE_PROP_VALUE}; in testIsPropertyWithValues()

12