Home
last modified time | relevance | path

Searched refs:stringAt (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/libs/androidfw/
DIdmap.cpp97 base::expected<StringPiece16, NullOrIOError> OverlayStringPool::stringAt(size_t idx) const { in stringAt() function in android::OverlayStringPool
100 return idmap_string_pool_->stringAt(idx - offset); in stringAt()
103 return ResStringPool::stringAt(idx); in stringAt()
DUtil.cpp204 if (auto str = pool.stringAt(idx); str.ok()) { in GetString16()
DResourceTypes.cpp799 base::expected<StringPiece16, NullOrIOError> ResStringPool::stringAt(size_t idx) const in stringAt() function in android::ResStringPool
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()
1304 return id >= 0 ? UnpackOptionalString(mTree.mStrings.stringAt(id), outLen) : NULL; in getComment()
1323 return id >= 0 ? UnpackOptionalString(mTree.mStrings.stringAt(id), outLen) : NULL; in getText()
1347 return id >= 0 ? UnpackOptionalString(mTree.mStrings.stringAt(id), outLen) : NULL; in getNamespacePrefix()
1362 return id >= 0 ? UnpackOptionalString(mTree.mStrings.stringAt(id), outLen) : NULL; in getNamespaceUri()
1379 return id >= 0 ? UnpackOptionalString(mTree.mStrings.stringAt(id), outLen) : NULL; in getElementNamespace()
1396 return id >= 0 ? UnpackOptionalString(mTree.mStrings.stringAt(id), outLen) : NULL; in getElementName()
[all …]
DLoadedArsc.cpp334 const auto type_name16 = type_string_pool_.stringAt(type_idx); in CollectConfigurations()
/frameworks/base/cmds/idmap2/libidmap2/
DPrettyPrintVisitor.cpp103 auto str = string_pool.stringAt(value.data_value - string_pool_offset); in visit()
/frameworks/base/core/jni/
Dandroid_util_StringBlock.cpp82 auto str = osb->stringAt(idx); in android_content_StringBlock_nativeGetString()
Dandroid_util_AssetManager.cpp789 auto str_utf16 = pool->stringAt(attr_value.data); in NativeGetResourceStringArray()
/frameworks/base/libs/androidfw/include/androidfw/
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() function
532 return stringAt(ref.index); in stringAt()
534 virtual base::expected<StringPiece16, NullOrIOError> stringAt(size_t idx) const;
/frameworks/base/libs/androidfw/tests/
DStringPool_test.cpp226 auto str = test.stringAt(0); in TEST()
281 EXPECT_TRUE(test.stringAt(4).has_value() || test.string8At(4).has_value()); in TEST()
DResTable_test.cpp423 auto target_str16 = pool->stringAt(val.data); in TEST()
449 ASSERT_FALSE(invalid_pool->stringAt(invalid_val.data).has_value()); in TEST()
DLoadedArsc_test.cpp157 auto type_name16 = package->GetTypeStringPool()->stringAt(type_spec->type_spec->id - 1); in TEST()
/frameworks/base/tools/aapt/
DStringPool.cpp57 uniqueStrings.add(UnpackOptionalString(pool->stringAt(i), &len)); in printStringPool()
DResource.cpp505 str = pool->stringAt(value.data, &len); in validateAttr()
525 if ((str = UnpackOptionalString(pool->stringAt(value.data), &len)) == NULL) { in validateAttr()
DResourceTable.cpp3062 String16 typeName(UnpackOptionalString(p->getTypeStrings().stringAt(ti), &len)); in flatten()
4165 mappings->add(String16(UnpackOptionalString(strings->stringAt(i), &len)), i); in setStrings()
/frameworks/base/tools/aapt2/
DDebug.cpp447 uniqueStrings.add(UnpackOptionalString(pool->stringAt(i), &len)); in DumpResStringPool()