Home
last modified time | relevance | path

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

12

/packages/services/Car/service/src/com/android/car/hal/
DHalPropValueBuilder.java333 public HalPropValue build(int prop, int areaId, long timestamp, int status, int[] int32Values, in build() argument
335 Objects.requireNonNull(int32Values, "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()
397 mVehiclePropValue.value.int32Values = new int[]{value}; in AidlHalPropValue()
402 mVehiclePropValue.value.int32Values = values; in AidlHalPropValue()
435 AidlHalPropValue(int prop, int areaId, long timestamp, int status, int[] int32Values, in AidlHalPropValue() argument
438 mVehiclePropValue.value.int32Values = int32Values; in AidlHalPropValue()
463 if (mVehiclePropValue.value.int32Values == null) { in AidlHalPropValue()
464 mVehiclePropValue.value.int32Values = EMPTY_INT_ARRAY; in AidlHalPropValue()
[all …]
/packages/services/Car/libs/vehicle-hal-support-lib/src/com/android/car/hal/test/
DAidlVehiclePropValueBuilder.java46 mPropValue.value.int32Values = new int[0]; in AidlVehiclePropValueBuilder()
67 if (propValue.value.int32Values != null) { in clone()
68 newValue.value.int32Values = propValue.value.int32Values.clone(); in clone()
70 newValue.value.int32Values = new int[0]; in clone()
132 int oldSize = mPropValue.value.int32Values.length; in addIntValues()
136 newValues[i] = mPropValue.value.int32Values[i]; in addIntValues()
141 mPropValue.value.int32Values = newValues; in addIntValues()
204 mPropValue.value.int32Values = new int[1]; in setBooleanValue()
205 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/src/
DEvsStateControl.cpp264 mTurnSignalValue.value.int32Values = {sMockSignal}; in selectStateForCurrentConditions()
280 mGearValue.value.int32Values = {sMockGear}; in selectStateForCurrentConditions()
281 mTurnSignalValue.value.int32Values = {sMockSignal}; in selectStateForCurrentConditions()
286 if (mGearValue.value.int32Values[0] == int32_t(VehicleGear::GEAR_REVERSE)) { in selectStateForCurrentConditions()
288 } else if (mTurnSignalValue.value.int32Values[0] == int32_t(VehicleTurnSignal::RIGHT)) { in selectStateForCurrentConditions()
290 } else if (mTurnSignalValue.value.int32Values[0] == int32_t(VehicleTurnSignal::LEFT)) { in selectStateForCurrentConditions()
292 } else if (mGearValue.value.int32Values[0] == int32_t(VehicleGear::GEAR_PARK)) { in selectStateForCurrentConditions()
303 halPropValue->setInt32Values(pRequestedPropValue->value.int32Values); in invokeGet()
310 pRequestedPropValue->value.int32Values = result.value()->getInt32Values(); in invokeGet()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DObd2FreezeFrameGeneratorTest.java94 assertEquals(1155, (long) vehiclePropValue.value.int32Values[0xC]); in testObd2FreezeFrameGeneration()
95 assertEquals(130, (long) vehiclePropValue.value.int32Values[0xD]); in testObd2FreezeFrameGeneration()
98 assertEquals(1155, (long) vehiclePropValue.value.int32Values[0xC]); in testObd2FreezeFrameGeneration()
99 assertEquals(131, (long) vehiclePropValue.value.int32Values[0xD]); in testObd2FreezeFrameGeneration()
DObd2LiveFrameGeneratorTest.java72 assertEquals(1155, (long) vehiclePropValue.value.int32Values[0xC]); in testObd2LiveFrameGeneration()
73 assertEquals(130, (long) vehiclePropValue.value.int32Values[0xD]); in testObd2LiveFrameGeneration()
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
DClusterHomeManagerTest.java252 event.value.int32Values = new int[]{DISPLAY_ON}; in testClusterState_InvalidProp()
262 newValues[i] = event.value.int32Values[i]; in testClusterState_InvalidProp()
264 event.value.int32Values = newValues; in testClusterState_InvalidProp()
276 assertThat(value.value.int32Values[9]).isEqualTo(UI_TYPE_1); in testClusterReportState()
277 assertThat(value.value.int32Values[10]).isEqualTo(UI_TYPE_2); in testClusterReportState()
289 assertThat(value.value.int32Values).isEqualTo(new int[]{UI_TYPE_1}); in testClusterRequestDisplay()
499 event.value.int32Values = new int[]{uiType}; in createSwitchUiEvent()
509 event.value.int32Values = new int[]{onOff, boundsLeft, boundsTop, boundsRight, in createDisplayStateEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DDiagnosticJsonTestUtils.java36 expected.value.int32Values = new int[size]; in buildEmptyVehiclePropertyValue()
38 expected.value.int32Values[i] = 0; in buildEmptyVehiclePropertyValue()
DHalPropValueTest.java59 hidlValue.value.int32Values.add(TEST_INT32_VALUE); in getTestHidlPropValue()
76 aidlValue.value.int32Values = new int[] {TEST_INT32_VALUE}; in getTestAidlPropValue()
139 assertThat(vehiclePropValue.value.int32Values).containsExactly(TEST_INT32_VALUE); in testBuildFromInt32Hidl()
158 assertThat(vehiclePropValue.value.int32Values).containsExactly( in testBuildFromInt32sHidl()
304 assertThat(vehiclePropValue.value.int32Values).asList().containsExactly(TEST_INT32_VALUE); in testBuildFromInt32Aidl()
323 assertThat(vehiclePropValue.value.int32Values).asList().containsExactly( in testBuildFromInt32sAidl()
463 hidlValue.value.int32Values.add(1); in testToCarPropertyValueFromHidlBool()
485 hidlValue.value.int32Values.add(TEST_INT32_VALUE); in testToCarPropertyValueFromHidlInt32()
503 hidlValue.value.int32Values.add(TEST_INT32_VALUE); in testToCarPropertyValueFromHidlInt32Vec()
504 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()
DDiagnosticHalServiceTest.java114 int[] int32Values = new int[]{0, TEST_INT32_VALUE}; in getTestFreezeFrame() local
124 int32Values, floatValues, new long[0], TEST_STRING, byteValues); in getTestFreezeFrame()
131 int[] int32Values = new int[]{0, TEST_INT32_VALUE}; in getTestLiveFrame() local
141 int32Values, floatValues, new long[0], TEST_STRING, byteValues); in getTestLiveFrame()
DInputHalServiceTest.java967 ArrayList<Integer> int32Values = new ArrayList<>(); in makeRotaryPropValue() local
968 int32Values.add(rotaryInputType); in makeRotaryPropValue()
969 int32Values.add(detents); in makeRotaryPropValue()
970 int32Values.add(targetDisplayType); in makeRotaryPropValue()
972 int32Values.add(delayBetweenDetents); in makeRotaryPropValue()
975 /*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/tests/carservice_unit_test/src/com/android/car/hal/fakevhal/
DFakeVhalConfigParserUnitTest.java534 expectRawPropertyValues.int32Values = new int[]{VehicleSeatOccupancyState.VACANT}; in testParseDefaultValueIntValuesString()
605 areaRawPropValues.int32Values = new int[]{0}; in testParseAreaConfigValueHasNoAccessLevel()
633 areaRawPropValues.int32Values = new int[]{0}; in testParseAreaConfigValueHasAccessLevel()
661 areaRawPropValues.int32Values = new int[]{0}; in testParseAreaConfig_PropertyConfigHasAccessLevel()
689 areaRawPropValues.int32Values = new int[]{0}; in testParseAreaConfig_PropertyAndAreaConfigHasAccessLevel()
712 assertThat(configDeclaration.getInitialAreaValuesByAreaId().get(1).int32Values[0]) in testParseAreaConfigWithNoValue()
774 areaRawPropValues1.int32Values = new int[]{VehicleSeatOccupancyState.VACANT}; in testParseJsonConfig()
778 areaRawPropValues2.int32Values = new int[]{0}; in testParseJsonConfig()
872 assertThat(result.get(VehicleProperty.SEAT_OCCUPANCY).getInitialValue().int32Values[0]) in testParseDefaultConfigFile()
DFakeVehicleStubUnitTest.java810 rawPropValues.int32Values = new int[]{32}; in testSetMethodPropDefaultValueNotExist()
839 rawPropValues.int32Values = new int[]{15}; in testSetMethodValueOutOfRange()
863 rawPropValues.int32Values = new int[]{120}; in testSetMethodGlobalPropWithAreaIdSetValueOutOfRange()
886 rawPropValues.int32Values = new int[]{120}; in testSetMethodGlobalPropWithNoAreaIdSetValueOutOfRange()
909 rawPropValues.int32Values = new int[]{120}; in testSetMethodGlobalPropWithAreaIdNotZero()
937 rawPropValues.int32Values = new int[]{32}; in testSetMethodAreaConfigHasNoLimit()
957 rawPropValues.int32Values = new int[]{5}; in testSetMethodForHvacProp()
1039 rawPropValues.int32Values = new int[]{105}; in testSetAsyncGlobalPropWithAreaIdSetValueOutOfRange()
1097 rawPropValues2.int32Values = new int[]{105}; in testSetAsyncOnMultipleRequests()
1131 rawPropValues.int32Values = new int[]{VehicleOilLevel.LOW}; in testSubscribeOnChangePropOneClientSubscribeOnePropManyTime()
[all …]
/packages/services/Car/cpp/vhal/client/src/
DAidlHalPropValue.cpp59 mPropValue.value.int32Values = values; in setInt32Values()
63 return mPropValue.value.int32Values; in getInt32Values()
DHidlHalPropValue.cpp59 mPropValue.value.int32Values = values; in setInt32Values()
63 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()
/packages/services/Car/libs/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.java343 public static void writeCarUserHalGetUserAuthReq(@Nullable Object[] int32Values) { in writeCarUserHalGetUserAuthReq() argument
344 EventLog.writeEvent(EventLogTags.CAR_USER_HAL_GET_USER_AUTH_REQ, int32Values); in writeCarUserHalGetUserAuthReq()
357 public static void writeCarUserHalSetUserAuthReq(@Nullable Object[] int32Values) { in writeCarUserHalSetUserAuthReq() argument
358 EventLog.writeEvent(EventLogTags.CAR_USER_HAL_SET_USER_AUTH_REQ, int32Values); in writeCarUserHalSetUserAuthReq()
/packages/services/Car/cpp/vhal/client/test/
DHidlVhalClientTest.cpp153 .value.int32Values = {1},
476 .value.int32Values = {1}, in TEST_F()
540 .int32Values = {1, 2}, in TEST_F()
563 .int32Values = int32Values1, in TEST_F()
DAidlVhalClientTest.cpp319 .int32Values = {1}, in TEST_F()
375 .int32Values = {1}, in TEST_F()
442 .int32Values = {1}, in TEST_F()
544 .int32Values = {1}, in TEST_F()
963 .value.int32Values = {1}, in TEST_F()
1072 .int32Values = {1, 2}, in TEST_F()
1095 .int32Values = int32Values1, in TEST_F()
/packages/services/Car/tests/carservice_test/src/com/android/car/remoteaccess/
DCarRemoteAccessManagerTest.java276 returnValue.value.int32Values = new int[]{1}; in onPropertyGet()
278 returnValue.value.int32Values = new int[]{0}; in onPropertyGet()
600 assertThat(value.value.int32Values).isEqualTo(new int[]{shutdownParam}); in verifyShutdownRequestSent()

12