Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DFocusOverlayManager.java75 private int previewHeight; // The height of the preview frame layout. field in FocusOverlayManager
139 public void setPreviewSize(int previewWidth, int previewHeight) { in setPreviewSize() argument
140 if (this.previewWidth != previewWidth || this.previewHeight != previewHeight) { in setPreviewSize()
142 this.previewHeight = previewHeight; in setPreviewSize()
153 if (previewWidth != 0 && previewHeight != 0) { in setMatrix()
155 prepareMatrix(matrix, mirror, previewWidth, previewHeight); in setMatrix()
227 int focusWidth, int focusHeight, int x, int y, int previewWidth, int previewHeight) { in initializeFocusAreas() argument
235 focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, focusArea.get(0).rect); in initializeFocusAreas()
239 int focusWidth, int focusHeight, int x, int y, int previewWidth, int previewHeight) { in initializeMeteringAreas() argument
249 focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight, meteringArea.get(0).rect); in initializeMeteringAreas()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java97 int previewHeight, WidgetCell caller) { in getPreview() argument
98 String size = previewWidth + "x" + previewHeight; in getPreview()
101 PreviewLoadTask task = new PreviewLoadTask(key, item, previewWidth, previewHeight, caller); in getPreview()
296 int previewWidth, int previewHeight) { in generatePreview() argument
302 previewWidth, previewHeight, recycle); in generatePreview()
345 int previewHeight; in generateWidgetPreview() local
350 previewHeight = drawable.getIntrinsicHeight(); in generateWidgetPreview()
355 previewHeight = tileSize * spanY; in generateWidgetPreview()
369 previewHeight = Math.max((int)(scale * previewHeight), 1); in generateWidgetPreview()
375 preview = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888); in generateWidgetPreview()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DFocusOverlayManager.java144 public void setPreviewSize(int previewWidth, int previewHeight) { in setPreviewSize() argument
145 if (mPreviewWidth != previewWidth || mPreviewHeight != previewHeight) { in setPreviewSize()
147 mPreviewHeight = previewHeight; in setPreviewSize()
306 int x, int y, int previewWidth, int previewHeight) { in initializeFocusAreas() argument
313 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, in initializeFocusAreas()
318 int x, int y, int previewWidth, int previewHeight) { in initializeMeteringAreas() argument
327 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight, in initializeMeteringAreas()
348 int previewHeight = mPreviewHeight; in onSingleTapUp() local
351 initializeFocusAreas(focusWidth, focusHeight, x, y, previewWidth, previewHeight); in onSingleTapUp()
355 initializeMeteringAreas(focusWidth, focusHeight, x, y, previewWidth, previewHeight); in onSingleTapUp()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DPreviewFrameLayout.java65 int previewHeight = MeasureSpec.getSize(heightSpec); in onMeasure() local
73 previewHeight -= vPadding; in onMeasure()
74 if (previewWidth > previewHeight * mAspectRatio) { in onMeasure()
75 previewWidth = (int) (previewHeight * mAspectRatio + .5); in onMeasure()
77 previewHeight = (int) (previewWidth / mAspectRatio + .5); in onMeasure()
82 previewHeight += vPadding; in onMeasure()
86 MeasureSpec.makeMeasureSpec(previewHeight, MeasureSpec.EXACTLY)); in onMeasure()
DFocusManager.java259 int previewHeight = mPreviewFrame.getHeight(); in onTouch() local
270 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, in onTouch()
272 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight, in onTouch()
279 int top = Util.clamp(y - focusHeight / 2, 0, previewHeight - focusHeight); in onTouch()
448 int x, int y, int previewWidth, int previewHeight, Rect rect) { in calculateTapArea() argument
452 int top = Util.clamp(y - areaHeight / 2, 0, previewHeight - areaHeight); in calculateTapArea()
DEffectsRecorder.java250 int previewHeight) { in setPreviewDisplay() argument
263 mPreviewHeight = previewHeight; in setPreviewDisplay()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DMosaicFrameProcessor.java72 public MosaicFrameProcessor(int previewWidth, int previewHeight, int bufSize) { in MosaicFrameProcessor() argument
75 mPreviewHeight = previewHeight; in MosaicFrameProcessor()
104 private void setupMosaicer(int previewWidth, int previewHeight, int bufSize) { in setupMosaicer() argument
105 Log.v(TAG, "setupMosaicer w, h=" + previewWidth + ',' + previewHeight + ',' + bufSize); in setupMosaicer()
106 mMosaicer.allocateMosaicMemory(previewWidth, previewHeight); in setupMosaicer()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyPreviewChoreographer.java114 final int previewHeight = mParams.mPreviewHeight; in placeKeyPreview() local
135 final int previewY = key.getY() - previewHeight + mParams.mPreviewOffset in placeKeyPreview()
139 keyPreviewView, previewX, previewY, previewWidth, previewHeight); in placeKeyPreview()
141 keyPreviewView.setPivotY(previewHeight); in placeKeyPreview()
DKeyPreviewDrawParams.java97 final int previewHeight = mPreviewHeight; in setGeometry() local
102 mVisibleHeight = previewHeight - previewTextView.getPaddingTop() in setGeometry()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DFolderAdaptiveIcon.java112 final int previewHeight = (int) (dragViewSize.y * sizeScaleFactor); in createDrawableOnUiThread() local
116 final float previewShiftY = shiftFactor * previewHeight; in createDrawableOnUiThread()
118 Bitmap previewBitmap = BitmapRenderer.createHardwareBitmap(previewWidth, previewHeight, in createDrawableOnUiThread()
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java205 float previewHeight = previewRect.height();
206 if (previewHeight == 0 || previewWidth == 0) {
207 Log.e(TAG, "Invalid preview size: " + previewWidth + " x " + previewHeight);
210 float aspectRatio = previewWidth / previewHeight;
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/
DQrCamera.java324 final int previewHeight = isPortrait ? mPreviewSize.getHeight() : mPreviewSize.getWidth(); in setTransformationMatrix() local
325 final float ratioPreview = (float) getRatio(previewWidth, previewHeight); in setTransformationMatrix()
330 if (previewWidth > previewHeight) { in setTransformationMatrix()
/packages/apps/Gallery2/res/raw/
Dbackdropper.graph36 @external previewHeight;
71 height = $previewHeight;
Dgoofy_face.graph38 @external previewHeight;
83 height = $previewHeight;
/packages/apps/LegacyCamera/res/raw/
Dbackdropper.graph36 @external previewHeight;
71 oheight = $previewHeight;
Dgoofy_face.graph38 @external previewHeight;
83 oheight = $previewHeight;
/packages/apps/Camera2/res/raw/
Dbackdropper.graph36 @external previewHeight;
71 height = $previewHeight;
Dgoofy_face.graph38 @external previewHeight;
83 height = $previewHeight;
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java329 final int previewHeight = isPortrait ? mPreviewSize.getHeight() : mPreviewSize.getWidth(); in setTransformationMatrix() local
330 final float ratioPreview = (float) getRatio(previewWidth, previewHeight); in setTransformationMatrix()
335 if (previewWidth > previewHeight) { in setTransformationMatrix()