Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DStrictShardHelper.java146 int numPerShard = (int) Math.ceil(fullList.size() / (float) shardCount); in splitTests() local
153 needsCorrection = (numPerShard * (shardCount - 1)) > fullList.size(); in splitTests()
154 correctionRatio = numPerShard - (fullList.size() / (float) shardCount); in splitTests()
157 numPerShard = (int) Math.floor(numPerShard - correctionRatio); in splitTests()
159 shards = balancedDistrib(fullList, shardCount, numPerShard, needsCorrection); in splitTests()
166 List<IRemoteTest> fullList, int shardCount, int numPerShard, boolean needsCorrection) { in balancedDistrib() argument
185 correctionSize = fullList.size() - (numPerShard + (i * numPerShard)); in balancedDistrib()
189 shardList = fullList.subList(i * numPerShard, fullList.size() - correctionSize); in balancedDistrib()
193 shardList = fullList.subList(i * numPerShard, numPerShard + (i * numPerShard)); in balancedDistrib()