Home
last modified time | relevance | path

Searched refs:payload (Results 1 – 17 of 17) sorted by relevance

/cts/tests/tests/net/src/android/net/cts/
DPacketUtils.java77 public final Payload payload; field in PacketUtils.IpHeader
79 public IpHeader(int proto, InetAddress src, InetAddress dst, Payload payload) { in IpHeader() argument
83 this.payload = payload; in IpHeader()
94 public Ip4Header(int proto, Inet4Address src, Inet4Address dst, Payload payload) { in Ip4Header() argument
95 super(proto, src, dst, payload); in Ip4Header()
100 payload.addPacketBytes(this, resultBuffer); in getPacketBytes()
115 bb.putShort((short) (IP4_HDRLEN + payload.length())); in buildHeader()
163 public Ip6Header(int nextHeader, Inet6Address src, Inet6Address dst, Payload payload) { in Ip6Header() argument
164 super(nextHeader, src, dst, payload); in Ip6Header()
179 bb.putShort((short) payload.length()); in getPacketBytes()
[all …]
DIkeTunUtils.java174 byte[] payload) in buildIkePacket() argument
178 final ByteBuffer buffer = ByteBuffer.allocate(NON_ESP_MARKER.length + payload.length); in buildIkePacket()
180 buffer.put(payload); in buildIkePacket()
181 payload = buffer.array(); in buildIkePacket()
184 final UdpHeader udpPkt = new UdpHeader(srcPort, dstPort, new BytePayload(payload)); in buildIkePacket()
DIpSecManagerTunnelTest.java657 int spi, InetAddress src, InetAddress dst, int port, Payload payload) throws Exception {
658 IpHeader preEspIpHeader = getIpHeader(payload.getProtocolId(), src, dst, payload);
661 payload.getProtocolId(),
665 payload.getPacketBytes(preEspIpHeader));
676 Payload payload)
678 IpHeader innerIp = getIpHeader(payload.getProtocolId(), srcInner, dstInner, payload);
691 Payload payload = espPayload;
693 payload = new UdpHeader(encapPort, encapPort, espPayload);
696 return getIpHeader(payload.getProtocolId(), src, dst, payload);
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/
DPacketUtils.java83 public final Payload payload; field in PacketUtils.IpHeader
85 public IpHeader(int proto, InetAddress src, InetAddress dst, Payload payload) { in IpHeader() argument
89 this.payload = payload; in IpHeader()
100 public Ip4Header(int proto, Inet4Address src, Inet4Address dst, Payload payload) { in Ip4Header() argument
101 super(proto, src, dst, payload); in Ip4Header()
106 payload.addPacketBytes(this, resultBuffer); in getPacketBytes()
121 bb.putShort((short) (IP4_HDRLEN + payload.length())); in buildHeader()
169 public Ip6Header(int nextHeader, Inet6Address src, Inet6Address dst, Payload payload) { in Ip6Header() argument
170 super(nextHeader, src, dst, payload); in Ip6Header()
185 bb.putShort((short) payload.length()); in getPacketBytes()
[all …]
DIkeTunUtils.java366 int protocol, InetAddress src, InetAddress dst, Payload payload) { in getIpHeader() argument
372 return new Ip6Header(protocol, (Inet6Address) src, (Inet6Address) dst, payload); in getIpHeader()
374 return new Ip4Header(protocol, (Inet4Address) src, (Inet4Address) dst, payload); in getIpHeader()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hcef/
DHceFReaderActivity.java58 static byte[] createEchoCommand(byte[] nfcid2, byte[] payload) { in createEchoCommand() argument
59 byte length = (byte) (2 + nfcid2.length + payload.length); in createEchoCommand()
65 System.arraycopy(payload, 0, echo_cmd, 2 + nfcid2.length, payload.length); in createEchoCommand()
105 byte[] payload = new byte[] {0x14, (byte)i}; in onTagDiscovered()
106 byte[] echo_cmd = createEchoCommand(MyHostFelicaService.NFCID2, payload); in onTagDiscovered()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationListenerVerifierActivity.java591 for (JSONObject payload : result) { in test()
594 payload.getString(JSON_PACKAGE), in test()
596 String tag = payload.getString(JSON_TAG); in test()
599 pass &= checkEquals(mIcon1, payload.getInt(JSON_ICON), in test()
601 pass &= checkFlagSet(mFlag1, payload.getInt(JSON_FLAGS), in test()
603 pass &= checkEquals(mId1, payload.getInt(JSON_ID), in test()
605 pass &= checkEquals(mWhen1, payload.getLong(JSON_WHEN), in test()
609 pass &= checkEquals(mIcon2, payload.getInt(JSON_ICON), in test()
611 pass &= checkFlagSet(mFlag2, payload.getInt(JSON_FLAGS), in test()
613 pass &= checkEquals(mId2, payload.getInt(JSON_ID), in test()
[all …]
DAttentionManagementVerifierActivity.java272 for (JSONObject payload : result) { in test()
274 String tag = payload.getString(JSON_TAG); in test()
275 boolean zen = payload.getBoolean(JSON_MATCHES_ZEN_FILTER); in test()
332 for (JSONObject payload : result) { in test()
334 String tag = payload.getString(JSON_TAG); in test()
335 boolean zen = payload.getBoolean(JSON_MATCHES_ZEN_FILTER); in test()
391 for (JSONObject payload : result) { in test()
393 String tag = payload.getString(JSON_TAG); in test()
394 boolean zen = payload.getBoolean(JSON_MATCHES_ZEN_FILTER); in test()
450 for (JSONObject payload : result) { in test()
[all …]
/cts/hostsidetests/wifibroadcasts/src/android/wifibroadcasts/cts/
DWifiBroadcastsHostJUnit4Test.java149 String payload = line.split(":")[1].trim(); in testCleanLogcat() local
150 assertFalse(payload, payload.contains(PROHIBITED_STRING)); in testCleanLogcat()
/cts/hostsidetests/securitybulletin/test-apps/launchanywhere/src/com/android/security/cts/launchanywhere/
DAuthenticator.java71 Intent payload = new Intent();
72 payload.setAction(Intent.ACTION_REBOOT);
73 data = exploit.generate(payload);
/cts/tests/tests/identity/src/android/security/identity/cts/
DUtil.java299 byte[] payload, in coseBuildToBeSigned() argument
315 if (payload != null && payload.length > 0) { in coseBuildToBeSigned()
316 array.add(payload); in coseBuildToBeSigned()
502 byte[] payload = new byte[0]; in coseSign1CheckSignature()
513 payload = ((co.nstant.in.cbor.model.ByteString) items.get(2)).getBytes(); in coseSign1CheckSignature()
524 int dataLen = payload.length; in coseSign1CheckSignature()
531 payload, detachedContent); in coseSign1CheckSignature()
566 byte[] payload = new byte[0]; in coseSign1GetData()
577 payload = ((co.nstant.in.cbor.model.ByteString) items.get(2)).getBytes(); in coseSign1GetData()
581 return payload; in coseSign1GetData()
[all …]
/cts/tests/tests/syncmanager/apps/app1/src/android/content/syncmanager/cts/app/
DCommReceiver.java57 protected byte[] responseToBytes(Payload payload) { in responseToBytes() argument
58 return payload.toByteArray(); in responseToBytes()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DNdefPushSenderActivity.java64 byte[] payload = "CTS Verifier NDEF Push Tag".getBytes(Charset.forName("US-ASCII")); in getTestMessage()
66 new NdefRecord(NdefRecord.TNF_MIME_MEDIA, mimeBytes, id, payload) in getTestMessage()
DLlcpVersionActivity.java66 byte[] payload = "CTS Verifier NDEF Push Tag".getBytes(Charset.forName("US-ASCII")); in getTestMessage()
68 new NdefRecord(NdefRecord.TNF_MIME_MEDIA, mimeBytes, id, payload) in getTestMessage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DNfcTestActivity.java121 byte[] payload = SAMPLE_TEXT.getBytes(Charset.forName("US-ASCII")); in getTestMessage()
123 new NdefRecord(NdefRecord.TNF_MIME_MEDIA, mimeBytes, id, payload) in getTestMessage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
DNdefTagTester.java103 byte[] payload = PAYLOAD.getBytes(Charset.forName("US-ASCII"));
104 return new NdefRecord(NdefRecord.TNF_MIME_MEDIA, mimeBytes, id, payload);
/cts/tests/tests/batterysaving/apps/app_target_api_current/src/android/os/cts/batterysaving/app/
DCommReceiver.java119 protected byte[] responseToBytes(Payload payload) { in responseToBytes() argument
120 return payload.toByteArray(); in responseToBytes()