| commit | 1c1bee0543ba23cf9b50ee78b610768f6eee9e48 | [log] [tgz] |
|---|---|---|
| author | Austin Borger <borgera@google.com> | Thu Jun 01 16:51:35 2023 -0700 |
| committer | Austin Borger <borgera@google.com> | Mon Jun 26 18:01:11 2023 +0000 |
| tree | c473a07b394ca00d89db098b7cd35c56009334c6 | |
| parent | af8be3f58b905f3c12f740564cb449b81105a992 [diff] |
cameraservice: Migrate all internal String8/String16s to std::string String8 and String16 are deprecated classes. It is recommended to use std::string or std::u16string wherever possible. String16 is the native string class for aidl, but Strings marked @utf8InCpp can use std::string directly. This patch standardizes libcameraservice's use of strings to std::string, which is capable of storing utf-8 strings. This makes the code more readable and potentially reduces the number of string copies to a minimum. A new set of string utils is added to frameworks/av/camera to aid this migration. Change-Id: I59330ac03c8a52b6c21a2388bba0c143e68af4cf Bug: 265487852 Test: Presubmit, ran CtsCameraTestCases on Cuttlefish, adb shell dumpsys media camera and observed output