Home
last modified time | relevance | path

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

/packages/apps/Camera/src/com/android/camera/
DFocusOverlayManager.java154 public void setPreviewSize(int previewWidth, int previewHeight) { in setPreviewSize() argument
155 if (mPreviewWidth != previewWidth || mPreviewHeight != previewHeight) { in setPreviewSize()
157 mPreviewHeight = previewHeight; in setPreviewSize()
314 int x, int y, int previewWidth, int previewHeight) { in initializeFocusAreas() argument
321 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, in initializeFocusAreas()
327 int x, int y, int previewWidth, int previewHeight) { in initializeMeteringAreas() argument
336 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight, in initializeMeteringAreas()
354 int previewHeight = mPreviewHeight; in onSingleTapUp() local
358 focusWidth, focusHeight, x, y, previewWidth, previewHeight); in onSingleTapUp()
363 focusWidth, focusHeight, x, y, previewWidth, previewHeight); in onSingleTapUp()
[all …]
DPreviewFrameLayout.java87 int previewHeight = MeasureSpec.getSize(heightSpec); in onMeasure() local
96 previewHeight -= vPadding; in onMeasure()
98 boolean widthLonger = previewWidth > previewHeight; in onMeasure()
99 int longSide = (widthLonger ? previewWidth : previewHeight); in onMeasure()
100 int shortSide = (widthLonger ? previewHeight : previewWidth); in onMeasure()
108 previewHeight = shortSide; in onMeasure()
111 previewHeight = longSide; in onMeasure()
116 previewHeight += vPadding; in onMeasure()
121 MeasureSpec.makeMeasureSpec(previewHeight, MeasureSpec.EXACTLY)); in onMeasure()
DMosaicFrameProcessor.java89 public void initialize(int previewWidth, int previewHeight, int bufSize) { in initialize() argument
91 mPreviewHeight = previewHeight; in initialize()
116 private void setupMosaicer(int previewWidth, int previewHeight, int bufSize) { in setupMosaicer() argument
117 Log.v(TAG, "setupMosaicer w, h=" + previewWidth + ',' + previewHeight + ',' + bufSize); in setupMosaicer()
121 mMosaicer.allocateMosaicMemory(previewWidth, previewHeight); in setupMosaicer()
DSwitchAnimManager.java83 float previewHeight = height * previewAnimScale; in drawAnimation() local
85 int previewY = Math.round(centerY - previewHeight / 2); in drawAnimation()
111 Math.round(previewHeight)); in drawAnimation()
DEffectsRecorder.java425 int previewHeight) { in setPreviewSurfaceTexture() argument
440 mPreviewHeight = previewHeight; in setPreviewSurfaceTexture()
/packages/apps/Launcher2/src/com/android/launcher2/
DWidgetPreviewLoader.java183 public void setPreviewSize(int previewWidth, int previewHeight, in setPreviewSize() argument
186 mPreviewBitmapHeight = previewHeight; in setPreviewSize()
187 mSize = previewWidth + "x" + previewHeight; in setPreviewSize()
485 int previewHeight; in generateWidgetPreview() local
490 previewHeight = drawable.getIntrinsicHeight(); in generateWidgetPreview()
503 previewHeight = previewDrawableHeight * cellVSpan; in generateWidgetPreview()
505 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight, in generateWidgetPreview()
509 previewDrawable.setBounds(0, 0, previewWidth, previewHeight); in generateWidgetPreview()
517 int smallestSide = Math.min(previewWidth, previewHeight); in generateWidgetPreview()
550 previewHeight = (int) (scale * previewHeight); in generateWidgetPreview()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java196 public void setPreviewSize(int previewWidth, int previewHeight, in setPreviewSize() argument
199 mPreviewBitmapHeight = previewHeight; in setPreviewSize()
200 mSize = previewWidth + "x" + previewHeight; in setPreviewSize()
537 int previewHeight; in generateWidgetPreview() local
542 previewHeight = drawable.getIntrinsicHeight(); in generateWidgetPreview()
556 previewHeight = previewDrawableHeight * cellVSpan; in generateWidgetPreview()
558 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888); in generateWidgetPreview()
569 dest.set(0, 0, previewWidth, previewHeight); in generateWidgetPreview()
575 int smallestSide = Math.min(previewWidth, previewHeight); in generateWidgetPreview()
604 previewHeight = (int) (scale * previewHeight); in generateWidgetPreview()
[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.java121 final int previewHeight = mParams.mPreviewHeight; in placeKeyPreview() local
142 final int previewY = key.getY() - previewHeight + mParams.mPreviewOffset in placeKeyPreview()
146 keyPreviewView, previewX, previewY, previewWidth, previewHeight); in placeKeyPreview()
148 keyPreviewView.setPivotY(previewHeight); in placeKeyPreview()
DKeyPreviewDrawParams.java97 final int previewHeight = mPreviewHeight; in setGeometry() local
102 mVisibleHeight = previewHeight - previewTextView.getPaddingTop() in setGeometry()
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java197 float previewHeight = previewRect.height();
198 if (previewHeight == 0 || previewWidth == 0) {
199 Log.e(TAG, "Invalid preview size: " + previewWidth + " x " + previewHeight);
202 float aspectRatio = previewWidth / previewHeight;
DCaptureModule.java1134 float previewHeight = effectiveHeight * scale;
1136 float previewCenterY = previewHeight / 2;
/packages/apps/Camera2/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/Camera/res/raw/
Dbackdropper.graph36 @external previewHeight;
71 height = $previewHeight;
Dgoofy_face.graph38 @external previewHeight;
83 height = $previewHeight;
/packages/apps/Gallery2/res/raw/
Dbackdropper.graph36 @external previewHeight;
71 height = $previewHeight;
Dgoofy_face.graph38 @external previewHeight;
83 height = $previewHeight;