Searched refs:dtohs (Results 1 – 11 of 11) sorted by relevance
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | Idmap.java | 11 import static org.robolectric.res.android.Util.dtohs; 69 if (input_entry_id < dtohs(header.entry_id_offset)) { in Lookup() 74 input_entry_id -= dtohs(header.entry_id_offset); in Lookup() 75 if (input_entry_id >= dtohs(header.entry_count)) { in Lookup() 167 …if (!is_valid_type_id(dtohs(entry_header.target_type_id)) || !is_valid_type_id(dtohs(entry_header.… in Load() 169 dtohs(entry_header.target_type_id), in Load() 170 dtohs(entry_header.overlay_type_id))); in Load() 176 (dtohs(entry_header.entry_count))) { in Load() 178 (int) dtohs(entry_header.entry_count))); in Load() 183 if (dtohs(entry_header.entry_count) != 0) { in Load() [all …]
|
D | IdmapEntries.java | 13 return (Util.dtohs(mData[0]) > 0); in hasEntries() 28 return (byte) Util.dtohs(mData[0]); in targetTypeId() 35 return (byte) Util.dtohs(mData[1]); in overlayTypeId() 39 short entryCount = Util.dtohs(mData[2]); in lookup() 40 short offset = Util.dtohs(mData[3]); in lookup()
|
D | ResXMLTree.java | 22 import static org.robolectric.res.android.Util.dtohs; 103 if (dtohs(mHeader.header.headerSize) > mSize || mSize > size) { in setTo() 105 (int)dtohs(mHeader.header.headerSize), in setTo() 135 final short type = dtohs(chunk.type); in setTo() 146 mNumResIds = (dtohl(chunk.size)-dtohs(chunk.headerSize))/SIZEOF_INT /*sizeof(int)*/; in setTo() 214 final short eventCode = dtohs(node.header.type); in validateNode() 226 final short headerSize = dtohs(node.header.headerSize); in validateNode() 234 final int attrSize = ((int)dtohs(attrExt.attributeSize)) in validateNode() 235 * dtohs(attrExt.attributeCount); in validateNode() 236 if ((dtohs(attrExt.attributeStart)+attrSize) <= (size-headerSize)) { in validateNode() [all …]
|
D | ResXMLParser.java | 26 import static org.robolectric.res.android.Util.dtohs; 200 return dtohs((new ResXMLTree_attrExt(mTree.mBuffer.buf, mCurExt)).attributeCount); in getAttributeCount() 209 if (idx < dtohs(tag.attributeCount)) { in getAttributeNamespaceID() 245 if (idx < dtohs(tag.attributeCount)) { in getAttributeNameID() 296 if (idx < dtohs(tag.attributeCount)) { in getAttributeValueStringID() 321 if (idx < dtohs(tag.attributeCount)) { in getAttributeDataType() 344 if (idx < dtohs(tag.attributeCount)) { in getAttributeData() 368 if (idx < dtohs(tag.attributeCount)) { in getAttributeValue() 494 final int idx = dtohs((new ResXMLTree_attrExt(mTree.mBuffer.buf, mCurExt)).idIndex); in indexOfID() 503 final int idx = dtohs((new ResXMLTree_attrExt(mTree.mBuffer.buf, mCurExt)).classIndex); in indexOfClass() [all …]
|
D | ResTable.java | 24 import static org.robolectric.res.android.Util.dtohs; 275 if (dtohs(header.header.header.headerSize) > header.size in addInternal() 278 (int)dtohs(header.header.header.headerSize), in addInternal() 282 if (((dtohs(header.header.header.headerSize)|header.size)&0x3) != 0) { in addInternal() 284 (int)dtohs(header.header.header.headerSize), in addInternal() 298 new ResChunk_header(buf, dtohs(header.header.header.headerSize)); in addInternal() 307 dtohs(chunk.type), dtohs(chunk.headerSize), dtohl(chunk.size), in addInternal() 311 final int ctype = dtohs(chunk.type); in addInternal() 620 final int eindex = thisType.myOffset() + dtohs(thisType.header.headerSize); 633 (a, b) -> dtohs(a.idxOrOffset) < dtohs(b.idxOrOffset)); [all …]
|
D | Chunk.java | 4 import static org.robolectric.res.android.Util.dtohs; 33 return dtohs(device_chunk_.type); in type() 44 return dtohs(device_chunk_.headerSize); in header_size() 204 int header_size = dtohs(next_chunk_.headerSize); in VerifyNextChunk()
|
D | Util.java | 17 static short dtohs(short v) { in dtohs() method in Util 23 static char dtohs(char v) { in dtohs() method in Util 112 char c = dtohs(src[i]); in ReadUtf16StringFromDevice()
|
D | LoadedArsc.java | 15 import static org.robolectric.res.android.Util.dtohs; 239 int offsets_offset = dtohs(header.header.headerSize); in VerifyResTableType() 288 int entry_size = dtohs(entry.size); in VerifyResTableEntry() 314 int value_size = dtohs(value.size); in VerifyResTableEntry() 381 int offsets_offset = dtohs(type_chunk.header.headerSize); in GetEntryOffset() 406 if (result == null || dtohs(result.idxOrOffset) != entry_index) { in GetEntryOffset() 414 return dtohs(result.idxOrOffset) * 4; in GetEntryOffset() 776 type_idx = (byte) (dtohs(type_spec_ptr.idmap_entries.target_type_id) - 1); in Load()
|
D | ResTable_config.java | 58 import static org.robolectric.res.android.Util.dtohs; 869 dtohs((short) o.mcc), in fromDtoH() 870 dtohs((short) o.mnc), in fromDtoH() 879 dtohs((short) o.screenWidth), in fromDtoH() 880 dtohs((short) o.screenHeight), in fromDtoH() 881 dtohs((short) o.sdkVersion), in fromDtoH() 882 dtohs((short) o.minorVersion), in fromDtoH() 885 dtohs((short) o.smallestScreenWidthDp), in fromDtoH() 886 dtohs((short) o.screenWidthDp), in fromDtoH() 887 dtohs((short) o.screenHeightDp), in fromDtoH()
|
D | ResourceTypes.java | 10 import static org.robolectric.res.android.Util.dtohs; 33 final short headerSize = dtohs(chunk.headerSize); in validate_chunk() 849 myOffset() + dtohs(attributeStart) + dtohs(attributeSize) * idx); in attributeAt() 1317 return new Res_value(myBuf(), myOffset() + dtohs(size)); in getResValue()
|
D | CppAssetManager2.java | 15 import static org.robolectric.res.android.Util.dtohs; 966 if (dtohs(entry.entry.size) < ResTable_map_entry.BASE_SIZEOF || in GetBag() 967 (dtohs(entry.entry.flags) & ResourceTypes.ResTable_entry.FLAG_COMPLEX) == 0) { in GetBag() 1032 final int size = dtohs(map_entry.value.size); in GetBag()
|