Searched refs:aidlvhal (Results 1 – 7 of 7) sorted by relevance
/hardware/interfaces/automotive/vehicle/aidl/impl/vhal/include/ |
D | DefaultVehicleHal.h | 45 namespace aidlvhal = ::aidl::android::hardware::automotive::vehicle; variable 47 class DefaultVehicleHal final : public aidlvhal::BnVehicle { 49 using CallbackType = std::shared_ptr<aidlvhal::IVehicleCallback>; 58 ndk::ScopedAStatus getAllPropConfigs(aidlvhal::VehiclePropConfigs* returnConfigs) override; 60 const aidlvhal::GetValueRequests& requests) override; 62 const aidlvhal::SetValueRequests& requests) override; 64 aidlvhal::VehiclePropConfigs* returnConfigs) override; 66 const std::vector<aidlvhal::SubscribeOptions>& options, 80 using GetValuesClient = GetSetValuesClient<aidlvhal::GetValueResult, aidlvhal::GetValueResults>; 81 using SetValuesClient = GetSetValuesClient<aidlvhal::SetValueResult, aidlvhal::SetValueResults>; [all …]
|
/hardware/interfaces/automotive/vehicle/aidl/impl/grpc/ |
D | GRPCVehicleHardware.cpp | 58 std::vector<aidlvhal::VehiclePropConfig> GRPCVehicleHardware::getAllPropertyConfigs() const { in getAllPropertyConfigs() 59 std::vector<aidlvhal::VehiclePropConfig> configs; in getAllPropertyConfigs() 64 aidlvhal::VehiclePropConfig config; in getAllPropertyConfigs() 76 aidlvhal::StatusCode GRPCVehicleHardware::setValues( in setValues() 78 const std::vector<aidlvhal::SetValueRequest>& requests) { in setValues() 95 return aidlvhal::StatusCode::INTERNAL_ERROR; in setValues() 97 std::vector<aidlvhal::SetValueResult> results; in setValues() 101 result.status = static_cast<aidlvhal::StatusCode>(protoResult.status()); in setValues() 106 return aidlvhal::StatusCode::OK; in setValues() 109 aidlvhal::StatusCode GRPCVehicleHardware::getValues( in getValues() [all …]
|
D | GRPCVehicleHardware.h | 40 namespace aidlvhal = ::aidl::android::hardware::automotive::vehicle; variable 52 std::vector<aidlvhal::VehiclePropConfig> getAllPropertyConfigs() const override; 57 aidlvhal::StatusCode setValues(std::shared_ptr<const SetValuesCallback> callback, 58 const std::vector<aidlvhal::SetValueRequest>& requests) override; 63 aidlvhal::StatusCode getValues( 65 const std::vector<aidlvhal::GetValueRequest>& requests) const override; 71 aidlvhal::StatusCode checkHealth() override; 83 aidlvhal::StatusCode updateSampleRate(int32_t propId, int32_t areaId, 86 aidlvhal::StatusCode subscribe(aidlvhal::SubscribeOptions options) override; 88 aidlvhal::StatusCode unsubscribe(int32_t propId, int32_t areaId) override;
|
D | GRPCVehicleProxyServer.cpp | 46 [this](std::vector<aidlvhal::VehiclePropValue> values) { in GrpcVehicleProxyServer() 67 std::vector<aidlvhal::SetValueRequest> aidlRequests; in SetValues() 80 tmpResults](std::vector<aidlvhal::SetValueResult> setValueResults) { in SetValues() 94 if (aidlStatus != aidlvhal::StatusCode::OK) { in SetValues() 112 std::vector<aidlvhal::GetValueRequest> aidlRequests; in GetValues() 125 tmpResults](std::vector<aidlvhal::GetValueResult> getValueResults) { in GetValues() 143 if (aidlStatus != aidlvhal::StatusCode::OK) { in GetValues() 171 aidlvhal::SubscribeOptions aidlSubscribeOptions = {}; in Subscribe() 220 const std::vector<aidlvhal::VehiclePropValue>& values) { in OnVehiclePropChange()
|
D | GRPCVehicleProxyServer.h | 37 namespace aidlvhal = ::aidl::android::hardware::automotive::vehicle; variable 84 void OnVehiclePropChange(const std::vector<aidlvhal::VehiclePropValue>& values);
|
/hardware/interfaces/automotive/vehicle/aidl/impl/grpc/test/ |
D | GRPCVehicleProxyServerUnitTest.cpp | 33 namespace aidlvhal = ::aidl::android::hardware::automotive::vehicle; 49 void onPropertyEvent(std::vector<aidlvhal::VehiclePropValue> values) { in onPropertyEvent() 56 std::vector<aidlvhal::VehiclePropConfig> getAllPropertyConfigs() const override { return {}; } in getAllPropertyConfigs() 58 aidlvhal::StatusCode setValues( in setValues() 60 const std::vector<aidlvhal::SetValueRequest>& requests) override { in setValues() 61 return aidlvhal::StatusCode::OK; in setValues() 64 aidlvhal::StatusCode getValues( in getValues() 66 const std::vector<aidlvhal::GetValueRequest>& requests) const override { in getValues() 67 return aidlvhal::StatusCode::OK; in getValues() 72 aidlvhal::StatusCode checkHealth() override { return aidlvhal::StatusCode::OK; } in checkHealth() [all …]
|
D | GRPCVehicleHardwareUnitTest.cpp | 30 namespace aidlvhal = ::aidl::android::hardware::automotive::vehicle; 134 aidlvhal::SubscribeOptions options = {.propId = 1, in TEST_F() 141 EXPECT_EQ(status, aidlvhal::StatusCode::OK); in TEST_F() 154 aidlvhal::SubscribeOptions options; in TEST_F() 157 EXPECT_EQ(status, aidlvhal::StatusCode::OK); in TEST_F() 164 aidlvhal::SubscribeOptions options; in TEST_F() 167 EXPECT_EQ(status, aidlvhal::StatusCode::INTERNAL_ERROR); in TEST_F() 178 aidlvhal::SubscribeOptions options; in TEST_F() 181 EXPECT_EQ(status, aidlvhal::StatusCode::NOT_AVAILABLE_SPEED_LOW); in TEST_F() 197 EXPECT_EQ(status, aidlvhal::StatusCode::OK); in TEST_F() [all …]
|