Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DStrictShardHelper.java47 Integer shardCount = config.getCommandOptions().getShardCount(); in shardConfig() local
53 if (shardCount == null) { in shardConfig()
60 updateConfigIfSharded(config, shardCount, shardIndex); in shardConfig()
62 List<IRemoteTest> listAllTests = getAllTests(config, shardCount, context); in shardConfig()
64 normalizeDistribution(listAllTests, shardCount); in shardConfig()
66 if (shardCount == 1) { in shardConfig()
70 splitList = splitTests(listAllTests, shardCount).get(shardIndex); in shardConfig()
79 private void updateConfigIfSharded(IConfiguration config, int shardCount, int shardIndex) { in updateConfigIfSharded() argument
92 ((IStrictShardableTest) test).getTestShard(shardCount, shardIndex); in updateConfigIfSharded()
107 IConfiguration config, Integer shardCount, IInvocationContext context) { in getAllTests() argument
[all …]
DShardHelper.java84 Integer shardCount = config.getCommandOptions().getShardCount(); in shardConfig() local
86 isSharded |= shardTest(shardableTests, test, shardCount, context); in shardConfig()
96 if (shardCount != null) { in shardConfig()
97 expectedShard = Math.min(shardCount, shardableTests.size()); in shardConfig()
107 if (shardCount != null) { in shardConfig()
111 int maxShard = Math.min(shardCount, shardableTests.size()); in shardConfig()
208 Integer shardCount, in shardTest() argument
229 if (shardCount != null) { in shardTest()
230 shards = shardableTest.split(shardCount); in shardTest()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleSplitter.java66 int shardCount, in splitConfiguration() argument
71 shardCount *= 2; in splitConfiguration()
82 shardCount, in splitConfiguration()
92 int shardCount, in createAndAddModule() argument
120 Collection<IRemoteTest> shardedTests = ((IShardableTest) test).split(shardCount); in createAndAddModule()
125 for (int i = 0; i < shardCount; i++) { in createAndAddModule()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DVersionedTfLauncher.java55 private VersionedTfLauncher(int shardCount, int shardIndex) { in VersionedTfLauncher() argument
57 mShardCount = shardCount; in VersionedTfLauncher()
118 public IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument
119 IRemoteTest shard = new VersionedTfLauncher(shardCount, shardIndex); in getTestShard()
DAndroidJUnitTest.java416 public Collection<IRemoteTest> split(int shardCount) { in split() argument
421 shardCount = Math.min(shardCount, mMaxShard); in split()
423 if (!mIsSharded && shardCount > 1) { in split()
425 Collection<IRemoteTest> shards = new ArrayList<>(shardCount); in split()
426 for (int index = 0; index < shardCount; index++) { in split()
427 shards.add(getTestShard(shardCount, index)); in split()
438 public IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument
452 shard.mTotalShards = shardCount; in getTestShard()
456 shard.mRuntimeHint = mRuntimeHint / shardCount; in getTestShard()
DIStrictShardableTest.java33 IRemoteTest getTestShard(int shardCount, int shardIndex); in getTestShard() argument
DGTest.java264 void setShardCount(int shardCount) { in setShardCount() argument
265 mShardCount = shardCount; in setShardCount()
673 public IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument
677 shard.mShardCount = shardCount; in getTestShard()
680 shard.mRuntimeHint = mRuntimeHint / shardCount; in getTestShard()
DHostTest.java926 public Collection<IRemoteTest> split(int shardCount) { in split() argument
927 if (shardCount < 1) { in split()
945 shardCount = testObjects.size(); in split()
978 i = (i + 1) % shardCount; in split()
1029 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()
DInstalledInstrumentationsTest.java404 public IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument
413 shard.mTotalShards = shardCount; in getTestShard()
/tools/tradefederation/core/src/com/android/tradefed/command/
DICommandOptions.java140 public void setShardCount(Integer shardCount); in setShardCount() argument
DCommandOptions.java348 public void setShardCount(Integer shardCount) { in setShardCount() argument
349 mShardCount = shardCount; in setShardCount()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DFileSystemLogSaverTest.java258 final int shardCount = 5; in testCreateReportDirectory_sharded() local
265 new ArrayList<ITestInvocationListener>(), shardCount); in testCreateReportDirectory_sharded()
266 for (int i = 0; i < shardCount; i++) { in testCreateReportDirectory_sharded()
269 for (int i = 0; i < shardCount; i++) { in testCreateReportDirectory_sharded()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java881 int shardCount = 10; in testInvoke_strictShardableTest_withShardIndex() local
887 mStubConfiguration.getCommandOptions().setShardCount(shardCount); in testInvoke_strictShardableTest_withShardIndex()
896 EasyMock.expect(test.getTestShard(shardCount, shardIndex)).andReturn(testShard); in testInvoke_strictShardableTest_withShardIndex()
913 int shardCount = 10; in testInvoke_nonStrictShardableTest_withShardIndexZero() local
918 mStubConfiguration.getCommandOptions().setShardCount(shardCount); in testInvoke_nonStrictShardableTest_withShardIndexZero()
971 int shardCount = 10; in testInvoke_nonStrictShardableTest_withShardIndexNonZero() local
980 mStubConfiguration.getCommandOptions().setShardCount(shardCount); in testInvoke_nonStrictShardableTest_withShardIndexNonZero()
1319 int shardCount = 2; in testInvoke_shardableTest_legacy() local
1331 setupNShardInvocation(shardCount, command); in testInvoke_shardableTest_legacy()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteIntegrationTest.java649 private void helperTestShardIndex(int shardCount, int shardIndex) throws Exception { in helperTestShardIndex() argument
667 config.getCommandOptions().setShardCount(shardCount); in helperTestShardIndex()