/packages/apps/LegacyCamera/src/com/android/camera/ |
PreviewFrameLayout.java | 65 int previewHeight = MeasureSpec.getSize(heightSpec); 73 previewHeight -= vPadding; 74 if (previewWidth > previewHeight * mAspectRatio) { 75 previewWidth = (int) (previewHeight * mAspectRatio + .5); 77 previewHeight = (int) (previewWidth / mAspectRatio + .5); 82 previewHeight += vPadding; 86 MeasureSpec.makeMeasureSpec(previewHeight, MeasureSpec.EXACTLY));
|
FocusManager.java | 259 int previewHeight = mPreviewFrame.getHeight(); 270 calculateTapArea(focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, 272 calculateTapArea(focusWidth, focusHeight, 1.5f, x, y, previewWidth, previewHeight, 279 int top = Util.clamp(y - focusHeight / 2, 0, previewHeight - focusHeight); 448 int x, int y, int previewWidth, int previewHeight, Rect rect) { 452 int top = Util.clamp(y - areaHeight / 2, 0, previewHeight - areaHeight);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowCameraParameters.java | 21 private int previewHeight = 480; 55 previewSize.height = previewHeight; 134 previewHeight = height; 142 return previewHeight;
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
MosaicFrameProcessor.java | 72 public MosaicFrameProcessor(int previewWidth, int previewHeight, int bufSize) { 75 mPreviewHeight = previewHeight; 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);
|
/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) { 147 mPreviewHeight = previewHeight; 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, 348 int previewHeight = mPreviewHeight; 351 initializeFocusAreas(focusWidth, focusHeight, x, y, previewWidth, previewHeight); 355 initializeMeteringAreas(focusWidth, focusHeight, x, y, previewWidth, previewHeight); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
WidgetPreviewLoader.java | 94 int previewHeight, WidgetCell caller) { 95 String size = previewWidth + "x" + previewHeight; 98 PreviewLoadTask task = new PreviewLoadTask(key, o, previewWidth, previewHeight, caller); 298 int previewWidth, int previewHeight) { 304 (ResolveInfo) info, previewWidth, previewHeight, recycle); 340 int previewHeight; 346 previewHeight = drawable.getIntrinsicHeight(); 352 previewHeight = tileBitmap.getHeight() * spanY; 366 previewHeight = (int) (scale * previewHeight); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
KeyPreviewChoreographer.java | 114 final int previewHeight = mParams.mPreviewHeight; 135 final int previewY = key.getY() - previewHeight + mParams.mPreviewOffset 139 keyPreviewView, previewX, previewY, previewWidth, previewHeight); 141 keyPreviewView.setPivotY(previewHeight);
|
KeyPreviewDrawParams.java | 97 final int previewHeight = mPreviewHeight; 102 mVisibleHeight = previewHeight - previewTextView.getPaddingTop()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
WidgetPreviewLoader.java | 183 public void setPreviewSize(int previewWidth, int previewHeight, 186 mPreviewBitmapHeight = previewHeight; 187 mSize = previewWidth + "x" + previewHeight; 485 int previewHeight; 490 previewHeight = drawable.getIntrinsicHeight(); 503 previewHeight = previewDrawableHeight * cellVSpan; 505 defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight, 509 previewDrawable.setBounds(0, 0, previewWidth, previewHeight); 517 int smallestSide = Math.min(previewWidth, previewHeight); 550 previewHeight = (int) (scale * previewHeight) [all...] |
/packages/apps/Camera2/res/raw/ |
backdropper.graph | 36 @external previewHeight; 71 height = $previewHeight;
|
goofy_face.graph | 38 @external previewHeight; 83 height = $previewHeight;
|
/packages/apps/Gallery2/res/raw/ |
backdropper.graph | 36 @external previewHeight; 71 height = $previewHeight;
|
goofy_face.graph | 38 @external previewHeight; 83 height = $previewHeight;
|
/packages/apps/LegacyCamera/res/raw/ |
backdropper.graph | 36 @external previewHeight; 71 oheight = $previewHeight;
|
goofy_face.graph | 38 @external previewHeight; 83 oheight = $previewHeight;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
CameraPreview.java | 228 int previewHeight = height; 231 previewHeight = mPreviewSize.height; 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 | 244 int previewHeight = height; 247 previewHeight = mPreviewSize.height; 251 if (width * previewHeight > height * previewWidth) { 253 / previewHeight; 257 final int scaledChildHeight = previewHeight * width
|
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/ |
OMXFD.cpp | 191 size_t previewHeight) 278 ret = encodeFaceCoordinates(faceData, &faces, previewWidth, previewHeight); 295 size_t previewHeight) 403 tmp = ( double ) nTop / ( double )previewHeight; 413 tmp = ( double ) faceData->tFacePosition[j].nHeight / ( double ) previewHeight;
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
CallbackProcessor.cpp | 134 currentHeight != (uint32_t)params.previewHeight || 154 params.previewWidth, params.previewHeight, 157 params.previewWidth, params.previewHeight, callbackFormat, 318 imgBuffer.height != static_cast<uint32_t>(l.mParameters.previewHeight)) { 321 l.mParameters.previewWidth, l.mParameters.previewHeight,
|
Parameters.cpp | 97 previewHeight = 0; 101 if (newWidth >= previewWidth && newHeight >= previewHeight && 108 previewHeight = newHeight; 118 videoHeight = previewHeight; 120 params.setPreviewSize(previewWidth, previewHeight); 124 previewWidth, previewHeight)); [all...] |
StreamingProcessor.cpp | 178 currentHeight != (uint32_t)params.previewHeight) { 181 params.previewWidth, params.previewHeight); 201 params.previewWidth, params.previewHeight,
|
/hardware/ti/omap4-aah/camera/OMXCameraAdapter/ |
OMXFD.cpp | 203 size_t previewHeight) 271 , previewWidth, previewHeight); 304 size_t previewHeight) 410 tmp = ( double ) nTop / ( double )previewHeight; 420 tmp = ( double ) faceData->tFacePosition[j].nHeight / ( double ) previewHeight;
|
/packages/apps/Camera2/src/com/android/camera/ |
TextureViewHelper.java | 205 float previewHeight = previewRect.height(); 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 | 82 int previewheight; field in class:SaveImageInBackgroundData 141 int previewHeight = data.previewheight; 151 Bitmap picture = Bitmap.createBitmap(previewWidth, previewHeight, data.image.getConfig()); 152 matrix.setTranslate((previewWidth - mImageWidth) / 2, (previewHeight - mImageHeight) / 2); 518 data.previewheight = mPreviewHeight; [all...] |
/hardware/ti/omap4xxx/test/CameraHal/ |
camera_test_menu.cpp | 736 unsigned int previewWidth, previewHeight; 745 previewHeight = MAX_PREVIEW_SURFACE_HEIGHT; 747 previewHeight = height; 760 previewHeight, 768 surfaceControl->setSize(previewWidth, previewHeight); 1061 int previewWidth, previewHeight; 1067 previewHeight = VcaptureSize[VcaptureSizeIDX].height; 1071 previewHeight = previewSize[previewSizeIDX].height; 1075 previewHeight, 1085 params.setPreviewSize(previewWidth, previewHeight); [all...] |