Home
last modified time | relevance | path

Searched refs:VehiclePropValue (Results 1 – 25 of 53) sorted by relevance

123

/packages/services/Car/tests/carservice_test/src/com/android/car/hal/test/
DHidlMockedVehicleHal.java30 import android.hardware.automotive.vehicle.V2_0.VehiclePropValue;
58 default void onPropertySet(VehiclePropValue value) {} in onPropertySet()
60 default VehiclePropValue onPropertyGet(VehiclePropValue value) { in onPropertyGet()
95 public void addStaticProperty(VehiclePropConfig config, VehiclePropValue value) { in addStaticProperty()
118 public void injectEvent(VehiclePropValue value, boolean setProperty) { in injectEvent()
135 ArrayList<VehiclePropValue> values = new ArrayList<>(1); in injectEvent()
146 public void injectEvent(VehiclePropValue value) { in injectEvent()
191 public void get(VehiclePropValue requestedPropValue, getCallback cb) { in get()
198 VehiclePropValue prop = handler.onPropertyGet(requestedPropValue); in get()
210 public int set(VehiclePropValue propValue) { in set()
[all …]
DAidlMockedVehicleHal.java42 import android.hardware.automotive.vehicle.VehiclePropValue;
69 default void onPropertySet(VehiclePropValue value) {} in onPropertySet()
74 default boolean onPropertySet2(VehiclePropValue value) { in onPropertySet2()
79 default VehiclePropValue onPropertyGet(VehiclePropValue value) { in onPropertyGet()
116 public void addStaticProperty(VehiclePropConfig config, VehiclePropValue value) { in addStaticProperty()
137 public void injectEvent(VehiclePropValue value, boolean setProperty) { in injectEvent()
155 propValues.payloads = new VehiclePropValue[1]; in injectEvent()
166 public void injectEvent(VehiclePropValue value) { in injectEvent()
247 VehiclePropValue requestedPropValue = request.prop; in getValues()
254 VehiclePropValue prop = handler.onPropertyGet(requestedPropValue); in getValues()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DHalPropValueTest.java52 private android.hardware.automotive.vehicle.V2_0.VehiclePropValue getTestHidlPropValue() { in getTestHidlPropValue()
53 android.hardware.automotive.vehicle.V2_0.VehiclePropValue hidlValue = in getTestHidlPropValue()
54 new android.hardware.automotive.vehicle.V2_0.VehiclePropValue(); in getTestHidlPropValue()
68 private android.hardware.automotive.vehicle.VehiclePropValue getTestAidlPropValue() { in getTestAidlPropValue()
69 android.hardware.automotive.vehicle.VehiclePropValue aidlValue = in getTestAidlPropValue()
70 new android.hardware.automotive.vehicle.VehiclePropValue(); in getTestAidlPropValue()
134 android.hardware.automotive.vehicle.V2_0.VehiclePropValue vehiclePropValue = in testBuildFromInt32Hidl()
135 (android.hardware.automotive.vehicle.V2_0.VehiclePropValue) ( in testBuildFromInt32Hidl()
153 android.hardware.automotive.vehicle.V2_0.VehiclePropValue vehiclePropValue = in testBuildFromInt32sHidl()
154 (android.hardware.automotive.vehicle.V2_0.VehiclePropValue) ( in testBuildFromInt32sHidl()
[all …]
DDiagnosticJsonTestUtils.java22 import android.hardware.automotive.vehicle.VehiclePropValue;
28 public static VehiclePropValue buildEmptyVehiclePropertyValue(int expectedProperty, in buildEmptyVehiclePropertyValue()
30 VehiclePropValue expected = new VehiclePropValue(); in buildEmptyVehiclePropertyValue()
DDiagnosticJsonTest.java25 import android.hardware.automotive.vehicle.VehiclePropValue;
52 VehiclePropValue actual = diagnosticJson.build(eventBuilder); in testBuild_passingBuilderWithEmptyVehicleProperty()
54 VehiclePropValue expected = buildEmptyVehiclePropertyValue( in testBuild_passingBuilderWithEmptyVehicleProperty()
75 VehiclePropValue actual = diagnosticJson.build(eventBuilder); in testBuild_passingBuilderWithFullVehicleProperty()
DDiagnosticJsonReaderTest.java30 import android.hardware.automotive.vehicle.VehiclePropValue;
56 VehiclePropValue actual = diagnosticJsonReader.build(jsonReader); in testBuild_freezeFrame()
67 VehiclePropValue actual = diagnosticJsonReader.build(jsonReader); in testBuild_liveFrame()
/packages/services/Car/libs/vehicle-hal-support-lib/src/com/android/car/hal/test/
DHidlVehiclePropValueBuilder.java20 import android.hardware.automotive.vehicle.V2_0.VehiclePropValue;
25 private final VehiclePropValue mPropValue;
31 public static HidlVehiclePropValueBuilder newBuilder(VehiclePropValue propValue) { in newBuilder()
36 mPropValue = new VehiclePropValue(); in HidlVehiclePropValueBuilder()
40 private HidlVehiclePropValueBuilder(VehiclePropValue propValue) { in HidlVehiclePropValueBuilder()
44 private VehiclePropValue clone(VehiclePropValue propValue) { in clone()
45 VehiclePropValue newValue = new VehiclePropValue(); in clone()
122 public VehiclePropValue build() { in build()
DAidlVehiclePropValueBuilder.java21 import android.hardware.automotive.vehicle.VehiclePropValue;
27 private final VehiclePropValue mPropValue;
39 public static AidlVehiclePropValueBuilder newBuilder(VehiclePropValue propValue) { in newBuilder()
44 mPropValue = new VehiclePropValue(); in AidlVehiclePropValueBuilder()
54 private AidlVehiclePropValueBuilder(VehiclePropValue propValue) { in AidlVehiclePropValueBuilder()
58 private VehiclePropValue clone(VehiclePropValue propValue) { in clone()
59 VehiclePropValue newValue = new VehiclePropValue(); in clone()
221 public VehiclePropValue build() { in build()
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
DClusterHomeManagerTest.java38 import android.hardware.automotive.vehicle.VehiclePropValue;
209 VehiclePropValue event = new VehiclePropValue(); in testClusterSwitchUi_InvalidProp()
248 VehiclePropValue event = new VehiclePropValue(); in testClusterState_InvalidProp()
274 VehiclePropValue value = mPropertyHandler.peek(VehicleProperty.CLUSTER_REPORT_STATE); in testClusterReportState()
287 VehiclePropValue value = mPropertyHandler.peek(VehicleProperty.CLUSTER_REQUEST_DISPLAY); in testClusterRequestDisplay()
408 SparseArray<VehiclePropValue> mPropValueMap = new SparseArray<>();
416 public void onPropertySet(VehiclePropValue value) { in onPropertySet()
429 public VehiclePropValue onPropertyGet(VehiclePropValue value) { in onPropertyGet()
430 VehiclePropValue currentValue = null; in onPropertyGet()
443 public VehiclePropValue peek(int property) { in peek()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DHidlVehicleStubUnitTest.java43 import android.hardware.automotive.vehicle.V2_0.VehiclePropValue;
84 private static final VehiclePropValue TEST_VHAL_VEHICLE_PROP_VALUE;
90 TEST_VHAL_VEHICLE_PROP_VALUE = new VehiclePropValue();
174 VehiclePropValue requestPropValue = new VehiclePropValue(); in testGetAllPropConfigsHidlMultipleRequests()
191 VehiclePropValue propValue = new VehiclePropValue(); in testGetAllPropConfigsHidlMultipleRequests()
192 propValue.prop = ((VehiclePropValue) inv.getArgument(0)).prop; in testGetAllPropConfigsHidlMultipleRequests()
342 VehiclePropValue value = new VehiclePropValue(); in testGetAllPropConfigsHidlMultipleRequestsGetValueUnavailable()
391 VehiclePropValue propValue = (VehiclePropValue) args[0]; in testGetAsync()
415 VehiclePropValue propValue = (VehiclePropValue) args[0]; in testGetAsyncError()
438 VehiclePropValue propValue = (VehiclePropValue) args[0]; in testGetAsyncTryAgainError()
[all …]
/packages/services/Car/cpp/vhal/client/src/
DHidlVhalClient.cpp47 using ::android::hardware::automotive::vehicle::V2_0::VehiclePropValue;
104 const VehiclePropValue* propValue = in getValue()
105 reinterpret_cast<const VehiclePropValue*>(requestValue.toVehiclePropValue()); in getValue()
110 [callback, propId, areaId](StatusCode status, const VehiclePropValue& value) { in getValue()
112 VehiclePropValue valueCopy = value; in getValue()
131 const VehiclePropValue* propValue = in setValue()
132 reinterpret_cast<const VehiclePropValue*>(value.toVehiclePropValue()); in setValue()
288 Return<void> SubscriptionCallback::onPropertyEvent(const hidl_vec<VehiclePropValue>& propValues) { in onPropertyEvent()
290 for (const VehiclePropValue& value : propValues) { in onPropertyEvent()
291 VehiclePropValue valueCopy = value; in onPropertyEvent()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarProjectionManagerTest.java26 import android.hardware.automotive.vehicle.VehiclePropValue;
131 VehiclePropValue injectValue = in sendVoiceKey()
160 HashMap<Integer, VehiclePropValue> mMap = new HashMap<>();
163 public synchronized void onPropertySet(VehiclePropValue value) { in onPropertySet()
169 public synchronized VehiclePropValue onPropertyGet(VehiclePropValue value) { in onPropertyGet()
171 VehiclePropValue currentValue = mMap.get(value.prop); in onPropertyGet()
DCarPropertyManagerTest.java48 import android.hardware.automotive.vehicle.VehiclePropValue;
934 VehiclePropValue firstFakeValueDriveSide = new VehiclePropValue(); in testOnChangeEventWithSameAreaId()
940 VehiclePropValue secFakeValueDriveSide = new VehiclePropValue(); in testOnChangeEventWithSameAreaId()
966 VehiclePropValue fakeValueDriveSide = new VehiclePropValue(); in testOnChangeEventWithDifferentAreaId()
973 VehiclePropValue fakeValuePsgSide = new VehiclePropValue(); in testOnChangeEventWithDifferentAreaId()
1002 VehiclePropValue prop = new VehiclePropValue(); in testOnChangeEventPropErrorStatus()
1026 VehiclePropValue prop = new VehiclePropValue(); in testOnChangeEventPropUnavailableStatus()
1049 List<VehiclePropValue> props = new ArrayList<>(); in testOnChangeEventInvalidPayload()
1050 VehiclePropValue emptyProp = new VehiclePropValue(); in testOnChangeEventInvalidPayload()
1054 VehiclePropValue twoIntsProp = new VehiclePropValue(); in testOnChangeEventInvalidPayload()
[all …]
DCarHvacManagerTest.java33 import android.hardware.automotive.vehicle.VehiclePropValue;
196 VehiclePropValue v = AidlVehiclePropValueBuilder.newBuilder(VehicleProperty.HVAC_DEFROSTER) in testEvent()
250 VehiclePropValue v = AidlVehiclePropValueBuilder.newBuilder(VehicleProperty.HVAC_DEFROSTER) in testUnregisterCallback()
269 HashMap<Integer, VehiclePropValue> mMap = new HashMap<>();
272 public synchronized void onPropertySet(VehiclePropValue value) { in onPropertySet()
277 public synchronized VehiclePropValue onPropertyGet(VehiclePropValue value) { in onPropertyGet()
278 VehiclePropValue currentValue = mMap.get(value.prop); in onPropertyGet()
305 VehiclePropValue placeholderValue = AidlVehiclePropValueBuilder.newBuilder(property) in onPropertySubscribe()
DCarDiagnosticManagerTest.java41 import android.hardware.automotive.vehicle.VehiclePropValue;
102 private final HashMap<Long, VehiclePropValue> mEvents = new HashMap<>();
110 synchronized VehiclePropValue addNewEvent(DiagnosticEventBuilder builder) { in addNewEvent()
115 synchronized VehiclePropValue addNewEvent(DiagnosticEventBuilder builder, long timestamp) { in addNewEvent()
116 VehiclePropValue newEvent = builder.build(timestamp); in addNewEvent()
121 synchronized VehiclePropValue removeEvent(long timestamp) { in removeEvent()
133 synchronized VehiclePropValue getEvent(long timestamp) { in getEvent()
152 public synchronized void onPropertySet(VehiclePropValue value) { in onPropertySet()
160 public synchronized VehiclePropValue onPropertyGet(VehiclePropValue value) { in onPropertyGet()
191 public synchronized VehiclePropValue onPropertyGet(VehiclePropValue value) { in onPropertyGet()
[all …]
DCarPropertyServiceTest.java42 import android.hardware.automotive.vehicle.VehiclePropValue;
77 private final Map<Integer, VehiclePropValue> mDefaultPropValues = new HashMap<>();
112 for (VehiclePropValue value : mDefaultPropValues.values()) { in configureMockedHal()
277 private final Map<Integer, VehiclePropValue> mMap = new HashMap<>();
280 public synchronized void onPropertySet(VehiclePropValue value) { in onPropertySet()
285 public synchronized VehiclePropValue onPropertyGet(VehiclePropValue value) { in onPropertyGet()
288 VehiclePropValue currentValue = mMap.get(value.prop); in onPropertyGet()
DCarCabinManagerTest.java30 import android.hardware.automotive.vehicle.VehiclePropValue;
150 VehiclePropValue v = AidlVehiclePropValueBuilder.newBuilder(VehicleProperty.DOOR_LOCK) in testEvent()
179 HashMap<Integer, VehiclePropValue> mMap = new HashMap<>();
182 public synchronized void onPropertySet(VehiclePropValue value) { in onPropertySet()
187 public synchronized VehiclePropValue onPropertyGet(VehiclePropValue value) { in onPropertyGet()
DCarVendorExtensionManagerTest.java39 import android.hardware.automotive.vehicle.VehiclePropValue;
311 private final SparseArray<VehiclePropValue> mValues = new SparseArray<>();
343 VehiclePropValue requestedPropValue = request.prop; in getValues()
349 VehiclePropValue resultValue = new VehiclePropValue(); in getValues()
358 VehiclePropValue existingValue = mValues.get(propId); in getValues()
392 VehiclePropValue requestedPropValue = request.value; in setValues()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DCarArgumentMatchersTest.java35 import android.hardware.automotive.vehicle.VehiclePropValue;
107 VehiclePropValue prop = new VehiclePropValue(); in testIsProperty()
121 VehiclePropValue prop = new VehiclePropValue(); in testIsPropertyWithValues()
150 public int setVehiclePropValue(VehiclePropValue vehicleProp) throws Exception { in setVehiclePropValue()
172 int set(VehiclePropValue value); in set()
/packages/services/Car/cpp/vhal/client/include/
DAidlHalPropValue.h31 using VehiclePropValue = ::aidl::android::hardware::automotive::vehicle::VehiclePropValue;
34 explicit AidlHalPropValue(VehiclePropValue&& value);
70 VehiclePropValue mPropValue;
/packages/services/Car/cpp/vhal/client/test/
DHidlVhalClientTest.cpp47 using ::android::hardware::automotive::vehicle::V2_0::VehiclePropValue;
63 Return<void> get(const VehiclePropValue& requestPropValue, IVehicle::get_cb callback) override { in get()
69 Return<StatusCode> set(const VehiclePropValue& value) override { in set()
95 void setVehiclePropValue(VehiclePropValue value) { mPropValue = value; } in setVehiclePropValue()
99 VehiclePropValue getRequestPropValue() { return mRequestPropValue; } in getRequestPropValue()
105 void triggerOnPropertyEvent(const std::vector<VehiclePropValue>& values) { in triggerOnPropertyEvent()
116 VehiclePropValue mPropValue;
119 VehiclePropValue mRequestPropValue;
150 const VehiclePropValue TEST_VALUE{
211 getVhal()->setVehiclePropValue(VehiclePropValue{ in TEST_F()
[all …]
DAidlVhalClientTest.cpp60 using ::aidl::android::hardware::automotive::vehicle::VehiclePropValue;
193 void triggerOnPropertyEvent(const std::vector<VehiclePropValue>& values) { in triggerOnPropertyEvent()
304 VehiclePropValue testProp{ in TEST_F()
314 VehiclePropValue{ in TEST_F()
360 VehiclePropValue testProp{ in TEST_F()
370 VehiclePropValue{ in TEST_F()
395 VehiclePropValue testProp{ in TEST_F()
405 VehiclePropValue{ in TEST_F()
426 VehiclePropValue testProp{ in TEST_F()
437 VehiclePropValue{ in TEST_F()
[all …]
/packages/services/Car/service/src/com/android/car/
DHidlVehicleStub.java30 import android.hardware.automotive.vehicle.V2_0.VehiclePropValue;
195 public VehiclePropValue value;
210 VehiclePropValue hidlPropValue = (VehiclePropValue) requestedPropValue.toVehiclePropValue(); in get()
329 VehiclePropValue hidlPropValue = (VehiclePropValue) propValue.toVehiclePropValue(); in set()
368 public void onPropertyEvent(ArrayList<VehiclePropValue> propValues) { in onPropertyEvent()
370 for (VehiclePropValue value : propValues) { in onPropertyEvent()
377 public void onPropertySet(VehiclePropValue propValue) { in onPropertySet()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DCarArgumentMatchers.java24 import android.hardware.automotive.vehicle.VehiclePropValue;
65 public static VehiclePropValue isProperty(int prop) { in isProperty()
72 public static VehiclePropValue isPropertyWithValues(int prop, int...values) { in isPropertyWithValues()
132 private static class PropertyIdMatcher implements ArgumentMatcher<VehiclePropValue> {
147 public boolean matches(VehiclePropValue argument) { in matches()
/packages/services/Car/cpp/evs/apps/default/inc/
DEvsStateControl.h81 aidl::android::hardware::automotive::vehicle::VehiclePropValue* pRequestedPropValue);
90 aidl::android::hardware::automotive::vehicle::VehiclePropValue mGearValue;
91 aidl::android::hardware::automotive::vehicle::VehiclePropValue mTurnSignalValue;

123