/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | PreviewFrameLayout.java | 64 int previewWidth = MeasureSpec.getSize(widthSpec); 72 previewWidth -= hPadding; 74 if (previewWidth > previewHeight * mAspectRatio) { 75 previewWidth = (int) (previewHeight * mAspectRatio + .5); 77 previewHeight = (int) (previewWidth / mAspectRatio + .5); 81 previewWidth += hPadding; 85 super.onMeasure(MeasureSpec.makeMeasureSpec(previewWidth, MeasureSpec.EXACTLY),
|
H A D | FocusManager.java | 258 int previewWidth = mPreviewFrame.getWidth(); 270 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, 272 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight, 278 int left = Util.clamp(x - focusWidth / 2, 0, previewWidth - focusWidth); 448 int x, int y, int previewWidth, int previewHeight, Rect rect) { 451 int left = Util.clamp(x - areaWidth / 2, 0, previewWidth - areaWidth); 447 calculateTapArea(int focusWidth, int focusHeight, float areaMultiple, int x, int y, int previewWidth, int previewHeight, Rect rect) argument
|
H A D | Camera.java | 851 int previewWidth; field in class:Camera.SaveRequest 896 r.previewWidth = mPreviewFrameLayout.getHeight(); 898 r.previewWidth = mPreviewFrameLayout.getWidth(); 936 r.previewWidth); 992 int height, long dateTaken, int previewWidth) { 1009 int ratio = (int) Math.ceil((double) width / previewWidth); 991 storeImage(final byte[] data, Location loc, int width, int height, long dateTaken, int previewWidth) argument
|
H A D | EffectsRecorder.java | 249 int previewWidth, 262 mPreviewWidth = previewWidth; 439 "previewWidth", mPreviewWidth, 248 setPreviewDisplay(SurfaceHolder previewSurfaceHolder, int previewWidth, int previewHeight) argument
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | PreviewFrameLayout.java | 86 int previewWidth = MeasureSpec.getSize(widthSpec); 95 previewWidth -= hPadding; 98 boolean widthLonger = previewWidth > previewHeight; 99 int longSide = (widthLonger ? previewWidth : previewHeight); 100 int shortSide = (widthLonger ? previewHeight : previewWidth); 107 previewWidth = longSide; 110 previewWidth = shortSide; 115 previewWidth += hPadding; 120 super.onMeasure(MeasureSpec.makeMeasureSpec(previewWidth, MeasureSpec.EXACTLY),
|
H A D | MosaicFrameProcessor.java | 89 public void initialize(int previewWidth, int previewHeight, int bufSize) { argument 90 mPreviewWidth = previewWidth; 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 D | FocusOverlayManager.java | 154 public void setPreviewSize(int previewWidth, int previewHeight) { argument 155 if (mPreviewWidth != previewWidth || mPreviewHeight != previewHeight) { 156 mPreviewWidth = previewWidth; 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, 353 int previewWidth = mPreviewWidth; 358 focusWidth, focusHeight, x, y, previewWidth, previewHeight); 363 focusWidth, focusHeight, x, y, previewWidth, previewHeigh 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 D | SwitchAnimManager.java | 82 float previewWidth = width * previewAnimScale; 84 int previewX = Math.round(centerX - previewWidth / 2); 110 preview.directDraw(canvas, previewX, previewY, Math.round(previewWidth),
|
H A D | EffectsRecorder.java | 424 int previewWidth, 439 mPreviewWidth = previewWidth; 612 "previewWidth", mPreviewWidth, 423 setPreviewSurfaceTexture(SurfaceTexture previewSurfaceTexture, int previewWidth, int previewHeight) argument
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | MosaicFrameProcessor.java | 89 public void initialize(int previewWidth, int previewHeight, int bufSize) { argument 90 mPreviewWidth = previewWidth; 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 D | FocusOverlayManager.java | 161 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 D | VideoUI.java | 266 public void onScreenSizeChanged(int width, int height, int previewWidth, int previewHeight) { argument
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
H A D | MosaicFrameProcessor.java | 72 public MosaicFrameProcessor(int previewWidth, int previewHeight, int bufSize) { argument 74 mPreviewWidth = previewWidth; 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 D | WidgetPreviewLoader.java | 152 public void setPreviewSize(int previewWidth, int previewHeight, argument 154 mPreviewBitmapWidth = previewWidth; 156 mSize = previewWidth + "x" + previewHeight; 453 int previewWidth; 458 previewWidth = drawable.getIntrinsicWidth(); 471 previewWidth = previewDrawableWidth * cellHSpan; 474 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight, 478 previewDrawable.setBounds(0, 0, previewWidth, previewHeight); 486 int smallestSide = Math.min(previewWidth, previewHeight); 511 preScaledWidthOut[0] = previewWidth; [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | WidgetPreviewLoader.java | 168 public void setPreviewSize(int previewWidth, int previewHeight, argument 170 mPreviewBitmapWidth = previewWidth; 172 mSize = previewWidth + "x" + previewHeight; 458 int previewWidth; 463 previewWidth = drawable.getIntrinsicWidth(); 476 previewWidth = previewDrawableWidth * cellHSpan; // subtract 2 dips 479 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight, 483 previewDrawable.setBounds(0, 0, previewWidth, previewHeight); 491 int smallestSide = Math.min(previewWidth, previewHeight); 516 preScaledWidthOut[0] = previewWidth; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | MainKeyboardView.java | 783 final int previewWidth = previewText.getMeasuredWidth(); 787 previewParams.mPreviewVisibleWidth = previewWidth - previewText.getPaddingLeft() 799 int previewX = key.getDrawX() - (previewWidth - keyDrawWidth) / 2 804 } else if (previewX > getWidth() - previewWidth) { 805 previewX = getWidth() - previewWidth; 820 previewText, previewX, previewY, previewWidth, previewHeight);
|