Add refreshPropertyConfigs to DumpResult proto

refreshPropertyConfigs was not previously used in dumpresult proto
resulting in failing tests that require the argument.

Flag: EXEMPT test
Bug: 357135536
Test: atest android.car.apitest.CarPropertyManagerTest
Change-Id: I9c6dd3053aa54f37786edc3810a9342f5efb39cd
This commit is contained in:
terryguan
2024-08-21 13:17:12 -07:00
parent 201694df36
commit 465d8d7de2
3 changed files with 4 additions and 0 deletions

View File

@@ -276,6 +276,7 @@ DumpResult GRPCVehicleHardware::dump(const std::vector<std::string>& options) {
return {
.callerShouldDumpState = protoDumpResult.caller_should_dump_state(),
.buffer = protoDumpResult.buffer(),
.refreshPropertyConfigs = protoDumpResult.refresh_property_configs(),
};
}

View File

@@ -226,6 +226,7 @@ GrpcVehicleProxyServer::GrpcVehicleProxyServer(std::vector<std::string> serverAd
auto dumpResult = mHardware->dump(dumpOptionStrings);
result->set_caller_should_dump_state(dumpResult.callerShouldDumpState);
result->set_buffer(dumpResult.buffer);
result->set_refresh_property_configs(dumpResult.refreshPropertyConfigs);
return ::grpc::Status::OK;
}

View File

@@ -25,4 +25,6 @@ message DumpResult {
bool caller_should_dump_state = 1;
/* The dumped information for the caller to print. */
string buffer = 2;
/* To pass if DefaultVehicleHal should refresh the property configs. */
bool refresh_property_configs = 3;
}