Home
last modified time | relevance | path

Searched refs:ResStringPool_span (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/jni/
Dandroid_util_StringBlock.cpp114 if (pos->name.index == ResStringPool_span::END) { in android_content_StringBlock_nativeGetStyle()
125 array = env->NewIntArray((num * sizeof(ResStringPool_span)) / sizeof(jint)); in android_content_StringBlock_nativeGetStyle()
132 static const int numInts = sizeof(ResStringPool_span) / sizeof(jint); in android_content_StringBlock_nativeGetStyle()
133 while ((*spans)->name.index != ResStringPool_span::END) { in android_content_StringBlock_nativeGetStyle()
/frameworks/base/tools/aapt/
DStringPool.cpp506 const size_t totalSize = (N*sizeof(ResStringPool_span)) in writeStringBlock()
515 ResStringPool_span* span = (ResStringPool_span*)(dat+preSize+styPos); in writeStringBlock()
522 span->name.index = htodl(ResStringPool_span::END); in writeStringBlock()
531 size_t extra = sizeof(ResStringPool_span)-sizeof(ResStringPool_ref); in writeStringBlock()
539 *p++ = htodl(ResStringPool_span::END); in writeStringBlock()
DStringPool.h69 ResStringPool_span span;
/frameworks/base/libs/androidfw/
DStringPool.cpp471 android::ResStringPool_span* span = in Flatten()
472 out->NextBlock<android::ResStringPool_span>(entry->spans.size()); in Flatten()
482 *spanEnd = android::ResStringPool_span::END; in Flatten()
490 sizeof(android::ResStringPool_span) - sizeof(android::ResStringPool_span::name); in Flatten()
DResourceTypes.cpp688 const ResStringPool_span endSpan = { in setTo()
689 { htodl(ResStringPool_span::END) }, in setTo()
690 htodl(ResStringPool_span::END), htodl(ResStringPool_span::END) in setTo()
1039 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> ResStringPool::styleAt( in styleAt()
1045 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> ResStringPool::styleAt( in styleAt()
1056 return (mStyles+off).convert<ResStringPool_span>(); in styleAt()
/frameworks/base/libs/androidfw/tests/
DStringPool_test.cpp289 const ResStringPool_span* span = span_result->unsafe_ptr(); in TEST()
296 ASSERT_THAT(span->name.index, Ne(ResStringPool_span::END)); in TEST()
303 EXPECT_THAT(span->name.index, Eq(ResStringPool_span::END)); in TEST()
/frameworks/base/tools/aapt2/
DResourceUtils.cpp777 (*spans_result)->name.index != android::ResStringPool_span::END) { in ParseBinaryResValue()
778 const android::ResStringPool_span* spans = spans_result->unsafe_ptr(); in ParseBinaryResValue()
780 while (spans->name.index != android::ResStringPool_span::END) { in ParseBinaryResValue()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h495 struct ResStringPool_span struct
543 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> styleAt(
545 base::expected<incfs::map_ptr<ResStringPool_span>, NullOrIOError> styleAt(size_t idx) const;