/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | Chunk.java | 59 int myOffset() { in myOffset() method in Chunk 60 return device_chunk_.myOffset(); in myOffset() 64 return new WithOffset(device_chunk_.myBuf(), device_chunk_.myOffset() + header_size()); in data_ptr() 76 return new ResTable_header(device_chunk_.myBuf(), device_chunk_.myOffset()); in asResTable_header() 84 return new ResStringPool_header(device_chunk_.myBuf(), device_chunk_.myOffset()); in asResStringPool_header() 92 return new ResTable_package(device_chunk_.myBuf(), device_chunk_.myOffset()); in asResTable_package() 100 return new ResTable_type(device_chunk_.myBuf(), device_chunk_.myOffset()); in asResTable_type() 108 return new ResTable_lib_header(device_chunk_.myBuf(), device_chunk_.myOffset()); in asResTable_lib_header() 116 return new ResTable_lib_entry(device_chunk_.myBuf(), device_chunk_.myOffset()); in asResTable_lib_entry() 129 this.next_chunk_ = new ResChunk_header(buf.myBuf(), buf.myOffset()); in Iterator() [all …]
|
D | ResStringPool.java | 85 return myBuf().getInt(myOffset() + idx * SIZEOF_INT); in get() 169 mEntries = new IntArray(mHeader.myBuf(), mHeader.myOffset() + mHeader.header.headerSize); in setTo() 256 …mEntryStyles = new IntArray(mEntries.myBuf(), mEntries.myOffset() + mHeader.stringCount * SIZEOF_I… in setTo() 258 if (mEntryStyles.myOffset() < mEntries.myOffset()) { in setTo() 264 if ((mEntryStyles.myOffset() - mHeader.myOffset()) > (int)size) { in setTo() 266 (int)(mEntryStyles.myOffset()), in setTo() 298 mHeader.myOffset() + mStyles + (mStylePoolSize - ResStringPool_span.SIZEOF /* / 4 */)); in setTo() 333 int bufOffset = mHeader.myOffset(); in stringAt() 469 mHeader.myBuf(), mHeader.myOffset() + mStyles + off * SIZEOF_INT); in styleAt()
|
D | ResXMLTree.java | 126 …while (chunk.myOffset() /*((final uint8_t*)chunk)*/ < (mDataLen- ResChunk_header.SIZEOF /*sizeof(R… in setTo() 127 chunk.myOffset() /*((final uint8_t*)chunk)*/ < (mDataLen-dtohl(chunk.size))) { in setTo() 142 mStrings.setTo(mBuffer.buf, chunk.myOffset(), size, false); in setTo() 149 mResIds[i] = mBuffer.buf.getInt(chunk.myOffset() + chunk.headerSize + i * SIZEOF_INT); in setTo() 159 mParser.mCurNode = new ResXMLTree_node(mBuffer.buf, lastChunk.myOffset()); in setTo() 178 chunk = new ResChunk_header(mBuffer.buf, chunk.myOffset() + size1); in setTo() 230 … ResXMLTree_attrExt attrExt = new ResXMLTree_attrExt(mBuffer.buf, node.myOffset() + headerSize); in validateNode() 233 && (attrExt.myOffset() > node.myOffset())) { in validateNode()
|
D | ResTable.java | 299 while (chunk != null && (chunk.myOffset()) <= (header.dataEnd -ResChunk_header.SIZEOF) && in addInternal() 300 (chunk.myOffset()) <= (header.dataEnd -dtohl(chunk.size))) { in addInternal() 308 (Object)((chunk.myOffset()) - (header.header.myOffset()))); in addInternal() 316 err = header.values.setTo(chunk.myBuf(), chunk.myOffset(), csize, false); in addInternal() 331 …new ResTable_package(chunk.myBuf(), chunk.myOffset()), header, appAsLib, isSystemAsset) != NO_ERRO… in addInternal() 338 (chunk.myOffset()) - (header.header.myOffset())); in addInternal() 340 chunk = chunk.myOffset() + csize < header.dataEnd in addInternal() 341 ? new ResChunk_header(chunk.myBuf(), chunk.myOffset() + csize) in addInternal() 410 Res_value value = new Res_value(entry.entry.myBuf(), entry.entry.myOffset() + entry.entry.size); 500 int count = (last.myOffset() - first.myOffset()) / ResTable_sparseTypeEntry.SIZEOF; [all …]
|
D | LoadedArsc.java | 286 ResTable_entry entry = new ResTable_entry(type.myBuf(), type.myOffset() + entry_offset); in VerifyResTableEntry() 313 new Res_value(entry.myBuf(), entry.myOffset() + ResTable_entry.SIZEOF); in VerifyResTableEntry() 326 ResTable_map_entry map = new ResTable_map_entry(entry.myBuf(), entry.myOffset()); in VerifyResTableEntry() 399 type_chunk.myOffset() + offsets_offset); in GetEntryOffset() 437 type_chunk.myOffset() + offset + dtohl(type_chunk.entriesStart)); in GetEntryFromOffset() 531 new ResTable_entry(type.myBuf(), type.myOffset() + in FindEntryByName() 604 child_chunk.myOffset(); in Load() 605 int header_address = header.myOffset(); in Load() 609 child_chunk.myBuf(), child_chunk.myOffset(), child_chunk.size(), false); in Load() 617 child_chunk.myBuf(), child_chunk.myOffset(), child_chunk.size(), false); in Load() [all …]
|
D | Idmap.java | 153 idmap_data.myOffset() + SIZEOF_CPTR); in Load() 159 if (!is_word_aligned(data_ptr.myOffset())) { in Load() 166 … IdmapEntry_header entry_header = new IdmapEntry_header(data_ptr.myBuf(), data_ptr.myOffset()); in Load() 194 data_ptr = new StringPiece(data_ptr.myBuf(), data_ptr.myOffset() + entry_size_bytes); in Load()
|
D | StringPiece.java | 14 return myBuf().capacity() - myOffset(); in size() 18 return new Idmap_header(myBuf(), myOffset()); in asIdmap_header()
|
D | ResourceTypes.java | 72 public final int myOffset() { in myOffset() method in ResourceTypes.WithOffset 502 return myBuf().get(myOffset() + i); in getByte() 506 return myBuf().getShort(myOffset() + i); in getShort() 702 super(buf, header.myOffset()); in ResXMLTree_node() 705 this.lineNumber = buf.getInt(myOffset() + ResChunk_header.SIZEOF); in ResXMLTree_node() 706 this.comment = new ResStringPool_ref(buf, myOffset() + ResChunk_header.SIZEOF + 4); in ResXMLTree_node() 849 myOffset() + dtohs(attributeStart) + dtohs(attributeSize) * idx); in attributeAt() 1117 ints[i] = myBuf().getInt(myOffset() + header.headerSize + i * 4); in getSpecFlags() 1210 int offset = myOffset(); in entryOffset() 1222 int offset = myOffset(); in entryNameIndex() [all …]
|
D | ResXMLParser.java | 524 int nextOffset = mCurNode.myOffset() + dtohl(mCurNode.header.size); in nextNode() 537 if (next.myOffset() >= mTree.mDataLen) { in nextNode() 550 mCurExt = next.myOffset() + headerSize; in nextNode() 570 (next.myOffset()-mTree.mHeader.myOffset())); in nextNode() 577 (next.myOffset()-mTree.mHeader.myOffset()), in nextNode()
|
D | CppAssetManager2.java | 976 …final ResTable_map_entry map = new ResTable_map_entry(entry.entry.myBuf(), entry.entry.myOffset()); in GetBag() 977 int curOffset = map.myOffset() + map.size; in GetBag() 1072 …while (map_entry != null && map_entry.myOffset() != map_entry_end && parentEntryIndex != parentEnt… in GetBag() 1111 …map_entry = new ResTable_map(map_entry.myBuf(), map_entry.myOffset() + map_entry.value.size + ResT… in GetBag() 1130 while (map_entry != null && map_entry.myOffset() != map_entry_end) { in GetBag() 1159 …map_entry = new ResTable_map(map_entry.myBuf(), map_entry.myOffset() + map_entry.value.size + ResT… in GetBag()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowStringBlock.java | 65 pos = new ResStringPool_span(pos.myBuf(), pos.myOffset() + ResStringPool_span.SIZEOF); in nativeGetStyle() 86 spans = new ResStringPool_span(spans.myBuf(), spans.myOffset() + ResStringPool_span.SIZEOF); in nativeGetStyle() 95 int startOffset = spans.myOffset(); in setIntArrayRegion()
|