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.cpp107 const ResStringPool_span* spans = osb->styleAt(idx); in android_content_StringBlock_nativeGetStyle()
112 const ResStringPool_span* pos = spans; in android_content_StringBlock_nativeGetStyle()
114 while (pos->name.index != ResStringPool_span::END) { in android_content_StringBlock_nativeGetStyle()
123 jintArray array = env->NewIntArray((num*sizeof(ResStringPool_span))/sizeof(jint)); in android_content_StringBlock_nativeGetStyle()
129 static const int numInts = sizeof(ResStringPool_span)/sizeof(jint); in android_content_StringBlock_nativeGetStyle()
130 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/tools/aapt2/
DStringPool.cpp475 android::ResStringPool_span* span = in Flatten()
476 out->NextBlock<android::ResStringPool_span>(entry->spans.size()); in Flatten()
486 *spanEnd = android::ResStringPool_span::END; in Flatten()
493 const size_t padding_length = sizeof(android::ResStringPool_span) - in Flatten()
494 sizeof(android::ResStringPool_span::name); in Flatten()
DStringPool_test.cpp287 const ResStringPool_span* span = test.styleAt(0); in TEST()
295 ASSERT_THAT(span->name.index, Ne(ResStringPool_span::END)); in TEST()
302 EXPECT_THAT(span->name.index, Eq(ResStringPool_span::END)); in TEST()
DResourceUtils.cpp748 const android::ResStringPool_span* spans = src_pool.styleAt(data); in ParseBinaryResValue()
751 if (spans != nullptr && spans->name.index != android::ResStringPool_span::END) { in ParseBinaryResValue()
753 while (spans->name.index != android::ResStringPool_span::END) { in ParseBinaryResValue()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h472 struct ResStringPool_span struct
518 const ResStringPool_span* styleAt(const ResStringPool_ref& ref) const;
519 const ResStringPool_span* styleAt(size_t idx) const;
/frameworks/base/libs/androidfw/
DResourceTypes.cpp631 const ResStringPool_span endSpan = { in setTo()
632 { htodl(ResStringPool_span::END) }, in setTo()
633 htodl(ResStringPool_span::END), htodl(ResStringPool_span::END) in setTo()
903 const ResStringPool_span* ResStringPool::styleAt(const ResStringPool_ref& ref) const in styleAt()
908 const ResStringPool_span* ResStringPool::styleAt(size_t idx) const in styleAt()
913 return (const ResStringPool_span*)(mStyles+off); in styleAt()