mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Replace string copies with const-ref
Change-Id: Ie3ea65cc81aa8b9a92a7718ca2003440a3189a4b Test: Treehugger
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "aidl/android/hardware/security/keymint/IRemotelyProvisionedComponent.h"
|
||||
|
||||
@@ -129,8 +130,8 @@ struct JsonOutput {
|
||||
* "name": <string>
|
||||
* }
|
||||
*/
|
||||
JsonOutput jsonEncodeCsrWithBuild(const std::string instance_name,
|
||||
const cppbor::Array& csr, const std::string serialno_prop);
|
||||
JsonOutput jsonEncodeCsrWithBuild(const std::string& instance_name, const cppbor::Array& csr,
|
||||
const std::string& serialno_prop);
|
||||
|
||||
/**
|
||||
* Parses a DeviceInfo structure from the given CBOR data. The parsed data is then validated to
|
||||
|
||||
@@ -337,8 +337,8 @@ ErrMsgOr<std::vector<BccEntryData>> validateBcc(const cppbor::Array* bcc,
|
||||
return result;
|
||||
}
|
||||
|
||||
JsonOutput jsonEncodeCsrWithBuild(const std::string instance_name, const cppbor::Array& csr,
|
||||
const std::string serialno_prop) {
|
||||
JsonOutput jsonEncodeCsrWithBuild(const std::string& instance_name, const cppbor::Array& csr,
|
||||
const std::string& serialno_prop) {
|
||||
const std::string kFingerprintProp = "ro.build.fingerprint";
|
||||
|
||||
if (!::android::base::WaitForPropertyCreation(kFingerprintProp)) {
|
||||
|
||||
Reference in New Issue
Block a user