/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/ |
D | CertUtilsTest.java | 74 private static final PublicKey SIGNER_PUBLIC_KEY = TestData.INTERMEDIATE_CA_2.getPublicKey(); 78 InputStream f = TestData.openTestFile("pem/valid-cert.pem"); in decodeCert_readPemFile_succeeds_singleBlock() 80 assertThat(cert).isEqualTo(TestData.ROOT_CA_TRUSTED); in decodeCert_readPemFile_succeeds_singleBlock() 85 InputStream in = TestData.openTestFile("pem/valid-cert-multiple-blocks.pem"); in decodeCert_readPemFile_succeeds_multipleBlocks() 87 assertThat(cert).isEqualTo(TestData.ROOT_CA_TRUSTED); in decodeCert_readPemFile_succeeds_multipleBlocks() 92 InputStream in = TestData.openTestFile("pem/invalid-cert-1-no-begin-end.pem"); in decodeCert_readPemFile_throwsIfNoBeginEndLines() 98 InputStream in = TestData.openTestFile("pem/invalid-cert-2-empty-block.pem"); in decodeCert_readPemFile_throwsIfEmptyBlock() 104 InputStream in = TestData.openTestFile("pem/invalid-cert-3-invalid-key.pem"); in decodeCert_readPemFile_throwsIfInvalidCert() 110 X509Certificate cert = CertUtils.decodeCert(TestData.INTERMEDIATE_CA_2.getEncoded()); in decodeCert_readBytes_succeeds() 117 byte[] modifiedCertBytes = TestData.INTERMEDIATE_CA_1.getEncoded(); in decodeCert_readBytes_throwsIfInvalidCert() [all …]
|
D | CertXmlTest.java | 43 certXmlBytes = TestData.readTestFile("xml/valid-cert-file.xml"); in setUp() 55 CertXml.parse(TestData.readTestFile("xml/valid-cert-file-no-intermediates.xml")); in parse_succeedsIfNoIntermediateCerts() 64 .containsExactly(TestData.INTERMEDIATE_CA_1, TestData.INTERMEDIATE_CA_2) in parse_checkIntermediateCerts() 73 assertThat(endpointCerts).containsAllOf(TestData.LEAF_CERT_1, TestData.LEAF_CERT_2); in parse_checkEndpointCerts() 79 TestData.readTestFile( in parse_doesNotThrowIfNoRefreshInterval() 90 TestData.readTestFile( in parse_throwsIfNoEndpointCert() 102 TestData.readTestFile( in parse_throwsIfNoSerial() 114 TestData.readTestFile( in parse_throwsIfTwoSerials() 125 index, TestData.DATE_ALL_CERTS_VALID, TestData.ROOT_CA_TRUSTED)) in parseAndValidateAllCerts_succeeds() 136 TestData.DATE_ALL_CERTS_VALID, in parseAndValidate_returnsExpectedCertPath() [all …]
|
D | SigXmlTest.java | 40 certXmlBytes = TestData.readTestFile("xml/valid-cert-file.xml"); in setUp() 41 sigXmlBytes = TestData.readTestFile("xml/valid-sig-file.sig.xml"); in setUp() 48 TestData.ROOT_CA_TRUSTED, certXmlBytes, TestData.DATE_ALL_CERTS_VALID); in parseAndVerifyFileSignature_succeeds() 58 TestData.ROOT_CA_TRUSTED, certXmlBytes, in parseAndVerifyFileSignature_throwsIfExpiredCert() 59 TestData.DATE_INTERMEDIATE_CA_2_EXPIRED)); in parseAndVerifyFileSignature_throwsIfExpiredCert() 72 TestData.ROOT_CA_TRUSTED, modifiedBytes, in parseAndVerifyFileSignature_throwsIfInvalidSignature() 73 TestData.DATE_ALL_CERTS_VALID)); in parseAndVerifyFileSignature_throwsIfInvalidSignature() 84 TestData.ROOT_CA_DIFFERENT_COMMON_NAME, in parseAndVerifyFileSignature_throwsIfRootCertWithWrongCommonName() 86 TestData.DATE_ALL_CERTS_VALID)); in parseAndVerifyFileSignature_throwsIfRootCertWithWrongCommonName() 91 SigXml.parse(TestData.readTestFile("xml/valid-sig-file-no-intermediates.sig.xml")); in parse_succeedsWithoutIntermediateCerts() [all …]
|
D | TestData.java | 33 public final class TestData { class 37 private TestData() {} in TestData() method in TestData
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | PackageDexUsageTests.java | 59 private TestData mFooBaseUser0; 60 private TestData mFooSplit1User0; 61 private TestData mFooSplit2UsedByOtherApps0; 62 private TestData mFooSecondary1User0; 63 private TestData mFooSecondary1User1; 64 private TestData mFooSecondary2UsedByOtherApps0; 65 private TestData mInvalidIsa; 67 private TestData mBarBaseUser0; 68 private TestData mBarSecondary1User0; 69 private TestData mBarSecondary2User1; [all …]
|
D | DexManagerTests.java | 79 private TestData mFooUser0; 80 private TestData mBarUser0; 81 private TestData mBarUser1; 82 private TestData mInvalidIsa; 83 private TestData mDoesNotExist; 85 private TestData mBarUser0UnsupportedClassLoader; 86 private TestData mBarUser0DelegateLastClassLoader; 100 mFooUser0 = new TestData(foo, isa, mUser0, PATH_CLASS_LOADER_NAME); in setup() 101 mBarUser0 = new TestData(bar, isa, mUser0, PATH_CLASS_LOADER_NAME); in setup() 102 mBarUser1 = new TestData(bar, isa, mUser1, PATH_CLASS_LOADER_NAME); in setup() [all …]
|
D | DexoptUtilsTest.java | 53 private static class TestData { class in DexoptUtilsTest 58 private TestData createMockApplicationInfo(String baseClassLoader, boolean addSplits, in createMockApplicationInfo() 105 TestData data = new TestData(); in createMockApplicationInfo() 121 TestData data = createMockApplicationInfo(PATH_CLASS_LOADER_NAME, true, true); in testSplitChain() 142 TestData data = createMockApplicationInfo(PATH_CLASS_LOADER_NAME, true, false); in testSplitChainNoSplitDependencies() 170 TestData data = createMockApplicationInfo(PATH_CLASS_LOADER_NAME, true, true); in testSplitChainNoIsolationNoSharedLibrary() 194 TestData data = createMockApplicationInfo( in testSplitChainNoSharedLibraries() 214 TestData data = createMockApplicationInfo(null, true, true); in testSplitChainWithNullPrimaryClassLoader() 236 TestData data = createMockApplicationInfo(PATH_CLASS_LOADER_NAME, false, false); in tesNoSplits() 248 TestData data = createMockApplicationInfo(null, false, false); in tesNoSplitsNullClassLoaderName() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkScoreTest.java | 46 private static class TestData { class in PasspointNetworkScoreTest 55 TestData(boolean homeProvider, boolean activeNetwork, int rssi, boolean internet, in TestData() method in PasspointNetworkScoreTest.TestData 116 private static final List<TestData> TEST_DATA_LIST = new ArrayList<>(); 134 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, false /* isActiveNetwork */, in TEST_DATA_LIST.add() 144 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, true /* isActiveNetwork */, in TEST_DATA_LIST.add() 155 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, false /* isActiveNetwork */, in TEST_DATA_LIST.add() 166 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, false /* isActiveNetwork */, in TEST_DATA_LIST.add() 177 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, false /* isActiveNetwork */, in TEST_DATA_LIST.add() 189 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, false /* isActiveNetwork */, in TEST_DATA_LIST.add() 202 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, false /* isActiveNetwork */, in TEST_DATA_LIST.add() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | PathInterpolatorTests.cpp | 24 struct TestData { struct 31 const static TestData sTestDataSet[] = { 73 static std::vector<float> getX(const TestData& data) { in getX() 77 static std::vector<float> getY(const TestData& data) { in getY() 82 for (const TestData& data : sTestDataSet) { in TEST()
|
D | VectorDrawableTests.cpp | 29 struct TestData { struct 35 const static TestData sTestDataSet[] = { 257 for (const TestData& testData : sTestDataSet) { in TEST() 277 for (const TestData& testData : sTestDataSet) { in TEST() 287 for (const TestData& testData : sTestDataSet) { in TEST() 310 for (const TestData& fromData : sTestDataSet) { in TEST() 311 for (const TestData& toData : sTestDataSet) { in TEST() 325 for (const TestData& fromData : sTestDataSet) { in TEST() 326 for (const TestData& toData : sTestDataSet) { in TEST() 337 for (const TestData& fromData : sTestDataSet) { in TEST()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverableKeyStoreManagerTest.java | 104 private static final byte[] TEST_PUBLIC_KEY = TestData.CERT_1_PUBLIC_KEY.getEncoded(); 354 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_succeedsWithCertFile() 361 DEFAULT_ROOT_CERT_ALIAS)).isEqualTo(TestData.CERT_PATH_1); in initRecoveryService_succeedsWithCertFile() 375 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate() 380 TestData.getCertXmlWithSerial(certSerial + 1)); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate() 388 TestData.getCertXmlWithSerial(certSerial + 2)); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate() 402 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_triesToFilterRootAlias() 423 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_usesProdCertificateForEmptyRootAlias() 443 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_usesProdCertificateForNullRootAlias() 463 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_regeneratesCounterId() [all …]
|
D | KeySyncTaskTest.java | 280 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_doesNotSendAnythingIfNoDeviceIdIsSet() 311 TestData.getInsecureCertPathForEndpoint1()); in run_useScryptToHashPasswordInTestMode() 349 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_useSha256ToHashPatternInProdMode() 383 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_useScryptToHashPasswordInProdMode() 408 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_stillCreatesSnapshotIfNoRecoveryAgentPendingIntentRegistered() 422 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_InTestModeWithWhitelistedCredentials() 453 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_InTestModeWithNonWhitelistedCredentials() 476 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_doesNotFilterCredentialsAndAliasesInProd() 500 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_replacesNullActiveRootAliasWithDefaultValue() 515 TestData.getInsecureCertPathForEndpoint1()); in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey() [all …]
|
D | TestOnlyInsecureCertificateHelperTest.java | 83 rawKeys.put(alias, Pair.create(TestData.generateKey(), /*metadata=*/ null)); in testKeepOnlyWhitelistedInsecureKeys_singleNonWhitelistedKey() 97 rawKeys.put(alias, Pair.create(TestData.generateKey(), /*metadata=*/ null)); in testKeepOnlyWhitelistedInsecureKeys_singleWhitelistedKey() 112 rawKeys.put(alias, Pair.create(TestData.generateKey(), /*metadata=*/ null)); in testKeepOnlyWhitelistedInsecureKeys() 115 rawKeys.put(alias, Pair.create(TestData.generateKey(), /*metadata=*/ null)); in testKeepOnlyWhitelistedInsecureKeys() 119 rawKeys.put(alias, Pair.create(TestData.generateKey(), /*metadata=*/ null)); in testKeepOnlyWhitelistedInsecureKeys()
|
D | TestData.java | 38 public final class TestData { class
|
/frameworks/base/tools/aapt2/filter/ |
D | AbiFilter_test.cpp | 28 struct TestData { struct 33 const TestData kTestData[] = { 55 class AbiFilterTest : public ::testing::TestWithParam<TestData> {}; 59 const TestData& data = GetParam(); in TEST_P()
|
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/ |
D | RecoveryCertPathTest.java | 39 TestData.getThmCertPath()); in createRecoveryCertPath_getCertPath_succeeds() 40 assertEquals(TestData.getThmCertPath(), recoveryCertPath.getCertPath()); in createRecoveryCertPath_getCertPath_succeeds() 63 RecoveryCertPath.createRecoveryCertPath(TestData.getThmCertPath())); in writeToParcel_writesCertPath() 64 assertEquals(TestData.getThmCertPath(), recoveryCertPath.getCertPath()); in writeToParcel_writesCertPath()
|
D | TestData.java | 25 class TestData { class
|
D | KeyChainSnapshotTest.java | 49 private static final CertPath CERT_PATH = TestData.getThmCertPath();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbTest.java | 33 import com.android.server.locksettings.recoverablekeystore.TestData; 557 TestData.CERT_PATH_1); in setRecoveryServiceCertPath_replaceOldValue() 559 TestData.CERT_PATH_2); in setRecoveryServiceCertPath_replaceOldValue() 561 TEST_ROOT_CERT_ALIAS)).isEqualTo(TestData.CERT_PATH_2); in setRecoveryServiceCertPath_replaceOldValue() 569 TestData.CERT_PATH_1); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() 571 TestData.CERT_PATH_1); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() 574 TEST_ROOT_CERT_ALIAS)).isEqualTo(TestData.CERT_PATH_1); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() 576 TEST_ROOT_CERT_ALIAS2)).isEqualTo(TestData.CERT_PATH_1); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() 579 TestData.CERT_PATH_2); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() 582 TEST_ROOT_CERT_ALIAS)).isEqualTo(TestData.CERT_PATH_1); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() [all …]
|
D | RecoverySnapshotStorageTest.java | 20 import com.android.server.locksettings.recoverablekeystore.TestData; 43 private static final CertPath CERT_PATH = TestData.CERT_PATH_2;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/serialization/ |
D | KeyChainSnapshotSerializerTest.java | 29 import com.android.server.locksettings.recoverablekeystore.TestData; 48 private static final CertPath CERT_PATH = TestData.CERT_PATH_1;
|