/frameworks/base/libs/androidfw/tests/ |
D | StringPiece_test.cpp | 32 StringPiece16 a16(u"hello world", 5); in TEST() 33 StringPiece16 b16(u"hello moon", 5); in TEST() 79 StringPiece16 text16(u"I am a leaf on the wind."); in TEST() 80 StringPiece16 start_needle16(u"I am"); in TEST() 81 StringPiece16 end_needle16(u"wind."); in TEST() 82 StringPiece16 middle_needle16(u"leaf"); in TEST() 83 StringPiece16 empty_needle16(u""); in TEST() 84 StringPiece16 missing_needle16(u"soar"); in TEST() 85 StringPiece16 long_needle16(u"This string is longer than the text."); in TEST()
|
D | LoadedArsc_test.cpp | 179 EXPECT_THAT(util::Utf16ToUtf8(StringPiece16(type_name16, len)), StrEq("string")); in TEST()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | ResourceUtils.cpp | 28 using android::StringPiece16; 45 out += Utf16ToUtf8(StringPiece16(name.type16, name.type_len)); in ResToTypeEntryName() 51 out += Utf16ToUtf8(StringPiece16(name.entry16, name.entry_len)); in ResToTypeEntryName()
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlDom.cpp | 35 using ::android::StringPiece16; 232 attr.namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 237 attr.name = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 247 attr.value = util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes() 297 decl.prefix = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate() 302 decl.uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate() 326 el->namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate() 331 el->name = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate() 352 text->text = util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
|
/frameworks/base/libs/androidfw/ |
D | ResourceUtils.cpp | 93 result += util::Utf16ToUtf8(StringPiece16(resource_name->type16, resource_name->type_len)); in ToFormattedResourceString() 105 result += util::Utf16ToUtf8(StringPiece16(resource_name->entry16, resource_name->entry_len)); in ToFormattedResourceString()
|
D | Util.cpp | 59 std::string Utf16ToUtf8(const StringPiece16& utf16) { in Utf16ToUtf8()
|
D | AssetManager2.cpp | 1009 const StringPiece16 kAttr16 = u"attr"; in GetResourceId()
|
/frameworks/base/tools/aapt2/util/ |
D | Util.cpp | 36 using ::android::StringPiece16; 435 std::string Utf16ToUtf8(const StringPiece16& utf16) { in Utf16ToUtf8() 533 StringPiece16 GetString16(const android::ResStringPool& pool, size_t idx) { in GetString16() 537 return StringPiece16(str, len); in GetString16() 539 return StringPiece16(); in GetString16()
|
D | Util.h | 145 android::StringPiece16 GetString16(const android::ResStringPool& pool, size_t idx); 212 std::string Utf16ToUtf8(const android::StringPiece16& utf16);
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 29 using ::android::StringPiece16; 127 const StringPiece16 text(text16); in PseudolocalizeStyledString() 153 const StringPiece16 substr = text.substr(cursor, span->first_char - cursor); in PseudolocalizeStyledString() 180 const StringPiece16 substr = text.substr(cursor, parent_span->last_char - cursor + 1); in PseudolocalizeStyledString()
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Lookup.cpp | 52 using android::StringPiece16; 125 out += Utf16ToUtf8(StringPiece16(str16, len)); in GetValue()
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.cpp | 37 using ::android::StringPiece16; 52 util::Utf16ToUtf8(StringPiece16(name_in.package, name_in.packageLen)); in ToResourceName() 57 util::Utf16ToUtf8(StringPiece16(name_in.type, name_in.typeLen))); in ToResourceName() 72 util::Utf16ToUtf8(StringPiece16(name_in.name, name_in.nameLen)); in ToResourceName() 92 util::Utf16ToUtf8(StringPiece16(name_in.type16, name_in.type_len))); in ToResourceName() 107 util::Utf16ToUtf8(StringPiece16(name_in.entry16, name_in.entry_len)); in ToResourceName()
|
D | Diagnostics.h | 64 message_ << android::StringPiece16(value);
|
D | StringPool_test.cpp | 28 using ::android::StringPiece16;
|
/frameworks/base/tools/aapt2/test/ |
D | Common.h | 145 ::testing::PrintToString(android::StringPiece16(a))) { 146 return android::StringPiece16(arg) == a;
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | Util.h | 118 std::string Utf16ToUtf8(const StringPiece16& utf16);
|
D | StringPiece.h | 88 using StringPiece16 = BasicStringPiece<char16_t>; variable
|
/frameworks/base/tools/aapt2/format/binary/ |
D | XmlFlattener_test.cpp | 27 using ::android::StringPiece16; 102 const StringPiece16 kAttr(u"attr"); in TEST_F()
|
D | TableFlattener_test.cpp | 128 << StringPiece16(actual_name.package, actual_name.packageLen) << ":" in Exists() 129 << StringPiece16(actual_name.type, actual_name.typeLen) << "/" in Exists() 130 << StringPiece16(actual_name.name, actual_name.nameLen) << "'"; in Exists()
|
D | BinaryResourceParser.cpp | 433 util::Utf16ToUtf8(StringPiece16(entries.keyAt(i).string())); in ParseLibrary()
|
D | TableFlattener.cpp | 49 static void strcpy16_htod(uint16_t* dst, size_t len, const StringPiece16& src) { in strcpy16_htod()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 39 using ::android::StringPiece16;
|