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