mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Replace string copies with const-ref am: 121fedaa46
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2869314 Change-Id: I5e99081653e109e083973770682d8b2ac0b12e59 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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