Home
last modified time | relevance | path

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

/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DCameraHelper.java62 int targetHeight = h; in getOptimalPreviewSize() local
71 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
73 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
81 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
83 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DCameraHelper.java62 int targetHeight = h; in getOptimalPreviewSize() local
71 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
73 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
81 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
83 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DCameraHelper.java62 int targetHeight = h; in getOptimalPreviewSize() local
71 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
73 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
81 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
83 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCameraPreview.java275 int targetHeight = h; in getOptimalPreviewSize() local
281 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
283 minDiff = Math.abs(size.height - targetHeight); 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.java295 int targetHeight = h; in getOptimalPreviewSize() local
302 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
304 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
312 if (Math.abs(size.height - targetHeight) < minDiff) { in getOptimalPreviewSize()
314 minDiff = Math.abs(size.height - targetHeight); in getOptimalPreviewSize()
/development/samples/training/threadsample/src/com/example/android/threadsample/
DPhotoDecodeRunnable.java150 int targetHeight = mPhotoTask.getTargetHeight(); in run() local
177 int hScale = bitmapOptions.outHeight / targetHeight; in run()