/frameworks/base/core/java/android/net/ |
D | NattKeepalivePacketData.java | 61 buf.putShort((short) 0x4500); // IP version and TOS in nattKeepalivePacket() 62 buf.putShort((short) length); in nattKeepalivePacket() 67 buf.putShort((short) 0); // IP checksum in nattKeepalivePacket() 70 buf.putShort((short) srcPort); in nattKeepalivePacket() 71 buf.putShort((short) dstPort); in nattKeepalivePacket() 72 buf.putShort((short) (length - 20)); // UDP length in nattKeepalivePacket() 74 buf.putShort((short) 0); // UDP checksum in nattKeepalivePacket() 76 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in nattKeepalivePacket() 77 buf.putShort(udpChecksumOffset, IpUtils.udpChecksum(buf, 0, IPV4_HEADER_LENGTH)); in nattKeepalivePacket()
|
/frameworks/base/services/net/java/android/net/ |
D | TcpKeepalivePacketData.java | 111 buf.putShort((short) length); in buildV4Packet() 116 buf.putShort((short) 0); // IP checksum in buildV4Packet() 119 buf.putShort((short) tcpDetails.srcPort); in buildV4Packet() 120 buf.putShort((short) tcpDetails.dstPort); in buildV4Packet() 123 buf.putShort((short) 0x5010); // TCP length=5, flags=ACK in buildV4Packet() 124 buf.putShort((short) (tcpDetails.rcvWnd >> tcpDetails.rcvWndScale)); // Window size in buildV4Packet() 126 buf.putShort((short) 0); // TCP checksum in buildV4Packet() 128 buf.putShort((short) 0); // Urgent pointer in buildV4Packet() 130 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in buildV4Packet() 131 buf.putShort(tcpChecksumOffset, IpUtils.tcpChecksum( in buildV4Packet()
|
/frameworks/base/tests/net/java/android/net/util/ |
D | IpUtilsTest.java | 116 packet.putShort( in testIpv6TcpChecksum() 161 packet.putShort(ipSumOffset, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum() 162 packet.putShort(udpSumOffset, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum()
|
/frameworks/base/services/net/java/android/net/netlink/ |
D | StructInetDiagSockId.java | 60 byteBuffer.putShort((short) mLocSocketAddress.getPort()); in pack() 61 byteBuffer.putShort((short) mRemSocketAddress.getPort()); in pack()
|
D | StructNlAttr.java | 120 getValueAsByteBuffer().putShort(value); in StructNlAttr() 188 byteBuffer.putShort(nla_len); in pack() 189 byteBuffer.putShort(nla_type); in pack()
|
D | StructNlMsgHdr.java | 120 byteBuffer.putShort(nlmsg_type); in pack() 121 byteBuffer.putShort(nlmsg_flags); in pack()
|
D | StructNdMsg.java | 139 byteBuffer.putShort((short) 0); // pad2 in pack() 141 byteBuffer.putShort(ndm_state); in pack()
|
D | StructNfGenMsg.java | 47 byteBuffer.putShort(res_id); in pack()
|
/frameworks/base/core/java/android/speech/tts/ |
D | FileSynthesisCallback.java | 300 header.putShort(WAV_FORMAT_PCM); in makeWavHeader() 301 header.putShort((short) channelCount); in makeWavHeader() 304 header.putShort(blockAlign); in makeWavHeader() 305 header.putShort(bitsPerSample); in makeWavHeader()
|
/frameworks/base/services/net/java/android/net/ip/ |
D | RouterAdvertisementDaemon.java | 388 .putShort(asShort(0)) in putHeader() 392 .putShort(hasDefaultRoute ? asShort(DEFAULT_LIFETIME) : asShort(0)) in putHeader() 436 .putShort(asShort(0)) in putExpandedFlagsOption() 456 .putShort(asShort(0)) in putMtu() 573 .putShort(asShort(0))
|
/frameworks/opt/net/ike/src/java/com/android/ike/ikev2/message/ |
D | IkeNotifyPayload.java | 183 .putShort((short) port); in generateNatDetectionData() 200 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) notifyType); in encodeToByteBuffer()
|
D | IkeKePayload.java | 206 .putShort((short) dhGroup) in encodeToByteBuffer() 207 .putShort((short) KE_HEADER_RESERVED) in encodeToByteBuffer()
|
D | IkePayload.java | 148 .putShort((short) payloadLength); in encodePayloadHeaderToByteBuffer()
|
D | IkeSaPayload.java | 344 .putShort((short) getProposalLength()) in encodeToByteBuffer() 534 .putShort((short) getTransformLength()) in encodeBasicTransformToByteBuffer() 537 .putShort((short) id); in encodeBasicTransformToByteBuffer() 1152 .putShort((short) (ATTRIBUTE_FORMAT_TV | ATTRIBUTE_TYPE_KEY_LENGTH)) in encodeToByteBuffer() 1153 .putShort((short) keyLength); in encodeToByteBuffer()
|
/frameworks/base/core/java/android/util/apk/ |
D | VerityBuilder.java | 400 buffer.putShort((short) 1); // meta algorithm, SHA256 == 1 in generateApkVerityHeader() 401 buffer.putShort((short) 1); // data algorithm, SHA256 == 1 in generateApkVerityHeader() 439 buffer.putShort((short) 1); // ID of elide extension in generateApkVerityExtensions() 454 buffer.putShort((short) 2); // ID of patch extension in generateApkVerityExtensions()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
D | OrderedDataOutputStream.java | 39 mByteBuffer.putShort(value); in writeShort()
|
D | ExifModifier.java | 186 mByteBuffer.putShort((short) tag.getValueAt(i)); in writeTagValue()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | ProtocolPortTupleTest.java | 50 buffer.putShort((short) port); in getTestBuffer()
|
D | NAIRealmElementTest.java | 47 buffer.putShort((short) dataCount); in getTestBufferWithNAIRealmData()
|
D | HSConnectionCapabilityElementTest.java | 50 buffer.putShort((short) tuple.getPort()); in appendProtocolPortTuple()
|
D | HSWanMetricsElementTest.java | 64 buffer.putShort((short) (TEST_LMD & 0xFFFF)); in getTestBuffer()
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
D | Transport.java | 122 mOutputBuffer.putShort((short)service); in sendMessage() 123 mOutputBuffer.putShort((short)what); in sendMessage()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | ByteArrayHelpers.java | 183 byteBuffer.putShort((Short)value); in toByteArray()
|
/frameworks/base/core/java/android/os/ |
D | Bundle.java | 470 public void putShort(@Nullable String key, short value) { in putShort() method in Bundle 471 super.putShort(key, value); in putShort()
|
/frameworks/base/wifi/java/android/net/wifi/aware/ |
D | TlvBufferUtils.java | 266 public TlvConstructor putShort(int type, short data) { in putShort() method in TlvBufferUtils.TlvConstructor
|