Home
last modified time | relevance | path

Searched refs:getEncoded (Results 1 – 25 of 60) sorted by relevance

123

/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DParcelUtilTest.java64 assertArrayEquals(writeKey.getEncoded(), readKey.getEncoded()); in readWriteValidPrivateKey()
84 assertArrayEquals(writeCert.getEncoded(), readCert.getEncoded()); in readWriteValidCertificate()
109 assertArrayEquals(writeCerts[i].getEncoded(), readCerts[i].getEncoded()); in readWriteValidCertificates()
DWifiEnterpriseConfigTest.java448 assertArrayEquals(clientKey.getEncoded(), actualClientKey.getEncoded()); in parcelConfigWithKeyAndCerts()
452 assertArrayEquals(clientCert.getEncoded(), actualClientCert.getEncoded()); in parcelConfigWithKeyAndCerts()
459 assertArrayEquals(caCerts[i].getEncoded(), actualCaCerts[i].getEncoded()); in parcelConfigWithKeyAndCerts()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/provisioning/
DScriptRunnerTest.java87 ImmutableList<byte[]> cmdList = ImmutableList.of(CREATE_ADF_CMD.getEncoded()); in createAdfSuccess()
111 MANAGE_ADF_NOT_LAST_CMD.getEncoded(), in manageAdfSuccess()
112 MANAGE_ADF_LAST_CMD.getEncoded()); in manageAdfSuccess()
141 List<byte[]> cmdList = ImmutableList.of(IMPORT_ADF_CMD.getEncoded()); in importAdfSuccess()
169 DELETE_ADF_CMD.getEncoded()); in deleteAdfSuccess()
194 NOT_ALLOWED_CMD.getEncoded()); in notAllowedCmd()
206 ImmutableList<byte[]> cmdList = ImmutableList.of(CREATE_ADF_CMD.getEncoded()); in failedProvisioning()
218 ImmutableList<byte[]> cmdList = ImmutableList.of(CREATE_ADF_CMD.getEncoded()); in failedProvisioningWithException()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/
DResponderSecureChannelTest.java113 mResponderSecureChannel.processRemoteCommandOrResponse(selectCommand.getEncoded()); in openChannelSuccess()
133 mResponderSecureChannel.processRemoteCommandOrResponse(selectCommand.getEncoded()); in remoteSelectAdfWithMatchedAdfOid()
144 selectAdfCommand.getCommandApdu().getEncoded()); in remoteSelectAdfWithMatchedAdfOid()
162 mResponderSecureChannel.processRemoteCommandOrResponse(selectCommand.getEncoded()); in remoteSelectAdfWithMismatchedAdfOid()
173 selectAdfCommand.getCommandApdu().getEncoded()); in remoteSelectAdfWithMismatchedAdfOid()
189 mResponderSecureChannel.processRemoteCommandOrResponse(selectCommand.getEncoded()); in openChannelFail()
207 mResponderSecureChannel.processRemoteCommandOrResponse(selectCommand.getEncoded()); in openChannelWithException()
235 mResponderSecureChannel.processRemoteCommandOrResponse(selectCommand.getEncoded()); in openChannelSwapInAdfFailed()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/csml/
DGetLocalDataCommandTest.java35 .getCommandApdu().getEncoded(); in encodeGetLocalDataCommand()
45 .getCommandApdu().getEncoded(); in getPaList()
55 .getCommandApdu().getEncoded(); in getFiraAppletCertificates()
DInitiateTransactionCommandTest.java40 .getCommandApdu().getEncoded(); in encodeUnicastInitiateTransactionCommand()
55 .getCommandApdu().getEncoded(); in encodeMulticastInitiateTransactionCommand()
DTunnelCommandTest.java36 .getCommandApdu().getEncoded(); in encodeTunnelCommandTest()
DSwapOutAdfCommandTest.java33 .getCommandApdu().getEncoded(); in encodeSwapOutAdfCommand()
DDispatchCommandTest.java36 .getCommandApdu().getEncoded(); in encodeDispatchCommand()
DSelectAdfCommandTest.java35 .getCommandApdu().getEncoded(); in encodeSelectAdfCommand()
DDeleteAdfCommandTest.java39 .getCommandApdu().getEncoded(); in encodeDeleteAdfCommand()
DGetDoCommandTest.java39 .getCommandApdu().getEncoded(); in encodeGetDoCommandTest()
DSwapInAdfCommandTest.java37 .getCommandApdu().getEncoded(); in encodeSwapInAdfCommand()
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DBasicKeyChainServiceTest.java161 assertThat(mTestSupportService.installKeyPair(privateKeyEntry.getPrivateKey().getEncoded(), in testInstallAndRemoveKeyPair()
162 privateKeyEntry.getCertificate().getEncoded(), in testInstallAndRemoveKeyPair()
187 assertThat(mTestSupportService.installKeyPair(privateKeyEntry.getPrivateKey().getEncoded(), in testUserSelectability()
188 privateKeyEntry.getCertificate().getEncoded(), in testUserSelectability()
329 privateKeyEntry.getPrivateKey().getEncoded(), in testInstallKeyPairErrorOnAliasSelectionDeniedKey()
330 privateKeyEntry.getCertificate().getEncoded(), in testInstallKeyPairErrorOnAliasSelectionDeniedKey()
443 mTestSupportService.installKeyPair(privateKeyEntry.getPrivateKey().getEncoded(), in installTestRsaKey()
444 privateKeyEntry.getCertificate().getEncoded(), in installTestRsaKey()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeCertX509CertPayload.java62 if (certificate.getEncoded().length < certData.length) { in IkeCertX509CertPayload()
82 byteBuffer.put(certificate.getEncoded()); in encodeToByteBuffer()
96 return GENERIC_HEADER_LENGTH + CERT_ENCODING_LEN + certificate.getEncoded().length; in getPayloadLength()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/iso7816/
DCommandApduTest.java71 assertThat(cmd.getEncoded()).isEqualTo(Bytes.concat(sHex.decode("00010203ff"), cdata)); in testGetEncoded_standard()
81 assertThat(cmd.getEncoded()).isEqualTo(Bytes.concat(sHex.decode("00010203000200"), cdata)); in testGetEncoded_extended()
147 assertThat(apdu.getEncoded()).isEqualTo(sHex.decode("00010203000000")); in testExtendedLe()
151 assertThat(apdu.getEncoded()).isEqualTo(sHex.decode("00010203001234")); in testExtendedLe()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/utils/
DIkeCertUtilsTest.java75 assertArrayEquals(certBytes, cert.getEncoded()); in testCreateCertificateFromByteArray()
83 assertArrayEquals(keyBytes, key.getEncoded()); in testCreatePrivateKeyFromByteArray()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeDerAsn1DnIdentification.java95 DER_ASN1_DN_KEY, PersistableBundleUtils.fromByteArray(derAsn1Dn.getEncoded())); in toPersistableBundle()
139 return derAsn1Dn.getEncoded(); in getEncodedIdData()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DServiceProviderVerifierTest.java193 when(mX509Certificate.getEncoded()).thenReturn(testData.getBytes()); in testVerifyFingerPrintOfCertificateWithSameFingerPrintValueReturnTrue()
208 when(mX509Certificate.getEncoded()).thenReturn(testData.getBytes()); in testVerifyFingerPrintOfCertificateWithDifferentFingerPrintValueReturnFalse()
221 nameEntry.add(name.getEncoded(encoding)); in makeAltNames()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DX509UtilsTest.java60 os.write(cert.getEncoded()); in testFormatX509Certs()
66 .that(certs[i].getEncoded()) in testFormatX509Certs()
67 .isEqualTo(roundTrip[i].getEncoded()); in testFormatX509Certs()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCredentialHelper.java132 mUserKey.getEncoded()); in onSaveStates()
136 certs.add(mUserCert.getEncoded()); in onSaveStates()
139 certs.add(cert.getEncoded()); in onSaveStates()
314 mUserKey.getEncoded()); in createSystemInstallIntent()
339 bytes = caCert.getEncoded(); in installVpnAndAppsTrustAnchors()
/packages/modules/Wifi/framework/java/android/net/wifi/
DParcelUtil.java65 dest.writeByteArray(key.getEncoded()); in writePrivateKey()
102 certBytes = cert.getEncoded(); in writeCertificate()
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/
DControllerInitiatorSession.java58 getControleeInfoCommand.getCommandApdu().getEncoded()); in sendGetControleeInfoCommand()
126 putSessionDataCommand.getCommandApdu().getEncoded()); in handleTunnelGetControleeInfoResponse()
DControleeInitiatorSession.java62 putControleeInfoCommand.getCommandApdu().getEncoded()); in sendPutControleeInfoCommand()
69 tunnelData(MSG_ID_GET_SESSION_DATA, getSessionDataCommand.getCommandApdu().getEncoded()); in sendGetControleeSessionData()
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/
DCredential.java1285 Arrays.equals(key1.getEncoded(), key2.getEncoded()); in isPrivateKeyEquals()
1308 result = Arrays.equals(cert1.getEncoded(), cert2.getEncoded()); in isX509CertificateEquals()
1358 byte[] fingerprint = digester.digest(certificate.getEncoded()); in verifySha256Fingerprint()

123