Searched refs:previewHeight (Results 1 - 11 of 11) 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/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
H A DFocusOverlayManager.java138 public void setPreviewSize(int previewWidth, int previewHeight) { argument
139 if (mPreviewWidth != previewWidth || mPreviewHeight != previewHeight) {
141 mPreviewHeight = previewHeight;
226 int focusWidth, int focusHeight, int x, int y, int previewWidth, int previewHeight) {
234 focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, mFocusArea.get(0).rect);
238 int focusWidth, int focusHeight, int x, int y, int previewWidth, int previewHeight) {
254 previewHeight,
275 int previewHeight = mPreviewHeight;
278 initializeFocusAreas(focusWidth, focusHeight, x, y, previewWidth, previewHeight);
282 initializeMeteringAreas(focusWidth, focusHeight, x, y, previewWidth, previewHeight);
225 initializeFocusAreas( int focusWidth, int focusHeight, int x, int y, int previewWidth, int previewHeight) argument
237 initializeMeteringAreas( int focusWidth, int focusHeight, int x, int y, int previewWidth, int previewHeight) argument
414 calculateTapArea( int focusWidth, int focusHeight, float areaMultiple, int x, int y, int previewWidth, int previewHeight, Rect rect) argument
[all...]
/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/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
H A DFocusOverlayManager.java144 public void setPreviewSize(int previewWidth, int previewHeight) { argument
145 if (mPreviewWidth != previewWidth || mPreviewHeight != previewHeight) {
147 mPreviewHeight = previewHeight;
306 int x, int y, int previewWidth, int previewHeight) {
313 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight,
318 int x, int y, int previewWidth, int previewHeight) {
327 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight,
348 int previewHeight = mPreviewHeight;
351 initializeFocusAreas(focusWidth, focusHeight, x, y, previewWidth, previewHeight);
355 initializeMeteringAreas(focusWidth, focusHeight, x, y, previewWidth, previewHeight);
305 initializeFocusAreas(int focusWidth, int focusHeight, int x, int y, int previewWidth, int previewHeight) argument
317 initializeMeteringAreas(int focusWidth, int focusHeight, int x, int y, int previewWidth, int previewHeight) argument
491 calculateTapArea(int focusWidth, int focusHeight, float areaMultiple, int x, int y, int previewWidth, int previewHeight, Rect rect) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DWidgetPreviewLoader.java96 int previewHeight, WidgetCell caller, boolean animate) {
97 String size = previewWidth + "x" + previewHeight;
100 PreviewLoadTask task = new PreviewLoadTask(key, item, previewWidth, previewHeight, caller,
292 int previewWidth, int previewHeight) {
298 previewWidth, previewHeight, recycle);
341 int previewHeight;
345 previewHeight = drawable.getIntrinsicHeight();
350 previewHeight = tileSize * spanY;
364 previewHeight = (int) (scale * previewHeight);
95 getPreview(WidgetItem item, int previewWidth, int previewHeight, WidgetCell caller, boolean animate) argument
291 generatePreview(BaseActivity launcher, WidgetItem item, Bitmap recycle, int previewWidth, int previewHeight) argument
535 PreviewLoadTask(WidgetCacheKey key, WidgetItem info, int previewWidth, int previewHeight, WidgetCell caller, boolean animate) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyPreviewChoreographer.java114 final int previewHeight = mParams.mPreviewHeight;
135 final int previewY = key.getY() - previewHeight + mParams.mPreviewOffset
139 keyPreviewView, previewX, previewY, previewWidth, previewHeight);
141 keyPreviewView.setPivotY(previewHeight);
H A DKeyPreviewDrawParams.java97 final int previewHeight = mPreviewHeight;
102 mVisibleHeight = previewHeight - previewTextView.getPaddingTop()
/packages/apps/Launcher2/src/com/android/launcher2/
H A DWidgetPreviewLoader.java183 public void setPreviewSize(int previewWidth, int previewHeight, argument
186 mPreviewBitmapHeight = previewHeight;
187 mSize = previewWidth + "x" + previewHeight;
485 int previewHeight;
490 previewHeight = drawable.getIntrinsicHeight();
503 previewHeight = previewDrawableHeight * cellVSpan;
505 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight,
509 previewDrawable.setBounds(0, 0, previewWidth, previewHeight);
517 int smallestSide = Math.min(previewWidth, previewHeight);
550 previewHeight
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A 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;

Completed in 158 milliseconds