Home
last modified time | relevance | path

Searched refs:assertArrayEquals (Results 1 – 25 of 362) sorted by relevance

12345678910>>...15

/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQnsUtilsTest.java19 import static org.junit.Assert.assertArrayEquals;
367 assertArrayEquals( in testGetConfig()
441 assertArrayEquals( in testGetConfig()
448 assertArrayEquals( in testGetConfig()
454 assertArrayEquals( in testGetConfig()
460 assertArrayEquals( in testGetConfig()
466 assertArrayEquals( in testGetConfig()
472 assertArrayEquals( in testGetConfig()
479 assertArrayEquals( in testGetConfig()
486 assertArrayEquals( in testGetConfig()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapMsChapV2MethodStateMachineTest.java37 import static org.junit.Assert.assertArrayEquals;
75 assertArrayEquals( in testUsernameToBytes()
82 assertArrayEquals( in testPasswordToBytes()
95 assertArrayEquals(MSCHAP_V2_NT_RESPONSE, ntResponse); in testGenerateNtResponse()
105 assertArrayEquals(MSCHAP_V2_CHALLENGE, challenge); in testChallengeHash()
111 assertArrayEquals(MSCHAP_V2_PASSWORD_HASH, passwordHash); in testNtPasswordHash()
118 assertArrayEquals(MSCHAP_V2_PASSWORD_HASH_HASH, passwordHashHash); in testHashNtPasswordHash()
126 assertArrayEquals(MSCHAP_V2_NT_RESPONSE, challengeResponse); in testChallengeResponse()
138 assertArrayEquals(MSCHAP_V2_AUTHENTICATOR_RESPONSE, authenticatorResponse); in testGenerateAuthenticatorResponse()
159 assertArrayEquals(MSCHAP_V2_MASTER_KEY, masterKey); in testGetMasterKey()
[all …]
DEapAkaPrimeChallengeStateTest.java38 import static org.junit.Assert.assertArrayEquals;
125 assertArrayEquals(EAP_IDENTITY_BYTES, challengeState.mIdentity); in testTransitionWithEapIdentity()
146 assertArrayEquals(EAP_AKA_PRIME_IDENTITY_RESPONSE, eapResponse.packet); in testTransitionWithEapAkaPrimeIdentity()
160 assertArrayEquals(EAP_AKA_PRIME_IDENTITY_BYTES, challengeState.mIdentity); in testTransitionWithEapAkaPrimeIdentity()
184 assertArrayEquals(EAP_AKA_PRIME_AUTHENTICATION_REJECT, eapResponse.packet); in testProcessMissingAtKdf()
205 assertArrayEquals(EAP_AKA_PRIME_AUTHENTICATION_REJECT, eapResponse.packet); in testProcessMissingAtKdfInput()
228 assertArrayEquals(EAP_AKA_PRIME_AUTHENTICATION_REJECT, eapResponse.packet); in testProcessUnsupportedKdf()
251 assertArrayEquals(EAP_AKA_PRIME_AUTHENTICATION_REJECT, eapResponse.packet); in testProcessIncorrectNetworkName()
315 assertArrayEquals(EXPECTED_CK_IK_PRIME, result); in testDeriveCkIkPrime()
342 assertArrayEquals(K_ENCR, mStateMachine.mKEncr); in testGenerateAndPersistEapAkaKeys()
[all …]
/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanCarrierConfigTest.java21 import static org.junit.Assert.assertArrayEquals;
208 assertArrayEquals(VALUE_CONFIG_IN_SUB_INT_ARRAY, configIntArray); in testGetConfig_ValidRetrieval()
213 assertArrayEquals(VALUE_CONFIG_IN_SUB_LONG_ARRAY, configLongArray); in testGetConfig_ValidRetrieval()
218 assertArrayEquals(VALUE_CONFIG_IN_SUB_DOUBLE_ARRAY, configDoubleArray, 0); in testGetConfig_ValidRetrieval()
223 assertArrayEquals(VALUE_CONFIG_IN_SUB_BOOLEAN_ARRAY, configBooleanArray); in testGetConfig_ValidRetrieval()
228 assertArrayEquals(VALUE_CONFIG_IN_SUB_STRING_ARRAY, configStringArray); in testGetConfig_ValidRetrieval()
262 assertArrayEquals(VALUE_CONFIG_IN_DEFAULT_INT_ARRAY, configIntArray); in testGetConfig_KeyNotFound()
267 assertArrayEquals(VALUE_CONFIG_IN_DEFAULT_LONG_ARRAY, configLongArray); in testGetConfig_KeyNotFound()
272 assertArrayEquals(VALUE_CONFIG_IN_DEFAULT_DOUBLE_ARRAY, configDoubleArray, 0); in testGetConfig_KeyNotFound()
277 assertArrayEquals(VALUE_CONFIG_IN_DEFAULT_BOOLEAN_ARRAY, configBooleanArray); in testGetConfig_KeyNotFound()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMacPrfTest.java21 import static org.junit.Assert.assertArrayEquals;
198 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesHmacSha1()
210 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesHmacSha256()
223 assertArrayEquals(expectedSKeySeed, calculatedSKeySeed); in testGenerateSKeySeedHmacSha1()
238 assertArrayEquals(expectedSKeySeed, calculatedSKeySeed); in testGenerateSKeySeedHmacSha256()
275 assertArrayEquals(expectedKeyMat, calculatedKeyMat); in testGenerateKeyMatForIke()
289 assertArrayEquals(expectedKeyMat, calculatedKeyMat); in testGenerateKeyMatForFirstChild()
301 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesPrfAes128XCbc()
314 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesPrfAes128XCbcWith16ByteInput()
326 assertArrayEquals(expectedBytes, calculatedBytes); in testSignBytesPrfAes128XCbcWithKeyShorterThan16Bytes()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/crypto/
DTlsSessionTunnelTest.java22 import static org.junit.Assert.assertArrayEquals;
46 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testEncryptMessage_success()
63 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testEncryptMessage_failure()
81 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testEncryptMessage_overflow()
99 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testEncryptMessage_underflow()
114 assertArrayEquals(EMPTY_BYTE_ARRAY, result.data); in testEncryptMessage_closed()
125 assertArrayEquals(SAMPLE_APPLICATION_TLS_MESSAGE, result.data); in testDecryptMessage_success()
144 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testDecryptMessage_failure()
164 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testDecryptMessage_overflow()
184 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testDecryptMessage_underflow()
[all …]
DTlsSessionHandshakeTest.java25 import static org.junit.Assert.assertArrayEquals;
70 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testStartHandshake()
82 assertArrayEquals(EMPTY_BYTE_ARRAY, result.data); in testStartHandshake_fail()
101 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testprocessHandshakeData_success()
131 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testprocessHandshakeData_wrapFailure()
182 assertArrayEquals(EMPTY_BYTE_ARRAY, result.data); in testprocessHandshakeData_wrapClosed()
213 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testprocessHandshakeData_wrapFinished()
228 assertArrayEquals(EMPTY_BYTE_ARRAY, result.data); in testprocessHandshakeData_notHandshaking()
247 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in testprocessHandshakeData_delegatedTasks()
266 assertArrayEquals(SAMPLE_PACKET_TLS_MESSAGE, result.data); in verifyCloseConnection()
/packages/modules/Uwb/service/support_lib/test/
DAliroTests.java19 import static org.junit.Assert.assertArrayEquals;
315 assertArrayEquals(params.getProtocolVersions().toArray(), PROTOCOL_VERSIONS); in testSpecificationParams()
316 assertArrayEquals(params.getUwbConfigs().toArray(), UWB_CONFIGS); in testSpecificationParams()
317 assertArrayEquals(params.getPulseShapeCombos().toArray(), PULSE_SHAPE_COMBOS); in testSpecificationParams()
319 assertArrayEquals(params.getChapsPerSlot().toArray(), CHAPS_PER_SLOTS); in testSpecificationParams()
320 assertArrayEquals(params.getSyncCodes().toArray(), SYNC_CODES); in testSpecificationParams()
321 assertArrayEquals(params.getChannels().toArray(), CHANNELS); in testSpecificationParams()
322 assertArrayEquals(params.getHoppingConfigModes().toArray(), HOPPING_CONFIG_MODES); in testSpecificationParams()
323 assertArrayEquals(params.getHoppingSequences().toArray(), HOPPING_SEQUENCES); in testSpecificationParams()
327 assertArrayEquals(fromBundle.getProtocolVersions().toArray(), PROTOCOL_VERSIONS); in testSpecificationParams()
[all …]
DCccTests.java19 import static org.junit.Assert.assertArrayEquals;
310 assertArrayEquals(params.getProtocolVersions().toArray(), PROTOCOL_VERSIONS); in testSpecificationParams()
311 assertArrayEquals(params.getUwbConfigs().toArray(), UWB_CONFIGS); in testSpecificationParams()
312 assertArrayEquals(params.getPulseShapeCombos().toArray(), PULSE_SHAPE_COMBOS); in testSpecificationParams()
314 assertArrayEquals(params.getChapsPerSlot().toArray(), CHAPS_PER_SLOTS); in testSpecificationParams()
315 assertArrayEquals(params.getSyncCodes().toArray(), SYNC_CODES); in testSpecificationParams()
316 assertArrayEquals(params.getChannels().toArray(), CHANNELS); in testSpecificationParams()
317 assertArrayEquals(params.getHoppingConfigModes().toArray(), HOPPING_CONFIG_MODES); in testSpecificationParams()
318 assertArrayEquals(params.getHoppingSequences().toArray(), HOPPING_SEQUENCES); in testSpecificationParams()
321 assertArrayEquals(fromBundle.getProtocolVersions().toArray(), PROTOCOL_VERSIONS); in testSpecificationParams()
[all …]
DGenericTests.java19 import static org.junit.Assert.assertArrayEquals;
199 assertArrayEquals(cccSpecificationParams.getProtocolVersions().toArray(), protocolVersions); in testSpecificationParams()
200 assertArrayEquals(cccSpecificationParams.getUwbConfigs().toArray(), uwbConfigs); in testSpecificationParams()
201 assertArrayEquals(cccSpecificationParams.getPulseShapeCombos().toArray(), pulseShapeCombos); in testSpecificationParams()
203 assertArrayEquals(cccSpecificationParams.getChapsPerSlot().toArray(), chapsPerSlots); in testSpecificationParams()
204 assertArrayEquals(cccSpecificationParams.getSyncCodes().toArray(), syncCodes); in testSpecificationParams()
205 assertArrayEquals(cccSpecificationParams.getChannels().toArray(), channels); in testSpecificationParams()
206 assertArrayEquals( in testSpecificationParams()
208 assertArrayEquals(cccSpecificationParams.getHoppingSequences().toArray(), hoppingSequences); in testSpecificationParams()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/utils/
DBigIntegerUtilsTest.java19 import static org.junit.Assert.assertArrayEquals;
39 assertArrayEquals(EXPECTED_BYTE_ARRAY_A_2, byteArrayA2); in testBigIntegerToUnsignedByteArray()
41 assertArrayEquals(EXPECTED_BYTE_ARRAY_B_2, byteArrayB2); in testBigIntegerToUnsignedByteArray()
45 assertArrayEquals(EXPECTED_BYTE_ARRAY_A_3, byteArrayA3); in testBigIntegerToUnsignedByteArray()
47 assertArrayEquals(EXPECTED_BYTE_ARRAY_B_3, byteArrayB3); in testBigIntegerToUnsignedByteArray()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DHexDumpTest.java19 import static org.junit.Assert.assertArrayEquals;
46 assertArrayEquals(new byte[]{(byte) 0xab, (byte) 0xcd, (byte) 0xef}, in testHexStringToByteArray()
48 assertArrayEquals(new byte[]{(byte) 0xAB, (byte) 0xCD, (byte) 0xEF}, in testHexStringToByteArray()
54 assertArrayEquals(new byte[]{(byte) 0xff, (byte) 0x00, (byte) 0x00, (byte) 0x04}, in testIntegerToByteArray()
60 assertArrayEquals(new byte[]{(byte) 0x7f}, HexDump.toByteArray((byte) 0x7f)); in testByteToByteArray()
DPacketBuilderTest.java32 import static org.junit.Assert.assertArrayEquals;
754 assertArrayEquals(TEST_PACKET_ETHERHDR_IPV4HDR_TCPHDR, packet.array()); in testBuildPacketEtherIPv4Tcp()
761 assertArrayEquals(TEST_PACKET_ETHERHDR_IPV4HDR_TCPHDR_DATA, in testBuildPacketEtherIPv4TcpData()
770 assertArrayEquals(TEST_PACKET_IPV4HDR_TCPHDR, packet.array()); in testBuildPacketIPv4Tcp()
778 assertArrayEquals(TEST_PACKET_IPV4HDR_TCPHDR_DATA, packet.array()); in testBuildPacketIPv4TcpData()
786 assertArrayEquals(TEST_PACKET_ETHERHDR_IPV4HDR_UDPHDR, packet.array()); in testBuildPacketEtherIPv4Udp()
793 assertArrayEquals(TEST_PACKET_ETHERHDR_IPV4HDR_UDPHDR_DATA, packet.array()); in testBuildPacketEtherIPv4UdpData()
801 assertArrayEquals(TEST_PACKET_IPV4HDR_UDPHDR, packet.array()); in testBuildPacketIPv4Udp()
809 assertArrayEquals(TEST_PACKET_IPV4HDR_UDPHDR_DATA, packet.array()); in testBuildPacketIPv4UdpData()
816 assertArrayEquals(TEST_PACKET_ETHERHDR_IPV6HDR_TCPHDR_DATA, in testBuildPacketEtherIPv6TcpData()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayloadTest.java37 import static org.junit.Assert.assertArrayEquals;
107 assertArrayEquals(notifyData, payload.notifyData); in testDecodeNotifyPayloadSpiUnset()
119 assertArrayEquals(new byte[0], payload.notifyData); in testDecodeNotifyPayloadSpiSet()
133 assertArrayEquals(expectedBytes, netDetectionData); in testGenerateNatDetectionData()
148 assertArrayEquals(cookieData, outboundCookieNotify.notifyData); in verifyHandleCookieAndGenerateCopy()
190 assertArrayEquals(new byte[] {(byte) payloadType}, notifyPayload.notifyData); in testBuildIkeErrorNotifyWithData()
200 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildIkeErrorNotifyWithoutData()
210 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildChildConfigNotify()
220 assertArrayEquals(new byte[0], notifyPayload.notifyData); in testBuildChildErrorNotify()
236 assertArrayEquals(expectedNoncePayload, byteBuffer.array()); in testEncodeNotifyPayload()
[all …]
DIkeEncryptedPayloadBodyTest.java18 import static org.junit.Assert.assertArrayEquals;
311 assertArrayEquals(mEncryptedPaddedData, calculatedData); in testEncrypt()
320 assertArrayEquals(mDataToPadAndEncrypt, calculatedPlainText); in testDecrypt()
345 assertArrayEquals(expectedEncodedData, payloadBody.encode()); in testBuildAndEncodeOutboundIkeEncryptedPayloadBody()
359 assertArrayEquals(mDataToPadAndEncrypt, payloadBody.getUnencryptedData()); in testAuthAndDecodeHmacSha1AesCbc()
377 assertArrayEquals(expectedDecryptedData, payloadBody.getUnencryptedData()); in testAuthAndDecodeHmacSha13Des()
406 assertArrayEquals(expectedEncodedData, payloadBody.encode()); in testBuildAndEncodeWithHmacSha13Des()
420 assertArrayEquals(mAesGcmUnencryptedData, encryptedBody.getUnencryptedData()); in testAuthAndDecodeFullMsgWithAesGcm()
443 assertArrayEquals(expectedEncodedData, payloadBody.encode()); in testBuildAndEncodeMsgWithAesGcm()
457 assertArrayEquals(mAesGcmFragUnencryptedData, encryptedBody.getUnencryptedData()); in testAuthAndDecodeFragMsgWithAesGcm()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DInterfaceMapValueTest.java19 import static org.junit.Assert.assertArrayEquals;
42 assertArrayEquals(IF_NAME_BYTE_WITH_PADDING, value.interfaceName); in testInterfaceMapValueFromString()
48 assertArrayEquals(IF_NAME_BYTE_WITH_PADDING, value.interfaceName); in testInterfaceMapValueFromByte()
54 assertArrayEquals(IF_NAME_BYTE_WITH_PADDING, value.interfaceName); in testInterfaceMapValueFromByteShort()
60 assertArrayEquals(IF_NAME_BYTE_WITH_PADDING, value.interfaceName); in testInterfaceMapValueFromByteLong()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DSaProposalTest.java30 import static org.junit.Assert.assertArrayEquals;
99 assertArrayEquals( in testBuildIkeSaProposalWithNormalModeCipher()
102 assertArrayEquals( in testBuildIkeSaProposalWithNormalModeCipher()
105 assertArrayEquals( in testBuildIkeSaProposalWithNormalModeCipher()
107 assertArrayEquals( in testBuildIkeSaProposalWithNormalModeCipher()
123 assertArrayEquals( in testBuildIkeSaProposalWithCombinedModeCipher()
126 assertArrayEquals( in testBuildIkeSaProposalWithCombinedModeCipher()
128 assertArrayEquals( in testBuildIkeSaProposalWithCombinedModeCipher()
153 assertArrayEquals( in testBuildChildSaProposalWithNormalCipher()
156 assertArrayEquals( in testBuildChildSaProposalWithNormalCipher()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/packets/
DNeighborAdvertisementTest.java27 import static org.junit.Assert.assertArrayEquals;
205 assertArrayEquals(na.array(), TEST_GRATUITOUS_NA); in testGratuitousNa_build()
210 assertArrayEquals(TEST_SOURCE_MAC_ADDR, na.ethHdr.srcMac.toByteArray()); in assertNeighborAdvertisement()
211 assertArrayEquals(TEST_DST_MAC_ADDR, na.ethHdr.dstMac.toByteArray()); in assertNeighborAdvertisement()
224 assertArrayEquals(TEST_SOURCE_MAC_ADDR, na.tlla.linkLayerAddress.toByteArray()); in assertNeighborAdvertisement()
234 assertArrayEquals(TEST_GRATUITOUS_NA, na.toByteBuffer().array()); in testGratuitousNa_parse()
244 assertArrayEquals(TEST_GRATUITOUS_NA_WITHOUT_TLLA, na.toByteBuffer().array()); in testGratuitousNa_parseWithoutTllaOption()
DNeighborSolicitationTest.java26 import static org.junit.Assert.assertArrayEquals;
207 assertArrayEquals(ns.array(), TEST_NEIGHBOR_SOLICITATION); in testNeighborSolicitation_build()
211 assertArrayEquals(TEST_SOURCE_MAC_ADDR, ns.ethHdr.srcMac.toByteArray()); in assertNeighborSolicitation()
212 assertArrayEquals(TEST_DST_MAC_ADDR, ns.ethHdr.dstMac.toByteArray()); in assertNeighborSolicitation()
234 assertArrayEquals(TEST_NEIGHBOR_SOLICITATION, ns.toByteBuffer().array()); in testNeighborSolicitation_parse()
244 assertArrayEquals(TEST_NEIGHBOR_SOLICITATION_WITHOUT_SLLA, ns.toByteBuffer().array()); in testNeighborSolicitation_parseWithoutSllaOption()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtMacTest.java25 import static org.junit.Assert.assertArrayEquals;
60 assertArrayEquals(new byte[MAC_LENGTH], atMac.mac); in testConstructor()
68 assertArrayEquals(MAC_BYTES, atMac.mac); in testParameterizedConstructor()
90 assertArrayEquals(MAC_BYTES, atMac.mac); in testDecode()
109 assertArrayEquals(AT_MAC, result.array()); in testEncode()
117 assertArrayEquals(RESERVED_BYTES, clearedMac.reservedBytes); in testGetAtMacWithMacCleared()
118 assertArrayEquals(new byte[MAC_LENGTH], clearedMac.mac); in testGetAtMacWithMacCleared()
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DPrivateDnsConfigTest.java23 import static org.junit.Assert.assertArrayEquals;
57 assertArrayEquals(a.ips, b.ips); in assertPrivateDnsConfigEquals()
59 assertArrayEquals(a.dohIps, b.dohIps); in assertPrivateDnsConfigEquals()
67 assertArrayEquals(parcel.ips, toStringArray(cfg.ips)); in assertParcelEquals()
71 assertArrayEquals(parcel.dohIps, toStringArray(cfg.dohIps)); in assertParcelEquals()
130 assertArrayEquals(new InetAddress[] { ip }, cfg.ips); in testIpAddressArrayIsCopied()
131 assertArrayEquals(new InetAddress[] { ip }, cfg.dohIps); in testIpAddressArrayIsCopied()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/structs/
DStructMf6cctlTest.java4 import static org.junit.Assert.assertArrayEquals;
63 assertArrayEquals(OIFSET_BYTES, mf6cctl.mf6ccIfset); in testConstructor()
84 assertArrayEquals(SOURCE.getAddress(), mf6cctl.originAddress); in testParseMf6cctl()
85 assertArrayEquals(DESTINATION.getAddress(), mf6cctl.groupAddress); in testParseMf6cctl()
87 assertArrayEquals("mf6ccIfset = " + Arrays.toString(mf6cctl.mf6ccIfset), in testParseMf6cctl()
100 assertArrayEquals("bytes = " + Arrays.toString(bytes), MSG_BYTES, bytes); in testWriteToBytes()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DCborUtilsTest.java19 import static org.junit.Assert.assertArrayEquals;
132 assertArrayEquals(new byte[] {0x04, 0x05, 0x06, 0x01, 0x02, 0x03}, certChains.get(0)); in testParseSignedCertificatesFakeData()
133 assertArrayEquals(new byte[] {0x07, 0x08, 0x09, 0x01, 0x02, 0x03}, certChains.get(1)); in testParseSignedCertificatesFakeData()
196 assertArrayEquals(mEncodedmGeekChain1, resp.getGeekChain(CborUtils.EC_CURVE_25519)); in testParseGeekResponseFakeData()
197 assertArrayEquals(mEncodedGeekChain2, resp.getGeekChain(CborUtils.EC_CURVE_P256)); in testParseGeekResponseFakeData()
198 assertArrayEquals(CHALLENGE, resp.getChallenge()); in testParseGeekResponseFakeData()
253 assertArrayEquals(mEncodedmGeekChain1, resp.getGeekChain(CborUtils.EC_CURVE_25519)); in testExtraDeviceConfigEntriesDontFail()
254 assertArrayEquals(mEncodedGeekChain2, resp.getGeekChain(CborUtils.EC_CURVE_P256)); in testExtraDeviceConfigEntriesDontFail()
255 assertArrayEquals(CHALLENGE, resp.getChallenge()); in testExtraDeviceConfigEntriesDontFail()
280 assertArrayEquals(mEncodedmGeekChain1, resp.getGeekChain(CborUtils.EC_CURVE_25519)); in testMissingDeviceConfigDoesntFail()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DSaRecordTest.java21 import static org.junit.Assert.assertArrayEquals;
205 assertArrayEquals( in testMakeIkeSaRecord()
207 assertArrayEquals( in testMakeIkeSaRecord()
210 assertArrayEquals( in testMakeIkeSaRecord()
213 assertArrayEquals( in testMakeIkeSaRecord()
216 assertArrayEquals( in testMakeIkeSaRecord()
219 assertArrayEquals( in testMakeIkeSaRecord()
221 assertArrayEquals( in testMakeIkeSaRecord()
316 assertArrayEquals( in testMakeChildSaRecord()
319 assertArrayEquals( in testMakeChildSaRecord()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiNetworkSelectionConfigTest.java23 import static org.junit.Assert.assertArrayEquals;
88 assertArrayEquals(rssi2Thresholds, parcelConfig.getRssiThresholds(WIFI_BAND_24_GHZ)); in testWifiNetworkSelectionConfigParcel()
89 assertArrayEquals(rssi5Thresholds, parcelConfig.getRssiThresholds(WIFI_BAND_5_GHZ)); in testWifiNetworkSelectionConfigParcel()
90 assertArrayEquals(rssi6Thresholds, parcelConfig.getRssiThresholds(WIFI_BAND_6_GHZ)); in testWifiNetworkSelectionConfigParcel()
158 assertArrayEquals(new int[4], config.getRssiThresholds(WIFI_BAND_24_GHZ)); in testDefaultBuilder()
159 assertArrayEquals(new int[4], config.getRssiThresholds(WIFI_BAND_5_GHZ)); in testDefaultBuilder()
160 assertArrayEquals(new int[4], config.getRssiThresholds(WIFI_BAND_6_GHZ)); in testDefaultBuilder()

12345678910>>...15