Searched refs:previewHeight (Results 1 - 15 of 15) sorted by relevance

/packages/apps/LegacyCamera/src/com/android/camera/
H A DPreviewFrameLayout.java65 int previewHeight = MeasureSpec.getSize(heightSpec);
73 previewHeight -= vPadding;
74 if (previewWidth > previewHeight * mAspectRatio) {
75 previewWidth = (int) (previewHeight * mAspectRatio + .5);
77 previewHeight = (int) (previewWidth / mAspectRatio + .5);
82 previewHeight += vPadding;
86 MeasureSpec.makeMeasureSpec(previewHeight, MeasureSpec.EXACTLY));
H A DFocusManager.java259 int previewHeight = mPreviewFrame.getHeight();
270 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight,
272 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight,
279 int top = Util.clamp(y - focusHeight / 2, 0, previewHeight - focusHeight);
448 int x, int y, int previewWidth, int previewHeight, Rect rect) {
452 int top = Util.clamp(y - areaHeight / 2, 0, previewHeight - areaHeight);
447 calculateTapArea(int focusWidth, int focusHeight, float areaMultiple, int x, int y, int previewWidth, int previewHeight, Rect rect) argument
H A DEffectsRecorder.java250 int previewHeight) {
263 mPreviewHeight = previewHeight;
440 "previewHeight", mPreviewHeight,
248 setPreviewDisplay(SurfaceHolder previewSurfaceHolder, int previewWidth, int previewHeight) argument
/packages/apps/Camera/src/com/android/camera/
H A DPreviewFrameLayout.java87 int previewHeight = MeasureSpec.getSize(heightSpec);
96 previewHeight -= vPadding;
98 boolean widthLonger = previewWidth > previewHeight;
99 int longSide = (widthLonger ? previewWidth : previewHeight);
100 int shortSide = (widthLonger ? previewHeight : previewWidth);
108 previewHeight = shortSide;
111 previewHeight = longSide;
116 previewHeight += vPadding;
121 MeasureSpec.makeMeasureSpec(previewHeight, MeasureSpec.EXACTLY));
H A DMosaicFrameProcessor.java89 public void initialize(int previewWidth, int previewHeight, int bufSize) { argument
91 mPreviewHeight = previewHeight;
116 private void setupMosaicer(int previewWidth, int previewHeight, int bufSize) { argument
117 Log.v(TAG, "setupMosaicer w, h=" + previewWidth + ',' + previewHeight + ',' + bufSize);
121 mMosaicer.allocateMosaicMemory(previewWidth, previewHeight);
H A DFocusOverlayManager.java154 public void setPreviewSize(int previewWidth, int previewHeight) { argument
155 if (mPreviewWidth != previewWidth || mPreviewHeight != previewHeight) {
157 mPreviewHeight = previewHeight;
314 int x, int y, int previewWidth, int previewHeight) {
321 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight,
327 int x, int y, int previewWidth, int previewHeight) {
336 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight,
354 int previewHeight = mPreviewHeight;
358 focusWidth, focusHeight, x, y, previewWidth, previewHeight);
363 focusWidth, focusHeight, x, y, previewWidth, previewHeight);
313 initializeFocusAreas(int focusWidth, int focusHeight, int x, int y, int previewWidth, int previewHeight) argument
326 initializeMeteringAreas(int focusWidth, int focusHeight, int x, int y, int previewWidth, int previewHeight) argument
514 calculateTapArea(int focusWidth, int focusHeight, float areaMultiple, int x, int y, int previewWidth, int previewHeight, Rect rect) argument
[all...]
H A DSwitchAnimManager.java83 float previewHeight = height * previewAnimScale;
85 int previewY = Math.round(centerY - previewHeight / 2);
111 Math.round(previewHeight));
H A DEffectsRecorder.java425 int previewHeight) {
440 mPreviewHeight = previewHeight;
613 "previewHeight", mPreviewHeight,
423 setPreviewSurfaceTexture(SurfaceTexture previewSurfaceTexture, int previewWidth, int previewHeight) argument
/packages/apps/Camera2/src/com/android/camera/
H A DMosaicFrameProcessor.java89 public void initialize(int previewWidth, int previewHeight, int bufSize) { argument
91 mPreviewHeight = previewHeight;
117 private void setupMosaicer(int previewWidth, int previewHeight, int bufSize) { argument
118 Log.v(TAG, "setupMosaicer w, h=" + previewWidth + ',' + previewHeight + ',' + bufSize);
122 mMosaicer.allocateMosaicMemory(previewWidth, previewHeight);
H A DFocusOverlayManager.java161 public void setPreviewSize(int previewWidth, int previewHeight) { argument
162 if (mPreviewRect.width() != previewWidth || mPreviewRect.height() != previewHeight) {
163 setPreviewRect(new Rect(0, 0, previewWidth, previewHeight));
H A DVideoUI.java266 public void onScreenSizeChanged(int width, int height, int previewWidth, int previewHeight) { argument
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DMosaicFrameProcessor.java72 public MosaicFrameProcessor(int previewWidth, int previewHeight, int bufSize) { argument
75 mPreviewHeight = previewHeight;
104 private void setupMosaicer(int previewWidth, int previewHeight, int bufSize) { argument
105 Log.v(TAG, "setupMosaicer w, h=" + previewWidth + ',' + previewHeight + ',' + bufSize);
106 mMosaicer.allocateMosaicMemory(previewWidth, previewHeight);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DWidgetPreviewLoader.java152 public void setPreviewSize(int previewWidth, int previewHeight, argument
155 mPreviewBitmapHeight = previewHeight;
156 mSize = previewWidth + "x" + previewHeight;
454 int previewHeight;
459 previewHeight = drawable.getIntrinsicHeight();
472 previewHeight = previewDrawableHeight * cellVSpan;
474 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight,
478 previewDrawable.setBounds(0, 0, previewWidth, previewHeight);
486 int smallestSide = Math.min(previewWidth, previewHeight);
518 previewHeight
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DWidgetPreviewLoader.java168 public void setPreviewSize(int previewWidth, int previewHeight, argument
171 mPreviewBitmapHeight = previewHeight;
172 mSize = previewWidth + "x" + previewHeight;
459 int previewHeight;
464 previewHeight = drawable.getIntrinsicHeight();
477 previewHeight = previewDrawableHeight * cellVSpan;
479 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight,
483 previewDrawable.setBounds(0, 0, previewWidth, previewHeight);
491 int smallestSide = Math.min(previewWidth, previewHeight);
523 previewHeight
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DMainKeyboardView.java784 final int previewHeight = mKeyPreviewHeight;
789 previewParams.mPreviewVisibleHeight = previewHeight - previewText.getPaddingTop()
812 final int previewY = key.getY() - previewHeight + mKeyPreviewOffset
820 previewText, previewX, previewY, previewWidth, previewHeight);

Completed in 331 milliseconds