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 | 400 int width, in surfaceChanged() argument 405 mPreviewSizes.get(mPreviewSize).width; in surfaceChanged() 410 (float)width/height) > 0.01f) { in surfaceChanged() 424 log("Surface holder available: " + width + " x " + height); in surfaceChanged() 538 int width = mPreviewSizes.get(mPreviewSize).width; 540 mParams.setPreviewSize(width, height); 542 log("Setting preview size to " + width + "x" + height); 710 int width = mSnapshotSizes.get(mSnapshotSize).width; 712 log("Setting snapshot size to " + width + " x " + height); 714 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 | 292 int width = params.width; in updatePreviewOrientation() local 297 "onConfiguredChanged: current layout is %dx%d", width, in updatePreviewOrientation() 305 if (height > width) { in updatePreviewOrientation() 306 int tmp = width; in updatePreviewOrientation() 307 width = height; in updatePreviewOrientation() 311 if (width > height) { in updatePreviewOrientation() 312 int tmp = width; in updatePreviewOrientation() 313 width = height; in updatePreviewOrientation() 318 if (width != params.width && height != params.height) { in updatePreviewOrientation() 321 "onConfiguredChanged: updating preview size to %dx%d", width, in updatePreviewOrientation() [all …]
|
D | CameraOps.java | 369 int width = 640; in minimalJpegCapture() local 373 width = jpegSizes[0].getWidth(); in minimalJpegCapture() 377 if (mCaptureReader == null || mCaptureReader.getWidth() != width || in minimalJpegCapture() 382 mCaptureReader = ImageReader.newInstance(width, height, in minimalJpegCapture()
|