Home
last modified time | relevance | path

Searched refs:str8 (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/libs/androidfw/
DPathUtils.cpp34 String8 getPathDir(const String8& str8) { in getPathDir() argument
36 const char*const str = str8.c_str(); in getPathDir()
45 static char* findExtension(const String8& str8) { in findExtension() argument
48 const char* const str = str8.c_str(); in findExtension()
76 String8 getBasePath(const String8& str8) { in getBasePath() argument
78 const char* const str = str8.c_str(); in getBasePath()
80 ext = findExtension(str8); in getBasePath()
82 return str8; in getBasePath()
DResourceTypes.cpp1124 String8 str8(str, strLen); in indexOfString() local
1125 const size_t str8Len = str8.size(); in indexOfString()
1129 if (auto it = mIndexLookupCache->first.find(std::string_view(str8)); in indexOfString()
1148 && memcmp(s->data(), str8.c_str(), str8Len) == 0) { in indexOfString()
7658 const char* str8 = UnpackOptionalString(pkg->header->values.string8At( in print_value() local
7660 if (str8 != NULL) { in print_value()
7661 printf("(string8) \"%s\"\n", normalizeForOutput(str8).c_str()); in print_value()
/frameworks/av/media/libmediahelper/
DAudioParameter.cpp168 String8 str8 = String8(str); in addInt() local
169 return add(key, str8); in addInt()
179 String8 str8 = String8(str); in addFloat() local
180 return add(key, str8); in addFloat()
208 String8 str8; in getInt() local
209 status_t result = get(key, str8); in getInt()
213 if (sscanf(str8.c_str(), "%d", &val) == 1) { in getInt()
224 String8 str8; in getFloat() local
225 status_t result = get(key, str8); in getFloat()
229 if (sscanf(str8.c_str(), "%f", &val) == 1) { in getFloat()
/frameworks/av/camera/include/camera/
DStringUtils.h66 String8 str8(str); in toStdString()
67 return std::string(str8.c_str()); in toStdString()
76 String8 str8(str16); in toStdString()
77 return std::string(str8.c_str()); in toStdString()
/frameworks/base/core/jni/
Dandroid_util_StringBlock.cpp78 if (auto str8 = osb->string8At(idx); str8.has_value()) { in android_content_StringBlock_nativeGetString() local
79 return env->NewStringUTF(str8->data()); in android_content_StringBlock_nativeGetString()
Dandroid_util_Process.cpp724 const char* str8 = env->GetStringUTFChars((jstring)obj, NULL); in android_os_Process_readProcLines() local
726 if (str8 == NULL) { in android_os_Process_readProcLines()
730 fields.add(String8(str8)); in android_os_Process_readProcLines()
731 env->ReleaseStringUTFChars((jstring)obj, str8); in android_os_Process_readProcLines()
1249 const char* str8 = env->GetStringUTFChars((jstring)obj, NULL); in android_os_Process_getPidsForCommands() local
1250 if (str8 == NULL) { in android_os_Process_getPidsForCommands()
1254 commands.add(String8(str8)); in android_os_Process_getPidsForCommands()
1255 env->ReleaseStringUTFChars((jstring)obj, str8); in android_os_Process_getPidsForCommands()
/frameworks/av/cmds/screenrecord/
DTextRenderer.cpp149 float TextRenderer::computeScaledStringWidth(const String8& str8) const { in computeScaledStringWidth()
156 const char* str = str8.c_str(); in computeScaledStringWidth()
182 float x, float y, const String8& str8) const { in drawString()
183 ALOGV("drawString %.3f,%.3f '%s' (scale=%.3f)", x, y, str8.c_str(),mScale); in drawString()
189 const char* str = str8.c_str(); in drawString()
DTextRenderer.h99 float computeScaledStringWidth(const String8& str8) const;
/frameworks/native/libs/binder/ndk/
Dparcel.cpp340 const uint8_t* str8 = (uint8_t*)string; in AParcel_writeString() local
341 const ssize_t len16 = utf8_to_utf16_length(str8, length); in AParcel_writeString()
358 utf8_to_utf16(str8, length, (char16_t*)str16, (size_t)len16 + 1); in AParcel_writeString()
389 char* str8; in AParcel_readString() local
390 bool success = allocator(stringData, len8, &str8); in AParcel_readString()
392 if (!success || str8 == nullptr) { in AParcel_readString()
397 utf16_to_utf8(str16, len16, str8, len8); in AParcel_readString()