Home
last modified time | relevance | path

Searched refs:osb (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/jni/
Dandroid_util_StringBlock.cpp48 ResStringPool* osb = new ResStringPool(b+off, len, true); in android_content_StringBlock_nativeCreate() local
51 if (osb == NULL || osb->getError() != NO_ERROR) { in android_content_StringBlock_nativeCreate()
53 delete osb; in android_content_StringBlock_nativeCreate()
57 return reinterpret_cast<jlong>(osb); in android_content_StringBlock_nativeCreate()
61 ResStringPool* osb = reinterpret_cast<ResStringPool*>(token); in android_content_StringBlock_nativeGetSize() local
62 if (osb == NULL) { in android_content_StringBlock_nativeGetSize()
67 return osb->size(); in android_content_StringBlock_nativeGetSize()
72 ResStringPool* osb = reinterpret_cast<ResStringPool*>(token); in android_content_StringBlock_nativeGetString() local
73 if (osb == NULL) { in android_content_StringBlock_nativeGetString()
78 if (auto str8 = osb->string8At(idx); str8.has_value()) { in android_content_StringBlock_nativeGetString()
[all …]
Dandroid_util_XmlBlock.cpp50 ResXMLTree* osb = new ResXMLTree(); in android_content_XmlBlock_nativeCreate() local
51 osb->setTo(b+off, len, true); in android_content_XmlBlock_nativeCreate()
54 if (osb->getError() != NO_ERROR) { in android_content_XmlBlock_nativeCreate()
59 return reinterpret_cast<jlong>(osb); in android_content_XmlBlock_nativeCreate()
65 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeGetStringBlock() local
66 if (osb == NULL) { in android_content_XmlBlock_nativeGetStringBlock()
71 return reinterpret_cast<jlong>(&osb->getStrings()); in android_content_XmlBlock_nativeGetStringBlock()
77 ResXMLTree* osb = reinterpret_cast<ResXMLTree*>(token); in android_content_XmlBlock_nativeCreateParseState() local
78 if (osb == NULL) { in android_content_XmlBlock_nativeCreateParseState()
83 ResXMLParser* st = new ResXMLParser(*osb); in android_content_XmlBlock_nativeCreateParseState()
[all …]