Home
last modified time | relevance | path

Searched refs:TEST_DATA (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/eap/
DVendorSpecificAuthTest.java35 private static final byte[] TEST_DATA = new byte[] {0x12, 0x34, 0x45, 0x56}; field in VendorSpecificAuthTest
55 ByteBuffer.wrap(TEST_DATA, 0, TEST_DATA.length - 1), TEST_DATA.length); in parseTruncatedBuffer()
67 assertEquals(expected, VendorSpecificAuth.parse(ByteBuffer.wrap(TEST_DATA), 0)); in parseBufferWithZeroLength()
78 VendorSpecificAuth expected = new VendorSpecificAuth(TEST_DATA); in parseBuffer()
80 VendorSpecificAuth.parse(ByteBuffer.wrap(TEST_DATA), TEST_DATA.length); in parseBuffer()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DLiveDataControllerTest.java41 private static final CharSequence TEST_DATA = "test_data"; field in LiveDataControllerTest
64 assertThat(mTestController.getSummary()).isEqualTo(TEST_DATA); in initLifeCycleOwner_returnTestData()
74 return TEST_DATA; in getSummaryTextInBackground()
96 mRealController.mSummary = TEST_DATA; in initLifeCycleOwner()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIpSecBaseTest.java83 protected static final byte[] TEST_DATA = "Best test data ever!".getBytes(); field in IpSecBaseTest
616 left.send(TEST_DATA); in checkSocketPair()
617 assertArrayEquals(TEST_DATA, right.receive()); in checkSocketPair()
619 right.send(TEST_DATA); in checkSocketPair()
620 assertArrayEquals(TEST_DATA, left.receive()); in checkSocketPair()
628 left.sendTo(TEST_DATA, localAddr, right.getPort()); in checkUnconnectedUdpSocketPair()
629 assertArrayEquals(TEST_DATA, right.receive()); in checkUnconnectedUdpSocketPair()
631 right.sendTo(TEST_DATA, localAddr, left.getPort()); in checkUnconnectedUdpSocketPair()
632 assertArrayEquals(TEST_DATA, left.receive()); in checkUnconnectedUdpSocketPair()
DIpSecManagerTest.java194 sockLeft.sendTo(TEST_DATA, local, sockRight.getPort()); in checkUnconnectedUdp()
196 assertArrayEquals("Left-to-right encrypted data did not match.", TEST_DATA, in); in checkUnconnectedUdp()
198 sockRight.sendTo(TEST_DATA, local, sockLeft.getPort()); in checkUnconnectedUdp()
200 assertArrayEquals("Right-to-left encrypted data did not match.", TEST_DATA, in); in checkUnconnectedUdp()
228 client.send(TEST_DATA); in checkTcp()
230 assertArrayEquals("Client-to-server encrypted data did not match.", TEST_DATA, in); in checkTcp()
236 accepted.send(TEST_DATA); in checkTcp()
238 assertArrayEquals("Server-to-client encrypted data did not match.", TEST_DATA, in); in checkTcp()
562 int innerPacketSize = TEST_DATA.length + transportHdrLen + ipHdrLen; in checkStatsChecker()
565 TEST_DATA.length + transportHdrLen, ivLen, blkSize, truncLenBits) in checkStatsChecker()
[all …]
DIpSecAlgorithmImplTest.java116 new UdpHeader(srcPort, dstPort, new BytePayload(TEST_DATA)); in buildTransportModeEspPayload()
170 TEST_DATA, 0, TEST_DATA.length, REMOTE_ADDRESS, REMOTE_PORT); in runTest()
DIpSecManagerTunnelTest.java271 int expectedPacketSize = TEST_DATA.length + UDP_HDRLEN; in getPacketSize()
347 socket.sendTo(TEST_DATA, remoteInner, socket.getPort()); in getIpSecTunnelTestRunnable()
353 spi, TEST_DATA, encapPort != 0, expectedPacketSize); in getIpSecTunnelTestRunnable()
890 assertArrayEquals(TEST_DATA, socketResponseBytes);
955 UdpHeader udp = new UdpHeader(port, port, new BytePayload(TEST_DATA));
973 UdpHeader udp = new UdpHeader(port, port, new BytePayload(TEST_DATA));