Home
last modified time | relevance | path

Searched refs:numShards (Results 1 – 3 of 3) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/testtype/
DCodeCoverageTestBase.java206 int numShards = doesRunnerSupportSharding(target) ? getNumberOfShards(target) : 1; in run() local
210 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
371 if (numShards > 1) { in createTestRunner()
373 ret.addInstrumentationArg("numShards", Integer.toString(numShards)); in createTestRunner()
394 TestRunResult runTest(InstrumentationTarget target, int shardIndex, int numShards, in runTest() argument
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DCodeCoverageTestBaseTest.java135 T get(String packageName, String runnerName, int shardIndex, int numShards); in get() argument
714 int numShards = 3;
721 mCoverageTest.setMaxTestsPerChunk((int) Math.ceil((double) tests.size() / numShards));
728 Lists.partition(tests, (int) Math.ceil((double) tests.size() / numShards));
739 for (int shardIndex = 0; shardIndex < numShards; shardIndex++) {
742 mCoverageTest.collectTests(target, shardIndex, numShards);
785 int numShards = 5;
789 (FakeTestRunner) mCoverageTest.createTestRunner(target, shardIndex, numShards);
793 assertThat(runner.getArgs()).containsEntry("numShards", Integer.toString(numShards));
833 int numShards = 5;
[all …]
DHostTestTest.java1474 final int numShards = mHostTest.countTestCases(); in testGetTestStrictShardable_shardUnit_method() local
1485 assertEquals(expectedTestCaseClasses.length, numShards); in testGetTestStrictShardable_shardUnit_method()
1486 for (int i = 0; i < numShards; i++) { in testGetTestStrictShardable_shardUnit_method()
1487 IRemoteTest shard = mHostTest.getTestShard(numShards, i); in testGetTestStrictShardable_shardUnit_method()
1493 assertEquals(runtimeHint / numShards, hostTest.getRuntimeHint()); in testGetTestStrictShardable_shardUnit_method()
1540 final int numShards = numTestCases + 1; in testGetTestStrictShardable_tooManyShards_shardUnit_method() local
1551 IRemoteTest shard = mHostTest.getTestShard(numShards, i); in testGetTestStrictShardable_tooManyShards_shardUnit_method()
1558 IRemoteTest lastShard = mHostTest.getTestShard(numShards, numTestCases); in testGetTestStrictShardable_tooManyShards_shardUnit_method()
1649 final int numShards = 3; in testGetTestShardable_wrapping_shardUnit_method() local
1653 for (int i = 0, j = 0; i < numShards ; i++) { in testGetTestShardable_wrapping_shardUnit_method()
[all …]