Searched refs:candidateSize (Results 1 – 3 of 3) sorted by relevance
322 for (Size candidateSize : outputSizes) { in getBestSize()323 if (candidateSize.getWidth() <= MAX_WIDTH) { in getBestSize()324 Log.v(TAG, "consider " + candidateSize); in getBestSize()325 smallEnough.add(candidateSize); in getBestSize()333 for (Size candidateSize : smallEnough) { in getBestSize()334 if (maxSize.getWidth() < candidateSize.getWidth()) { in getBestSize()335 maxSize = candidateSize; in getBestSize()338 if (maxSize.getWidth() == candidateSize.getWidth()) { in getBestSize()339 …if (aspectDelta > Math.abs(candidateSize.getWidth() / candidateSize.getHeight() - TARGET_ASPECT)) { in getBestSize()340 maxSize = candidateSize; in getBestSize()
298 for (Size candidateSize : outputSizes) { in getBestSize()299 if (candidateSize.getWidth() > MAX_WIDTH) continue; in getBestSize()300 float candidateAspect = (float) candidateSize.getWidth() / candidateSize.getHeight(); in getBestSize()306 candidateSize.getWidth() > outputSize.getWidth()) { in getBestSize()307 outputSize = candidateSize; in getBestSize()
578 Size candidateSize = mOrderedStillSizes.get(i); in videoSnapshotTestByCamera() local581 if (candidateSize.getWidth() <= videoSz.getWidth() && in videoSnapshotTestByCamera()582 candidateSize.getHeight() <= videoSz.getHeight()) { in videoSnapshotTestByCamera()583 videoSnapshotSz = candidateSize; in videoSnapshotTestByCamera()586 Long jpegFrameDuration = minFrameDurationMap.get(candidateSize); in videoSnapshotTestByCamera()587 assertTrue("Cannot find minimum frame duration for jpeg size " + candidateSize, in videoSnapshotTestByCamera()589 if (candidateSize.getWidth() <= videoSz.getWidth() && in videoSnapshotTestByCamera()590 candidateSize.getHeight() <= videoSz.getHeight() && in videoSnapshotTestByCamera()592 videoSnapshotSz = candidateSize; in videoSnapshotTestByCamera()