Home
last modified time | relevance | path

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

12

/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DVmsUtils.h124 std::unique_ptr<VehiclePropValue> createBaseVmsMessage(size_t message_size);
129 std::unique_ptr<VehiclePropValue> createSubscribeMessage(const VmsLayer& layer);
134 std::unique_ptr<VehiclePropValue> createSubscribeToPublisherMessage(
140 std::unique_ptr<VehiclePropValue> createUnsubscribeMessage(const VmsLayer& layer);
145 std::unique_ptr<VehiclePropValue> createUnsubscribeToPublisherMessage(
151 std::unique_ptr<VehiclePropValue> createOfferingMessage(const VmsOffers& offers);
155 std::unique_ptr<VehiclePropValue> createAvailabilityRequest();
159 std::unique_ptr<VehiclePropValue> createSubscriptionsRequest();
170 std::unique_ptr<VehiclePropValue> createDataMessageWithLayerPublisherInfo(
176 std::unique_ptr<VehiclePropValue> createPublisherIdRequest(
[all …]
DVehiclePropertyStore.h45 using TokenFunction = std::function<int64_t(const VehiclePropValue& value)>;
62 using PropertyMap = std::map<RecordId, VehiclePropValue>;
70 bool writeValue(const VehiclePropValue& propValue, bool updateStatus);
72 void removeValue(const VehiclePropValue& propValue);
75 std::vector<VehiclePropValue> readAllValues() const;
76 std::vector<VehiclePropValue> readValuesForProperty(int32_t propId) const;
77 std::unique_ptr<VehiclePropValue> readValueOrNull(const VehiclePropValue& request) const;
78 std::unique_ptr<VehiclePropValue> readValueOrNull(int32_t prop, int32_t area = 0,
86 RecordId getRecordIdLocked(const VehiclePropValue& valuePrototype) const;
87 const VehiclePropValue* getValueOrNullLocked(const RecordId& recId) const;
DVehicleUtils.h63 std::unique_ptr<VehiclePropValue> createVehiclePropValue(
67 const VehiclePropValue::RawValue& value, VehiclePropertyType type);
69 void copyVehicleRawValue(VehiclePropValue::RawValue* dest,
70 const VehiclePropValue::RawValue& src);
77 void shallowCopy(VehiclePropValue* dest, const VehiclePropValue& src);
DVehicleObjectPool.h163 using RecyclableType = recyclable_ptr<VehiclePropValue>;
182 RecyclableType obtain(const VehiclePropValue& src);
203 class InternalPool: public ObjectPool<VehiclePropValue> {
209 return ObjectPool<VehiclePropValue>::obtain(); in obtain()
212 VehiclePropValue* createObject() override;
213 void recycle(VehiclePropValue* o) override;
215 bool check(VehiclePropValue::RawValue* v);
227 const Deleter<VehiclePropValue> mDisposableDeleter {
228 [] (VehiclePropValue* v) {
DVehicleHalManager.h67 Return<void> get(const VehiclePropValue& requestedPropValue,
69 Return<StatusCode> set(const VehiclePropValue& value) override;
91 void handlePropertySetEvent(const VehiclePropValue& value);
110 hidl_vec<VehiclePropValue> mHidlVecOfVehiclePropValuePool;
DVehicleHal.h35 using VehiclePropValuePtr = recyclable_ptr<VehiclePropValue>;
44 virtual VehiclePropValuePtr get(const VehiclePropValue& requestedPropValue,
47 virtual StatusCode set(const VehiclePropValue& propValue) = 0;
DSubscriptionManager.h78 std::list<VehiclePropValue *> values;
114 const std::vector<recyclable_ptr<VehiclePropValue>>& propValues,
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DEmulatedVehicleHal.h53 VehiclePropValuePtr get(const VehiclePropValue& requestedPropValue,
55 StatusCode set(const VehiclePropValue& propValue) override;
60 bool setPropertyFromVehicle(const VehiclePropValue& propValue) override;
61 std::vector<VehiclePropValue> getAllProperties() const override;
68 StatusCode handleGenerateFakeDataRequest(const VehiclePropValue& request);
69 void onFakeValueGenerated(const VehiclePropValue& value);
79 StatusCode fillObd2FreezeFrame(const VehiclePropValue& requestedPropValue,
80 VehiclePropValue* outValue);
81 StatusCode fillObd2DtcInfo(VehiclePropValue* outValue);
82 StatusCode clearObd2FreezeFrames(const VehiclePropValue& propValue);
DJsonFakeValueGenerator.h39 std::vector<VehiclePropValue> events;
43 JsonFakeValueGenerator(const VehiclePropValue& request);
46 VehiclePropValue nextEvent();
51 std::vector<VehiclePropValue> parseFakeValueJson(std::istream& is);
52 void copyMixedValueJson(VehiclePropValue::RawValue& dest, const Json::Value& jsonValue);
58 hidl_vec<uint8_t> generateDiagnosticBytes(const VehiclePropValue::RawValue& diagnosticValue);
DVehicleEmulator.h45 virtual bool setPropertyFromVehicle(const VehiclePropValue& propValue) = 0;
46 virtual std::vector<VehiclePropValue> getAllProperties() const = 0;
74 void doSetValueFromClient(const VehiclePropValue& propValue);
89 void populateProtoVehiclePropValue(emulator::VehiclePropValue* protoVal,
90 const VehiclePropValue* val);
DJsonFakeValueGenerator.cpp36 JsonFakeValueGenerator::JsonFakeValueGenerator(const VehiclePropValue& request) { in JsonFakeValueGenerator()
51 VehiclePropValue JsonFakeValueGenerator::nextEvent() { in nextEvent()
52 VehiclePropValue generatedValue; in nextEvent()
80 std::vector<VehiclePropValue> JsonFakeValueGenerator::parseFakeValueJson(std::istream& is) { in parseFakeValueJson()
81 std::vector<VehiclePropValue> fakeVhalEvents; in parseFakeValueJson()
104 VehiclePropValue event = { in parseFakeValueJson()
144 void JsonFakeValueGenerator::copyMixedValueJson(VehiclePropValue::RawValue& dest, in copyMixedValueJson()
172 const VehiclePropValue::RawValue& diagnosticValue) { in generateDiagnosticBytes()
DVehicleEmulator.cpp64 void VehicleEmulator::doSetValueFromClient(const VehiclePropValue& propValue) { in doSetValueFromClient()
66 emulator::VehiclePropValue *val = msg.add_value(); in doSetValueFromClient()
123 VehiclePropValue request = { in doGetProperty()
130 emulator::VehiclePropValue* protoVal = respMsg.add_value(); in doGetProperty()
146 emulator::VehiclePropValue* protoVal = respMsg.add_value(); in doGetPropertyAll()
154 emulator::VehiclePropValue protoVal = rxMsg.value(0); in doSetProperty()
155 VehiclePropValue val = { in doSetProperty()
274 void VehicleEmulator::populateProtoVehiclePropValue(emulator::VehiclePropValue* protoVal, in populateProtoVehiclePropValue()
275 const VehiclePropValue* val) { in populateProtoVehiclePropValue()
DLinearFakeValueGenerator.cpp32 LinearFakeValueGenerator::LinearFakeValueGenerator(const VehiclePropValue& request) { in LinearFakeValueGenerator()
44 VehiclePropValue LinearFakeValueGenerator::nextEvent() { in nextEvent()
49 VehiclePropValue event = {.prop = mGenCfg.propId}; in nextEvent()
DLinearFakeValueGenerator.h46 LinearFakeValueGenerator(const VehiclePropValue& request);
49 VehiclePropValue nextEvent();
DEmulatedVehicleHal.cpp105 const VehiclePropValue& requestedPropValue, StatusCode* outStatus) { in get()
132 StatusCode EmulatedVehicleHal::set(const VehiclePropValue& propValue) { in set()
271 VehiclePropValue prop = { in onCreate()
348 bool EmulatedVehicleHal::setPropertyFromVehicle(const VehiclePropValue& propValue) { in setPropertyFromVehicle()
366 std::vector<VehiclePropValue> EmulatedVehicleHal::getAllProperties() const { in getAllProperties()
370 StatusCode EmulatedVehicleHal::handleGenerateFakeDataRequest(const VehiclePropValue& request) { in handleGenerateFakeDataRequest()
474 void EmulatedVehicleHal::onFakeValueGenerated(const VehiclePropValue& value) { in onFakeValueGenerated()
497 tokenFunction = [](const VehiclePropValue& propValue) { in initStaticConfig()
540 StatusCode EmulatedVehicleHal::fillObd2FreezeFrame(const VehiclePropValue& requestedPropValue, in fillObd2FreezeFrame()
541 VehiclePropValue* outValue) { in fillObd2FreezeFrame()
[all …]
DGeneratorHub.h48 VehiclePropValue val;
57 using OnHalEvent = std::function<void(const VehiclePropValue& event)>;
DFakeValueGenerator.h34 virtual VehiclePropValue nextEvent() = 0;
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVehiclePropertyStore.cpp44 bool VehiclePropertyStore::writeValue(const VehiclePropValue& propValue, in writeValue()
50 VehiclePropValue* valueToUpdate = const_cast<VehiclePropValue*>(getValueOrNullLocked(recId)); in writeValue()
63 void VehiclePropertyStore::removeValue(const VehiclePropValue& propValue) { in removeValue()
78 std::vector<VehiclePropValue> VehiclePropertyStore::readAllValues() const { in readAllValues()
80 std::vector<VehiclePropValue> allValues; in readAllValues()
88 std::vector<VehiclePropValue> VehiclePropertyStore::readValuesForProperty(int32_t propId) const { in readValuesForProperty()
89 std::vector<VehiclePropValue> values; in readValuesForProperty()
99 std::unique_ptr<VehiclePropValue> VehiclePropertyStore::readValueOrNull( in readValueOrNull()
100 const VehiclePropValue& request) const { in readValueOrNull()
103 const VehiclePropValue* internalValue = getValueOrNullLocked(recId); in readValueOrNull()
[all …]
DVmsUtils.cpp49 std::unique_ptr<VehiclePropValue> createBaseVmsMessage(size_t message_size) { in createBaseVmsMessage()
56 std::unique_ptr<VehiclePropValue> createSubscribeMessage(const VmsLayer& layer) { in createSubscribeMessage()
63 std::unique_ptr<VehiclePropValue> createSubscribeToPublisherMessage( in createSubscribeToPublisherMessage()
72 std::unique_ptr<VehiclePropValue> createUnsubscribeMessage(const VmsLayer& layer) { in createUnsubscribeMessage()
79 std::unique_ptr<VehiclePropValue> createUnsubscribeToPublisherMessage( in createUnsubscribeToPublisherMessage()
88 std::unique_ptr<VehiclePropValue> createOfferingMessage(const VmsOffers& offers) { in createOfferingMessage()
113 std::unique_ptr<VehiclePropValue> createAvailabilityRequest() { in createAvailabilityRequest()
121 std::unique_ptr<VehiclePropValue> createSubscriptionsRequest() { in createSubscriptionsRequest()
129 std::unique_ptr<VehiclePropValue> createDataMessageWithLayerPublisherInfo( in createDataMessageWithLayerPublisherInfo()
139 std::unique_ptr<VehiclePropValue> createPublisherIdRequest( in createPublisherIdRequest()
[all …]
DVehicleUtils.cpp31 std::unique_ptr<VehiclePropValue> createVehiclePropValue( in createVehiclePropValue()
33 auto val = std::unique_ptr<VehiclePropValue>(new VehiclePropValue); in createVehiclePropValue()
62 const VehiclePropValue::RawValue& value, VehiclePropertyType type) { in getVehicleRawValueVectorSize()
88 void copyVehicleRawValue(VehiclePropValue::RawValue* dest, in copyVehicleRawValue()
89 const VehiclePropValue::RawValue& src) { in copyVehicleRawValue()
114 void shallowCopy(VehiclePropValue* dest, const VehiclePropValue& src) { in shallowCopy()
DVehicleObjectPool.cpp39 const VehiclePropValue& src) { in obtain()
124 void VehiclePropValuePool::InternalPool::recycle(VehiclePropValue* o) { in recycle()
137 ObjectPool<VehiclePropValue>::recycle(o); in recycle()
141 bool VehiclePropValuePool::InternalPool::check(VehiclePropValue::RawValue* v) { in check()
152 VehiclePropValue* VehiclePropValuePool::InternalPool::createObject() { in createObject()
DVehicleHalManager.cpp39 const VehiclePropValue kEmptyValue{};
79 Return<void> VehicleHalManager::get(const VehiclePropValue& requestedPropValue, get_cb _hidl_cb) { in get()
101 Return<StatusCode> VehicleHalManager::set(const VehiclePropValue &value) { in set()
232 hidl_vec<VehiclePropValue> vec; in onBatchHalEvent()
240 for (VehiclePropValue* pValue : cv.values) { in onBatchHalEvent()
312 void VehicleHalManager::handlePropertySetEvent(const VehiclePropValue& value) { in handlePropertySetEvent()
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DVehicleHalManager_test.cpp53 VehiclePropValuePtr get(const VehiclePropValue& requestedPropValue, in get()
98 StatusCode set(const VehiclePropValue& propValue) override { in set()
117 void sendPropEvent(recyclable_ptr<VehiclePropValue> value) { in sendPropEvent()
130 int64_t makeKey(const VehiclePropValue& v) const { in makeKey()
140 std::unordered_map<int64_t, VehiclePropValue> mValues;
158 VehiclePropValue requestedValue {}; in invokeGet()
165 void invokeGet(const VehiclePropValue& requestedPropValue) { in invokeGet()
166 actualValue = VehiclePropValue {}; // reset previous values in invokeGet()
169 VehiclePropValue refValue; in invokeGet()
172 (StatusCode status, const VehiclePropValue& value) { in invokeGet()
[all …]
DVehicleHalTestUtils.h93 using HidlVecOfValues = hidl_vec<VehiclePropValue>;
97 const hidl_vec<VehiclePropValue>& values) override { in onPropertyEvent()
105 Return<void> onPropertySet(const VehiclePropValue& /* value */) override { in onPropertySet() argument
/hardware/interfaces/automotive/vehicle/2.0/
DIVehicle.hal47 * GET request in VehiclePropValue object.
53 get(VehiclePropValue requestedPropValue)
54 generates (StatusCode status, VehiclePropValue propValue);
66 set(VehiclePropValue propValue) generates (StatusCode status);

12