/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
D | EmulatedUserHal.h | 53 android::base::Result<std::unique_ptr<VehiclePropValue>> onSetProperty( 54 const VehiclePropValue& value); 61 android::base::Result<std::unique_ptr<VehiclePropValue>> onGetProperty( 62 const VehiclePropValue& value); 99 android::base::Result<std::unique_ptr<VehiclePropValue>> onSetInitialUserInfoResponse( 100 const VehiclePropValue& value); 105 android::base::Result<std::unique_ptr<VehiclePropValue>> onSetSwitchUserResponse( 106 const VehiclePropValue& value); 111 android::base::Result<std::unique_ptr<VehiclePropValue>> onSetCreateUserResponse( 112 const VehiclePropValue& value); [all …]
|
D | EmulatedUserHal.cpp | 45 Result<int32_t> getRequestId(const VehiclePropValue& value) { in getRequestId() 53 Result<SwitchUserMessageType> getSwitchUserMessageType(const VehiclePropValue& value) { in getSwitchUserMessageType() 76 Result<std::unique_ptr<VehiclePropValue>> EmulatedUserHal::onSetProperty( in onSetProperty() 77 const VehiclePropValue& value) { in onSetProperty() 98 Result<std::unique_ptr<VehiclePropValue>> EmulatedUserHal::onGetProperty( in onGetProperty() 99 const VehiclePropValue& value) { in onGetProperty() 116 Result<std::unique_ptr<VehiclePropValue>> EmulatedUserHal::onGetUserIdentificationAssociation( in onGetUserIdentificationAssociation() 117 const VehiclePropValue& value) { in onGetUserIdentificationAssociation() 123 auto newValue = std::unique_ptr<VehiclePropValue>( in onGetUserIdentificationAssociation() 124 new VehiclePropValue(*mSetUserIdentificationAssociationResponseFromCmd)); in onGetUserIdentificationAssociation() [all …]
|
D | EmulatedVehicleHal.h | 56 VehiclePropValuePtr get(const VehiclePropValue& requestedPropValue, 58 StatusCode set(const VehiclePropValue& propValue) override; 64 bool setPropertyFromVehicle(const VehiclePropValue& propValue) override; 65 std::vector<VehiclePropValue> getAllProperties() const override; 73 StatusCode handleGenerateFakeDataRequest(const VehiclePropValue& request); 74 void onPropertyValue(const VehiclePropValue& value, bool updateStatus); 81 StatusCode fillObd2FreezeFrame(const VehiclePropValue& requestedPropValue, 82 VehiclePropValue* outValue); 83 StatusCode fillObd2DtcInfo(VehiclePropValue* outValue); 84 StatusCode clearObd2FreezeFrames(const VehiclePropValue& propValue); [all …]
|
D | JsonFakeValueGenerator.h | 39 std::vector<VehiclePropValue> events; 43 JsonFakeValueGenerator(const VehiclePropValue& request); 48 VehiclePropValue nextEvent(); 49 std::vector<VehiclePropValue> getAllEvents(); 54 std::vector<VehiclePropValue> parseFakeValueJson(std::istream& is); 55 void copyMixedValueJson(VehiclePropValue::RawValue& dest, const Json::Value& jsonValue); 61 hidl_vec<uint8_t> generateDiagnosticBytes(const VehiclePropValue::RawValue& diagnosticValue);
|
D | ProtoMessageConverter.h | 42 void toProto(vhal_proto::VehiclePropValue* protoVal, const VehiclePropValue& val); 44 void fromProto(VehiclePropValue* val, const vhal_proto::VehiclePropValue& protoVal);
|
D | VehicleEmulator.h | 45 virtual bool setPropertyFromVehicle(const VehiclePropValue& propValue) = 0; 46 virtual std::vector<VehiclePropValue> getAllProperties() const = 0; 74 void doSetValueFromClient(const VehiclePropValue& propValue); 89 void populateProtoVehiclePropValue(vhal_proto::VehiclePropValue* protoVal, 90 const VehiclePropValue* val);
|
D | VehicleEmulator.cpp | 65 void VehicleEmulator::doSetValueFromClient(const VehiclePropValue& propValue) { in doSetValueFromClient() 67 vhal_proto::VehiclePropValue* val = msg.add_value(); in doSetValueFromClient() 124 VehiclePropValue request = { in doGetProperty() 131 vhal_proto::VehiclePropValue* protoVal = respMsg.add_value(); in doGetProperty() 147 vhal_proto::VehiclePropValue* protoVal = respMsg.add_value(); in doGetPropertyAll() 155 vhal_proto::VehiclePropValue protoVal = rxMsg.value(0); in doSetProperty() 156 VehiclePropValue val = { in doSetProperty() 224 void VehicleEmulator::populateProtoVehiclePropValue(vhal_proto::VehiclePropValue* protoVal, in populateProtoVehiclePropValue() 225 const VehiclePropValue* val) { in populateProtoVehiclePropValue()
|
D | JsonFakeValueGenerator.cpp | 36 JsonFakeValueGenerator::JsonFakeValueGenerator(const VehiclePropValue& request) { in JsonFakeValueGenerator() 63 std::vector<VehiclePropValue> JsonFakeValueGenerator::getAllEvents() { in getAllEvents() 67 VehiclePropValue JsonFakeValueGenerator::nextEvent() { in nextEvent() 68 VehiclePropValue generatedValue; in nextEvent() 96 std::vector<VehiclePropValue> JsonFakeValueGenerator::parseFakeValueJson(std::istream& is) { in parseFakeValueJson() 97 std::vector<VehiclePropValue> fakeVhalEvents; in parseFakeValueJson() 121 VehiclePropValue event = { in parseFakeValueJson() 169 void JsonFakeValueGenerator::copyMixedValueJson(VehiclePropValue::RawValue& dest, in copyMixedValueJson() 197 const VehiclePropValue::RawValue& diagnosticValue) { in generateDiagnosticBytes()
|
D | VehicleHalClient.h | 28 using PropertyCallBackType = std::function<void(const VehiclePropValue&, bool updateStatus)>; 35 void onPropertyValue(const VehiclePropValue& value, bool updateStatus) override;
|
D | LinearFakeValueGenerator.cpp | 32 LinearFakeValueGenerator::LinearFakeValueGenerator(const VehiclePropValue& request) { in LinearFakeValueGenerator() 44 VehiclePropValue LinearFakeValueGenerator::nextEvent() { in nextEvent() 50 VehiclePropValue event = {.timestamp = {}, .areaId = {}, .prop = mGenCfg.propId}; in nextEvent()
|
D | LinearFakeValueGenerator.h | 46 LinearFakeValueGenerator(const VehiclePropValue& request); 49 VehiclePropValue nextEvent();
|
D | EmulatedVehicleHal.cpp | 129 std::vector<VehiclePropValue> propvalues = tmpGenerator.getAllEvents(); in getAllPropertiesOverride() 138 const VehiclePropValue& requestedPropValue, StatusCode* outStatus) { in get() 199 StatusCode EmulatedVehicleHal::set(const VehiclePropValue& propValue) { in set() 301 VehiclePropValue prop = { in onCreate() 385 bool EmulatedVehicleHal::setPropertyFromVehicle(const VehiclePropValue& propValue) { in setPropertyFromVehicle() 390 std::vector<VehiclePropValue> EmulatedVehicleHal::getAllProperties() const { in getAllProperties() 394 void EmulatedVehicleHal::onPropertyValue(const VehiclePropValue& value, bool updateStatus) { in onPropertyValue() 410 tokenFunction = [](const VehiclePropValue& propValue) { in initStaticConfig() 453 StatusCode EmulatedVehicleHal::fillObd2FreezeFrame(const VehiclePropValue& requestedPropValue, in fillObd2FreezeFrame() 454 VehiclePropValue* outValue) { in fillObd2FreezeFrame() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/ |
D | VmsUtils.h | 124 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 …]
|
D | VehiclePropertyStore.h | 46 using TokenFunction = std::function<int64_t(const VehiclePropValue& value)>; 63 using PropertyMap = std::map<RecordId, VehiclePropValue>; 71 bool writeValue(const VehiclePropValue& propValue, bool updateStatus); 73 void removeValue(const VehiclePropValue& propValue); 76 std::vector<VehiclePropValue> readAllValues() const; 77 std::vector<VehiclePropValue> readValuesForProperty(int32_t propId) const; 78 std::unique_ptr<VehiclePropValue> readValueOrNull(const VehiclePropValue& request) const; 79 std::unique_ptr<VehiclePropValue> readValueOrNull(int32_t prop, int32_t area = 0, 87 RecordId getRecordIdLocked(const VehiclePropValue& valuePrototype) const; 88 const VehiclePropValue* getValueOrNullLocked(const RecordId& recId) const;
|
D | VehicleObjectPool.h | 164 using RecyclableType = recyclable_ptr<VehiclePropValue>; 183 RecyclableType obtain(const VehiclePropValue& src); 204 class InternalPool: public ObjectPool<VehiclePropValue> { 210 return ObjectPool<VehiclePropValue>::obtain(); in obtain() 213 VehiclePropValue* createObject() override; 214 void recycle(VehiclePropValue* o) override; 216 bool check(VehiclePropValue::RawValue* v); 228 const Deleter<VehiclePropValue> mDisposableDeleter { 229 [] (VehiclePropValue* v) {
|
D | VehicleHalManager.h | 67 Return<void> get(const VehiclePropValue& requestedPropValue, 69 Return<StatusCode> set(const VehiclePropValue& value) override; 96 void handlePropertySetEvent(const VehiclePropValue& value); 136 VehiclePropValue* prop); 148 hidl_vec<VehiclePropValue> mHidlVecOfVehiclePropValuePool;
|
D | VehicleHal.h | 35 using VehiclePropValuePtr = recyclable_ptr<VehiclePropValue>; 44 virtual VehiclePropValuePtr get(const VehiclePropValue& requestedPropValue, 47 virtual StatusCode set(const VehiclePropValue& propValue) = 0;
|
/hardware/interfaces/automotive/vehicle/2.0/utils/ |
D | UserHalHelper.h | 42 const VehiclePropValue& propValue); 43 android::base::Result<SwitchUserRequest> toSwitchUserRequest(const VehiclePropValue& propValue); 44 android::base::Result<CreateUserRequest> toCreateUserRequest(const VehiclePropValue& propValue); 45 android::base::Result<RemoveUserRequest> toRemoveUserRequest(const VehiclePropValue& propValue); 47 const VehiclePropValue& propValue); 49 const VehiclePropValue& propValue); 53 std::unique_ptr<VehiclePropValue> toVehiclePropValue(const SwitchUserRequest& request); 54 std::unique_ptr<VehiclePropValue> toVehiclePropValue(const InitialUserInfoResponse& response); 55 std::unique_ptr<VehiclePropValue> toVehiclePropValue(const SwitchUserResponse& response); 56 std::unique_ptr<VehiclePropValue> toVehiclePropValue(const CreateUserResponse& response); [all …]
|
D | UserHalHelper.cpp | 39 Result<void> verifyPropValue(const VehiclePropValue& propValue, VehicleProperty vehicleProperty, in verifyPropValue() 163 Result<InitialUserInfoRequest> toInitialUserInfoRequest(const VehiclePropValue& propValue) { in toInitialUserInfoRequest() 182 Result<SwitchUserRequest> toSwitchUserRequest(const VehiclePropValue& propValue) { in toSwitchUserRequest() 211 Result<CreateUserRequest> toCreateUserRequest(const VehiclePropValue& propValue) { in toCreateUserRequest() 230 Result<RemoveUserRequest> toRemoveUserRequest(const VehiclePropValue& propValue) { in toRemoveUserRequest() 249 const VehiclePropValue& propValue) { in toUserIdentificationGetRequest() 270 const VehiclePropValue& propValue) { in toUserIdentificationSetRequest() 290 std::unique_ptr<VehiclePropValue> toVehiclePropValue(const SwitchUserRequest& request) { in toVehiclePropValue() 296 auto propValue = std::unique_ptr<VehiclePropValue>(new VehiclePropValue()); in toVehiclePropValue() 306 std::unique_ptr<VehiclePropValue> toVehiclePropValue(const InitialUserInfoResponse& response) { in toVehiclePropValue() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/utils/tests/ |
D | UserHalHelper_test.cpp | 80 VehiclePropValue propValue{ in TEST() 100 VehiclePropValue propValue{ in TEST() 119 VehiclePropValue propValue{ in TEST() 140 VehiclePropValue propValue{ in TEST() 152 VehiclePropValue propValue{ in TEST() 164 VehiclePropValue propValue{ in TEST() 176 VehiclePropValue propValue{ in TEST() 188 VehiclePropValue propValueMissingSecondUserInfo{ in TEST() 198 VehiclePropValue propValueMissingUsersInfo{ in TEST() 209 VehiclePropValue propValue{ in TEST() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | VmsUtils.cpp | 49 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 …]
|
D | VehicleObjectPool.cpp | 39 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()
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/fuzzer/ |
D | VehicleManager_fuzzer.h | 45 VehiclePropValuePtr get(const VehiclePropValue& requestedPropValue, 48 StatusCode set(const VehiclePropValue& propValue) override { in set() 64 void sendPropEvent(recyclable_ptr<VehiclePropValue> value) { doHalEvent(std::move(value)); } in sendPropEvent() 71 int64_t makeKey(const VehiclePropValue& v) const { return makeKey(v.prop, v.areaId); } in makeKey() 79 std::unordered_map<int64_t, VehiclePropValue> mValues; 103 VehiclePropValue mActualValue = VehiclePropValue{};
|
/hardware/interfaces/automotive/vehicle/2.0/vts/functional/ |
D | VtsHalAutomotiveVehicleV2_0TargetTest.cpp | 38 using HidlVecOfValues = hidl_vec<VehiclePropValue>; 44 Return<void> onPropertyEvent(const hidl_vec<VehiclePropValue>& values) override { in onPropertyEvent() 53 Return<void> onPropertySet(const VehiclePropValue& /* value */) override { in onPropertySet() argument 95 VehiclePropValue requestedValue{}; in invokeGet() 102 void invokeGet(const VehiclePropValue& requestedPropValue) { in invokeGet() 103 mActualValue = VehiclePropValue{}; // reset previous values in invokeGet() 106 VehiclePropValue refValue; in invokeGet() 110 const VehiclePropValue& value) { in invokeGet() 121 VehiclePropValue mActualValue; 207 VehiclePropValue propToSet = mActualValue; in TEST_P() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/tests/ |
D | ProtoMessageConverter_test.cpp | 78 void CheckPropValueConversion(const VehiclePropValue& val) { in CheckPropValueConversion() 79 vhal_proto::VehiclePropValue protoVal; in CheckPropValueConversion() 80 VehiclePropValue tmpVal; in CheckPropValueConversion() 92 VehiclePropValue prop; in TEST()
|