Home
last modified time | relevance | path

Searched refs:Size (Results 1 – 13 of 13) sorted by relevance

/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DCameraHelper.java49 public static Camera.Size getOptimalVideoSize(List<Camera.Size> supportedVideoSizes, in getOptimalVideoSize()
50 List<Camera.Size> previewSizes, int w, int h) { in getOptimalVideoSize()
57 List<Camera.Size> videoSizes; in getOptimalVideoSize()
63 Camera.Size optimalSize = null; in getOptimalVideoSize()
75 for (Camera.Size size : videoSizes) { in getOptimalVideoSize()
88 for (Camera.Size size : videoSizes) { in getOptimalVideoSize()
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DCameraHelper.java49 public static Camera.Size getOptimalVideoSize(List<Camera.Size> supportedVideoSizes, in getOptimalVideoSize()
50 List<Camera.Size> previewSizes, int w, int h) { in getOptimalVideoSize()
57 List<Camera.Size> videoSizes; in getOptimalVideoSize()
63 Camera.Size optimalSize = null; in getOptimalVideoSize()
75 for (Camera.Size size : videoSizes) { in getOptimalVideoSize()
88 for (Camera.Size size : videoSizes) { in getOptimalVideoSize()
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DCameraHelper.java49 public static Camera.Size getOptimalVideoSize(List<Camera.Size> supportedVideoSizes, in getOptimalVideoSize()
50 List<Camera.Size> previewSizes, int w, int h) { in getOptimalVideoSize()
57 List<Camera.Size> videoSizes; in getOptimalVideoSize()
63 Camera.Size optimalSize = null; in getOptimalVideoSize()
75 for (Camera.Size size : videoSizes) { in getOptimalVideoSize()
88 for (Camera.Size size : videoSizes) { in getOptimalVideoSize()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCameraPreview.java24 import android.hardware.Camera.Size;
166 Size mPreviewSize;
167 List<Size> mSupportedPreviewSizes;
267 private Size getOptimalPreviewSize(List<Size> sizes, int w, int h) { in getOptimalPreviewSize()
272 Size optimalSize = null; in getOptimalPreviewSize()
278 for (Size size : sizes) { in getOptimalPreviewSize()
290 for (Size size : sizes) { in getOptimalPreviewSize()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DCameraFragment.java26 import android.hardware.Camera.Size;
175 Size mPreviewSize;
176 List<Size> mSupportedPreviewSizes;
286 private Size getOptimalPreviewSize(List<Size> sizes, int w, int h) { in getOptimalPreviewSize()
292 Size optimalSize = null; in getOptimalPreviewSize()
298 for (Size size : sizes) { in getOptimalPreviewSize()
311 for (Size size : sizes) { in getOptimalPreviewSize()
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java48 import android.util.Size;
152 private Size mPreviewSize;
157 private Size mVideoSize;
234 private static Size chooseVideoSize(Size[] choices) { in chooseVideoSize()
235 for (Size size : choices) { in chooseVideoSize()
255 private static Size chooseOptimalSize(Size[] choices, int width, int height, Size aspectRatio) { in chooseOptimalSize()
257 List<Size> bigEnough = new ArrayList<Size>(); in chooseOptimalSize()
260 for (Size option : choices) { in chooseOptimalSize()
695 static class CompareSizesByArea implements Comparator<Size> {
698 public int compare(Size lhs, Size rhs) { in compare()
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DViewfinderProcessor.java26 import android.util.Size;
47 private Size mSize;
55 public ViewfinderProcessor(RenderScript rs, Size dimensions) { in ViewfinderProcessor()
DHdrViewfinderActivity.java42 import android.util.Size;
472 Size[] outputSizes = configs.getOutputSizes(SurfaceHolder.class); in configureSurfaces()
474 Size outputSize = outputSizes[0]; in configureSurfaces()
476 for (Size candidateSize : outputSizes) { in configureSurfaces()
/development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/
DAutofillImeService.java28 import android.util.Size;
262 presentationSpecs.add(new InlinePresentationSpec.Builder(new Size(100, getHeight()), in onCreateInlineSuggestionsRequest()
263 new Size(740, getHeight())).setStyle(stylesBundle).build()); in onCreateInlineSuggestionsRequest()
264 presentationSpecs.add(new InlinePresentationSpec.Builder(new Size(100, getHeight()), in onCreateInlineSuggestionsRequest()
265 new Size(740, getHeight())).setStyle(stylesBundle).build()); in onCreateInlineSuggestionsRequest()
360 final Size size = new Size(ViewGroup.LayoutParams.WRAP_CONTENT, in inflateThenShowSuggestions()
/development/samples/browseable/MediaRecorder/src/com.example.android.mediarecorder/
DMainActivity.java149 List<Camera.Size> mSupportedPreviewSizes = parameters.getSupportedPreviewSizes(); in prepareVideoRecorder()
150 List<Camera.Size> mSupportedVideoSizes = parameters.getSupportedVideoSizes(); in prepareVideoRecorder()
151 Camera.Size optimalSize = CameraHelper.getOptimalVideoSize(mSupportedVideoSizes, in prepareVideoRecorder()
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCamera2BasicFragment.java53 import android.util.Size;
182 private Size mPreviewSize;
384 private static Size chooseOptimalSize(Size[] choices, int textureViewWidth, in chooseOptimalSize()
385 int textureViewHeight, int maxWidth, int maxHeight, Size aspectRatio) { in chooseOptimalSize()
388 List<Size> bigEnough = new ArrayList<>(); in chooseOptimalSize()
390 List<Size> notBigEnough = new ArrayList<>(); in chooseOptimalSize()
393 for (Size option : choices) { in chooseOptimalSize()
512 Size largest = Collections.max( in setUpCameraOutputs()
960 static class CompareSizesByArea implements Comparator<Size> {
963 public int compare(Size lhs, Size rhs) { in compare()
/development/tools/winscope/src/flickerlib/windows/
DWindowState.ts18 import { toRect, Size, WindowState, WindowLayoutParams } from "../common"
45 new Size(proto.requestedWidth, proto.requestedHeight),
/development/tools/winscope/src/flickerlib/
Dcommon.js73 const Size = require('flicker').com.android.server.wm.traces.common.Size; constant
109 return new Size(width, height);
254 Size,