Home
last modified time | relevance | path

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

/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DCameraHelper.java51 double targetRatio = (double) w / h; in getOptimalPreviewSize() local
69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalPreviewSize()
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DCameraHelper.java51 double targetRatio = (double) w / h; in getOptimalPreviewSize() local
69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalPreviewSize()
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DCameraHelper.java51 double targetRatio = (double) w / h; in getOptimalPreviewSize() local
69 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalPreviewSize()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCameraPreview.java269 double targetRatio = (double) w / h; in getOptimalPreviewSize() local
280 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DCameraFragment.java288 double targetRatio = (double) w / h; in getOptimalPreviewSize() local
300 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalPreviewSize()