Home
last modified time | relevance | path

Searched refs:getUnsignedByte (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DByteStream.java115 public int getUnsignedByte() { in getUnsignedByte() method in ByteStream
134 int b0 = getUnsignedByte(); in unpackUsbShort()
135 int b1 = getUnsignedByte(); in unpackUsbShort()
152 int b0 = getUnsignedByte(); in unpackUsbTriple()
153 int b1 = getUnsignedByte(); in unpackUsbTriple()
154 int b2 = getUnsignedByte(); in unpackUsbTriple()
168 int b0 = getUnsignedByte(); in unpackUsbInt()
169 int b1 = getUnsignedByte(); in unpackUsbInt()
170 int b2 = getUnsignedByte(); in unpackUsbInt()
171 int b3 = getUnsignedByte(); in unpackUsbInt()
DUsbInterfaceDescriptor.java54 mInterfaceNumber = stream.getUnsignedByte(); in parseRawDescriptors()
57 mUsbClass = stream.getUnsignedByte(); in parseRawDescriptors()
58 mUsbSubclass = stream.getUnsignedByte(); in parseRawDescriptors()
59 mProtocol = stream.getUnsignedByte(); in parseRawDescriptors()
DUsbConfigDescriptor.java103 mConfigValue = stream.getUnsignedByte(); in parseRawDescriptors()
105 mAttribs = stream.getUnsignedByte(); in parseRawDescriptors()
106 mMaxPower = stream.getUnsignedByte(); in parseRawDescriptors()
DUsbEndpointDescriptor.java124 mEndpointAddress = stream.getUnsignedByte(); in parseRawDescriptors()
125 mAttributes = stream.getUnsignedByte(); in parseRawDescriptors()
127 mInterval = stream.getUnsignedByte(); in parseRawDescriptors()
DUsbDeviceDescriptor.java170 mDevClass = stream.getUnsignedByte(); in parseRawDescriptors()
171 mDevSubClass = stream.getUnsignedByte(); in parseRawDescriptors()
172 mProtocol = stream.getUnsignedByte(); in parseRawDescriptors()
DUsbDescriptorParser.java115 int length = stream.getUnsignedByte(); in allocDescriptor()
/frameworks/base/tests/net/java/android/net/util/
DIpUtilsTest.java41 private int getUnsignedByte(ByteBuffer buf, int offset) { in getUnsignedByte() method in IpUtilsTest
46 return getUnsignedByte(buf, offset) * 256 + getUnsignedByte(buf, offset + 1); in getChecksum()
108 int sum = getUnsignedByte(packet, sumOffset) * 256 + getUnsignedByte(packet, sumOffset + 1); in testIpv6TcpChecksum()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DFrameParser.java70 private static short getUnsignedByte(ByteBuffer data) { in getUnsignedByte() method in FrameParser
138 short protocolNumber = getUnsignedByte(data); in parseIpv4Packet()
234 short dhcpOptionTag = getUnsignedByte(data); in parseDhcpPacket()
241 short dhcpOptionLen = getUnsignedByte(data); in parseDhcpPacket()
248 mTypeString = decodeDhcpMessageType(getUnsignedByte(data)); in parseDhcpPacket()
295 short messageType = getUnsignedByte(data); in parseIcmpPacket()
356 short nextHeaderType = getUnsignedByte(data); in parseIpv6Packet()
361 nextHeaderType = getUnsignedByte(data); in parseIpv6Packet()
362 thisHeaderLen = (getUnsignedByte(data) + 1) * BYTES_PER_OCT; in parseIpv6Packet()
386 short icmpV6Type = getUnsignedByte(data); in parseIcmpV6Packet()
[all …]