Searched refs:cert1 (Results 1 – 4 of 4) sorted by relevance
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/visibilitystore/ |
D | VisibilityToDocumentConverterTest.java | 46 byte[] cert1 = new byte[32]; in testToGenericDocuments() 50 Arrays.fill(cert1, (byte) 1); in testToGenericDocuments() 57 .addAllowedPackage(new PackageIdentifier("com.example.test1", cert1)) in testToGenericDocuments() 83 .setPackageSha256Cert(ByteString.copyFrom(cert1)) in testToGenericDocuments() 152 byte[] cert1 = new byte[32]; in testToVisibilityConfig() 156 Arrays.fill(cert1, (byte) 1); in testToVisibilityConfig() 167 .setPackageSha256Cert(ByteString.copyFrom(cert1)) in testToVisibilityConfig() 270 .addAllowedPackage(new PackageIdentifier("com.example.test1", cert1)) in testToVisibilityConfig() 280 byte[] cert1 = new byte[32]; in testToGenericDocumentAndBack() 287 Arrays.fill(cert1, (byte) 1); in testToGenericDocumentAndBack() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/ |
D | KeyAttestationCertificateChainRecordTest.java | 56 byte[] cert1 = new byte[FAKE_CERT_1.length]; in test_serialize() 57 System.arraycopy(encoded, 4, cert1, 0, FAKE_CERT_1.length); in test_serialize() 58 assertArrayEquals(FAKE_CERT_1, cert1); in test_serialize() 84 assertThat(FAKE_CERT_1).isEqualTo(cert1); in test_serialize()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiEnterpriseConfigTest.java | 99 X509Certificate cert1 = FakeKeys.CA_CERT1; in testSetGetMultipleCaCertificates() local 100 mEnterpriseConfig.setCaCertificates(new X509Certificate[] {cert0, cert1}); in testSetGetMultipleCaCertificates() 103 assertTrue(result[0] == cert0 && result[1] == cert1); in testSetGetMultipleCaCertificates() 149 X509Certificate cert1 = FakeKeys.CA_CERT1; in testSetClientCertificateChain() local 150 X509Certificate[] clientChain = new X509Certificate[] {cert0, cert1}; in testSetClientCertificateChain() 154 assertTrue(result[0] == cert0 && result[1] == cert1); in testSetClientCertificateChain() 494 X509Certificate cert1 = FakeKeys.CA_CERT1; in testIsAppInstalledDeviceKeyAndCert() local 495 X509Certificate[] clientChain = new X509Certificate[] {cert0, cert1}; in testIsAppInstalledDeviceKeyAndCert() 499 assertTrue(result[0] == cert0 && result[1] == cert1); in testIsAppInstalledDeviceKeyAndCert() 534 X509Certificate cert1 = FakeKeys.CA_CERT1; in testIsAppInstalledCaCerts() local [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/ |
D | Credential.java | 1296 public static boolean isX509CertificateEquals(X509Certificate cert1, X509Certificate cert2) { in isX509CertificateEquals() argument 1297 if (cert1 == null && cert2 == null) { in isX509CertificateEquals() 1302 if (cert1 == null || cert2 == null) { in isX509CertificateEquals() 1308 result = Arrays.equals(cert1.getEncoded(), cert2.getEncoded()); in isX509CertificateEquals()
|