Searched defs:width (Results 301 - 325 of 795) sorted by relevance

<<11121314151617181920>>

/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.h96 // Create an input stream of width, height, and format.
97 virtual binder::Status createInputStream(int width, int height, int format,
212 int width; member in class:android::CameraDeviceClient::OutputStreamInfo
219 width(-1), height(-1), format(-1), dataSpace(HAL_DATASPACE_UNKNOWN),
223 width(_width), height(_height), format(_format),
256 // a width <= ROUNDING_WIDTH_CAP
258 static bool roundBufferDimensionNearest(int32_t width, int32_t height, int32_t format,
275 int32_t width; member in struct:android::CameraDeviceClient::InputStreamConfiguration
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3IOStreamBase.cpp33 uint32_t width, uint32_t height, size_t maxSize, int format,
36 width, height, maxSize, format, dataSpace, rotation, setId),
78 camera3_stream::width, camera3_stream::height,
32 Camera3IOStreamBase(int id, camera3_stream_type_t type, uint32_t width, uint32_t height, size_t maxSize, int format, android_dataspace dataSpace, camera3_stream_rotation_t rotation, int setId) argument
H A DCamera3InputStream.cpp31 uint32_t width, uint32_t height, int format) :
32 Camera3IOStreamBase(id, CAMERA3_STREAM_INPUT, width, height, /*maxSize*/0,
270 res = mConsumer->setDefaultBufferSize(camera3_stream::width,
274 __FUNCTION__, mId, camera3_stream::width, camera3_stream::height);
30 Camera3InputStream(int id, uint32_t width, uint32_t height, int format) argument
/frameworks/base/core/java/android/app/
H A DUiAutomationConnection.java152 public Bitmap takeScreenshot(int width, int height) { argument
160 return SurfaceControl.screenshot(width, height);
/frameworks/base/core/java/android/hardware/
H A DHardwareBuffer.java110 * @param width The width in pixels of the buffer
127 public static HardwareBuffer create(int width, int height, @Format int format, int layers, argument
132 if (width <= 0) {
133 throw new IllegalArgumentException("Invalid width " + width);
144 long nativeObject = nCreateHardwareBuffer(width, height, format, layers, usage);
178 * Returns the width of this buffer in pixels.
182 throw new IllegalStateException("This HardwareBuffer has been closed and its width "
337 private static native long nCreateHardwareBuffer(int width, in argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/impl/
H A DICameraDeviceUserWrapper.java137 public int createInputStream(int width, int height, int format) throws CameraAccessException { argument
139 return mRemoteDevice.createInputStream(width, height, format);
/frameworks/base/core/java/android/hardware/display/
H A DDisplayManager.java505 int width, int height, int densityDpi, @Nullable Surface surface, int flags) {
506 return createVirtualDisplay(name, width, height, densityDpi, surface, flags, null, null);
534 * @param width The width of the virtual display in pixels, must be greater than 0.
553 int width, int height, int densityDpi, @Nullable Surface surface, int flags,
555 return createVirtualDisplay(null /* projection */, name, width, height, densityDpi, surface,
561 @NonNull String name, int width, int height, int densityDpi, @Nullable Surface surface,
565 name, width, height, densityDpi, surface, flags, callback, handler, uniqueId);
504 createVirtualDisplay(@onNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags) argument
552 createVirtualDisplay(@onNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
560 createVirtualDisplay(@ullable MediaProjection projection, @NonNull String name, int width, int height, int densityDpi, @Nullable Surface surface, int flags, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler, @Nullable String uniqueId) argument
/frameworks/base/core/java/android/text/
H A DBoringLayout.java195 mMax = metrics.width;
199 * width because the width that was passed in was for the
216 * Returns null if not boring; the width, ascent, and descent if boring.
224 * Returns null if not boring; the width, ascent, and descent in the
262 * Returns null if not boring; the width, ascent, and descent in the
294 fm.width = (int) Math.ceil(line.metrics(fm));
409 public int width; field in class:BoringLayout.Metrics
412 return super.toString() + " width=" + width;
[all...]
/frameworks/base/core/java/android/view/animation/
H A DScaleAnimation.java278 public void initialize(int width, int height, int parentWidth, int parentHeight) { argument
279 super.initialize(width, height, parentWidth, parentHeight);
281 mFromX = resolveScale(mFromX, mFromXType, mFromXData, width, parentWidth);
282 mToX = resolveScale(mToX, mToXType, mToXData, width, parentWidth);
286 mPivotX = resolveSize(mPivotXType, mPivotXValue, width, parentWidth);
/frameworks/base/core/java/android/view/autofill/
H A DAutofillPopupWindow.java90 public void update(View anchor, int offsetX, int offsetY, int width, int height, argument
173 setWidth(width);
177 update(actualAnchor, offsetX, offsetY, width, height);
205 p.width, p.height, gravity, getAllowScrollingAnchorParent());
/frameworks/base/core/java/android/widget/
H A DEdgeEffect.java133 * @param width Effect width in pixels
136 public void setSize(int width, int height) { argument
137 final float r = width * 0.75f / SIN;
147 mBounds.set(mBounds.left, mBounds.top, width, (int) Math.min(height, h));
311 * width of X=0 to X=width, beginning from Y=0 and extending to some factor <
329 float translateX = mBounds.width() * displacement / 2;
H A DFrameLayout.java140 * Returns a set of layout parameters with a width of
193 if (lp.width == LayoutParams.MATCH_PARENT ||
205 // Check against our minimum height and width
209 // Check against our foreground's minimum height and width
227 if (lp.width == LayoutParams.MATCH_PARENT) {
228 final int width = Math.max(0, getMeasuredWidth()
232 width, MeasureSpec.EXACTLY);
237 lp.width);
278 final int width = child.getMeasuredWidth();
295 childLeft = parentLeft + (parentRight - parentLeft - width) /
446 LayoutParams(int width, int height) argument
462 LayoutParams(int width, int height, int gravity) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DBaseSurfaceHolder.java115 public void setFixedSize(int width, int height) { argument
116 if (mRequestedWidth != width || mRequestedHeight != height) {
117 mRequestedWidth = width;
238 public void setSurfaceFrameSize(int width, int height) { argument
241 mSurfaceFrame.right = width;
/frameworks/base/core/jni/android/graphics/
H A DGraphicBuffer.cpp110 jint width, jint height, jint format, jint usage) {
113 uint32_t(width), uint32_t(height), PixelFormat(format), uint32_t(usage),
109 android_graphics_GraphicBuffer_create(JNIEnv* env, jobject clazz, jint width, jint height, jint format, jint usage) argument
H A DHarfBuzzNGFaceSkia.cpp59 static void SkiaGetGlyphWidthAndExtents(SkPaint* paint, hb_codepoint_t codepoint, hb_position_t* width, hb_glyph_extents_t* extents) argument
70 ALOGD("returned glyph for %i: width = %f", codepoint, skWidth);
72 if (width)
73 *width = SkScalarToHBFixed(skWidth);
78 extents->width = SkScalarToHBFixed(skBounds.width());
H A DYuvToJpegEncoder.cpp26 bool YuvToJpegEncoder::encode(SkWStream* stream, void* inYuv, int width, argument
41 setJpegCompressStruct(&cinfo, width, height, jpegQuality);
53 int width, int height, int quality) {
54 cinfo->image_width = width;
84 int width = cinfo->image_width; local
87 uint8_t* vuPlanar = yuv + offsets[1]; //width * height;
88 uint8_t* uRows = new uint8_t [8 * (width >> 1)];
89 uint8_t* vRows = new uint8_t [8 * (width >> 1)];
95 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width, height);
104 // height and width ar
52 setJpegCompressStruct(jpeg_compress_struct* cinfo, int width, int height, int quality) argument
117 deinterleave(uint8_t* vuPlanar, uint8_t* uRows, uint8_t* vRows, int rowIndex, int width, int height) argument
160 int width = cinfo->image_width; local
192 deinterleave(uint8_t* yuv, uint8_t* yRows, uint8_t* uRows, uint8_t* vRows, int rowIndex, int width, int height) argument
221 YuvImage_compressToJpeg(JNIEnv* env, jobject, jbyteArray inYuv, jint format, jint width, jint height, jintArray offsets, jintArray strides, jint jpegQuality, jobject jstream, jbyteArray jstorage) argument
[all...]
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfDocument.cpp37 PageRecord(int width, int height, const SkRect& contentRect) argument
40 , mWidth(width)
65 SkCanvas* startPage(int width, int height, argument
71 PageRecord* page = new PageRecord(width, height, contentRect);
76 SkRect::MakeWH(contentRect.width(), contentRect.height()));
H A DPdfRenderer.cpp55 double width = 0; local
58 int result = FPDF_GetPageSizeByIndex(document, pageIndex, &width, &height);
66 env->SetIntField(outSize, gPointClassInfo.x, width);
88 const int stride = skBitmap.width() * 4;
90 FPDF_BITMAP bitmap = FPDFBitmap_CreateEx(skBitmap.width(), skBitmap.height(),
/frameworks/base/core/jni/
H A Dandroid_hardware_HardwareBuffer.cpp73 jint width, jint height, jint format, jint layers, jlong usage) {
85 sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers,
72 android_hardware_HardwareBuffer_create(JNIEnv* env, jobject clazz, jint width, jint height, jint format, jint layers, jlong usage) argument
H A Dandroid_media_RemoteDisplay.cpp65 uint32_t width, uint32_t height, uint32_t flags, uint32_t session) {
77 surfaceObj, width, height, flags, session);
64 onDisplayConnected(const sp<IGraphicBufferProducer>& bufferProducer, uint32_t width, uint32_t height, uint32_t flags, uint32_t session) argument
H A Dandroid_text_StaticLayout.cpp53 // set text and set a number of parameters for creating a layout (width, tabstops, strategy,
172 // Accept width measurements for the run, passed in from Java
181 jint start, jint end, jfloat width) {
183 b->addReplacement(start, end, width);
180 nAddReplacementRun(JNIEnv* env, jclass, jlong nativePtr, jint start, jint end, jfloat width) argument
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java61 assertEquals(b.width, l.getEllipsizedWidth());
239 int width = 100; field in class:StaticLayoutTest.LayoutBuilder
255 LayoutBuilder setWidth(int width) { argument
256 this.width = width;
281 return new StaticLayout(text, paint, width, align, spacingMult,
371 // Zero width sequence
/frameworks/base/graphics/java/android/graphics/
H A DGraphicBuffer.java69 * @param width The width in pixels of the buffer
76 public static GraphicBuffer create(int width, int height, int format, int usage) { argument
77 long nativeObject = nCreateGraphicBuffer(width, height, format, usage);
79 return new GraphicBuffer(width, height, format, usage, nativeObject);
87 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { argument
88 mWidth = width;
99 public static GraphicBuffer createFromExisting(int width, int height, argument
103 return new GraphicBuffer(width, height, format, usage, nativeObject);
109 * Returns the width o
296 nCreateGraphicBuffer(int width, int height, int format, int usage) argument
[all...]
H A DPicture.java80 public Canvas beginRecording(int width, int height) { argument
81 long ni = nativeBeginRecording(mNativePicture, width, height);
100 * Get the width of the picture as passed to beginRecording. This
H A DRect.java31 * These fields can be accessed directly. Use width() and height() to retrieve
32 * the rectangle's width and height. Note: most methods do not check to see that
206 * @return the rectangle's width. This does not check for a valid rectangle
209 public final int width() { method in class:Rect
306 * keeping its width and height the same.

Completed in 304 milliseconds

<<11121314151617181920>>