/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/eap/ |
D | VendorSpecificAuthTest.java | 33 private static final byte[] TEST_DATA = new byte[] {0x12, 0x34, 0x45, 0x56}; field in VendorSpecificAuthTest 53 ByteBuffer.wrap(TEST_DATA, 0, TEST_DATA.length - 1), TEST_DATA.length); in parseTruncatedBuffer() 65 assertEquals(expected, VendorSpecificAuth.parse(ByteBuffer.wrap(TEST_DATA), 0)); in parseBufferWithZeroLength() 76 VendorSpecificAuth expected = new VendorSpecificAuth(TEST_DATA); in parseBuffer() 78 VendorSpecificAuth.parse(ByteBuffer.wrap(TEST_DATA), TEST_DATA.length); in parseBuffer()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/ |
D | InlineLengthsEncryptedChunkEncoderTest.java | 46 private static final byte[] TEST_DATA = {5, 4, 5, 7, 10, 12, 1, 2, 9}; field in InlineLengthsEncryptedChunkEncoderTest 57 mTestChunk = EncryptedChunk.create(mTestKey, TEST_NONCE, TEST_DATA); in setUp() 69 TEST_NONCE.length + TEST_DATA.length)); in writeChunkToWriter_writesLengthThenNonceThenData() 71 inOrder.verify(mMockBackupWriter).writeBytes(TEST_DATA); in writeChunkToWriter_writesLengthThenNonceThenData() 78 assertThat(encodedLength).isEqualTo(Integer.BYTES + TEST_NONCE.length + TEST_DATA.length); in getEncodedLengthOfChunk_returnsSumOfNonceAndDataLengths()
|
D | ChunkHasherTest.java | 41 private static final byte[] TEST_DATA = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}; field in ChunkHasherTest 54 ChunkHash chunkHash = mChunkHasher.computeHash(TEST_DATA); in computeHash_returnsHmacForData() 59 byte[] expectedHash = mac.doFinal(TEST_DATA); in computeHash_returnsHmacForData() 67 byte[] hash = mChunkHasher.computeHash(TEST_DATA).getHash(); in computeHash_generates256BitHmac()
|
D | LengthlessEncryptedChunkEncoderTest.java | 45 private static final byte[] TEST_DATA = {5, 4, 5, 7, 10, 12, 1, 2, 9}; field in LengthlessEncryptedChunkEncoderTest 56 mTestChunk = EncryptedChunk.create(mTestKey, TEST_NONCE, TEST_DATA); in setUp() 66 inOrder.verify(mMockBackupWriter).writeBytes(TEST_DATA); in writeChunkToWriter_writesNonceThenData() 73 assertThat(encodedLength).isEqualTo(TEST_NONCE.length + TEST_DATA.length); in getEncodedLengthOfChunk_returnsSumOfNonceAndDataLengths()
|
/frameworks/base/tests/CoreTests/android/core/ |
D | TestEventHandler.java | 59 public final static int TEST_DATA = 4; field in TestEventHandler 377 eventsReceived[TEST_DATA] = true; in data() 378 if (notExpecting[TEST_DATA]) { in data() 409 expects[TEST_DATA] = false; in data() 674 expects[TEST_DATA] = true; in expectData() 678 notExpecting[TEST_DATA] = true; in expectNoData() 682 expects[TEST_DATA] = true; in expectData() 687 expects[TEST_DATA] = true; in expectData()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileUtilsTest.java | 78 private static final String TEST_DATA = field in FileUtilsTest 112 writeFile(mTestFile, TEST_DATA); in testCopyFile() 116 assertEquals(TEST_DATA, FileUtils.readTextFile(mCopyFile, 0, null)); in testCopyFile() 236 writeFile(mTestFile, TEST_DATA); in testReadTextFile() 238 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 0, null)); in testReadTextFile() 242 assertEquals(TEST_DATA.substring(0, 51) + "<>", in testReadTextFile() 244 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 52, "<>")); in testReadTextFile() 245 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 100, "<>")); in testReadTextFile() 249 assertEquals("<>" + TEST_DATA.substring(1, 52), in testReadTextFile() 251 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, -52, "<>")); in testReadTextFile() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | StreamSplitter_test.cpp | 57 static const uint32_t TEST_DATA = 0x12345678u; variable 92 *dataIn = TEST_DATA; in TEST_F() 110 ASSERT_EQ(*dataOut, TEST_DATA); in TEST_F() 164 *dataIn = TEST_DATA; in TEST_F() 183 ASSERT_EQ(*dataOut, TEST_DATA); in TEST_F()
|
D | BufferQueue_test.cpp | 99 static const uint32_t TEST_DATA = 0x12345678u; variable 154 *dataIn = TEST_DATA; in TEST_F() 168 ASSERT_EQ(*dataOut, TEST_DATA); in TEST_F() 352 *dataIn = TEST_DATA; in TEST_F() 371 ASSERT_EQ(*dataOut, TEST_DATA); in TEST_F() 410 *dataIn = TEST_DATA; in TEST_F() 430 ASSERT_EQ(*dataOut, TEST_DATA); in TEST_F() 453 *dataIn = TEST_DATA; in TEST_F() 473 ASSERT_EQ(*dataOut, TEST_DATA); in TEST_F()
|