Searched refs:width (Results 1 – 9 of 9) sorted by relevance
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/ |
D | FixedAspectSurfaceView.java | 76 int width = MeasureSpec.getSize(widthMeasureSpec); 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() 129 width = View.resolveSizeAndState(width, widthMeasureSpec, 0); in onMeasure() 133 setMeasuredDimension(width, height); in onMeasure()
|
D | TextureViewSubPane.java | 114 int width = getWidth(); in updateSizes() local 115 int height = width * s.getHeight() / s.getWidth(); in updateSizes() 116 mTextureView.setLayoutParams(new LinearLayout.LayoutParams(width, height)); in updateSizes() 120 int width = getWidth(); in updateSizes() local 121 int height = width / 2; in updateSizes() 122 mTextureView.setLayoutParams(new LinearLayout.LayoutParams(width, height)); in updateSizes() 145 public void onSurfaceTextureAvailable(final SurfaceTexture surface, final int width, in onSurfaceTextureAvailable() argument 157 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
|
D | TestingCamera21.java | 104 int width = 0; in onConfigurationChanged() local 111 width = LayoutParams.MATCH_PARENT; in onConfigurationChanged() 118 (width == 0) ? thickness : width, in onConfigurationChanged() 125 new LinearLayout.LayoutParams(width, height, outputViewListWeight.getFloat()); in onConfigurationChanged() 131 new LinearLayout.LayoutParams(width, height, controlListWeight.getFloat()); in onConfigurationChanged()
|
D | SurfaceViewSubPane.java | 163 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
|
/pdk/apps/TestingCamera/src/com/android/testingcamera/ |
D | TestingCamera.java | 432 int width, in surfaceChanged() argument 437 mPreviewSizes.get(mPreviewSize).width; in surfaceChanged() 442 (float)width/height) > 0.01f) { in surfaceChanged() 456 log("Surface holder available: " + width + " x " + height); in surfaceChanged() 570 int width = mPreviewSizes.get(mPreviewSize).width; 572 mParams.setPreviewSize(width, height); 574 log("Setting preview size to " + width + "x" + height); 742 int width = mSnapshotSizes.get(mSnapshotSize).width; 744 log("Setting snapshot size to " + width + " x " + height); 746 mParams.setPictureSize(width, height); [all …]
|
D | CallbackProcessor.java | 51 public CallbackProcessor(int width, int height, int format, in CallbackProcessor() argument 55 mWidth = width; in CallbackProcessor()
|
D | SnapshotDialogFragment.java | 195 int width = exif.getAttributeInt(ExifInterface.TAG_IMAGE_WIDTH, 0); in updateExif() local 223 append(width).append(" x ").append(height).append("\n"); in updateExif()
|
/pdk/apps/TestingCamera2/src/com/android/testingcamera2/v1/ |
D | TestingCamera2.java | 327 int width = params.width; in updatePreviewOrientation() local 332 "onConfiguredChanged: current layout is %dx%d", width, in updatePreviewOrientation() 340 if (height > width) { in updatePreviewOrientation() 341 int tmp = width; in updatePreviewOrientation() 342 width = height; in updatePreviewOrientation() 346 if (width > height) { in updatePreviewOrientation() 347 int tmp = width; in updatePreviewOrientation() 348 width = height; in updatePreviewOrientation() 353 if (width != params.width && height != params.height) { in updatePreviewOrientation() 356 "onConfiguredChanged: updating preview size to %dx%d", width, in updatePreviewOrientation() [all …]
|
D | CameraOps.java | 455 int width = 640; in minimalStillCapture() local 459 width = stillSizes[0].getWidth(); in minimalStillCapture() 463 if (mCaptureReader == null || mCaptureReader.getWidth() != width || in minimalStillCapture() 469 mCaptureReader = ImageReader.newInstance(width, height, in minimalStillCapture()
|