Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3910aa4b authored by Yu Shan's avatar Yu Shan
Browse files

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
parent 706befc0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -45,7 +45,7 @@ std::vector<aidl_vehicle::VehiclePropConfig> prepareTestConfigs() {


std::vector<aidl_vehicle::VehiclePropValue> prepareTestValues() {
std::vector<aidl_vehicle::VehiclePropValue> prepareTestValues() {
    std::vector<aidl_vehicle::VehiclePropValue> values;
    std::vector<aidl_vehicle::VehiclePropValue> values;
    long timestamp = 1;
    int64_t timestamp = 1;
    for (auto& property : defaultconfig::getDefaultConfigs()) {
    for (auto& property : defaultconfig::getDefaultConfigs()) {
        values.push_back({
        values.push_back({
                .timestamp = timestamp,
                .timestamp = timestamp,
+1 −1
Original line number Original line Diff line number Diff line
@@ -39,7 +39,7 @@ struct DumpResult {
// A request type for 'setValues' or 'getValues' method.
// A request type for 'setValues' or 'getValues' method.
struct VehiclePropValueRequest {
struct VehiclePropValueRequest {
    // A unique request ID set by the sender.
    // A unique request ID set by the sender.
    int requestId;
    int64_t requestId;
    // The property to get/set.
    // The property to get/set.
    ::aidl::android::hardware::automotive::vehicle::VehiclePropValue value;
    ::aidl::android::hardware::automotive::vehicle::VehiclePropValue value;
};
};