diff options
| author | 2023-06-01 16:52:05 -0700 | |
|---|---|---|
| committer | 2023-08-17 17:45:30 +0000 | |
| commit | b2dcc86d264eb2e4bd7dde130da2fe467bb295b3 (patch) | |
| tree | 23b9da6f06041db28f0584454e1e3a60852ab706 /libs/hwui/FrameInfoVisualizer.cpp | |
| parent | 8d40ab04bd6ad1223e4d027c3937091c5b9d0011 (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: I7aee6696f149244c643ec1399815155f3f562538
Merged-In: I7aee6696f149244c643ec1399815155f3f562538
Bug: 265487852
Test: Presubmit, ran CtsCameraTestCases on Cuttlefish, adb shell dumpsys media camera and observed output
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions