/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | FocusOverlayManager.java | 75 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/LegacyCamera/src/com/android/camera/ |
D | PreviewFrameLayout.java | 65 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()
|
D | FocusManager.java | 259 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()
|
D | EffectsRecorder.java | 250 int previewHeight) { in setPreviewDisplay() argument 263 mPreviewHeight = previewHeight; in setPreviewDisplay()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | DatabaseWidgetPreviewLoader.java | 128 int previewHeight = previewSize.getHeight(); in loadPreview() local 129 String size = previewWidth + "x" + previewHeight; in loadPreview() 133 new PreviewLoadTask(activity, key, item, previewWidth, previewHeight, callback); in loadPreview() 358 int previewWidth, int previewHeight) { in generatePreview() argument 364 previewWidth, previewHeight, recycle), false); in generatePreview() 410 int previewHeight; in generateWidgetPreview() local 417 previewHeight = drawable.getIntrinsicHeight(); in generateWidgetPreview() 423 previewHeight = widgetSize.getHeight(); in generateWidgetPreview() 437 previewHeight = Math.max((int) (scale * previewHeight), 1); in generateWidgetPreview() 443 preview = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888); in generateWidgetPreview() [all …]
|
D | PendingItemDragHelper.java | 97 final int previewHeight; in startDrag() local 159 previewHeight = mAppWidgetHostViewPreview.getMeasuredHeight(); in startDrag() 162 previewHeight = preview.getIntrinsicHeight(); in startDrag() 177 previewHeight = preview.getIntrinsicHeight(); in startDrag() 209 + (int) ((scale * previewHeight - previewHeight) / 2); in startDrag()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | FocusOverlayManager.java | 144 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/panorama/ |
D | MosaicFrameProcessor.java | 72 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/ |
D | KeyPreviewChoreographer.java | 114 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()
|
D | KeyPreviewDrawParams.java | 97 final int previewHeight = mPreviewHeight; in setGeometry() local 102 mVisibleHeight = previewHeight - previewTextView.getPaddingTop() in setGeometry()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | TextureViewHelper.java | 206 float previewHeight = previewRect.height(); 207 if (previewHeight == 0 || previewWidth == 0) { 208 Log.e(TAG, "Invalid preview size: " + previewWidth + " x " + previewHeight); 211 float aspectRatio = previewWidth / previewHeight;
|
/packages/apps/LegacyCamera/res/raw/ |
D | backdropper.graph | 36 @external previewHeight; 71 oheight = $previewHeight;
|
D | goofy_face.graph | 38 @external previewHeight; 83 oheight = $previewHeight;
|
/packages/apps/Camera2/res/raw/ |
D | backdropper.graph | 36 @external previewHeight; 71 height = $previewHeight;
|
D | goofy_face.graph | 38 @external previewHeight; 83 height = $previewHeight;
|
/packages/apps/Gallery2/res/raw/ |
D | backdropper.graph | 36 @external previewHeight; 71 height = $previewHeight;
|
D | goofy_face.graph | 38 @external previewHeight; 83 height = $previewHeight;
|
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/ |
D | QrCamera.java | 349 final int previewHeight = isPortrait ? mPreviewSize.getHeight() : mPreviewSize.getWidth(); in setTransformationMatrix() local 350 final float ratioPreview = (float) getRatio(previewWidth, previewHeight); in setTransformationMatrix() 355 if (previewWidth > previewHeight) { in setTransformationMatrix()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetsRecommendationTableLayout.java | 160 float previewHeight = widgetSize.getHeight() * previewScale; in fitRecommendedWidgetsToTableSpace() local 162 previewHeight + mWidgetCellTextViewsHeight + mWidgetCellVerticalPadding); in fitRecommendedWidgetsToTableSpace()
|