Home
last modified time | relevance | path

Searched refs:getShort (Results 1 – 25 of 58) sorted by relevance

123

/frameworks/multidex/library/test/src/androidx/multidex/
DZipEntryReader.java58 int gpbf = in.getShort() & 0xffff; in readEntry()
64 int compressionMethod = in.getShort() & 0xffff; in readEntry()
65 int time = in.getShort() & 0xffff; in readEntry()
66 int modDate = in.getShort() & 0xffff; in readEntry()
73 int nameLength = in.getShort() & 0xffff; in readEntry()
74 int extraLength = in.getShort() & 0xffff; in readEntry()
75 int commentByteCount = in.getShort() & 0xffff; in readEntry()
/frameworks/base/core/java/android/net/util/
DIpUtils.java85 partial += intAbs(buf.getShort(headerOffset + 12)); in pseudoChecksumIPv4()
86 partial += intAbs(buf.getShort(headerOffset + 14)); in pseudoChecksumIPv4()
87 partial += intAbs(buf.getShort(headerOffset + 16)); in pseudoChecksumIPv4()
88 partial += intAbs(buf.getShort(headerOffset + 18)); in pseudoChecksumIPv4()
96 partial += intAbs(buf.getShort(headerOffset + offset)); in pseudoChecksumIPv6()
133 int transportLen = intAbs(buf.getShort(transportOffset + 4)); in udpChecksum()
/frameworks/support/core/ktx/src/main/java/androidx/core/database/
DCursor.kt89 inline fun Cursor.getShort(columnName: String): Short = getShort(getColumnIndexOrThrow(columnName)) in getBlob() method
167 inline fun Cursor.getShortOrNull(index: Int) = if (isNull(index)) null else getShort(index) in getBlob()
256 getColumnIndexOrThrow(columnName).let { if (isNull(it)) null else getShort(it) } in getShortOrNull()
/frameworks/base/services/net/java/android/net/util/
DConnectivityPacketSummary.java94 final int etherType = asUint(mPacket.getShort()); in parseEther()
121 if (asUint(mPacket.getShort()) != ARP_HWTYPE_ETHER || in parseARP()
122 asUint(mPacket.getShort()) != ETHER_TYPE_IPV4 || in parseARP()
129 final int opCode = asUint(mPacket.getShort()); in parseARP()
161 final int flagsAndFragment = asUint(mPacket.getShort()); in parseIPv4()
220 mPacket.getShort(); // checksum, unused in parseICMPv6()
305 final short reserved = mPacket.getShort(); in parseICMPv6NeighborDiscoveryOptions()
324 final int srcPort = asUint(mPacket.getShort()); in parseUDP()
325 final int dstPort = asUint(mPacket.getShort()); in parseUDP()
/frameworks/base/core/tests/coretests/src/android/database/
DMatrixCursorTest.java39 assertEquals(0, cursor.getShort(0)); in testNullValue()
151 assertEquals(0, cursor.getShort(1)); in testRowBuilderOffer()
160 assertEquals(0, cursor.getShort(1)); in testRowBuilderOffer()
169 assertEquals(0, cursor.getShort(1)); in testRowBuilderOffer()
202 assertEquals(1, cursor.getShort(1)); in checkValues()
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpPacket.java451 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 2)); in fillInPacket()
452 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 4)); in fillInPacket()
453 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 6)); in fillInPacket()
454 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 8)); in fillInPacket()
786 short l2type = packet.getShort(); in decodeFullPacket()
809 short ipTotalLength = packet.getShort(); in decodeFullPacket()
810 short ipIdentification = packet.getShort(); in decodeFullPacket()
815 short ipChksm = packet.getShort(); in decodeFullPacket()
834 short udpSrcPort = packet.getShort(); in decodeFullPacket()
835 short udpDstPort = packet.getShort(); in decodeFullPacket()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DFrameParser.java78 return (data.getShort() & 0xffff); in getUnsignedShort()
91 short etherType = data.getShort(); in parseEthernetFrame()
450 short wpaKeyInfo = data.getShort(); in parseEapolPacket()
558 short resultCode = data.getShort(); in parseAssociationResponse()
569 short algorithm = data.getShort(); in parseAuthenticationFrame()
570 short sequenceNum = data.getShort(); in parseAuthenticationFrame()
592 short resultCode = data.getShort(); in parseAuthenticationFrame()
DInformationElementUtil.java147 stationCount = data.getShort() & Constants.SHORT_MASK; in from()
149 capacity = data.getShort() & Constants.SHORT_MASK; in from()
333 anqpDomainID = data.getShort() & Constants.SHORT_MASK; in from()
453 if (buf.getShort() != RSNE_VERSION) { in parseRsnElement()
465 short cipherCount = buf.getShort(); in parseRsnElement()
475 short akmCount = buf.getShort(); in parseRsnElement()
592 if (buf.getShort() != WPA_VENDOR_OUI_VERSION) { in parseWpaOneElement()
604 short cipherCount = buf.getShort(); in parseWpaOneElement()
614 short akmCount = buf.getShort(); in parseWpaOneElement()
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
DDecoder.java47 return mBuf.getShort(); in readObject()
66 short len = mBuf.getShort(); in readString()
/frameworks/base/core/java/android/database/
DAbstractWindowedCursor.java61 public short getShort(int columnIndex) { in getShort() method in AbstractWindowedCursor
63 return mWindow.getShort(mPos, columnIndex); in getShort()
DCursorWrapper.java131 public short getShort(int columnIndex) { in getShort() method in CursorWrapper
132 return mCursor.getShort(columnIndex); in getShort()
DMergeCursor.java102 public short getShort(int column) in getShort() method in MergeCursor
104 return mCursor.getShort(column); in getShort()
DCursor.java262 short getShort(int columnIndex); in getShort() method
/frameworks/base/services/net/java/android/net/netlink/
DStructNlMsgHdr.java89 struct.nlmsg_type = byteBuffer.getShort(); in parse()
90 struct.nlmsg_flags = byteBuffer.getShort(); in parse()
DStructNdMsg.java115 final short pad2 = byteBuffer.getShort(); in parse()
117 struct.ndm_state = byteBuffer.getShort(); in parse()
DStructNlAttr.java60 struct.nla_len = byteBuffer.getShort(); in peek()
61 struct.nla_type = byteBuffer.getShort(); in peek()
/frameworks/base/core/java/android/util/
DEventLog.java122 int offset = mBuffer.getShort(HEADER_SIZE_OFFSET); in getTag()
132 int offset = mBuffer.getShort(HEADER_SIZE_OFFSET); in getData()
136 mBuffer.limit(offset + mBuffer.getShort(LENGTH_OFFSET)); in getData()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DExifOutputStream.java146 if (mBuffer.getShort() != JpegHeader.SOI) { in write()
162 short tag = mBuffer.getShort(); in write()
172 short marker = mBuffer.getShort(); in write()
174 mByteToSkip = (mBuffer.getShort() & 0x0000ffff) - 2; in write()
178 mByteToCopy = (mBuffer.getShort() & 0x0000ffff) - 2; in write()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java193 e.mGroup = mMappedByteBuffer.getShort() & 0xFFFF; in readTag()
194 e.mElement = mMappedByteBuffer.getShort() & 0xFFFF; in readTag()
206 e.mVR = mMappedByteBuffer.getShort(); in readTag()
209 mMappedByteBuffer.getShort(); in readTag()
212 e.mLength = mMappedByteBuffer.getShort() & 0xFFFF; in readTag()
249 e.mValue = new Short(mMappedByteBuffer.getShort()); in readValue()
/frameworks/base/core/java/com/android/internal/util/
DTypedProperties.java474 public short getShort(String property, short def) { in getShort() method in TypedProperties
623 public short getShort(String property) { in getShort() method in TypedProperties
624 return getShort(property, (short)0); in getShort()
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/
DMetadataListReader.java259 return toUnsignedShort(mByteBuffer.getShort()); in readUnsignedShort()
321 return toUnsignedShort(mByteBuffer.getShort()); in readUnsignedShort()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
DBridgeBufferIterator.java79 return mByteBuffer.getShort(); in readShort()
/frameworks/base/core/java/android/nfc/tech/
DNfcA.java70 mSak = extras.getShort(EXTRA_SAK); in NfcA()
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DTransport.java257 final int service = buffer.getShort() & 0xffff; in handleMessage()
258 final int what = buffer.getShort() & 0xffff; in handleMessage()
/frameworks/base/core/java/com/android/internal/database/
DSortCursor.java191 public short getShort(int column) in getShort() method in SortCursor
193 return mCursor.getShort(column); in getShort()

123