Searched refs:fullList (Results 1 – 2 of 2) sorted by relevance
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/ |
D | StrictShardHelper.java | 211 List<IRemoteTest> fullList, int shardCount, boolean useEvenModuleSharding) { in splitTests() argument 215 shards = shardList(fullList, shardCount); in splitTests() 219 int numPerShard = (int) Math.ceil(fullList.size() / (float) shardCount); in splitTests() 223 if (fullList.size() > shardCount) { in splitTests() 227 needsCorrection = (numPerShard * (shardCount - 1)) > fullList.size(); in splitTests() 228 correctionRatio = numPerShard - (fullList.size() / (float) shardCount); in splitTests() 233 shards = balancedDistrib(fullList, shardCount, numPerShard, needsCorrection); in splitTests() 241 List<IRemoteTest> fullList, int shardCount, int numPerShard, boolean needsCorrection) { in balancedDistrib() argument 249 if (i >= fullList.size()) { in balancedDistrib() 260 correctionSize = fullList.size() - (numPerShard + (i * numPerShard)); in balancedDistrib() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/shard/ |
D | StrictShardHelperTest.java | 274 List<IRemoteTest> fullList, int shardCount, boolean useEvenModuleSharding) { in splitTests() argument 688 var fullList = IntStream.range(0, testCount).boxed().collect(Collectors.toList()); in testShardList() local 689 var shards = StrictShardHelper.shardList(fullList, shardCount); in testShardList() 701 fullList, in testShardList()
|