/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | TestInvocationTest.java | 93 import com.android.tradefed.testtype.IRemoteTest; 346 IRemoteTest test = EasyMock.createMock(IRemoteTest.class); in testInvoke_RemoteTest() 366 IRemoteTest test = EasyMock.createMock(IRemoteTest.class); in testInvokeMulti_RemoteTest() 388 IRemoteTest test = EasyMock.createMock(IRemoteTest.class); in testInvoke_twoSummary() 420 IRemoteTest test = EasyMock.createMock(IRemoteTest.class); in testInvoke_buildFailed() 530 IRemoteTest test = EasyMock.createMock(IRemoteTest.class); in testInvoke_noBuild_noHostLog() 580 IRemoteTest test = EasyMock.createMock(IRemoteTest.class); in testInvoke_testFail() 604 IRemoteTest test = EasyMock.createMock(IRemoteTest.class); in testInvoke_metricsCollectedWhenStopped() 630 IRemoteTest test = EasyMock.createMock(IRemoteTest.class); in testInvoke_fatalError() 655 IRemoteTest test = EasyMock.createMock(IRemoteTest.class); in testInvoke_deviceNotAvail() [all …]
|
D | InvocationExecutionTest.java | 52 import com.android.tradefed.testtype.IRemoteTest; 164 private static class RemoteTestCollector implements IRemoteTest, IMetricCollectorReceiver { 208 List<IRemoteTest> tests = new ArrayList<>(); in testRun_autoRetry() 238 List<IRemoteTest> tests = new ArrayList<>(); in testRun_autoRetry_throughForwarder() 268 List<IRemoteTest> tests = new ArrayList<>(); in testRun_metricCollectors() 273 new IRemoteTest() { in testRun_metricCollectors() 291 List<IRemoteTest> tests = new ArrayList<>(); in testRun_metricCollectors_auto()
|
D | UnexecutedTestReporterThreadTest.java | 22 import com.android.tradefed.testtype.IRemoteTest; 41 private List<IRemoteTest> mTests; 59 IRemoteTest test = new TestReport(); in testOneTests() 69 IRemoteTest test = new TestReport(); in testSeveralTests_oneReporter() 77 class TestReport implements IRemoteTest, IReportNotExecuted {
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/ |
D | StrictShardHelper.java | 28 import com.android.tradefed.testtype.IRemoteTest; 61 List<IRemoteTest> listAllTests = getAllTests(config, shardCount, testInfo, logger); in shardConfig() 64 List<IRemoteTest> splitList; in shardConfig() 84 private List<IRemoteTest> getAllTests( in getAllTests() 89 List<IRemoteTest> allTests = new ArrayList<>(); in getAllTests() 90 for (IRemoteTest test : config.getTests()) { in getAllTests() 112 Collection<IRemoteTest> subTests = in getAllTests() 143 protected List<List<IRemoteTest>> splitTests(List<IRemoteTest> fullList, int shardCount) { in splitTests() 144 List<List<IRemoteTest>> shards = new ArrayList<>(); in splitTests() 165 private List<List<IRemoteTest>> balancedDistrib( in balancedDistrib() [all …]
|
D | TestsPoolPoller.java | 48 import com.android.tradefed.testtype.IRemoteTest; 71 implements IRemoteTest, 78 private Collection<IRemoteTest> mGenericPool; 96 public TestsPoolPoller(Collection<IRemoteTest> tests, CountDownLatch tracker) { in TestsPoolPoller() 102 Collection<IRemoteTest> tests, in TestsPoolPoller() 111 IRemoteTest poll() { in poll() 116 private IRemoteTest poll(boolean reportNotExecuted) { in poll() 152 IRemoteTest test = mGenericPool.iterator().next(); in poll() 184 IRemoteTest test = poll(); in run() 264 ITestLogger logger, DeviceNotAvailableException originalException, IRemoteTest test) in HandleDeviceNotAvailable() [all …]
|
D | ShardHelper.java | 43 import com.android.tradefed.testtype.IRemoteTest; 108 List<IRemoteTest> shardableTests = new ArrayList<IRemoteTest>(); in shardConfig() 111 for (IRemoteTest test : config.getTests()) { in shardConfig() 167 for (IRemoteTest testShard : shardableTests) { in shardConfig() 281 List<IRemoteTest> shardableTests, in shardTest() 282 IRemoteTest test, in shardTest() 303 Collection<IRemoteTest> shards = null; in shardTest() 362 private Collection<ITokenRequest> extractTokenTests(Collection<IRemoteTest> shardableTests) { in extractTokenTests() 364 Iterator<IRemoteTest> itr = new ArrayList<>(shardableTests).iterator(); in extractTokenTests() 367 IRemoteTest test = itr.next(); in extractTokenTests()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/ |
D | StrictShardHelperTest.java | 44 import com.android.tradefed.testtype.IRemoteTest; 173 IRemoteTest test = in testShardConfig_internal_shardIndex_notShardable_shard0() 174 new IRemoteTest() { in testShardConfig_internal_shardIndex_notShardable_shard0() 204 IRemoteTest test = in testShardConfig_internal_shardIndex_notShardable_shard1() 205 new IRemoteTest() { in testShardConfig_internal_shardIndex_notShardable_shard1() 226 private IRemoteTest mForceTest = null; 234 public SplitITestSuite(String name, IRemoteTest test) { in SplitITestSuite() 264 private List<IRemoteTest> testShard(int shardIndex) throws Exception { in testShard() 266 List<IRemoteTest> test = new ArrayList<>(); in testShard() 291 List<IRemoteTest> res = testShard(0); in testMergeSuite_shard0() [all …]
|
D | TestsPoolPollerTest.java | 44 import com.android.tradefed.testtype.IRemoteTest; 94 List<IRemoteTest> testsList = new ArrayList<>(); in testMultiPolling() 126 List<IRemoteTest> testsList = new ArrayList<>(); in testPollingRun() 129 IRemoteTest test = new StubTest(); in testPollingRun() 155 List<IRemoteTest> testsList = new ArrayList<>(); in testRun_runtimeException() 157 IRemoteTest badTest = new StubTest(); in testRun_runtimeException() 164 IRemoteTest test = new StubTest(); in testRun_runtimeException() 186 List<IRemoteTest> testsList = new ArrayList<>(); in testRun_deviceUnresponsive() 188 IRemoteTest badTest = new StubTest(); in testRun_deviceUnresponsive() 195 IRemoteTest test = new StubTest(); in testRun_deviceUnresponsive() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ModuleDefinitionTest.java | 71 import com.android.tradefed.testtype.IRemoteTest; 104 private List<IRemoteTest> mTestList; 120 extends IRemoteTest, IBuildReceiver, IDeviceTest, IConfigurationReceiver {} 201 private class MultiRunTestObject implements IRemoteTest, ITestFilterReceiver { 286 private class DirectFailureTestObject implements IRemoteTest { 342 for (IRemoteTest test : mTestList) { in replayMocks() 357 for (IRemoteTest test : mTestList) { in verifyMocks() 505 List<IRemoteTest> testList = new ArrayList<>(); in testRun_aggregateRunFailures() 900 List<IRemoteTest> testList = new ArrayList<>(); in testRun_fullPass() 950 List<IRemoteTest> testList = new ArrayList<>(); in testRun_partialRun() [all …]
|
D | ModuleMergerTest.java | 29 import com.android.tradefed.testtype.IRemoteTest; 71 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testPartOfSameSuite_notSplittedYet2() 83 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testPartOfSameSuite_sameSuite() 84 Iterator<IRemoteTest> ite = res1.iterator(); in testPartOfSameSuite_sameSuite() 96 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testPartOfSameSuite_notSameSuite() 98 Collection<IRemoteTest> res2 = suite2.split(2, mTestInfo); in testPartOfSameSuite_notSameSuite() 127 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testMergeSplittedITestSuite_notSplittedYet2() 144 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testMergeSplittedITestSuite_splittedSuiteFromDifferentModules() 146 Collection<IRemoteTest> res2 = suite2.split(2, mTestInfo); in testMergeSplittedITestSuite_splittedSuiteFromDifferentModules() 163 Collection<IRemoteTest> res1 = suite1.split(2, mTestInfo); in testMergeSplittedITestSuite() [all …]
|
D | ITestSuiteTest.java | 75 import com.android.tradefed.testtype.IRemoteTest; 192 implements IRemoteTest, IConfigurationReceiver, ITestFilterReceiver { 839 Collection<IRemoteTest> tests = mTestSuite.split(3, mTestInfo); in testShardModules_notShardable() 841 for (IRemoteTest test : tests) { in testShardModules_notShardable() 849 Collection<IRemoteTest> tests = mTestSuite.split(2, mTestInfo); in testGetTestShard_onlyOneTest() 851 for (IRemoteTest test : tests) { in testGetTestShard_onlyOneTest() 863 Collection<IRemoteTest> tests = mTestSuite.split(3, mTestInfo); in testGetRuntimeHint() 864 for (IRemoteTest test : tests) { in testGetRuntimeHint() 1386 List<IRemoteTest> tests = new ArrayList<>(); in testWhiteListFiltering() 1398 List<IRemoteTest> tests = new ArrayList<>(); in testWhiteListFiltering_empty() [all …]
|
D | ITestSuiteIntegrationTest.java | 55 import com.android.tradefed.testtype.IRemoteTest; 212 for (IRemoteTest test : config.getTests()) { in loadTests() 416 for (IRemoteTest test : config.getTests()) { in scheduleConfig() 459 for (IRemoteTest test : config.getTests()) { in scheduleConfig() 623 for (IRemoteTest test : config.getTests()) { in testRun_sharding_withIndex() 703 for (IRemoteTest test : config.getTests()) { in helperTestShardIndex()
|
D | GranularRetriableTestWrapperTest.java | 49 import com.android.tradefed.testtype.IRemoteTest; 77 private class BasicFakeTest implements IRemoteTest { 265 IRemoteTest test, int maxRunCount) throws Exception { in createGranularTestWrapper() 270 IRemoteTest test, int maxRunCount, List<IMetricCollector> collectors) throws Exception { in createGranularTestWrapper() 304 IRemoteTest mockTest = Mockito.mock(IRemoteTest.class); in testIntraModuleRun_catchDeviceNotAvailableException()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | HostTest.java | 99 IRemoteTest, 349 if (IRemoteTest.class.isAssignableFrom(classObj) in countTestCases() 354 && IRemoteTest.class.isAssignableFrom(classObj) in countTestCases() 559 if (IRemoteTest.class.isAssignableFrom(classObj)) { in runTestClasses() 560 IRemoteTest test = (IRemoteTest) loadObject(classObj); in runTestClasses() 611 if (IRemoteTest.class.isInstance(obj)) { in runTestCases() 612 IRemoteTest test = (IRemoteTest) obj; in runTestCases() 643 private void runRemoteTest(ITestInvocationListener listener, IRemoteTest test) in runRemoteTest() 854 if (IRemoteTest.class.isInstance(testObj)) { in getTestMethods() 859 } else if (IRemoteTest.class.isAssignableFrom(classObj)) { in getTestMethods() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | JarHostTestTest.java | 148 List<IRemoteTest> tests = new ArrayList<>(mTest.split(5, mTestInfo)); in testSplit_withJar() 154 IRemoteTest shard1 = tests.get(0); in testSplit_withJar() 161 IRemoteTest shard2 = tests.get(1); in testSplit_withJar() 168 IRemoteTest shard3 = tests.get(2); in testSplit_withJar() 175 IRemoteTest shard4 = tests.get(3); in testSplit_withJar() 182 IRemoteTest shard5 = tests.get(4); in testSplit_withJar() 189 IRemoteTest shard6 = tests.get(5); in testSplit_withJar() 196 IRemoteTest shard7 = tests.get(6); in testSplit_withJar() 203 IRemoteTest shard8 = tests.get(7); in testSplit_withJar()
|
D | HostTestTest.java | 494 public static class TestRemoteNotCollector implements IDeviceTest, IRemoteTest { 1660 List<IRemoteTest> list = (ArrayList<IRemoteTest>) mHostTest.split(1, mTestInfo); in testRun_junit_suite_split() 1719 List<IRemoteTest> list = in testRun_junit_suite_split_by_method() 1720 (ArrayList<IRemoteTest>) mHostTest.split(expectedTestCaseClasses.length, mTestInfo); in testRun_junit_suite_split_by_method() 1723 IRemoteTest shard = list.get(i); in testRun_junit_suite_split_by_method() 1815 IRemoteTest shard; in testGetTestShardable_wrapping_shardUnit_method() 1990 Collection<IRemoteTest> res = mHostTest.split(1, mTestInfo); in testSplit_withExclude() 2021 for (IRemoteTest test : res) { in testSplit_withExclude() 2144 Collection<IRemoteTest> res = mHostTest.split(expectedTids.length, mTestInfo); in testSplit_excludeFilter_shardUnit_Method() 2156 for (IRemoteTest test : res) { in testSplit_excludeFilter_shardUnit_Method() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ModuleDefinition.java | 73 import com.android.tradefed.testtype.IRemoteTest; 130 private Collection<IRemoteTest> mTests = null; 173 Collection<IRemoteTest> tests, in ModuleDefinition() 221 IRemoteTest poll() { in poll() 226 IRemoteTest test = mTests.iterator().next(); in poll() 236 void addTests(List<IRemoteTest> test) { in addTests() 417 IRemoteTest test = poll(); in run() 599 IRemoteTest test, in prepareGranularRetriableWrapper() 968 for (IRemoteTest test : mTests) { in getRuntimeHint() 980 List<IRemoteTest> getTests() { in getTests()
|
D | ModuleSplitter.java | 28 import com.android.tradefed.testtype.IRemoteTest; 113 List<IRemoteTest> tests = config.getTests(); in createAndAddModule() 142 for (IRemoteTest test : tests) { in createAndAddModule() 144 Collection<IRemoteTest> shardedTests = in createAndAddModule() 162 for (IRemoteTest moduleTest : shardedTests) { in createAndAddModule() 182 IRemoteTest test, in addModuleToListFromSingleTest() 185 List<IRemoteTest> testList = new ArrayList<>(); in addModuleToListFromSingleTest()
|
D | ITestSuite.java | 64 import com.android.tradefed.testtype.IRemoteTest; 101 implements IRemoteTest, 374 for (IRemoteTest test : config.getTests()) { in applyGuiceInjection() 926 public Collection<IRemoteTest> split(Integer shardCountHint, TestInformation testInfo) { in split() 964 List<IRemoteTest> splitTests = new ArrayList<>(); in split() 987 for (IRemoteTest test : config.getTests()) { in injectInfo() 1391 Iterator<IRemoteTest> iterator = config.getTests().iterator(); in filterByRunnerType() 1393 IRemoteTest test = iterator.next(); in filterByRunnerType()
|
D | TfSuiteRunner.java | 31 import com.android.tradefed.testtype.IRemoteTest; 153 for (IRemoteTest test : testConfig.getTests()) { in loadTests() 190 for (IRemoteTest test : testConfig.getTests()) { in canRunMultipleAbis() 220 List<IRemoteTest> tests = new ArrayList<>(config.getTests()); in expandTestSuites() 234 for (IRemoteTest test : tests) { in expandTestSuites()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | Configuration.java | 43 import com.android.tradefed.testtype.IRemoteTest; 158 sObjTypeMap.put(TEST_TYPE_NAME, new ObjTypeInfo(IRemoteTest.class, true)); in getObjTypeMap() 322 public List<IRemoteTest> getTests() { in getTests() 323 return (List<IRemoteTest>) getConfigurationObjectList(TEST_TYPE_NAME); in getTests() 853 public void setTest(IRemoteTest test) { in setTest() 861 public void setTests(List<IRemoteTest> tests) { in setTests() 1432 for (IRemoteTest test : getTests()) { in dumpXml()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/ |
D | ExecutableBaseTest.java | 29 import com.android.tradefed.testtype.IRemoteTest; 52 implements IRemoteTest, 267 public final Collection<IRemoteTest> split() { in split() 272 Collection<IRemoteTest> tests = new ArrayList<>(); in split() 292 private IRemoteTest getTestShard(String binaryPath, String testName, String cmd) { in getTestShard()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/ |
D | RetryRescheduler.java | 41 import com.android.tradefed.testtype.IRemoteTest; 63 public final class RetryRescheduler implements IRemoteTest, IConfigurationReceiver { 176 IRemoteTest test = originalConfig.getTests().get(0); in run() 350 List<IRemoteTest> tests = config.getTests(); in updateConfiguration() 351 List<IRemoteTest> newList = new ArrayList<>(); in updateConfiguration()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | IShardableTest.java | 28 public interface IShardableTest extends IRemoteTest { 42 public default Collection<IRemoteTest> split() { in split() 54 public default Collection<IRemoteTest> split(int shardCountHint) { in split() 68 public default Collection<IRemoteTest> split(Integer shardCountHint, TestInformation testInfo) { in split()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | UnexecutedTestReporterThread.java | 19 import com.android.tradefed.testtype.IRemoteTest; 28 private final List<IRemoteTest> mTests; 30 UnexecutedTestReporterThread(ITestInvocationListener listener, List<IRemoteTest> tests) { in UnexecutedTestReporterThread() 37 for (IRemoteTest test : mTests) { in run()
|