/packages/apps/Launcher3/src/com/android/launcher3/ |
D | WidgetPreviewLoader.java | 93 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/ |
D | WidgetPreviewLoader.java | 183 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/ |
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/apps/Camera/src/com/android/camera/ |
D | FocusOverlayManager.java | 154 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 …]
|
D | PreviewFrameLayout.java | 86 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()
|
D | MosaicFrameProcessor.java | 89 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()
|
D | SwitchAnimManager.java | 82 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()
|
D | EffectsRecorder.java | 424 int previewWidth, in setPreviewSurfaceTexture() argument 439 mPreviewWidth = previewWidth; in setPreviewSurfaceTexture()
|
/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/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/Camera2/res/raw/ |
D | backdropper.graph | 35 @external previewWidth; 70 width = $previewWidth;
|
D | goofy_face.graph | 37 @external previewWidth; 82 width = $previewWidth;
|
/packages/apps/Camera/res/raw/ |
D | backdropper.graph | 35 @external previewWidth; 70 width = $previewWidth;
|
D | goofy_face.graph | 37 @external previewWidth; 82 width = $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/LegacyCamera/res/raw/ |
D | backdropper.graph | 35 @external previewWidth; 70 owidth = $previewWidth;
|
D | goofy_face.graph | 37 @external previewWidth; 82 owidth = $previewWidth;
|