Home
last modified time | relevance | path

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

/frameworks/av/media/libmedia/
DAudioParameter.cpp102 String8 str8 = String8(str); in addInt() local
103 return add(key, str8); in addInt()
113 String8 str8 = String8(str); in addFloat() local
114 return add(key, str8); in addFloat()
142 String8 str8; in getInt() local
143 status_t result = get(key, str8); in getInt()
147 if (sscanf(str8.string(), "%d", &val) == 1) { in getInt()
158 String8 str8; in getFloat() local
159 status_t result = get(key, str8); in getFloat()
163 if (sscanf(str8.string(), "%f", &val) == 1) { in getFloat()
/frameworks/native/cmds/servicemanager/
Dservice_manager.c26 const char *str8(const uint16_t *x, size_t x_len) in str8() function
113 return check_mac_perms_from_lookup(spid, perm, str8(name, name_len)) ? 1 : 0; in svc_can_register()
125 return check_mac_perms_from_lookup(spid, perm, str8(name, name_len)) ? 1 : 0; in svc_can_find()
157 ALOGI("service '%s' died\n", str8(si->name, si->len)); in svcinfo_death()
176 str8(s, len), uid); in do_find_service()
211 str8(s, len), handle, uid); in do_add_service()
219 str8(s, len), handle, uid); in do_add_service()
227 str8(s, len), handle, uid); in do_add_service()
279 fprintf(stderr,"invalid id %s\n", str8(s, len)); in svcmgr_handler()
/frameworks/base/core/jni/
Dandroid_util_StringBlock.cpp84 const char* str8 = osb->string8At(idx, &len); in android_content_StringBlock_nativeGetString() local
85 if (str8 != NULL) { in android_content_StringBlock_nativeGetString()
86 return env->NewStringUTF(str8); in android_content_StringBlock_nativeGetString()
Dandroid_util_Process.cpp505 const char* str8 = env->GetStringUTFChars((jstring)obj, NULL); in android_os_Process_readProcLines() local
507 if (str8 == NULL) { in android_os_Process_readProcLines()
511 fields.add(String8(str8)); in android_os_Process_readProcLines()
512 env->ReleaseStringUTFChars((jstring)obj, str8); in android_os_Process_readProcLines()
934 const char* str8 = env->GetStringUTFChars((jstring)obj, NULL); in android_os_Process_getPidsForCommands() local
935 if (str8 == NULL) { in android_os_Process_getPidsForCommands()
939 commands.add(String8(str8)); in android_os_Process_getPidsForCommands()
940 env->ReleaseStringUTFChars((jstring)obj, str8); in android_os_Process_getPidsForCommands()
Dandroid_util_AssetManager.cpp1835 const char* str8 = pool->string8At(value.data, &strLen); in android_content_AssetManager_getArrayStringResource() local
1836 if (str8 != NULL) { in android_content_AssetManager_getArrayStringResource()
1837 str = env->NewStringUTF(str8); in android_content_AssetManager_getArrayStringResource()
/frameworks/av/cmds/screenrecord/
DTextRenderer.cpp147 float TextRenderer::computeScaledStringWidth(const String8& str8) const { in computeScaledStringWidth()
154 const char* str = str8.string(); in computeScaledStringWidth()
180 float x, float y, const String8& str8) const { in drawString()
181 ALOGV("drawString %.3f,%.3f '%s' (scale=%.3f)", x, y, str8.string(),mScale); in drawString()
187 const char* str = str8.string(); in drawString()
DTextRenderer.h99 float computeScaledStringWidth(const String8& str8) const;
/frameworks/base/libs/androidfw/
DResourceTypes.cpp890 String8 str8(str, strLen); in indexOfString() local
891 const size_t str8Len = str8.size(); in indexOfString()
897 if (s && str8Len == len && memcmp(s, str8.string(), str8Len) == 0) { in indexOfString()
6305 const char* str8 = pkg->header->values.string8At( in print_value() local
6307 if (str8 != NULL) { in print_value()
6308 printf("(string8) \"%s\"\n", normalizeForOutput(str8).string()); in print_value()