Home
last modified time | relevance | path

Searched refs:shardIndex (Results 1 – 14 of 14) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/testtype/
DVersionedTfLauncher.java55 private VersionedTfLauncher(int shardCount, int shardIndex) { in VersionedTfLauncher() argument
58 mShardIndex = shardIndex; in VersionedTfLauncher()
118 public IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument
119 IRemoteTest shard = new VersionedTfLauncher(shardCount, shardIndex); in getTestShard()
DCodeCoverageTestBase.java210 for (int shardIndex = 0; shardIndex < numShards; shardIndex++) { in run()
212 TestRunResult result = runTest(target, shardIndex, numShards, coverageListener); in run()
223 for (TestDescription identifier : collectTests(target, shardIndex, numShards)) { in run()
338 InstrumentationTarget target, int shardIndex, int numShards) in collectTests() argument
342 IRemoteAndroidTestRunner runner = createTestRunner(target, shardIndex, numShards); in collectTests()
359 int shardIndex, int numShards) { in createTestRunner() argument
372 ret.addInstrumentationArg("shardIndex", Integer.toString(shardIndex)); in createTestRunner()
394 TestRunResult runTest(InstrumentationTarget target, int shardIndex, int numShards, in runTest() argument
396 return runTest(createTest(target, shardIndex, numShards), listener); in runTest()
462 InstrumentationTest createTest(InstrumentationTarget target, int shardIndex, int numShards) { in createTest() argument
[all …]
DIStrictShardableTest.java33 IRemoteTest getTestShard(int shardCount, int shardIndex); in getTestShard() argument
DInstalledInstrumentationsTest.java231 void setShardIndex(int shardIndex) { in setShardIndex() argument
232 mShardIndex = shardIndex; in setShardIndex()
404 public IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument
412 shard.mShardIndex = shardIndex; in getTestShard()
DGTest.java248 void setShardIndex(int shardIndex) { in setShardIndex() argument
249 mShardIndex = shardIndex; in setShardIndex()
673 public IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument
676 shard.mShardIndex = shardIndex; in getTestShard()
DAndroidJUnitTest.java438 public IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument
451 shard.mShardIndex = shardIndex; in getTestShard()
DHostTest.java1029 public IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument
1037 HostTest test = createTestShard(shardCount, shardIndex); in getTestShard()
1064 private HostTest createTestShard(int shardCount, int shardIndex) { in createTestShard() argument
1070 if (i % shardCount == shardIndex) { in createTestShard()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DStrictShardHelper.java48 Integer shardIndex = config.getCommandOptions().getShardIndex(); in shardConfig() local
50 if (shardIndex == null) { in shardConfig()
54 throw new RuntimeException("shard-count is null while shard-index is " + shardIndex); in shardConfig()
60 updateConfigIfSharded(config, shardCount, shardIndex); in shardConfig()
70 splitList = splitTests(listAllTests, shardCount).get(shardIndex); in shardConfig()
79 private void updateConfigIfSharded(IConfiguration config, int shardCount, int shardIndex) { in updateConfigIfSharded() argument
86 if (shardIndex == 0) { in updateConfigIfSharded()
92 ((IStrictShardableTest) test).getTestShard(shardCount, shardIndex); in updateConfigIfSharded()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DShardMasterResultForwarder.java51 private int shardIndex = 0; field in ShardMasterResultForwarder
78 mOriginalContext.addSerialsFromShard(shardIndex, context.getSerials()); in invocationStarted()
80 shardIndex++; in invocationStarted()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DCodeCoverageTestBaseTest.java135 T get(String packageName, String runnerName, int shardIndex, int numShards); in get() argument
739 for (int shardIndex = 0; shardIndex < numShards; shardIndex++) {
742 mCoverageTest.collectTests(target, shardIndex, numShards);
743 assertThat(collectedTests).containsExactlyElementsIn(shards.get(shardIndex));
784 int shardIndex = 3;
789 (FakeTestRunner) mCoverageTest.createTestRunner(target, shardIndex, numShards);
792 assertThat(runner.getArgs()).containsEntry("shardIndex", Integer.toString(shardIndex));
832 int shardIndex = 3;
836 InstrumentationTest test = mCoverageTest.createTest(target, shardIndex, numShards);
840 .isEqualTo(Integer.toString(shardIndex));
[all …]
/tools/tradefederation/core/src/com/android/tradefed/command/
DICommandOptions.java150 public void setShardIndex(Integer shardIndex); in setShardIndex() argument
DCommandOptions.java364 public void setShardIndex(Integer shardIndex) { in setShardIndex() argument
365 mShardIndex = shardIndex; in setShardIndex()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java882 int shardIndex = 5; in testInvoke_strictShardableTest_withShardIndex() local
888 mStubConfiguration.getCommandOptions().setShardIndex(shardIndex); in testInvoke_strictShardableTest_withShardIndex()
896 EasyMock.expect(test.getTestShard(shardCount, shardIndex)).andReturn(testShard); in testInvoke_strictShardableTest_withShardIndex()
914 int shardIndex = 0; in testInvoke_nonStrictShardableTest_withShardIndexZero() local
919 mStubConfiguration.getCommandOptions().setShardIndex(shardIndex); in testInvoke_nonStrictShardableTest_withShardIndexZero()
972 int shardIndex = 1; in testInvoke_nonStrictShardableTest_withShardIndexNonZero() local
981 mStubConfiguration.getCommandOptions().setShardIndex(shardIndex); in testInvoke_nonStrictShardableTest_withShardIndexNonZero()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteIntegrationTest.java649 private void helperTestShardIndex(int shardCount, int shardIndex) throws Exception { in helperTestShardIndex() argument
668 config.getCommandOptions().setShardIndex(shardIndex); in helperTestShardIndex()