/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | ParcelUtilTest.java | 64 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()
|
D | WifiEnterpriseConfigTest.java | 448 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/ |
D | ScriptRunnerTest.java | 87 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/ |
D | ResponderSecureChannelTest.java | 113 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/ |
D | GetLocalDataCommandTest.java | 35 .getCommandApdu().getEncoded(); in encodeGetLocalDataCommand() 45 .getCommandApdu().getEncoded(); in getPaList() 55 .getCommandApdu().getEncoded(); in getFiraAppletCertificates()
|
D | InitiateTransactionCommandTest.java | 40 .getCommandApdu().getEncoded(); in encodeUnicastInitiateTransactionCommand() 55 .getCommandApdu().getEncoded(); in encodeMulticastInitiateTransactionCommand()
|
D | TunnelCommandTest.java | 36 .getCommandApdu().getEncoded(); in encodeTunnelCommandTest()
|
D | SwapOutAdfCommandTest.java | 33 .getCommandApdu().getEncoded(); in encodeSwapOutAdfCommand()
|
D | DispatchCommandTest.java | 36 .getCommandApdu().getEncoded(); in encodeDispatchCommand()
|
D | SelectAdfCommandTest.java | 35 .getCommandApdu().getEncoded(); in encodeSelectAdfCommand()
|
D | DeleteAdfCommandTest.java | 39 .getCommandApdu().getEncoded(); in encodeDeleteAdfCommand()
|
D | GetDoCommandTest.java | 39 .getCommandApdu().getEncoded(); in encodeGetDoCommandTest()
|
D | SwapInAdfCommandTest.java | 37 .getCommandApdu().getEncoded(); in encodeSwapInAdfCommand()
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
D | BasicKeyChainServiceTest.java | 161 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/ |
D | IkeCertX509CertPayload.java | 62 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/ |
D | CommandApduTest.java | 71 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/ |
D | IkeCertUtilsTest.java | 75 assertArrayEquals(certBytes, cert.getEncoded()); in testCreateCertificateFromByteArray() 83 assertArrayEquals(keyBytes, key.getEncoded()); in testCreatePrivateKeyFromByteArray()
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | IkeDerAsn1DnIdentification.java | 95 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/ |
D | ServiceProviderVerifierTest.java | 193 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/ |
D | X509UtilsTest.java | 60 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/ |
D | CredentialHelper.java | 132 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/ |
D | ParcelUtil.java | 65 dest.writeByteArray(key.getEncoded()); in writePrivateKey() 102 certBytes = cert.getEncoded(); in writeCertificate()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/ |
D | ControllerInitiatorSession.java | 58 getControleeInfoCommand.getCommandApdu().getEncoded()); in sendGetControleeInfoCommand() 126 putSessionDataCommand.getCommandApdu().getEncoded()); in handleTunnelGetControleeInfoResponse()
|
D | ControleeInitiatorSession.java | 62 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/ |
D | Credential.java | 1285 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()
|