commit | fde494da8c0f5ea6726a6d55303f2d37d8456410 | [log] [tgz] |
---|---|---|
author | Tomasz Wasilczyk <twasilczyk@google.com> | Fri Aug 11 00:06:51 2023 +0000 |
committer | Tomasz Wasilczyk <twasilczyk@google.com> | Thu Aug 17 19:34:29 2023 +0000 |
tree | 4d39b09ee7f99a71ca01e5f31d6ff4d28063cb34 | |
parent | d2c95f8c7a125e3cc522454e41f380ebfdfdc574 [diff] [blame] |
Use String8/16 c_str [sensors] Bug: 295394788 Test: make checkbuild Change-Id: I09c5127f66c0ba1f7eef8951e3ab15f50f822d22 Merged-In: I09c5127f66c0ba1f7eef8951e3ab15f50f822d22
diff --git a/services/sensorservice/SensorRegistrationInfo.h b/services/sensorservice/SensorRegistrationInfo.h index a34a65b..dc9e821 100644 --- a/services/sensorservice/SensorRegistrationInfo.h +++ b/services/sensorservice/SensorRegistrationInfo.h
@@ -93,7 +93,7 @@ using namespace service::SensorRegistrationInfoProto; proto->write(TIMESTAMP_SEC, int64_t(mRealtimeSec)); proto->write(SENSOR_HANDLE, mSensorHandle); - proto->write(PACKAGE_NAME, std::string(mPackageName.string())); + proto->write(PACKAGE_NAME, std::string(mPackageName.c_str())); proto->write(PID, int32_t(mPid)); proto->write(UID, int32_t(mUid)); proto->write(SAMPLING_RATE_US, mSamplingRateUs);