Searched refs:str_len (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/libs/androidfw/tests/ |
D | Idmap_test.cpp | 71 size_t str_len; in TEST_F() local 72 const char16_t* target_str16 = pool->stringAt(val.data, &str_len); in TEST_F() 74 ASSERT_EQ(String16("test2"), String16(target_str16, str_len)); in TEST_F() 87 target_str16 = pool->stringAt(val.data, &str_len); in TEST_F() 89 ASSERT_EQ(String16("test2-overlay"), String16(target_str16, str_len)); in TEST_F()
|
D | ResTable_test.cpp | 445 size_t str_len; in TEST() local 446 const char* target_str8 = pool->string8At(val.data, &str_len); in TEST() 448 ASSERT_EQ(size_t(40076), String8(target_str8, str_len).size()); in TEST() 451 const char16_t* target_str16 = pool->stringAt(val.data, &str_len); in TEST() 453 ASSERT_EQ(size_t(40076), String16(target_str16, str_len).size()); in TEST() 475 ASSERT_TRUE(invalid_pool->string8At(invalid_val.data, &str_len) == NULL); in TEST() 476 ASSERT_TRUE(invalid_pool->stringAt(invalid_val.data, &str_len) == NULL); in TEST()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 852 size_t str_len; in NativeGetResourceStringArray() local 853 const char* str_utf8 = pool->string8At(value.data, &str_len); in NativeGetResourceStringArray() 857 const char16_t* str_utf16 = pool->stringAt(value.data, &str_len); in NativeGetResourceStringArray() 858 java_string = env->NewString(reinterpret_cast<const jchar*>(str_utf16), str_len); in NativeGetResourceStringArray()
|