Home
last modified time | relevance | path

Searched refs:putShort (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/core/java/android/net/
DNattKeepalivePacketData.java61 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/
DTcpKeepalivePacketData.java111 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/
DIpUtilsTest.java116 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/
DStructInetDiagSockId.java60 byteBuffer.putShort((short) mLocSocketAddress.getPort()); in pack()
61 byteBuffer.putShort((short) mRemSocketAddress.getPort()); in pack()
DStructNlAttr.java120 getValueAsByteBuffer().putShort(value); in StructNlAttr()
188 byteBuffer.putShort(nla_len); in pack()
189 byteBuffer.putShort(nla_type); in pack()
DStructNlMsgHdr.java120 byteBuffer.putShort(nlmsg_type); in pack()
121 byteBuffer.putShort(nlmsg_flags); in pack()
DStructNdMsg.java139 byteBuffer.putShort((short) 0); // pad2 in pack()
141 byteBuffer.putShort(ndm_state); in pack()
DStructNfGenMsg.java47 byteBuffer.putShort(res_id); in pack()
/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java300 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/
DRouterAdvertisementDaemon.java388 .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/
DIkeNotifyPayload.java183 .putShort((short) port); in generateNatDetectionData()
200 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) notifyType); in encodeToByteBuffer()
DIkeKePayload.java206 .putShort((short) dhGroup) in encodeToByteBuffer()
207 .putShort((short) KE_HEADER_RESERVED) in encodeToByteBuffer()
DIkePayload.java148 .putShort((short) payloadLength); in encodePayloadHeaderToByteBuffer()
DIkeSaPayload.java344 .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/
DVerityBuilder.java400 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/
DOrderedDataOutputStream.java39 mByteBuffer.putShort(value); in writeShort()
DExifModifier.java186 mByteBuffer.putShort((short) tag.getValueAt(i)); in writeTagValue()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DProtocolPortTupleTest.java50 buffer.putShort((short) port); in getTestBuffer()
DNAIRealmElementTest.java47 buffer.putShort((short) dataCount); in getTestBufferWithNAIRealmData()
DHSConnectionCapabilityElementTest.java50 buffer.putShort((short) tuple.getPort()); in appendProtocolPortTuple()
DHSWanMetricsElementTest.java64 buffer.putShort((short) (TEST_LMD & 0xFFFF)); in getTestBuffer()
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DTransport.java122 mOutputBuffer.putShort((short)service); in sendMessage()
123 mOutputBuffer.putShort((short)what); in sendMessage()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DByteArrayHelpers.java183 byteBuffer.putShort((Short)value); in toByteArray()
/frameworks/base/core/java/android/os/
DBundle.java470 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/
DTlvBufferUtils.java266 public TlvConstructor putShort(int type, short data) { in putShort() method in TlvBufferUtils.TlvConstructor

12