/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/ |
D | StrictShardHelper.java | 50 Integer shardCount = config.getCommandOptions().getShardCount(); in shardConfig() local 56 if (shardCount == null) { in shardConfig() 61 List<IRemoteTest> listAllTests = getAllTests(config, shardCount, testInfo, logger); in shardConfig() 63 normalizeDistribution(listAllTests, shardCount); in shardConfig() 65 if (shardCount == 1) { in shardConfig() 69 splitList = splitTests(listAllTests, shardCount).get(shardIndex); in shardConfig() 86 Integer shardCount, in getAllTests() argument 113 ((IShardableTest) test).split(shardCount, testInfo); in getAllTests() 143 protected List<List<IRemoteTest>> splitTests(List<IRemoteTest> fullList, int shardCount) { in splitTests() argument 146 int numPerShard = (int) Math.ceil(fullList.size() / (float) shardCount); in splitTests() [all …]
|
D | ShardHelper.java | 110 Integer shardCount = config.getCommandOptions().getShardCount(); in shardConfig() local 112 isSharded |= shardTest(shardableTests, test, shardCount, testInfo, logger); in shardConfig() 122 if (shardCount != null) { in shardConfig() 123 expectedShard = Math.min(shardCount, shardableTests.size()); in shardConfig() 137 if (shardCount != null) { in shardConfig() 141 int maxShard = Math.min(shardCount, shardableTests.size()); in shardConfig() 283 Integer shardCount, in shardTest() argument 305 shards = shardableTest.split(shardCount, testInfo); in shardTest()
|
D | ParentShardReplicate.java | 46 Integer shardCount = config.getCommandOptions().getShardCount(); in replicatedSetup() local 48 if (shardCount == null || shardIndex != null) { in replicatedSetup() 54 for (int i = 0; i < shardCount - 1; i++) { in replicatedSetup()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | AndroidJUnitTest.java | 530 public Collection<IRemoteTest> split(int shardCount) { in split() argument 535 shardCount = Math.min(shardCount, mMaxShard); in split() 537 if (!mIsSharded && shardCount > 1) { in split() 539 Collection<IRemoteTest> shards = new ArrayList<>(shardCount); in split() 540 for (int index = 0; index < shardCount; index++) { in split() 541 shards.add(getTestShard(shardCount, index)); in split() 548 private IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument 565 shard.mTotalShards = shardCount; in getTestShard() 569 shard.mRuntimeHint = mRuntimeHint / shardCount; in getTestShard()
|
D | GTestBase.java | 263 public void setShardCount(int shardCount) { in setShardCount() argument 264 mShardCount = shardCount; in setShardCount() 638 private IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument 644 shard.mShardCount = shardCount; in getTestShard() 647 shard.mRuntimeHint = mRuntimeHint / shardCount; in getTestShard()
|
D | HostTest.java | 1203 public Collection<IRemoteTest> split(Integer shardCount, TestInformation testInfo) { in split() argument 1204 if (shardCount == null) { in split() 1207 if (shardCount < 1) { in split() 1227 shardCount = testObjects.size(); in split() 1260 i = (i + 1) % shardCount; in split()
|
D | InstalledInstrumentationsTest.java | 483 private IRemoteTest getTestShard(int shardCount, int shardIndex) { in getTestShard() argument 491 shard.mTotalShards = shardCount; in getTestShard()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ModuleSplitter.java | 75 int shardCount, in splitConfiguration() argument 81 shardCount *= 2; in splitConfiguration() 94 shardCount, in splitConfiguration() 110 int shardCount, in createAndAddModule() argument 145 ((IShardableTest) test).split(shardCount, testInfo); in createAndAddModule() 150 for (int i = 0; i < shardCount; i++) { in createAndAddModule()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/ |
D | StrictShardHelperTest.java | 422 int shardCount = 20; in testDistribution_hightests_highcount() local 423 List<List<IRemoteTest>> res = mHelper.splitTests(testList, shardCount); in testDistribution_hightests_highcount() 450 int shardCount = 6; in testDistribution_lowtests_lowcount() local 451 List<List<IRemoteTest>> res = mHelper.splitTests(testList, shardCount); in testDistribution_lowtests_lowcount() 464 int shardCount = 6; in testDistribution_lowtests_lowcount2() local 465 List<List<IRemoteTest>> res = mHelper.splitTests(testList, shardCount); in testDistribution_lowtests_lowcount2()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | FileSystemLogSaverTest.java | 258 final int shardCount = 5; in testCreateReportDirectory_sharded() local 264 new ShardMainResultForwarder(new ArrayList<ITestInvocationListener>(), shardCount); in testCreateReportDirectory_sharded() 265 for (int i = 0; i < shardCount; i++) { in testCreateReportDirectory_sharded() 268 for (int i = 0; i < shardCount; i++) { in testCreateReportDirectory_sharded()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterCommandLauncher.java | 305 final Integer shardCount = mConfiguration.getCommandOptions().getShardCount(); in buildJavaCommandArgs() local 307 if (shardCount != null && shardCount > 1) { in buildJavaCommandArgs() 309 cmdArgs.add(Integer.toString(shardCount)); in buildJavaCommandArgs()
|
D | ClusterCommand.java | 91 Integer shardCount, in ClusterCommand() argument 98 mShardCount = shardCount; in ClusterCommand()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | SubprocessTfLauncher.java | 263 Integer shardCount = mConfig.getCommandOptions().getShardCount(); in preRun() local 264 if (mLocalShardingMode && shardCount != null & shardCount > 1) { in preRun() 266 mCmdArgs.add(Integer.toString(shardCount)); in preRun()
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandOptions.java | 381 public void setShardCount(Integer shardCount) { in setShardCount() argument 382 mShardCount = shardCount; in setShardCount()
|
D | ICommandOptions.java | 131 public void setShardCount(Integer shardCount); in setShardCount() argument
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/ |
D | TestInvocationTest.java | 1282 int shardCount = 2; in testInvoke_shardableTest_legacy() local 1305 setupNShardInvocation(shardCount, command); in testInvoke_shardableTest_legacy() 1347 int shardCount = 2; in testInvoke_shardableTest_autoRetry() local 1376 setupNShardInvocation(shardCount, command); in testInvoke_shardableTest_autoRetry()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ITestSuiteIntegrationTest.java | 672 private void helperTestShardIndex(int shardCount, int shardIndex) throws Exception { in helperTestShardIndex() argument 690 config.getCommandOptions().setShardCount(shardCount); in helperTestShardIndex()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | TestInvocation.java | 863 Integer shardCount = config.getCommandOptions().getShardCount(); in invoke() local 869 if (shardCount != null && shardIndex != null) { in invoke()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterCommandSchedulerTest.java | 1013 int numDevices, Integer shardCount, Integer shardIndex) { 1022 shardCount,
|