Home
last modified time | relevance | path

Searched refs:expectedBytes (Results 1 – 15 of 15) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacPrfTest.java197 byte[] expectedBytes = TestUtils.hexStringToByteArray(CALCULATED_MAC_HEX_STRING); in testSignBytesHmacSha1()
198 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesHmacSha1()
208 byte[] expectedBytes = in testSignBytesHmacSha256()
210 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesHmacSha256()
299 byte[] expectedBytes = in testSignBytesPrfAes128XCbc()
301 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesPrfAes128XCbc()
312 byte[] expectedBytes = in testSignBytesPrfAes128XCbcWith16ByteInput()
314 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesPrfAes128XCbcWith16ByteInput()
324 byte[] expectedBytes = in testSignBytesPrfAes128XCbcWithKeyShorterThan16Bytes()
326 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesPrfAes128XCbcWithKeyShorterThan16Bytes()
[all …]
DIkeMacIntegrityTest.java189 byte[] expectedBytes = in testSignBytesAuthAes128XCbc()
191 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesAuthAes128XCbc()
203 byte[] expectedBytes = in testSignBytesAuthAes128XCbcWith16ByteInput()
205 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesAuthAes128XCbcWith16ByteInput()
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/
DParcelableUtilUnitTest.java34 final byte[] expectedBytes = fillData(new byte[SMALL_BLOB_10_KB]); in testReadWriteSmallBlob()
36 ParcelableUtil.writeBlob(parcel, expectedBytes); in testReadWriteSmallBlob()
39 assertThat(actualBytes).isEqualTo(expectedBytes); in testReadWriteSmallBlob()
45 final byte[] expectedBytes = fillData(new byte[LARGE_BLOB_10_MB]); in testReadWriteLargeBlob()
47 ParcelableUtil.writeBlob(parcel, expectedBytes); in testReadWriteLargeBlob()
50 assertThat(actualBytes).isEqualTo(expectedBytes); in testReadWriteLargeBlob()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeIdPayloadTest.java216 byte[] expectedBytes = in testConstructAndEncodeIpv4AddrIdPayload()
218 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeIpv4AddrIdPayload()
229 byte[] expectedBytes = in testConstructAndEncodeIpv6AddrIdPayload()
231 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeIpv6AddrIdPayload()
242 byte[] expectedBytes = TestUtils.hexStringToByteArray(FQDN_ID_PAYLOAD_HEX_STRING); in testConstructAndEncodeFqdnIdPayload()
243 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeFqdnIdPayload()
255 byte[] expectedBytes = TestUtils.hexStringToByteArray(RFC822_ADDR_ID_PAYLOAD_HEX_STRING); in testConstructAndEncodeRfc822AddrIdPayload()
256 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeRfc822AddrIdPayload()
267 byte[] expectedBytes = TestUtils.hexStringToByteArray(KEY_ID_PAYLOAD_HEX_STRING); in testConstructAndEncodeKeyIdPayload()
268 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeKeyIdPayload()
[all …]
DIkeSaPayloadTest.java291 byte[] expectedBytes = TestUtils.hexStringToByteArray(ATTRIBUTE_RAW_PACKET); in testEncodeAttribute()
293 assertArrayEquals(expectedBytes, byteBuffer.array()); in testEncodeAttribute()
335 byte[] expectedBytes = TestUtils.hexStringToByteArray(ENCR_TRANSFORM_RAW_PACKET); in testEncodeEncryptionTransform()
337 assertArrayEquals(expectedBytes, byteBuffer.array()); in testEncodeEncryptionTransform()
379 byte[] expectedBytes = TestUtils.hexStringToByteArray(PRF_TRANSFORM_RAW_PACKET); in testEncodePrfTransform()
381 assertArrayEquals(expectedBytes, byteBuffer.array()); in testEncodePrfTransform()
430 byte[] expectedBytes = TestUtils.hexStringToByteArray(INTEG_TRANSFORM_RAW_PACKET); in testEncodeIntegrityTransform()
432 assertArrayEquals(expectedBytes, byteBuffer.array()); in testEncodeIntegrityTransform()
465 byte[] expectedBytes = TestUtils.hexStringToByteArray(DH_GROUP_TRANSFORM_RAW_PACKET); in testEncodeDhGroupTransform()
467 assertArrayEquals(expectedBytes, byteBuffer.array()); in testEncodeDhGroupTransform()
[all …]
DIkeTsPayloadTest.java98 byte[] expectedBytes = TestUtils.hexStringToByteArray(TS_INITIATOR_PAYLOAD_HEX_STRING); in testBuildAndEncodeTsPayload()
99 assertArrayEquals(expectedBytes, byteBuffer.array()); in testBuildAndEncodeTsPayload()
DIkeAuthPayloadTest.java129 byte[] expectedBytes = TestUtils.hexStringToByteArray(PSK_INIT_SIGNED_OCTETS); in testGetSignedOctets()
DIkeNotifyPayloadTest.java132 byte[] expectedBytes = TestUtils.hexStringToByteArray(NAT_DETECTION_DATA_HEX_STRING); in testGenerateNatDetectionData()
133 assertArrayEquals(expectedBytes, netDetectionData); in testGenerateNatDetectionData()
DIkeMessageTest.java534 byte[][] expectedBytes = in testEncodeAndEncryptEmptyMsg()
537 assertArrayEquals(expectedBytes, ikeMessageBytes); in testEncodeAndEncryptEmptyMsg()
/packages/services/Mtp/tests/src/com/android/mtp/
DPipeManagerTest.java82 private void assertDescriptor(ParcelFileDescriptor descriptor, byte[] expectedBytes) in assertDescriptor() argument
89 assertEquals(expectedBytes.length, stream.read(results)); in assertDescriptor()
90 for (int i = 0; i < expectedBytes.length; i++) { in assertDescriptor()
91 assertEquals(expectedBytes[i], results[i]); in assertDescriptor()
DMtpManagerTest.java138 final byte[] expectedBytes = "Hello Android!".getBytes("ascii"); in testCreateDocumentAndGetPartialObject()
141 stream.write(expectedBytes); in testCreateDocumentAndGetPartialObject()
148 .setCompressedSize(expectedBytes.length) in testCreateDocumentAndGetPartialObject()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBackupHelperTest.java385 final byte[] expectedBytes = expectedResult.getBytes(); in verifyBackupData()
391 .writeEntityHeader(BatteryBackupHelper.KEY_OPTIMIZATION_LIST, expectedBytes.length); in verifyBackupData()
392 verify(mBackupDataOutput).writeEntityData(captor.capture(), eq(expectedBytes.length)); in verifyBackupData()
445 final byte[] expectedBytes = dataContent.getBytes(); in verifyBackupData()
446 inOrder.verify(mBackupDataOutput).writeEntityHeader(dataKey, expectedBytes.length); in verifyBackupData()
447 inOrder.verify(mBackupDataOutput).writeEntityData(expectedBytes, expectedBytes.length); in verifyBackupData()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeTrafficSelectorTest.java145 byte[] expectedBytes = TestUtils.hexStringToByteArray(TS_IPV4_ONE_HEX_STRING); in testBuildAndEncodeIkeTrafficSelector()
146 assertArrayEquals(expectedBytes, byteBuffer.array()); in testBuildAndEncodeIkeTrafficSelector()
348 byte[] expectedBytes = TestUtils.hexStringToByteArray(TS_IPV6_THREE_HEX_ADDRESS); in testBuildAndEncodeIpv6TrafficSelector()
349 assertArrayEquals(expectedBytes, byteBuffer.array()); in testBuildAndEncodeIpv6TrafficSelector()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DManageCachePage.java370 long expectedBytes = mCacheStorageInfo.getExpectedUsedBytes(); in refreshCacheStorageInfo() local
384 (int) (expectedBytes * PROGRESS_BAR_MAX / totalBytes)); in refreshCacheStorageInfo()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DPersistAdSelectionResultRunnerTest.java1838 byte[] expectedBytes = md.digest(winningUrl.getBytes(StandardCharsets.UTF_8)); in testRunner_withKAnonEnabled_createsKAnonEntityWithCorrectEncoding()
1848 assertThat(actualBytes).isEqualTo(expectedBytes); in testRunner_withKAnonEnabled_createsKAnonEntityWithCorrectEncoding()