Home
last modified time | relevance | path

Searched refs:dtohl (Results 1 – 10 of 10) sorted by relevance

/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DLoadedArsc.java14 import static org.robolectric.res.android.Util.dtohl;
102 if (entry_index >= dtohl(type_spec.entryCount)) { in GetFlagsForEntryIndex()
231 int entry_count = dtohl(header.entryCount); in VerifyResTableType()
240 int entries_offset = dtohl(header.entriesStart); in VerifyResTableType()
248 if (entries_offset > dtohl(header.header.size)) { in VerifyResTableType()
269 if (entry_offset > Integer.MAX_VALUE - dtohl(type.entriesStart)) { in VerifyResTableEntry()
275 int chunk_size = dtohl(type.header.size); in VerifyResTableEntry()
277 entry_offset += dtohl(type.entriesStart); in VerifyResTableEntry()
327 int map_entry_count = dtohl(map.count); in VerifyResTableEntry()
380 int entry_count = dtohl(type_chunk.entryCount); in GetEntryOffset()
[all …]
DResTable.java23 import static org.robolectric.res.android.Util.dtohl;
267 header.size = dtohl(header.header.header.size); in addInternal()
270 dtohl(header.header.header.size), header.header.header.size); in addInternal()
300 (chunk.myOffset()) <= (header.dataEnd -dtohl(chunk.size))) { in addInternal()
307 dtohs(chunk.type), dtohs(chunk.headerSize), dtohl(chunk.size), in addInternal()
310 final int csize = dtohl(chunk.size); in addInternal()
324 if (curPackage >= dtohl(header.header.packageCount)) { in addInternal()
326 dtohl(header.header.packageCount)); in addInternal()
345 if (curPackage < dtohl(header.header.packageCount)) { in addInternal()
347 (int)curPackage, dtohl(header.header.packageCount)); in addInternal()
[all …]
DChunk.java3 import static org.robolectric.res.android.Util.dtohl;
39 return dtohl(device_chunk_.size); in size()
151 int remaining = len_ - dtohl(this_chunk.size); in Next()
156 this_chunk.myBuf(), this_chunk.myOffset() + dtohl(this_chunk.size)); in Next()
158 len_ -= dtohl(this_chunk.size); in Next()
177 int size = dtohl(next_chunk_.size); in VerifyNextChunkNonFatal()
205 int size = dtohl(next_chunk_.size); in VerifyNextChunk()
DResXMLParser.java25 import static org.robolectric.res.android.Util.dtohl;
96 return mCurNode != null ? dtohl(mCurNode.comment.index) : -1; in getCommentID()
107 return mCurNode != null ? dtohl(mCurNode.lineNumber) : -1; in getLineNumber()
113 return dtohl(new ResourceTypes.ResXMLTree_cdataExt(mTree.mBuffer.buf, mCurExt).data.index); in getTextID()
136 … return dtohl(new ResourceTypes.ResXMLTree_namespaceExt(mTree.mBuffer.buf, mCurExt).prefix.index); in getNamespacePrefixID()
151 return dtohl(new ResourceTypes.ResXMLTree_namespaceExt(mTree.mBuffer.buf, mCurExt).uri.index); in getNamespaceUriID()
166 return dtohl(new ResXMLTree_attrExt(mTree.mBuffer.buf, mCurExt).ns.index); in getElementNamespaceID()
169 return dtohl(new ResXMLTree_endElementExt(mTree.mBuffer.buf, mCurExt).ns.index); in getElementNamespaceID()
183 return dtohl(new ResXMLTree_attrExt(mTree.mBuffer.buf, mCurExt).name.index); in getElementNameID()
186 return dtohl(new ResXMLTree_endElementExt(mTree.mBuffer.buf, mCurExt).name.index); in getElementNameID()
[all …]
DResXMLTree.java21 import static org.robolectric.res.android.Util.dtohl;
102 mSize = dtohl(mHeader.header.size); in setTo()
106 (int)dtohl(mHeader.header.size), (int)size); in setTo()
127 chunk.myOffset() /*((final uint8_t*)chunk)*/ < (mDataLen-dtohl(chunk.size))) { in setTo()
136 final int size1 = dtohl(chunk.size); in setTo()
146 mNumResIds = (dtohl(chunk.size)-dtohs(chunk.headerSize))/SIZEOF_INT /*sizeof(int)*/; in setTo()
227 final int size = dtohl(node.header.size); in validateNode()
DIdmap.java10 import static org.robolectric.res.android.Util.dtohl;
80 int result = dtohl(header.entries[input_entry_id]); in Lookup()
DCppAssetManager2.java14 import static org.robolectric.res.android.Util.dtohl;
859 if (isTruthy(dtohl(entry.get().entry.flags) & ResTable_entry.FLAG_COMPLEX)) { in GetResource()
980 curOffset + dtohl(map.count) * ResTable_map.SIZEOF; in GetBag()
989 final Ref<Integer> parent_resid = new Ref<>(dtohl(map.parent.ident)); in GetBag()
1001 final Ref<Integer> new_key = new Ref<>(dtohl(map_entry.name.ident)); in GetBag()
1058 final int max_count = parent_bag.entry_count + dtohl(map.count); in GetBag()
1073 final Ref<Integer> child_keyRef = new Ref<>(dtohl(map_entry.name.ident)); in GetBag()
DUtil.java29 static int dtohl(int v) { in dtohl() method in Util
DResourceTypes.java9 import static org.robolectric.res.android.Util.dtohl;
34 final int size = dtohl(chunk.size); in validate_chunk()
1235 return dtohl(byteBuffer.getInt(offset + entriesStart + entryOffset + STRING_POOL_REF_OFFSET)); in entryNameIndex()
DResTable_config.java57 import static org.robolectric.res.android.Util.dtohl;
875 dtohl(o.density), in fromDtoH()