mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Use String8/16 c_str [drm]" into main am: 3cc1fa796e am: 7da95bfa92
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2723935 Change-Id: Ia9aabb9beb60da1e7ff5b820ac6ad45b8eaa043a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -98,8 +98,7 @@ namespace implementation {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_hidl_cb(toStatus(status), toHidlVec(legacyRequest), requestType,
|
_hidl_cb(toStatus(status), toHidlVec(legacyRequest), requestType, defaultUrl.c_str());
|
||||||
defaultUrl.string());
|
|
||||||
return Void();
|
return Void();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -219,7 +218,7 @@ namespace implementation {
|
|||||||
String8 legacyValue;
|
String8 legacyValue;
|
||||||
status_t status = mLegacyPlugin->getPropertyString(
|
status_t status = mLegacyPlugin->getPropertyString(
|
||||||
String8(propertyName.c_str()), legacyValue);
|
String8(propertyName.c_str()), legacyValue);
|
||||||
_hidl_cb(toStatus(status), legacyValue.string());
|
_hidl_cb(toStatus(status), legacyValue.c_str());
|
||||||
return Void();
|
return Void();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ namespace V1_0 {
|
|||||||
namespace helper {
|
namespace helper {
|
||||||
|
|
||||||
SharedLibrary::SharedLibrary(const String8& path) {
|
SharedLibrary::SharedLibrary(const String8& path) {
|
||||||
mLibHandle = dlopen(path.string(), RTLD_NOW);
|
mLibHandle = dlopen(path.c_str(), RTLD_NOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
SharedLibrary::~SharedLibrary() {
|
SharedLibrary::~SharedLibrary() {
|
||||||
|
|||||||
@@ -39,9 +39,9 @@ class PluginLoader {
|
|||||||
*/
|
*/
|
||||||
String8 pluginDir(dir);
|
String8 pluginDir(dir);
|
||||||
|
|
||||||
DIR* pDir = opendir(pluginDir.string());
|
DIR* pDir = opendir(pluginDir.c_str());
|
||||||
if (pDir == NULL) {
|
if (pDir == NULL) {
|
||||||
ALOGE("Failed to find plugin directory %s", pluginDir.string());
|
ALOGE("Failed to find plugin directory %s", pluginDir.c_str());
|
||||||
} else {
|
} else {
|
||||||
struct dirent* pEntry;
|
struct dirent* pEntry;
|
||||||
while ((pEntry = readdir(pDir))) {
|
while ((pEntry = readdir(pDir))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user