/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() 56 CertXml.parse(TestData.readTestFile("xml/valid-cert-file-no-intermediates.xml")); in parse_succeedsIfNoIntermediateCerts() 65 .containsExactly(TestData.INTERMEDIATE_CA_1, TestData.INTERMEDIATE_CA_2) in parse_checkIntermediateCerts() 74 assertThat(endpointCerts).containsAllOf(TestData.LEAF_CERT_1, TestData.LEAF_CERT_2); in parse_checkEndpointCerts() 84 TestData.readTestFile( in parse_throwsIfNoEndpointCert() 96 TestData.readTestFile( in parse_throwsIfNoRefreshInterval() 108 TestData.readTestFile( in parse_throwsIfNoSerial() 120 TestData.readTestFile( in parse_throwsIfTwoRefreshIntervals() 133 TestData.readTestFile( in parse_throwsIfTwoSerials() 144 index, TestData.DATE_ALL_CERTS_VALID, TestData.ROOT_CA_TRUSTED)) in parseAndValidateAllCerts_succeeds() [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 | 32 public final class TestData { class 36 private TestData() {} in TestData() method in TestData
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | PackageDexUsageTests.java | 53 private TestData mFooBaseUser0; 54 private TestData mFooSplit1User0; 55 private TestData mFooSplit2UsedByOtherApps0; 56 private TestData mFooSecondary1User0; 57 private TestData mFooSecondary1User1; 58 private TestData mFooSecondary2UsedByOtherApps0; 59 private TestData mInvalidIsa; 61 private TestData mBarBaseUser0; 62 private TestData mBarSecondary1User0; 63 private TestData mBarSecondary2User1; [all …]
|
D | DexManagerTests.java | 81 private TestData mFooUser0; 82 private TestData mBarUser0; 83 private TestData mBarUser1; 84 private TestData mInvalidIsa; 85 private TestData mDoesNotExist; 87 private TestData mBarUser0UnsupportedClassLoader; 88 private TestData mBarUser0DelegateLastClassLoader; 102 mFooUser0 = new TestData(foo, isa, mUser0, PATH_CLASS_LOADER_NAME); in setup() 103 mBarUser0 = new TestData(bar, isa, mUser0, PATH_CLASS_LOADER_NAME); in setup() 104 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() 113 TestData data = createMockApplicationInfo(PATH_CLASS_LOADER_NAME, true, true); in testSplitChain() 133 TestData data = createMockApplicationInfo(PATH_CLASS_LOADER_NAME, true, false); in testSplitChainNoSplitDependencies() 158 TestData data = createMockApplicationInfo(PATH_CLASS_LOADER_NAME, true, true); in testSplitChainNoIsolationNoSharedLibrary() 182 TestData data = createMockApplicationInfo( in testSplitChainNoSharedLibraries() 202 TestData data = createMockApplicationInfo(null, true, true); in testSplitChainWithNullPrimaryClassLoader() 221 TestData data = createMockApplicationInfo(PATH_CLASS_LOADER_NAME, false, false); in tesNoSplits() 232 TestData data = createMockApplicationInfo(null, false, false); in tesNoSplitsNullClassLoaderName() [all …]
|
/frameworks/support/collection/ktx/src/test/java/androidx/collection/ |
D | LruCacheTest.kt | 24 private data class TestData(val x: String = "bla") in <lambda>() dataClass 27 val cache = lruCache<String, TestData>(200, { k, (x) -> k.length * x.length }) in <lambda>() 28 cache.put("long", TestData()) in <lambda>() 33 val cache = lruCache<String, TestData>(200, create = { key -> TestData("$key foo") }) in <lambda>() 34 assertEquals(cache.get("kung"), TestData("kung foo")) in <lambda>() 40 val cache = lruCache<String, TestData>(200, onEntryRemoved = { _, _, _, _ -> in <lambda>() 43 val initial = TestData() in <lambda>()
|
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/ |
D | LruCacheTest.kt | 24 private data class TestData(val x: String = "bla") in <lambda>() dataClass 27 val cache = lruCache<String, TestData>(200, { k, (x) -> k.length * x.length }) in <lambda>() 28 cache.put("long", TestData()) in <lambda>() 33 val cache = lruCache<String, TestData>(200, create = { key -> TestData("$key foo") }) in <lambda>() 34 assertEquals(cache.get("kung"), TestData("kung foo")) in <lambda>() 40 val cache = lruCache<String, TestData>(200, onEntryRemoved = { _, _, _, _ -> in <lambda>() 43 val initial = TestData() in <lambda>()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkScoreTest.java | 45 private static class TestData { class in PasspointNetworkScoreTest 54 TestData(boolean homeProvider, boolean activeNetwork, int rssi, boolean internet, in TestData() method in PasspointNetworkScoreTest.TestData 115 private static final List<TestData> TEST_DATA_LIST = new ArrayList<>(); 133 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, false /* isActiveNetwork */, in TEST_DATA_LIST.add() 143 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, true /* isActiveNetwork */, in TEST_DATA_LIST.add() 154 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, false /* isActiveNetwork */, in TEST_DATA_LIST.add() 165 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, false /* isActiveNetwork */, in TEST_DATA_LIST.add() 176 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, false /* isActiveNetwork */, in TEST_DATA_LIST.add() 188 TEST_DATA_LIST.add(new TestData(true /* isHomeProvider */, false /* isActiveNetwork */, in TEST_DATA_LIST.add() 201 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[] = { 254 for (TestData testData : sTestDataSet) { in TEST() 274 for (TestData testData : sTestDataSet) { in TEST() 284 for (TestData testData : sTestDataSet) { in TEST() 307 for (TestData fromData : sTestDataSet) { in TEST() 308 for (TestData toData : sTestDataSet) { in TEST() 322 for (TestData fromData : sTestDataSet) { in TEST() 323 for (TestData toData : sTestDataSet) { in TEST() 334 for (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(); 278 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_succeedsWithCertFile() 285 DEFAULT_ROOT_CERT_ALIAS)).isEqualTo(TestData.CERT_PATH_1); in initRecoveryService_succeedsWithCertFile() 299 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate() 304 TestData.getCertXmlWithSerial(certSerial + 1)); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate() 312 TestData.getCertXmlWithSerial(certSerial + 2)); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate() 326 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_triesToFilterRootAlias() 347 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_usesProdCertificateForEmptyRootAlias() 367 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_usesProdCertificateForNullRootAlias() 387 TestData.getCertXmlWithSerial(certSerial)); in initRecoveryService_regeneratesCounterId() [all …]
|
D | KeySyncTaskTest.java | 272 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_doesNotSendAnythingIfNoDeviceIdIsSet() 303 TestData.getInsecureCertPathForEndpoint1()); in run_useScryptToHashPasswordInTestMode() 341 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_useSha256ToHashPatternInProdMode() 375 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_useScryptToHashPasswordInProdMode() 400 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_stillCreatesSnapshotIfNoRecoveryAgentPendingIntentRegistered() 414 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_InTestModeWithWhitelistedCredentials() 445 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_InTestModeWithNonWhitelistedCredentials() 468 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_doesNotFilterCredentialsAndAliasesInProd() 492 TEST_USER_ID, TEST_RECOVERY_AGENT_UID, TEST_ROOT_CERT_ALIAS, TestData.CERT_PATH_1); in run_replacesNullActiveRootAliasWithDefaultValue() 507 TestData.getInsecureCertPathForEndpoint1()); in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey() [all …]
|
D | TestOnlyInsecureCertificateHelperTest.java | 80 rawKeys.put(alias, TestData.generateKey()); in testKeepOnlyWhitelistedInsecureKeys_singleNonWhitelistedKey() 94 rawKeys.put(alias, TestData.generateKey()); in testKeepOnlyWhitelistedInsecureKeys_singleWhitelistedKey() 109 rawKeys.put(alias, TestData.generateKey()); in testKeepOnlyWhitelistedInsecureKeys() 112 rawKeys.put(alias, TestData.generateKey()); in testKeepOnlyWhitelistedInsecureKeys() 116 rawKeys.put(alias, TestData.generateKey()); in testKeepOnlyWhitelistedInsecureKeys()
|
/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/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverableKeyStoreDbTest.java | 36 import com.android.server.locksettings.recoverablekeystore.TestData; 409 TestData.CERT_PATH_1); in setRecoveryServiceCertPath_replaceOldValue() 411 TestData.CERT_PATH_2); in setRecoveryServiceCertPath_replaceOldValue() 413 TEST_ROOT_CERT_ALIAS)).isEqualTo(TestData.CERT_PATH_2); in setRecoveryServiceCertPath_replaceOldValue() 421 TestData.CERT_PATH_1); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() 423 TestData.CERT_PATH_1); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() 426 TEST_ROOT_CERT_ALIAS)).isEqualTo(TestData.CERT_PATH_1); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() 428 TEST_ROOT_CERT_ALIAS2)).isEqualTo(TestData.CERT_PATH_1); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() 431 TestData.CERT_PATH_2); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() 434 TEST_ROOT_CERT_ALIAS)).isEqualTo(TestData.CERT_PATH_1); in setRecoveryServiceCertPath_updateValuesForCorrectRootCert() [all …]
|
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/testing/ |
D | SelectionTrackers.java | 31 TestAdapter<String> adapter = new TestAdapter<>(TestData.createStringData(numItems)); in createStringTracker() 46 TestAdapter<Long> adapter = new TestAdapter<>(TestData.createLongData(numItems)); in createLongTracker()
|
D | TestData.java | 22 public class TestData { class
|
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/ |
D | TouchInputHandlerTest.java | 31 import androidx.recyclerview.selection.testing.TestData; 50 private static final List<String> ITEMS = TestData.createStringData(100); 79 new TestAdapter(TestData.createStringData(100))), in setUp()
|
D | RangeTest.java | 27 import androidx.recyclerview.selection.testing.TestData; 44 private static final List<String> ITEMS = TestData.createStringData(100);
|
D | MouseInputHandler_RangeTest.java | 29 import androidx.recyclerview.selection.testing.TestData; 70 new TestAdapter(TestData.createStringData(100))), in setUp()
|
D | BandSelectionHelperTest.java | 30 import androidx.recyclerview.selection.testing.TestData; 59 mItems = TestData.createStringData(10); in setup()
|
D | MouseInputHandlerTest.java | 36 import androidx.recyclerview.selection.testing.TestData; 81 new TestAdapter(TestData.createStringData(100))), in setUp()
|
/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;
|