Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java93 public PreviewLoadRequest getPreview(final Object o, int previewWidth, in getPreview() argument
95 String size = previewWidth + "x" + previewHeight; in getPreview()
98 PreviewLoadTask task = new PreviewLoadTask(key, o, previewWidth, previewHeight, caller); in getPreview()
328 int previewWidth, int previewHeight) { in generatePreview() argument
331 previewWidth, recycle, null); in generatePreview()
334 (ResolveInfo) info, previewWidth, previewHeight, recycle); in generatePreview()
358 int previewWidth; in generateWidgetPreview() local
363 previewWidth = drawable.getIntrinsicWidth(); in generateWidgetPreview()
369 previewWidth = tileBitmap.getWidth() * spanX; in generateWidgetPreview()
377 preScaledWidthOut[0] = previewWidth; in generateWidgetPreview()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DWidgetPreviewLoader.java183 public void setPreviewSize(int previewWidth, int previewHeight, in setPreviewSize() argument
185 mPreviewBitmapWidth = previewWidth; in setPreviewSize()
187 mSize = previewWidth + "x" + previewHeight; in setPreviewSize()
484 int previewWidth; in generateWidgetPreview() local
489 previewWidth = drawable.getIntrinsicWidth(); in generateWidgetPreview()
502 previewWidth = previewDrawableWidth * cellHSpan; // subtract 2 dips in generateWidgetPreview()
505 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight, in generateWidgetPreview()
509 previewDrawable.setBounds(0, 0, previewWidth, previewHeight); in generateWidgetPreview()
517 int smallestSide = Math.min(previewWidth, previewHeight); in generateWidgetPreview()
543 preScaledWidthOut[0] = previewWidth; in generateWidgetPreview()
[all …]
/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/apps/Camera/src/com/android/camera/
DFocusOverlayManager.java154 public void setPreviewSize(int previewWidth, int previewHeight) { in setPreviewSize() argument
155 if (mPreviewWidth != previewWidth || mPreviewHeight != previewHeight) { in setPreviewSize()
156 mPreviewWidth = previewWidth; in setPreviewSize()
314 int x, int y, int previewWidth, int previewHeight) { in initializeFocusAreas() argument
321 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, in initializeFocusAreas()
327 int x, int y, int previewWidth, int previewHeight) { in initializeMeteringAreas() argument
336 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight, in initializeMeteringAreas()
353 int previewWidth = mPreviewWidth; in onSingleTapUp() local
358 focusWidth, focusHeight, x, y, previewWidth, previewHeight); in onSingleTapUp()
363 focusWidth, focusHeight, x, y, previewWidth, previewHeight); in onSingleTapUp()
[all …]
DPreviewFrameLayout.java86 int previewWidth = MeasureSpec.getSize(widthSpec); in onMeasure() local
95 previewWidth -= hPadding; in onMeasure()
98 boolean widthLonger = previewWidth > previewHeight; in onMeasure()
99 int longSide = (widthLonger ? previewWidth : previewHeight); in onMeasure()
100 int shortSide = (widthLonger ? previewHeight : previewWidth); in onMeasure()
107 previewWidth = longSide; in onMeasure()
110 previewWidth = shortSide; in onMeasure()
115 previewWidth += hPadding; in onMeasure()
120 super.onMeasure(MeasureSpec.makeMeasureSpec(previewWidth, MeasureSpec.EXACTLY), in onMeasure()
DMosaicFrameProcessor.java89 public void initialize(int previewWidth, int previewHeight, int bufSize) { in initialize() argument
90 mPreviewWidth = previewWidth; in initialize()
116 private void setupMosaicer(int previewWidth, int previewHeight, int bufSize) { in setupMosaicer() argument
117 Log.v(TAG, "setupMosaicer w, h=" + previewWidth + ',' + previewHeight + ',' + bufSize); in setupMosaicer()
121 mMosaicer.allocateMosaicMemory(previewWidth, previewHeight); in setupMosaicer()
DSwitchAnimManager.java82 float previewWidth = width * previewAnimScale; in drawAnimation() local
84 int previewX = Math.round(centerX - previewWidth / 2); in drawAnimation()
110 preview.directDraw(canvas, previewX, previewY, Math.round(previewWidth), in drawAnimation()
DEffectsRecorder.java424 int previewWidth, in setPreviewSurfaceTexture() argument
439 mPreviewWidth = previewWidth; in setPreviewSurfaceTexture()
/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/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.java204 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/Camera2/res/raw/
Dbackdropper.graph35 @external previewWidth;
70 width = $previewWidth;
Dgoofy_face.graph37 @external previewWidth;
82 width = $previewWidth;
/packages/apps/Camera/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/LegacyCamera/res/raw/
Dbackdropper.graph35 @external previewWidth;
70 owidth = $previewWidth;
Dgoofy_face.graph37 @external previewWidth;
82 owidth = $previewWidth;