Home
last modified time | relevance | path

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

123

/packages/modules/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()
604 short resultCode = data.getShort(); in parseAssociationResponse()
611 short reasonCode = data.getShort(); in parseDisassociationFrame()
621 short algorithm = data.getShort(); in parseAuthenticationFrame()
622 short sequenceNum = data.getShort(); in parseAuthenticationFrame()
644 short resultCode = data.getShort(); in parseAuthenticationFrame()
652 short reasonCode = data.getShort(); in parseDeauthenticationFrame()
DInformationElementUtil.java168 stationCount = data.getShort() & Constants.SHORT_MASK; in from()
170 capacity = data.getShort() & Constants.SHORT_MASK; in from()
798 data.getShort(); // Skip 2 bytes in parseVsaHs20()
804 anqpDomainID = data.getShort() & Constants.SHORT_MASK; in parseVsaHs20()
975 if (buf.getShort() != RSNE_VERSION) { in parseRsnElement()
987 short cipherCount = buf.getShort(); in parseRsnElement()
997 short akmCount = buf.getShort(); in parseRsnElement()
1056 int rsnCaps = buf.getShort(); in parseRsnElement()
1060 int rsnPmkIdCount = buf.getShort(); in parseRsnElement()
1167 if (buf.getShort() != WPA_VENDOR_OUI_VERSION) { in parseWpaOneElement()
[all …]
/packages/modules/NetworkStack/src/android/net/util/
DConnectivityPacketSummary.java144 final int etherType = asUint(mPacket.getShort()); in parseEther()
171 if (asUint(mPacket.getShort()) != ARP_HWTYPE_ETHER || in parseARP()
172 asUint(mPacket.getShort()) != ETHER_TYPE_IPV4 || in parseARP()
179 final int opCode = asUint(mPacket.getShort()); in parseARP()
211 final int flagsAndFragment = asUint(mPacket.getShort()); in parseIPv4()
270 mPacket.getShort(); // checksum, unused in parseICMPv6()
355 final short reserved = mPacket.getShort(); in parseICMPv6NeighborDiscoveryOptions()
374 final int srcPort = asUint(mPacket.getShort()); in parseUDP()
375 final int dstPort = asUint(mPacket.getShort()); in parseUDP()
/packages/apps/Nfc/src/com/android/nfc/
DNfcWifiProtectedSetup.java105 short fieldId = payload.getShort(); in parse()
106 int fieldSize = payload.getShort() & 0xFFFF; in parse()
121 short fieldId = payload.getShort(); in parseCredential()
122 int fieldSize = payload.getShort() & 0xFFFF; in parseCredential()
151 short authType = payload.getShort(); in parseCredential()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java588 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 2)); in fillInPacket()
589 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 4)); in fillInPacket()
590 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 6)); in fillInPacket()
591 udpSeed += intAbs(buf.getShort(ipChecksumOffset + 8)); in fillInPacket()
1037 short l2type = packet.getShort(); in decodeFullPacket()
1060 short ipTotalLength = packet.getShort(); in decodeFullPacket()
1061 short ipIdentification = packet.getShort(); in decodeFullPacket()
1066 short ipChksm = packet.getShort(); in decodeFullPacket()
1085 short udpSrcPort = packet.getShort(); in decodeFullPacket()
1086 short udpDstPort = packet.getShort(); in decodeFullPacket()
[all …]
/packages/modules/NetworkStack/src/com/android/networkstack/arp/
DArpPacket.java108 final short etherType = buffer.getShort(); in parseArpPacket()
113 final short hwType = buffer.getShort(); in parseArpPacket()
118 final short protoType = buffer.getShort(); in parseArpPacket()
133 final short opCode = buffer.getShort(); in parseArpPacket()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttribute.java257 int bytesInList = Short.toUnsignedInt(byteBuffer.getShort()); in AtVersionList()
265 versions.add(Short.toUnsignedInt(byteBuffer.getShort())); in AtVersionList()
458 int identityLength = Short.toUnsignedInt(byteBuffer.getShort()); in AtIdentity()
711 this.counter = Short.toUnsignedInt(byteBuffer.getShort()); in AtCounter()
828 notificationCode = Short.toUnsignedInt(byteBuffer.getShort()); in AtNotification()
987 int resLength = Short.toUnsignedInt(byteBuffer.getShort()); in AtRes()
1104 int networkNameLength = Short.toUnsignedInt(byteBuffer.getShort()); in AtKdfInput()
1147 kdf = Short.toUnsignedInt(buffer.getShort()); in AtKdf()
1182 int serverFlag = Short.toUnsignedInt(buffer.getShort()); in AtBidding()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockSuggestionProviderCursor.java76 public short getShort(int column) { in getShort() method in MockSuggestionProviderCursor
77 return mRows.get(getPosition()).getShort(column); in getShort()
137 public short getShort(int column) { in getShort() method in MockSuggestionProviderCursor.Row
/packages/apps/Camera2/src/com/android/camera/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()
/packages/apps/Gallery2/gallerycommon/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()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifOutputStream.java147 if (mBuffer.getShort() != JpegHeader.SOI) { in write()
163 short tag = mBuffer.getShort(); in write()
173 short marker = mBuffer.getShort(); in write()
175 mByteToSkip = (mBuffer.getShort() & 0x0000ffff) - 2; in write()
179 mByteToCopy = (mBuffer.getShort() & 0x0000ffff) - 2; in write()
/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DStructNlAttr.java57 struct.nla_len = byteBuffer.getShort(); in peek()
58 struct.nla_type = byteBuffer.getShort(); in peek()
197 return byteBuffer.getShort(); in getValueAsBe16()
DStructNlMsgHdr.java92 struct.nlmsg_type = byteBuffer.getShort(); in parse()
93 struct.nlmsg_flags = byteBuffer.getShort(); in parse()
DStructNdMsg.java114 final short pad2 = byteBuffer.getShort(); in parse()
116 struct.ndm_state = byteBuffer.getShort(); in parse()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DReorderingCursorWrapper.java87 public short getShort(int column) { in getShort() method in ReorderingCursorWrapper
88 return mCursor.getShort(column); in getShort()
/packages/modules/Connectivity/tests/unit/java/android/net/
DKeepalivePacketDataUtilTest.java121 assertEquals(buf.getShort(), srcPort); in testFromTcpKeepaliveStableParcelable()
123 assertEquals(buf.getShort(), dstPort); in testFromTcpKeepaliveStableParcelable()
130 assertEquals(buf.getShort(), wnd >> wndScale); in testFromTcpKeepaliveStableParcelable()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeTrafficSelector.java327 int tsLength = Short.toUnsignedInt(inputBuffer.getShort()); in decodeTrafficSelector()
333 int startPort = Short.toUnsignedInt(inputBuffer.getShort()); in decodeTrafficSelector()
334 int endPort = Short.toUnsignedInt(inputBuffer.getShort()); in decodeTrafficSelector()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSkfPayload.java80 fragmentNum = Short.toUnsignedInt(inputBuffer.getShort()); in IkeSkfPayload()
81 totalFragments = Short.toUnsignedInt(inputBuffer.getShort()); in IkeSkfPayload()
DIkePayloadFactory.java143 int payloadLength = Short.toUnsignedInt(input.getShort()); in getIkePayload()
193 int payloadLength = Short.toUnsignedInt(input.getShort()); in getIkeSkPayload()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DRootCursorWrapper.java141 public short getShort(int column) { in getShort() method in RootCursorWrapper
142 return mCursor.getShort(column); in getShort()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DFilteringCursorWrapper.java137 public short getShort(int column) { in getShort() method in FilteringCursorWrapper
138 return mCursor.getShort(column); in getShort()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DObexAppParameters.java142 public short getShort(byte tag) { in getShort() method in ObexAppParameters
149 return ByteBuffer.wrap(bval).getShort(); in getShort()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DObexAppParameters.java142 public short getShort(byte tag) { in getShort() method in ObexAppParameters
149 return ByteBuffer.wrap(bval).getShort(); in getShort()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunUtils.java125 short resultType = buffer.getShort(); in openFrame()
126 int dataLength = buffer.getShort() & 0xffff; in openFrame()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadHardwareInterfaceTest.java301 assertEquals(TEST_TYPE, buffer.getShort()); in testSendIpv4NfGenMsg()
302 assertEquals(TEST_FLAGS, buffer.getShort()); in testSendIpv4NfGenMsg()
307 assertEquals(0 /* error */, buffer.getShort()); // res_id in testSendIpv4NfGenMsg()

123