Home
last modified time | relevance | path

Searched refs:height (Results 1 – 9 of 9) sorted by relevance

/pdk/apps/TestingCamera2/src/com/android/testingcamera2/
DFixedAspectSurfaceView.java77 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure() local
100 float boxAspectRatio = width / (float) height; in onMeasure()
123 width = (int) (height * mAspectRatio); in onMeasure()
125 height = (int) (width / mAspectRatio); in onMeasure()
130 height = View.resolveSizeAndState(height, heightMeasureSpec, 0); in onMeasure()
133 setMeasuredDimension(width, height); in onMeasure()
DTextureViewSubPane.java115 int height = width * s.getHeight() / s.getWidth(); in updateSizes() local
116 mTextureView.setLayoutParams(new LinearLayout.LayoutParams(width, height)); in updateSizes()
121 int height = width / 2; in updateSizes() local
122 mTextureView.setLayoutParams(new LinearLayout.LayoutParams(width, height)); in updateSizes()
146 final int height) { in onSurfaceTextureAvailable() argument
157 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
DTestingCamera21.java105 int height = 0; in onConfigurationChanged() local
108 height = LayoutParams.MATCH_PARENT; in onConfigurationChanged()
119 (height == 0) ? thickness : height); in onConfigurationChanged()
125 new LinearLayout.LayoutParams(width, height, outputViewListWeight.getFloat()); in onConfigurationChanged()
131 new LinearLayout.LayoutParams(width, height, controlListWeight.getFloat()); in onConfigurationChanged()
DSurfaceViewSubPane.java163 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
/pdk/apps/TestingCamera/src/com/android/testingcamera/
DTestingCamera.java433 int height) { in surfaceChanged() argument
439 mPreviewSizes.get(mPreviewSize).height; in surfaceChanged()
442 (float)width/height) > 0.01f) { in surfaceChanged()
456 log("Surface holder available: " + width + " x " + height); in surfaceChanged()
571 int height = mPreviewSizes.get(mPreviewSize).height;
572 mParams.setPreviewSize(width, height);
574 log("Setting preview size to " + width + "x" + height);
743 int height = mSnapshotSizes.get(mSnapshotSize).height;
744 log("Setting snapshot size to " + width + " x " + height);
746 mParams.setPictureSize(width, height);
[all …]
DCallbackProcessor.java51 public CallbackProcessor(int width, int height, int format, in CallbackProcessor() argument
56 mHeight = height; in CallbackProcessor()
DSnapshotDialogFragment.java196 int height = exif.getAttributeInt(ExifInterface.TAG_IMAGE_LENGTH, 0); in updateExif() local
223 append(width).append(" x ").append(height).append("\n"); in updateExif()
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/v1/
DTestingCamera2.java328 int height = params.height; in updatePreviewOrientation() local
333 height)); in updatePreviewOrientation()
340 if (height > width) { in updatePreviewOrientation()
342 width = height; in updatePreviewOrientation()
343 height = tmp; in updatePreviewOrientation()
346 if (width > height) { in updatePreviewOrientation()
348 width = height; in updatePreviewOrientation()
349 height = tmp; in updatePreviewOrientation()
353 if (width != params.width && height != params.height) { in updatePreviewOrientation()
357 height)); in updatePreviewOrientation()
[all …]
DCameraOps.java456 int height = 480; in minimalStillCapture() local
460 height = stillSizes[0].getHeight(); in minimalStillCapture()
464 mCaptureReader.getHeight() != height || in minimalStillCapture()
469 mCaptureReader = ImageReader.newInstance(width, height, in minimalStillCapture()