/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);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowCameraParameters.java | 20 private int previewWidth = 640; 54 previewSize.width = previewWidth; 133 previewWidth = width; 138 return 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
KeyPreviewChoreographer.java | 113 final int previewWidth = keyPreviewView.getMeasuredWidth(); 120 int previewX = key.getDrawX() - (previewWidth - keyDrawWidth) / 2 125 } else if (previewX > keyboardViewWidth - previewWidth) { 126 previewX = keyboardViewWidth - previewWidth; 139 keyPreviewView, previewX, previewY, previewWidth, previewHeight); 140 keyPreviewView.setPivotX(previewWidth / 2.0f);
|
KeyPreviewDrawParams.java | 96 final int previewWidth = previewTextView.getMeasuredWidth(); 100 mVisibleWidth = previewWidth - previewTextView.getPaddingLeft()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
WidgetPreviewLoader.java | 95 public PreviewLoadRequest getPreview(WidgetItem item, int previewWidth, 97 String size = previewWidth + "x" + previewHeight; 100 PreviewLoadTask task = new PreviewLoadTask(key, item, previewWidth, previewHeight, caller); 276 int previewWidth, int previewHeight) { 279 previewWidth, recycle, null); 282 previewWidth, previewHeight, recycle); 317 int previewWidth; 323 previewWidth = drawable.getIntrinsicWidth(); 329 previewWidth = tileBitmap.getWidth() * spanX; 337 preScaledWidthOut[0] = previewWidth; [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
FocusOverlayManager.java | 144 public void setPreviewSize(int previewWidth, int previewHeight) { 145 if (mPreviewWidth != previewWidth || mPreviewHeight != previewHeight) { 146 mPreviewWidth = previewWidth; 306 int x, int y, int previewWidth, int previewHeight) { 313 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, 318 int x, int y, int previewWidth, int previewHeight) { 327 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight, 347 int previewWidth = mPreviewWidth; 351 initializeFocusAreas(focusWidth, focusHeight, x, y, previewWidth, previewHeight); 355 initializeMeteringAreas(focusWidth, focusHeight, x, y, previewWidth, previewHeight) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
WidgetPreviewLoader.java | 183 public void setPreviewSize(int previewWidth, int previewHeight, 185 mPreviewBitmapWidth = previewWidth; 187 mSize = previewWidth + "x" + previewHeight; 484 int previewWidth; 489 previewWidth = drawable.getIntrinsicWidth(); 502 previewWidth = previewDrawableWidth * cellHSpan; // subtract 2 dips 505 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight, 509 previewDrawable.setBounds(0, 0, previewWidth, previewHeight); 517 int smallestSide = Math.min(previewWidth, previewHeight); 543 preScaledWidthOut[0] = previewWidth; [all...] |
/packages/apps/Camera2/res/raw/ |
backdropper.graph | 35 @external previewWidth; 70 width = $previewWidth;
|
goofy_face.graph | 37 @external previewWidth; 82 width = $previewWidth;
|
/packages/apps/Gallery2/res/raw/ |
backdropper.graph | 35 @external previewWidth; 70 width = $previewWidth;
|
goofy_face.graph | 37 @external previewWidth; 82 width = $previewWidth;
|
/packages/apps/LegacyCamera/res/raw/ |
backdropper.graph | 35 @external previewWidth; 70 owidth = $previewWidth;
|
goofy_face.graph | 37 @external previewWidth; 82 owidth = $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;
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
CallbackProcessor.cpp | 133 if (currentWidth != (uint32_t)params.previewWidth || 154 params.previewWidth, params.previewHeight, 157 params.previewWidth, params.previewHeight, callbackFormat, 317 if (imgBuffer.width != static_cast<uint32_t>(l.mParameters.previewWidth) || 321 l.mParameters.previewWidth, l.mParameters.previewHeight,
|
Parameters.cpp | 96 previewWidth = 0; 101 if (newWidth >= previewWidth && newHeight >= previewHeight && 107 previewWidth = newWidth; 113 if (previewWidth == 0) { 117 videoWidth = previewWidth; 120 params.setPreviewSize(previewWidth, previewHeight); 124 previewWidth, previewHeight)); [all...] |
StreamingProcessor.cpp | 177 if (currentWidth != (uint32_t)params.previewWidth || 181 params.previewWidth, params.previewHeight); 201 params.previewWidth, params.previewHeight,
|
/hardware/ti/omap4-aah/camera/OMXCameraAdapter/ |
OMXFD.cpp | 202 size_t previewWidth, 271 , previewWidth, previewHeight); 303 size_t previewWidth, 405 tmp = ( double ) nLeft / ( double ) previewWidth; 415 tmp = ( double ) faceData->tFacePosition[j].nWidth / ( double ) previewWidth;
|
/packages/apps/Camera2/src/com/android/camera/ |
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;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
GlobalScreenshot.java | 81 int previewWidth; 140 int previewWidth = data.previewWidth; 151 Bitmap picture = Bitmap.createBitmap(previewWidth, previewHeight, data.image.getConfig()); 152 matrix.setTranslate((previewWidth - mImageWidth) / 2, (previewHeight - mImageHeight) / 2); 517 data.previewWidth = mPreviewWidth; [all...] |
/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...] |