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

1 2 3

  /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/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
FocusOverlayManager.java 74 private int previewWidth; // The width of the preview frame layout.
139 public void setPreviewSize(int previewWidth, int previewHeight) {
140 if (this.previewWidth != previewWidth || this.previewHeight != previewHeight) {
141 this.previewWidth = previewWidth;
153 if (previewWidth != 0 && previewHeight != 0) {
155 prepareMatrix(matrix, mirror, previewWidth, previewHeight);
227 int focusWidth, int focusHeight, int x, int y, int previewWidth, int previewHeight) {
235 focusWidth, focusHeight, 1f, x, y, previewWidth, previewHeight, focusArea.get(0).rect)
    [all...]
  /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).
  /external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
ClassifierActivity.java 124 previewWidth = size.getWidth();
130 LOGGER.i("Initializing at size %dx%d", previewWidth, previewHeight);
131 rgbFrameBitmap = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888);
135 previewWidth, previewHeight,
153 rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight);
208 lines.add("Frame: " + previewWidth + "x" + previewHeight);
CameraActivity.java 67 protected int previewWidth = 0;
118 previewWidth = previewSize.width;
119 rgbBytes = new int[previewWidth * previewHeight];
130 yRowStride = previewWidth;
136 ImageUtils.convertYUV420SPToARGB8888(bytes, previewWidth, previewHeight, rgbBytes);
157 if (previewWidth == 0 || previewHeight == 0) {
161 rgbBytes = new int[previewWidth * previewHeight];
190 previewWidth,
363 previewWidth = size.getWidth();
DetectorActivity.java 169 previewWidth = size.getWidth();
175 LOGGER.i("Initializing at size %dx%d", previewWidth, previewHeight);
176 rgbFrameBitmap = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888);
181 previewWidth, previewHeight,
233 lines.add("Frame: " + previewWidth + "x" + previewHeight);
252 previewWidth,
268 rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight);
StylizeActivity.java 362 previewWidth = size.getWidth();
449 previewWidth, previewHeight,
465 previewWidth, previewHeight, desiredSize);
467 rgbFrameBitmap = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888);
470 previewWidth, previewHeight,
480 rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight);
595 lines.add("Frame: " + previewWidth + "x" + 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) {
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...]
  /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/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 94 public CancellationSignal getPreview(WidgetItem item, int previewWidth,
96 String size = previewWidth + "x" + previewHeight;
99 PreviewLoadTask task = new PreviewLoadTask(key, item, previewWidth, previewHeight, caller);
290 int previewWidth, int previewHeight) {
293 previewWidth, recycle, null);
296 previewWidth, previewHeight, recycle);
338 int previewWidth;
343 previewWidth = drawable.getIntrinsicWidth();
348 previewWidth = tileSize * spanX;
356 preScaledWidthOut[0] = previewWidth;
    [all...]
  /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;
  /packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
FolderAdaptiveIcon.java 109 final int previewWidth = (int) (dragViewSize.x * sizeScaleFactor);
113 final float previewShiftX = shiftFactor * previewWidth;
116 Bitmap previewBitmap = BitmapRenderer.createHardwareBitmap(previewWidth, previewHeight,
  /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...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowCamera.java 238 private int previewWidth = 640;
275 previewSize.width = previewWidth;
373 previewWidth = width;
403 return previewWidth;
  /frameworks/av/camera/tests/
CameraZSLTests.cpp 245 int previewWidth, previewHeight;
246 params.getPreviewSize(&previewWidth, &previewHeight);
247 ASSERT_TRUE((0 < previewWidth) && (0 < previewHeight));
251 previewWidth, previewHeight,
  /frameworks/av/services/camera/libcameraservice/api1/client2/
CallbackProcessor.cpp 132 if (streamInfo.width != (uint32_t)params.previewWidth ||
153 params.previewWidth, params.previewHeight,
156 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 171 if (streamInfo.width != (uint32_t)params.previewWidth ||
175 params.previewWidth, params.previewHeight);
195 params.previewWidth, params.previewHeight,
  /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 97 int previewWidth;
150 int previewWidth = data.previewWidth;
160 matrix.setTranslate((previewWidth - mImageWidth) / 2, (previewHeight - mImageHeight) / 2);
161 Bitmap picture = generateAdjustedHwBitmap(data.image, previewWidth, previewHeight, matrix,
551 data.previewWidth = mPreviewWidth;
    [all...]
  /device/google/marlin/camera/QCamera2/HAL/test/
qcamera_test.cpp     [all...]

Completed in 526 milliseconds

1 2 3