commit | 3910aa4b58ab893e6b2bd74151302b78ebaf0fe6 | [log] [tgz] |
---|---|---|
author | Yu Shan <shanyu@google.com> | Mon Oct 11 16:41:32 2021 -0700 |
committer | Yu Shan <shanyu@google.com> | Mon Oct 18 14:11:28 2021 -0700 |
tree | 0eb6d48ba360975a1f797de3e28859d1c2927884 | |
parent | 706befc07cfcfefbf5797cfaa6558dc9b21dede1 [diff] |
Fix minor bugs about value type. Both requestId and timestamp is defined as 'long' in aidl, which is 'int64_t' in c++. Test: Presubmit Bug: 201830716 Change-Id: I8c6e50aa7a67177bb4e01ab279f62ce772d1e1a9
diff --git a/automotive/vehicle/aidl/impl/grpc/utils/proto_message_converter/test/proto_message_converter_test.cpp b/automotive/vehicle/aidl/impl/grpc/utils/proto_message_converter/test/proto_message_converter_test.cpp index d5f2373..c742db5 100644 --- a/automotive/vehicle/aidl/impl/grpc/utils/proto_message_converter/test/proto_message_converter_test.cpp +++ b/automotive/vehicle/aidl/impl/grpc/utils/proto_message_converter/test/proto_message_converter_test.cpp
@@ -45,7 +45,7 @@ std::vector<aidl_vehicle::VehiclePropValue> prepareTestValues() { std::vector<aidl_vehicle::VehiclePropValue> values; - long timestamp = 1; + int64_t timestamp = 1; for (auto& property : defaultconfig::getDefaultConfigs()) { values.push_back({ .timestamp = timestamp,
diff --git a/automotive/vehicle/aidl/impl/hardware/include/IVehicleHardware.h b/automotive/vehicle/aidl/impl/hardware/include/IVehicleHardware.h index 981088a..58531b9 100644 --- a/automotive/vehicle/aidl/impl/hardware/include/IVehicleHardware.h +++ b/automotive/vehicle/aidl/impl/hardware/include/IVehicleHardware.h
@@ -39,7 +39,7 @@ // A request type for 'setValues' or 'getValues' method. struct VehiclePropValueRequest { // A unique request ID set by the sender. - int requestId; + int64_t requestId; // The property to get/set. ::aidl::android::hardware::automotive::vehicle::VehiclePropValue value; };