Home
last modified time | relevance | path

Searched refs:previewHeight (Results 1 – 2 of 2) sorted by relevance

/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DCameraFragment.java244 int previewHeight = height; in onLayout() local
247 previewHeight = mPreviewSize.height; in onLayout()
251 if (width * previewHeight > height * previewWidth) { in onLayout()
253 / previewHeight; in onLayout()
257 final int scaledChildHeight = previewHeight * width in onLayout()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCameraPreview.java228 int previewHeight = height; in onLayout() local
231 previewHeight = mPreviewSize.height; in onLayout()
235 if (width * previewHeight > height * previewWidth) { in onLayout()
236 final int scaledChildWidth = previewWidth * height / previewHeight; in onLayout()
240 final int scaledChildHeight = previewHeight * width / previewWidth; in onLayout()