Home
last modified time | relevance | path

Searched refs:previewWidth (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DFocusOverlayManager.java74 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/LegacyCamera/src/com/android/camera/
DPreviewFrameLayout.java64 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()
DFocusManager.java258 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()
DCamera.java851 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()
DEffectsRecorder.java249 int previewWidth, in setPreviewDisplay() argument
262 mPreviewWidth = previewWidth; in setPreviewDisplay()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DDatabaseWidgetPreviewLoader.java100 private Bitmap generatePreview(WidgetItem item, int previewWidth, int previewHeight) { in generatePreview() argument
102 return generateWidgetPreview(item.widgetInfo, previewWidth, null); in generatePreview()
104 return generateShortcutPreview(item.activityInfo, previewWidth, previewHeight); in generatePreview()
145 int previewWidth; in generateWidgetPreview() local
152 previewWidth = drawable.getIntrinsicWidth(); in generateWidgetPreview()
156 previewWidth = widgetSize.getWidth(); in generateWidgetPreview()
161 preScaledWidthOut[0] = previewWidth; in generateWidgetPreview()
165 final float scale = previewWidth > maxPreviewWidth in generateWidgetPreview()
166 ? (maxPreviewWidth / (float) (previewWidth)) : 1f; in generateWidgetPreview()
168 previewWidth = Math.max((int) (scale * previewWidth), 1); in generateWidgetPreview()
[all …]
DPendingItemDragHelper.java102 final int previewWidth; in startDrag() local
159 previewWidth = Math.round(widgetWidth * previewScale); in startDrag()
166 previewWidth = preview.getIntrinsicWidth(); in startDrag()
169 scale = previewBounds.width() / (float) previewWidth; in startDrag()
181 previewWidth = preview.getIntrinsicWidth(); in startDrag()
184 scale = ((float) launcher.getDeviceProfile().iconSizePx) / previewWidth; in startDrag()
206 + (int) ((scale * previewWidth - previewWidth) / 2); in startDrag()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DFocusOverlayManager.java144 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/
DKeyPreviewChoreographer.java113 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()
DKeyPreviewDrawParams.java96 final int previewWidth = previewTextView.getMeasuredWidth(); in setGeometry() local
100 mVisibleWidth = previewWidth - previewTextView.getPaddingLeft() in setGeometry()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DMosaicFrameProcessor.java72 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/
DTextureViewHelper.java205 float previewWidth = previewRect.width();
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/
Dbackdropper.graph35 @external previewWidth;
70 owidth = $previewWidth;
Dgoofy_face.graph37 @external previewWidth;
82 owidth = $previewWidth;
/packages/apps/Camera2/res/raw/
Dbackdropper.graph35 @external previewWidth;
70 width = $previewWidth;
Dgoofy_face.graph37 @external previewWidth;
82 width = $previewWidth;
/packages/apps/Gallery2/res/raw/
Dbackdropper.graph35 @external previewWidth;
70 width = $previewWidth;
Dgoofy_face.graph37 @external previewWidth;
82 width = $previewWidth;
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DSizeCalculator.java265 public static float getPreviewCornerRadius(@NonNull Activity activity, int previewWidth) { in getPreviewCornerRadius() argument
270 / ((float) screenSize.x / previewWidth); in getPreviewCornerRadius()