HomeSort by relevance Sort by last modified time
    Searched refs:previewWidth (Results 1 - 25 of 40) sorted by null

1 2

  /packages/apps/LegacyCamera/src/com/android/camera/
PreviewFrameLayout.java 64 int previewWidth = MeasureSpec.getSize(widthSpec);
72 previewWidth -= hPadding;
74 if (previewWidth > previewHeight * mAspectRatio) {
75 previewWidth = (int) (previewHeight * mAspectRatio + .5);
77 previewHeight = (int) (previewWidth / mAspectRatio + .5);
81 previewWidth += hPadding;
85 super.onMeasure(MeasureSpec.makeMeasureSpec(previewWidth, MeasureSpec.EXACTLY),
FocusManager.java 258 int previewWidth = mPreviewFrame.getWidth();
270 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight,
272 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight,
278 int left = Util.clamp(x - focusWidth / 2, 0, previewWidth - focusWidth);
448 int x, int y, int previewWidth, int previewHeight, Rect rect) {
451 int left = Util.clamp(x - areaWidth / 2, 0, previewWidth - areaWidth);
  /packages/apps/Camera/src/com/android/camera/
PreviewFrameLayout.java 86 int previewWidth = MeasureSpec.getSize(widthSpec);
95 previewWidth -= hPadding;
98 boolean widthLonger = previewWidth > previewHeight;
99 int longSide = (widthLonger ? previewWidth : previewHeight);
100 int shortSide = (widthLonger ? previewHeight : previewWidth);
107 previewWidth = longSide;
110 previewWidth = shortSide;
115 previewWidth += hPadding;
120 super.onMeasure(MeasureSpec.makeMeasureSpec(previewWidth, MeasureSpec.EXACTLY),
MosaicFrameProcessor.java 89 public void initialize(int previewWidth, int previewHeight, int bufSize) {
90 mPreviewWidth = previewWidth;
116 private void setupMosaicer(int previewWidth, int previewHeight, int bufSize) {
117 Log.v(TAG, "setupMosaicer w, h=" + previewWidth + ',' + previewHeight + ',' + bufSize);
121 mMosaicer.allocateMosaicMemory(previewWidth, previewHeight);
222 // used in finding the translation is (PreviewWidth / HR_TO_LR_DOWNSAMPLE_FACTOR).
FocusOverlayManager.java 154 public void setPreviewSize(int previewWidth, int previewHeight) {
155 if (mPreviewWidth != previewWidth || mPreviewHeight != previewHeight) {
156 mPreviewWidth = previewWidth;
314 int x, int y, int previewWidth, int previewHeight) {
321 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight,
327 int x, int y, int previewWidth, int previewHeight) {
336 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight,
353 int previewWidth = mPreviewWidth;
358 focusWidth, focusHeight, x, y, previewWidth, previewHeight);
363 focusWidth, focusHeight, x, y, previewWidth, previewHeight)
    [all...]
SwitchAnimManager.java 82 float previewWidth = width * previewAnimScale;
84 int previewX = Math.round(centerX - previewWidth / 2);
110 preview.directDraw(canvas, previewX, previewY, Math.round(previewWidth),
  /packages/apps/Camera2/src/com/android/camera/
MosaicFrameProcessor.java 89 public void initialize(int previewWidth, int previewHeight, int bufSize) {
90 mPreviewWidth = previewWidth;
117 private void setupMosaicer(int previewWidth, int previewHeight, int bufSize) {
118 Log.v(TAG, "setupMosaicer w, h=" + previewWidth + ',' + previewHeight + ',' + bufSize);
122 mMosaicer.allocateMosaicMemory(previewWidth, previewHeight);
223 // used in finding the translation is (PreviewWidth / HR_TO_LR_DOWNSAMPLE_FACTOR).
FocusOverlayManager.java 161 public void setPreviewSize(int previewWidth, int previewHeight) {
162 if (mPreviewWidth != previewWidth || mPreviewHeight != previewHeight) {
163 mPreviewWidth = previewWidth;
  /packages/apps/LegacyCamera/src/com/android/camera/panorama/
MosaicFrameProcessor.java 72 public MosaicFrameProcessor(int previewWidth, int previewHeight, int bufSize) {
74 mPreviewWidth = previewWidth;
104 private void setupMosaicer(int previewWidth, int previewHeight, int bufSize) {
105 Log.v(TAG, "setupMosaicer w, h=" + previewWidth + ',' + previewHeight + ',' + bufSize);
106 mMosaicer.allocateMosaicMemory(previewWidth, previewHeight);
223 // used in finding the translation is (PreviewWidth / HR_TO_LR_DOWNSAMPLE_FACTOR).
  /packages/apps/Launcher2/src/com/android/launcher2/
WidgetPreviewLoader.java 153 public void setPreviewSize(int previewWidth, int previewHeight,
155 mPreviewBitmapWidth = previewWidth;
157 mSize = previewWidth + "x" + previewHeight;
437 int previewWidth;
442 previewWidth = drawable.getIntrinsicWidth();
455 previewWidth = previewDrawableWidth * cellHSpan; // subtract 2 dips
458 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight,
462 previewDrawable.setBounds(0, 0, previewWidth, previewHeight);
470 int smallestSide = Math.min(previewWidth, previewHeight);
495 preScaledWidthOut[0] = previewWidth;
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/
WidgetPreviewLoader.java 152 public void setPreviewSize(int previewWidth, int previewHeight,
154 mPreviewBitmapWidth = previewWidth;
156 mSize = previewWidth + "x" + previewHeight;
453 int previewWidth;
458 previewWidth = drawable.getIntrinsicWidth();
471 previewWidth = previewDrawableWidth * cellHSpan;
474 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight,
478 previewDrawable.setBounds(0, 0, previewWidth, previewHeight);
486 int smallestSide = Math.min(previewWidth, previewHeight);
511 preScaledWidthOut[0] = previewWidth;
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowCameraParameters.java 20 private int previewWidth = 640;
54 previewSize.width = previewWidth;
133 previewWidth = width;
138 return previewWidth;
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CameraPreview.java 227 int previewWidth = width;
230 previewWidth = mPreviewSize.width;
235 if (width * previewHeight > height * previewWidth) {
236 final int scaledChildWidth = previewWidth * height / previewHeight;
240 final int scaledChildHeight = previewHeight * width / previewWidth;
  /development/samples/HoneycombGallery/src/com/example/android/hcgallery/
CameraFragment.java 243 int previewWidth = width;
246 previewWidth = mPreviewSize.width;
251 if (width * previewHeight > height * previewWidth) {
252 final int scaledChildWidth = previewWidth * height
258 / previewWidth;
  /hardware/ti/omap4xxx/camera/OMXCameraAdapter/
OMXFD.cpp 190 size_t previewWidth,
278 ret = encodeFaceCoordinates(faceData, &faces, previewWidth, previewHeight);
294 size_t previewWidth,
398 tmp = ( double ) nLeft / ( double ) previewWidth;
408 tmp = ( double ) faceData->tFacePosition[j].nWidth / ( double ) previewWidth;
  /device/asus/flo/camera/QCamera2/HAL/test/
qcamera_test.cpp 330 unsigned int previewWidth, previewHeight;
333 previewWidth = dinfo.w;
335 previewWidth = width;
352 previewWidth,
366 ret |= mSurfaceControl->setSize(previewWidth, previewHeight);
522 int previewWidth, previewHeight;
532 previewWidth = currentPreviewSize.width;
535 ret = createPreviewSurface(previewWidth,
543 mParams.setPreviewSize(previewWidth, previewHeight);
  /hardware/qcom/camera/QCamera2/HAL/test/
qcamera_test.cpp 330 unsigned int previewWidth, previewHeight;
333 previewWidth = dinfo.w;
335 previewWidth = width;
352 previewWidth,
366 ret |= mSurfaceControl->setSize(previewWidth, previewHeight);
522 int previewWidth, previewHeight;
532 previewWidth = currentPreviewSize.width;
535 ret = createPreviewSurface(previewWidth,
543 mParams.setPreviewSize(previewWidth, previewHeight);
  /frameworks/av/services/camera/libcameraservice/api1/client2/
CallbackProcessor.cpp 131 if (currentWidth != (uint32_t)params.previewWidth ||
152 params.previewWidth, params.previewHeight,
155 params.previewWidth, params.previewHeight,
315 if (imgBuffer.width != static_cast<uint32_t>(l.mParameters.previewWidth) ||
319 l.mParameters.previewWidth, l.mParameters.previewHeight,
Parameters.cpp 66 previewWidth = availablePreviewSizes[0].width;
68 videoWidth = previewWidth;
71 params.setPreviewSize(previewWidth, previewHeight);
75 previewWidth, previewHeight));
    [all...]
Parameters.h 47 int previewWidth, previewHeight;
  /hardware/ti/omap4xxx/test/CameraHal/
camera_test_menu.cpp 736 unsigned int previewWidth, previewHeight;
739 previewWidth = MAX_PREVIEW_SURFACE_WIDTH;
741 previewWidth = width;
759 previewWidth,
768 surfaceControl->setSize(previewWidth, previewHeight);
1061 int previewWidth, previewHeight;
1066 previewWidth = VcaptureSize[VcaptureSizeIDX].width;
1070 previewWidth = previewSize[previewSizeIDX].width;
1074 if ( createPreviewSurface(previewWidth,
1085 params.setPreviewSize(previewWidth, previewHeight)
    [all...]
  /device/lge/mako/camera/
QualcommCameraHardware.cpp     [all...]
QCameraHWI_Parm.cpp     [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
MainKeyboardView.java     [all...]
  /device/lge/mako/camera/QCamera/HAL/core/src/
QCameraHWI_Parm.cpp     [all...]

Completed in 6198 milliseconds

1 2