Home
last modified time | relevance | path

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

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacPrfTest.java169 byte[] expectedBytes = TestUtils.hexStringToByteArray(CALCULATED_MAC_HEX_STRING); in testSignBytesHmacSha1()
170 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesHmacSha1()
180 byte[] expectedBytes = in testSignBytesHmacSha256()
182 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesHmacSha256()
271 byte[] expectedBytes = in testSignBytesPrfAes128XCbc()
273 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesPrfAes128XCbc()
284 byte[] expectedBytes = in testSignBytesPrfAes128XCbcWith16ByteInput()
286 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesPrfAes128XCbcWith16ByteInput()
296 byte[] expectedBytes = in testSignBytesPrfAes128XCbcWithKeyShorterThan16Bytes()
298 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesPrfAes128XCbcWithKeyShorterThan16Bytes()
[all …]
DIkeMacIntegrityTest.java151 byte[] expectedBytes = in testSignBytesAuthAes128XCbc()
153 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesAuthAes128XCbc()
164 byte[] expectedBytes = in testSignBytesAuthAes128XCbcWith16ByteInput()
166 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesAuthAes128XCbcWith16ByteInput()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeIdPayloadTest.java214 byte[] expectedBytes = in testConstructAndEncodeIpv4AddrIdPayload()
216 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeIpv4AddrIdPayload()
227 byte[] expectedBytes = in testConstructAndEncodeIpv6AddrIdPayload()
229 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeIpv6AddrIdPayload()
240 byte[] expectedBytes = TestUtils.hexStringToByteArray(FQDN_ID_PAYLOAD_HEX_STRING); in testConstructAndEncodeFqdnIdPayload()
241 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeFqdnIdPayload()
253 byte[] expectedBytes = TestUtils.hexStringToByteArray(RFC822_ADDR_ID_PAYLOAD_HEX_STRING); in testConstructAndEncodeRfc822AddrIdPayload()
254 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeRfc822AddrIdPayload()
265 byte[] expectedBytes = TestUtils.hexStringToByteArray(KEY_ID_PAYLOAD_HEX_STRING); in testConstructAndEncodeKeyIdPayload()
266 assertArrayEquals(expectedBytes, inputBuffer.array()); in testConstructAndEncodeKeyIdPayload()
[all …]
DIkeSaPayloadTest.java282 byte[] expectedBytes = TestUtils.hexStringToByteArray(ATTRIBUTE_RAW_PACKET); in testEncodeAttribute()
284 assertArrayEquals(expectedBytes, byteBuffer.array()); in testEncodeAttribute()
326 byte[] expectedBytes = TestUtils.hexStringToByteArray(ENCR_TRANSFORM_RAW_PACKET); in testEncodeEncryptionTransform()
328 assertArrayEquals(expectedBytes, byteBuffer.array()); in testEncodeEncryptionTransform()
370 byte[] expectedBytes = TestUtils.hexStringToByteArray(PRF_TRANSFORM_RAW_PACKET); in testEncodePrfTransform()
372 assertArrayEquals(expectedBytes, byteBuffer.array()); in testEncodePrfTransform()
421 byte[] expectedBytes = TestUtils.hexStringToByteArray(INTEG_TRANSFORM_RAW_PACKET); in testEncodeIntegrityTransform()
423 assertArrayEquals(expectedBytes, byteBuffer.array()); in testEncodeIntegrityTransform()
456 byte[] expectedBytes = TestUtils.hexStringToByteArray(DH_GROUP_TRANSFORM_RAW_PACKET); in testEncodeDhGroupTransform()
458 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()
DIkeNotifyPayloadTest.java97 byte[] expectedBytes = TestUtils.hexStringToByteArray(NAT_DETECTION_DATA_HEX_STRING); in testGenerateNatDetectionData()
98 assertArrayEquals(expectedBytes, netDetectionData); in testGenerateNatDetectionData()
DIkeAuthPayloadTest.java129 byte[] expectedBytes = TestUtils.hexStringToByteArray(PSK_INIT_SIGNED_OCTETS); in testGetSignedOctets()
DIkeMessageTest.java532 byte[][] expectedBytes = in testEncodeAndEncryptEmptyMsg()
535 assertArrayEquals(expectedBytes, ikeMessageBytes); in testEncodeAndEncryptEmptyMsg()
/packages/services/Mtp/tests/src/com/android/mtp/
DPipeManagerTest.java81 private void assertDescriptor(ParcelFileDescriptor descriptor, byte[] expectedBytes) in assertDescriptor() argument
88 assertEquals(expectedBytes.length, stream.read(results)); in assertDescriptor()
89 for (int i = 0; i < expectedBytes.length; i++) { in assertDescriptor()
90 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/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeTrafficSelectorTest.java144 byte[] expectedBytes = TestUtils.hexStringToByteArray(TS_IPV4_ONE_HEX_STRING); in testBuildAndEncodeIkeTrafficSelector()
145 assertArrayEquals(expectedBytes, byteBuffer.array()); in testBuildAndEncodeIkeTrafficSelector()
331 byte[] expectedBytes = TestUtils.hexStringToByteArray(TS_IPV6_THREE_HEX_ADDRESS); in testBuildAndEncodeIpv6TrafficSelector()
332 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()