/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | FocusOverlayManager.java | 74 private int previewWidth; // The width 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() 141 this.previewWidth = previewWidth; 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/Launcher3/src/com/android/launcher3/ |
D | WidgetPreviewLoader.java | 93 public CancellationSignal getPreview(WidgetItem item, int previewWidth, in getPreview() argument 95 String size = previewWidth + "x" + previewHeight; in getPreview() 98 PreviewLoadTask task = new PreviewLoadTask(key, item, previewWidth, previewHeight, caller); in getPreview() 293 int previewWidth, int previewHeight) { in generatePreview() argument 296 previewWidth, recycle, null); in generatePreview() 299 previewWidth, previewHeight, recycle); in generatePreview() 341 int previewWidth; in generateWidgetPreview() local 346 previewWidth = drawable.getIntrinsicWidth(); in generateWidgetPreview() 351 previewWidth = tileSize * spanX; in generateWidgetPreview() 359 preScaledWidthOut[0] = previewWidth; in generateWidgetPreview() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | PreviewFrameLayout.java | 64 int previewWidth = MeasureSpec.getSize(widthSpec); in onMeasure() local 72 previewWidth -= hPadding; 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() 81 previewWidth += hPadding; in onMeasure() 85 super.onMeasure(MeasureSpec.makeMeasureSpec(previewWidth, MeasureSpec.EXACTLY), in onMeasure()
|
D | FocusManager.java | 258 int previewWidth = mPreviewFrame.getWidth(); 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() 278 int left = Util.clamp(x - focusWidth / 2, 0, previewWidth - focusWidth); in onTouch() 448 int x, int y, int previewWidth, int previewHeight, Rect rect) { in calculateTapArea() argument 451 int left = Util.clamp(x - areaWidth / 2, 0, previewWidth - areaWidth); in calculateTapArea()
|
D | Camera.java | 851 int previewWidth; field in Camera.SaveRequest 896 r.previewWidth = mPreviewFrameLayout.getHeight(); in addImage() 898 r.previewWidth = mPreviewFrameLayout.getWidth(); in addImage() 936 r.previewWidth); in run() 992 int height, long dateTaken, int previewWidth) { in storeImage() argument 1009 int ratio = (int) Math.ceil((double) width / previewWidth); in storeImage()
|
D | EffectsRecorder.java | 249 int previewWidth, in setPreviewDisplay() argument 262 mPreviewWidth = previewWidth; in setPreviewDisplay()
|
/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() 146 mPreviewWidth = previewWidth; 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() 347 int previewWidth = mPreviewWidth; 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyPreviewChoreographer.java | 113 final int previewWidth = keyPreviewView.getMeasuredWidth(); in placeKeyPreview() local 120 int previewX = key.getDrawX() - (previewWidth - keyDrawWidth) / 2 in placeKeyPreview() 125 } else if (previewX > keyboardViewWidth - previewWidth) { in placeKeyPreview() 126 previewX = keyboardViewWidth - previewWidth; in placeKeyPreview() 139 keyPreviewView, previewX, previewY, previewWidth, previewHeight); in placeKeyPreview() 140 keyPreviewView.setPivotX(previewWidth / 2.0f); in placeKeyPreview()
|
D | KeyPreviewDrawParams.java | 96 final int previewWidth = previewTextView.getMeasuredWidth(); in setGeometry() local 100 mVisibleWidth = previewWidth - previewTextView.getPaddingLeft() in setGeometry()
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | MosaicFrameProcessor.java | 72 public MosaicFrameProcessor(int previewWidth, int previewHeight, int bufSize) { in MosaicFrameProcessor() argument 74 mPreviewWidth = previewWidth; 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/apps/Camera2/src/com/android/camera/ |
D | TextureViewHelper.java | 204 float previewWidth = previewRect.width(); 206 if (previewHeight == 0 || previewWidth == 0) { 207 Log.e(TAG, "Invalid preview size: " + previewWidth + " x " + previewHeight); 210 float aspectRatio = previewWidth / previewHeight;
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | FolderAdaptiveIcon.java | 118 final int previewWidth = (int) (dragViewSize.x * sizeScaleFactor); in createDrawableOnUiThread() local 122 final float previewShiftX = shiftFactor * previewWidth; in createDrawableOnUiThread() 125 Bitmap previewBitmap = BitmapRenderer.createHardwareBitmap(previewWidth, previewHeight, in createDrawableOnUiThread()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/ |
D | QrCamera.java | 323 final int previewWidth = isPortrait ? mPreviewSize.getWidth() : mPreviewSize.getHeight(); in setTransformationMatrix() local 325 final float ratioPreview = (float) getRatio(previewWidth, previewHeight); in setTransformationMatrix() 330 if (previewWidth > previewHeight) { in setTransformationMatrix()
|
/packages/apps/Camera2/res/raw/ |
D | backdropper.graph | 35 @external previewWidth; 70 width = $previewWidth;
|
D | goofy_face.graph | 37 @external previewWidth; 82 width = $previewWidth;
|
/packages/apps/LegacyCamera/res/raw/ |
D | backdropper.graph | 35 @external previewWidth; 70 owidth = $previewWidth;
|
D | goofy_face.graph | 37 @external previewWidth; 82 owidth = $previewWidth;
|
/packages/apps/Gallery2/res/raw/ |
D | backdropper.graph | 35 @external previewWidth; 70 width = $previewWidth;
|
D | goofy_face.graph | 37 @external previewWidth; 82 width = $previewWidth;
|
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/ |
D | QrCamera.java | 330 final int previewWidth = isPortrait ? mPreviewSize.getWidth() : mPreviewSize.getHeight(); in setTransformationMatrix() local 332 final float ratioPreview = (float) getRatio(previewWidth, previewHeight); in setTransformationMatrix() 337 if (previewWidth > previewHeight) { in setTransformationMatrix()
|