Home
last modified time | relevance | path

Searched refs:StringPiece16 (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/cmds/idmap2/libidmap2/
DResourceUtils.cpp26 using android::StringPiece16;
79 out += Utf16ToUtf8(StringPiece16(name->type16, name->type_len)); in ResToTypeEntryName()
85 out += Utf16ToUtf8(StringPiece16(name->entry16, name->entry_len)); in ResToTypeEntryName()
DPrettyPrintVisitor.cpp104 stream_ << " \"" << str.value_or(StringPiece16(u"")) << "\""; in visit()
/frameworks/base/libs/androidfw/
DResourceUtils.cpp68 if (base::expected<StringPiece16, NullOrIOError> type16_str = type_string_ref.string16(); in ToResourceName()
86 if (base::expected<StringPiece16, NullOrIOError> entry16_str = entry_string_ref.string16(); in ToResourceName()
112 result += util::Utf16ToUtf8(StringPiece16(resource_name.type16, resource_name.type_len)); in ToFormattedResourceString()
124 result += util::Utf16ToUtf8(StringPiece16(resource_name.entry16, resource_name.entry_len)); in ToFormattedResourceString()
DUtil.cpp59 std::string Utf16ToUtf8(StringPiece16 utf16) { in Utf16ToUtf8()
203 StringPiece16 GetString16(const android::ResStringPool& pool, size_t idx) { in GetString16()
207 return StringPiece16(); in GetString16()
DIdmap.cpp97 base::expected<StringPiece16, NullOrIOError> OverlayStringPool::stringAt(size_t idx) const { in stringAt()
DResourceTypes.cpp799 base::expected<StringPiece16, NullOrIOError> ResStringPool::stringAt(size_t idx) const in stringAt()
835 return StringPiece16(reinterpret_cast<const char16_t*>(str.unsafe_ptr()), in stringAt()
860 return StringPiece16(mCache[idx], *u16len); in stringAt()
919 return StringPiece16(u16str, *u16len); in stringAt()
1028 const base::expected<StringPiece16, NullOrIOError> str16 = stringAt(idx); in string8ObjectAt()
1171 const base::expected<StringPiece16, NullOrIOError> s = stringAt(mid); in indexOfString()
1205 const base::expected<StringPiece16, NullOrIOError> s = stringAt(i); in indexOfString()
6523 base::expected<StringPiece16, NullOrIOError> StringPoolRef::string16() const { in string16()
DAssetManager2.cpp1465 const StringPiece16 kAttr16 = u"attr"; in GetResourceId()
/frameworks/base/libs/androidfw/tests/
DStringPiece_test.cpp32 StringPiece16 a16(u"hello world", 5); in TEST()
33 StringPiece16 b16(u"hello moon", 5); in TEST()
DStringPool_test.cpp28 using ::android::StringPiece16;
/frameworks/base/libs/androidfw/include/androidfw/
DUtil.h73 std::string Utf16ToUtf8(StringPiece16 utf16);
110 android::StringPiece16 GetString16(const android::ResStringPool& pool, size_t idx);
DStringPiece.h32 using StringPiece16 = BasicStringPiece<char16_t>; variable
DIdmap.h51 base::expected<StringPiece16, NullOrIOError> stringAt(size_t idx) const override;
DResourceTypes.h531 inline base::expected<StringPiece16, NullOrIOError> stringAt(const ResStringPool_ref& ref) const { in stringAt()
534 virtual base::expected<StringPiece16, NullOrIOError> stringAt(size_t idx) const;
589 base::expected<StringPiece16, NullOrIOError> string16() const;
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp35 using ::android::StringPiece16;
234 attr.namespace_uri = android::util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
239 attr.name = android::util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
249 attr.value = android::util::Utf16ToUtf8(StringPiece16(str16, len)); in CopyAttributes()
299 decl.prefix = android::util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
304 decl.uri = android::util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
328 el->namespace_uri = android::util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
333 el->name = android::util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
354 text->text = android::util::Utf16ToUtf8(StringPiece16(str16, len)); in Inflate()
/frameworks/base/tools/aapt2/test/
DCommon.h149 ::testing::PrintToString(android::StringPiece16(a))) {
150 return android::StringPiece16(arg) == a;
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator.cpp34 using ::android::StringPiece16;
132 const StringPiece16 text(text16); in PseudolocalizeStyledString()
158 const StringPiece16 substr = text.substr(cursor, span->first_char - cursor); in PseudolocalizeStyledString()
185 const StringPiece16 substr = text.substr(cursor, parent_span->last_char - cursor + 1); in PseudolocalizeStyledString()
/frameworks/base/tools/aapt2/util/
DUtil.cpp37 using ::android::StringPiece16;
371 std::string Utf16ToUtf8(const StringPiece16& utf16) { in Utf16ToUtf8()
/frameworks/base/tools/aapt2/
DResourceUtils.cpp37 using ::android::StringPiece16;
48 converted = android::util::Utf16ToUtf8(StringPiece16(type16, type_len)); in ToResourceNamedType()
68 name_out.package = android::util::Utf16ToUtf8(StringPiece16(name_in.package, name_in.packageLen)); in ToResourceName()
78 name_out.entry = android::util::Utf16ToUtf8(StringPiece16(name_in.name, name_in.nameLen)); in ToResourceName()
103 name_out.entry = android::util::Utf16ToUtf8(StringPiece16(name_in.entry16, name_in.entry_len)); in ToResourceName()
/frameworks/base/cmds/idmap2/idmap2/
DLookup.cpp49 using android::StringPiece16;
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener_test.cpp26 using ::android::StringPiece16;
101 const StringPiece16 kAttr(u"attr"); in TEST_F()
DTableFlattener_test.cpp130 << StringPiece16(actual_name.package, actual_name.packageLen) << ":" in Exists()
131 << StringPiece16(actual_name.type, actual_name.typeLen) << "/" in Exists()
132 << StringPiece16(actual_name.name, actual_name.nameLen) << "'"; in Exists()
DTableFlattener.cpp49 static void strcpy16_htod(uint16_t* dst, size_t len, const StringPiece16& src) { in strcpy16_htod()
DBinaryResourceParser.cpp456 android::util::Utf16ToUtf8(StringPiece16(entries.keyAt(i).c_str())); in ParseLibrary()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp39 using ::android::StringPiece16;