Home
last modified time | relevance | path

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

/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraOps.java322 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()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraOps.java298 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()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2RecordingTest.java578 Size candidateSize = mOrderedStillSizes.get(i); in videoSnapshotTestByCamera() local
581 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()