Home
last modified time | relevance | path

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

/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DCameraHelper.java67 double minDiff = Double.MAX_VALUE; in getOptimalVideoSize() local
79 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
81 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
87 minDiff = Double.MAX_VALUE; in getOptimalVideoSize()
89 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
91 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DCameraHelper.java67 double minDiff = Double.MAX_VALUE; in getOptimalVideoSize() local
79 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
81 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
87 minDiff = Double.MAX_VALUE; in getOptimalVideoSize()
89 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
91 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DCameraHelper.java67 double minDiff = Double.MAX_VALUE; in getOptimalVideoSize() local
79 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
81 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
87 minDiff = Double.MAX_VALUE; in getOptimalVideoSize()
89 if (Math.abs(size.height - targetHeight) < minDiff && previewSizes.contains(size)) { in getOptimalVideoSize()
91 minDiff = Math.abs(size.height - targetHeight); in getOptimalVideoSize()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCameraPreview.java273 double minDiff = Double.MAX_VALUE; in getOptimalPreviewSize() local
281 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
283 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
289 minDiff = Double.MAX_VALUE; in getOptimalPreviewSize()
291 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
293 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DCameraFragment.java293 double minDiff = Double.MAX_VALUE; in getOptimalPreviewSize() local
302 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
304 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
310 minDiff = Double.MAX_VALUE; in getOptimalPreviewSize()
312 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
314 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()