Home
last modified time | relevance | path

Searched refs:myBuf (Results 1 – 9 of 9) sorted by relevance

/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DChunk.java55 ByteBuffer myBuf() { in myBuf() method in Chunk
56 return device_chunk_.myBuf(); in myBuf()
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 …]
DStringPiece.java14 return myBuf().capacity() - myOffset(); in size()
18 return new Idmap_header(myBuf(), myOffset()); in asIdmap_header()
DLoadedArsc.java286 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()
398 ResTable_sparseTypeEntry entry = new ResTable_sparseTypeEntry(type_chunk.myBuf(), in GetEntryOffset()
436 return new ResTable_entry(type_chunk.myBuf(), in GetEntryFromOffset()
531 new ResTable_entry(type.myBuf(), type.myOffset() + in FindEntryByName()
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()
628 ResTable_typeSpec type_spec = new ResTable_typeSpec(child_chunk.myBuf(), in Load()
729 …entry_iter = new ResTable_lib_entry(entry_iter.myBuf(), entry_iter.myOffset() + ResTable_lib_entry… in Load()
[all …]
DIdmap.java152 StringPiece data_ptr = new StringPiece(idmap_data.myBuf(), 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()
DResStringPool.java85 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()
332 ByteBuffer buf = mHeader.myBuf(); in stringAt()
469 mHeader.myBuf(), mHeader.myOffset() + mStyles + off * SIZEOF_INT); in styleAt()
DResTable.java316 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()
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);
507 if (comparator.compare(new ResTable_sparseTypeEntry(first.myBuf(), itOffset), value)) {
509 first = new ResTable_sparseTypeEntry(first.myBuf(), itOffset);
627 final ByteBuffer buf = thisType.myBuf();
702 final ResTable_entry entry = new ResTable_entry(bestType.myBuf(),
786 err = _package.typeStrings.setTo(pkg.myBuf(), base+dtohl(pkg.typeStrings),
796 err = _package.keyStrings.setTo(pkg.myBuf(), base+dtohl(pkg.keyStrings),
[all …]
DResourceTypes.java68 public final ByteBuffer myBuf() { in myBuf() method in ResourceTypes.WithOffset
502 return myBuf().get(myOffset() + i); in getByte()
506 return myBuf().getShort(myOffset() + i); in getShort()
1117 ints[i] = myBuf().getInt(myOffset() + header.headerSize + i * 4); in getSpecFlags()
1209 ByteBuffer byteBuffer = myBuf(); in entryOffset()
1221 ByteBuffer byteBuffer = myBuf(); in entryNameIndex()
1317 return new Res_value(myBuf(), myOffset() + dtohs(size)); in getResValue()
DCppAssetManager2.java976 …final ResTable_map_entry map = new ResTable_map_entry(entry.entry.myBuf(), entry.entry.myOffset()); in GetBag()
982 map_entry = new ResTable_map(map.myBuf(), curOffset); in GetBag()
1000 map_entry = new ResTable_map(map_entry.myBuf(), curOffset)) { in GetBag()
1111 …map_entry = new ResTable_map(map_entry.myBuf(), map_entry.myOffset() + map_entry.value.size + ResT… 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/
DShadowStringBlock.java65 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()
94 ByteBuffer buf = spans.myBuf(); in setIntArrayRegion()