Home
last modified time | relevance | path

Searched refs:ResStringPool_header (Results 1 – 11 of 11) sorted by relevance

/aosp_15_r20/external/robolectric/resources/src/main/java/org/robolectric/res/android/
H A DResStringPool.java24 import org.robolectric.res.android.ResourceTypes.ResStringPool_header;
25 import org.robolectric.res.android.ResourceTypes.ResStringPool_header.Writer;
43 private ResStringPool_header mHeader;
98 ResStringPool_header header = new ResStringPool_header(buf, 0); in setToEmpty()
118 if (size < ResStringPool_header.SIZEOF) { in setTo()
128 ResStringPool_header.SIZEOF, in setTo()
149 mHeader = new ResStringPool_header(buf, offset); in setTo()
183 if (isTruthy(mHeader.flags & ResStringPool_header.UTF8_FLAG)) { in setTo()
247 if ((isTruthy(mHeader.flags & ResStringPool_header.UTF8_FLAG) in setTo()
249 || (!isTruthy(mHeader.flags & ResStringPool_header.UTF8_FLAG) in setTo()
[all …]
H A DChunk.java9 import org.robolectric.res.android.ResourceTypes.ResStringPool_header;
84 public ResStringPool_header asResStringPool_header() { in asResStringPool_header()
85 if (header_size() >= ResStringPool_header.SIZEOF) { in asResStringPool_header()
86 return new ResStringPool_header(device_chunk_.myBuf(), device_chunk_.myOffset()); in asResStringPool_header()
H A DResourceTypes.java19 import org.robolectric.res.android.ResourceTypes.ResStringPool_header.Writer;
443 public static class ResStringPool_header extends WithOffset { class in ResourceTypes
473 public ResStringPool_header(ByteBuffer buf, int offset) { in ResStringPool_header() method in ResourceTypes.ResStringPool_header
770 ByteBuffer buf, ResStringPool_header.Writer resStringPoolWriter, String ns, String name) { in Writer()
849 ByteBuffer buf, ResStringPool_header.Writer resStringPoolWriter, String ns, String name) { in Writer()
H A DLoadedArsc.java31 import org.robolectric.res.android.ResourceTypes.ResStringPool_header;
1029 ResStringPool_header resStringPool_header = child_chunk.asResStringPool_header(); in LoadTable()
/aosp_15_r20/frameworks/base/tools/aapt/
H A DStringPool.cpp430 const size_t preSize = sizeof(ResStringPool_header) in writeStringBlock()
547 ResStringPool_header* header = in writeStringBlock()
548 (ResStringPool_header*)pool->padData(sizeof(uint32_t)); in writeStringBlock()
560 header->flags |= htodl(ResStringPool_header::UTF8_FLAG); in writeStringBlock()
/aosp_15_r20/frameworks/base/libs/androidfw/
H A DStringPool.cpp432 android::ResStringPool_header* header = out->NextBlock<android::ResStringPool_header>(); in Flatten()
438 header->flags |= android::ResStringPool_header::UTF8_FLAG; in Flatten()
H A DResourceTypes.cpp488 mOwnedData = calloc(1, sizeof(ResStringPool_header)); in setToEmpty()
489 ResStringPool_header* header = (ResStringPool_header*) mOwnedData; in setToEmpty()
497 mHeader = (const ResStringPool_header*) header; in setToEmpty()
509 if (size < sizeof(ResStringPool_header)) { in setTo()
518 if (validate_chunk(chunk_header, sizeof(ResStringPool_header), data.convert<uint8_t>() + size, in setTo()
542 const auto header = data.convert<ResStringPool_header>(); in setTo()
549 ResStringPool_header* h = const_cast<ResStringPool_header*>(mHeader.unsafe_ptr()); in setTo()
580 if (mHeader->flags&ResStringPool_header::UTF8_FLAG) { in setTo()
627 if (!(mHeader->flags&ResStringPool_header::UTF8_FLAG)) { in setTo()
635 if (mHeader->flags&ResStringPool_header::UTF8_FLAG) { in setTo()
[all …]
H A DLoadedArsc.cpp526 child_chunk.header<ResStringPool_header>(), child_chunk.size()); in Load()
535 child_chunk.header<ResStringPool_header>(), child_chunk.size()); in Load()
835 status_t err = global_string_pool_->setTo(child_chunk.header<ResStringPool_header>(), in LoadTable()
/aosp_15_r20/frameworks/base/tools/aapt2/
H A DDebug.cpp841 void PrintStringPool(const ResStringPool_header* chunk) { in PrintStringPool()
927 PrintStringPool(reinterpret_cast<const ResStringPool_header*>(chunk)); in PrintChunk()
/aosp_15_r20/frameworks/base/libs/androidfw/include/androidfw/
H A DResourceTypes.h461 struct ResStringPool_header struct
560 incfs::verified_map_ptr<ResStringPool_header> mHeader;
/aosp_15_r20/external/robolectric/robolectric/src/main/java/org/robolectric/android/
H A DAttributeSetBuilderImpl.java36 import org.robolectric.res.android.ResourceTypes.ResStringPool_header.Writer;