Searched defs:width (Results 476 - 500 of 710) sorted by relevance

<<11121314151617181920>>

/frameworks/base/media/java/android/media/
H A DSubtitleTrack.java685 * @param width width in pixels
688 public void setSize(int width, int height); argument
/frameworks/base/media/java/android/media/tv/
H A DITvInputSessionWrapper.java266 public void dispatchSurfaceChanged(int format, int width, int height) { argument
268 format, width, height, 0));
/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp75 void setBufferWidth(int width) { mWidth = width; } argument
258 int32_t width, height, format; local
259 if ((res = anw->query(anw.get(), NATIVE_WINDOW_WIDTH, &width)) != OK) {
260 ALOGE("%s: Query Surface width failed: %s (%d)", __FUNCTION__, strerror(-res), res);
261 jniThrowRuntimeException(env, "Failed to query Surface width");
264 ctx->setBufferWidth(width);
698 const Rect noCrop(buffer->width, buffer->height);
H A Dandroid_media_MediaRecorder.cpp279 android_media_MediaRecorder_setVideoSize(JNIEnv *env, jobject thiz, jint width, jint height) argument
281 ALOGV("setVideoSize(%d, %d)", width, height);
284 if (width <= 0 || height <= 0) {
288 process_media_recorder_call(env, mr->setVideoSize(width, height), "java/lang/RuntimeException", "setVideoSize failed.");
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLFrame.java127 int width = getFormat().getWidth();
129 if (!nativeAllocateWithTexture(mGLEnvironment, texId, width, height)) {
137 int width = getFormat().getWidth();
139 if (!nativeAllocateWithFbo(mGLEnvironment, fboId, width, height)) {
276 public void setViewport(int x, int y, int width, int height) { argument
278 setNativeViewport(x, y, width, height);
364 private native boolean nativeAllocate(GLEnvironment env, int width, int height); argument
368 int width,
373 int width,
396 private native boolean setNativeViewport(int x, int y, int width, in argument
366 nativeAllocateWithTexture(GLEnvironment env, int textureId, int width, int height) argument
371 nativeAllocateWithFbo(GLEnvironment env, int fboId, int width, int height) argument
[all...]
H A DShaderProgram.java184 public void setSourceRect(float x, float y, float width, float height) { argument
185 setSourceRegion(x, y, x + width, y, x, y + height, x + width, y + height);
188 public void setTargetRect(float x, float y, float width, float height) { argument
189 setTargetRegion(x, y, x + width, y, x, y + height, x + width, y + height);
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
H A DVideoDumpView.java340 // The width and height of dumping block.
465 public void onSurfaceChanged(GL10 glUnused, int width, int height) { argument
466 Log.d(TAG, "Surface size: " + width + "x" + height);
496 prop.setProperty("width", Integer.toString(mWidth));
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DCameraMetadataTest.java695 // x, y, width, height
714 new MeteringRectangle(/*x*/1, /*y*/2, /*width*/100, /*height*/200, /*weight*/5),
721 new MeteringRectangle(/*x*/5, /*y*/6, /*width*/123, /*height*/456, /*weight*/7),
722 new MeteringRectangle(/*x*/7, /*y*/8, /*width*/456, /*height*/999, /*weight*/6),
723 new MeteringRectangle(/*x*/1, /*y*/2, /*width*/100, /*height*/200, /*weight*/5)
737 /*width*/1000, /*height*/255, /*fpsMin*/30, /*fpsMax*/200,
739 /* width, height, fpsMin, fpsMax */
746 /*width*/1280, /*height*/720, /*fpsMin*/60, /*fpsMax*/120,
749 /*width*/123, /*height*/456, /*fpsMin*/1, /*fpsMax*/200,
752 /*width*/409
1308 checkStreamConfigurationMapByFormatSize(StreamConfigurationMap configMap, int format, int width, int height, boolean output) argument
1346 checkStreamConfigurationMapDurationByFormatSize( StreamConfigurationMap configMap, int format, int width, int height, Duration durationKind, long expectedDuration) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskView.java266 protected void measureContents(int width, int height) { argument
267 int widthWithoutPadding = width - mPaddingLeft - mPaddingRight;
275 setMeasuredDimension(width, height);
H A DTaskViewHeader.java119 canvas.drawRoundRect(0, 0, mTaskViewRect.width(),
124 canvas.drawRoundRect(0, mHighlightHeight, mTaskViewRect.width(),
315 // Since we update the position of children based on the width of the parent and this view
317 onTaskViewSizeChanged(mTaskViewRect.width(), mTaskViewRect.height());
324 public void onTaskViewSizeChanged(int width, int height) { argument
325 mTaskViewRect.set(0, 0, width, height);
330 int rightInset = width - getMeasuredWidth();
341 showTitle = width >= (appIconWidth + dismissWidth + moveTaskWidth + titleWidth);
342 showMoveIcon = width >= (appIconWidth + dismissWidth + moveTaskWidth);
343 showDismissIcon = width >
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DGlobalScreenshot.java545 int x, int y, int width, int height) {
585 if (width != mDisplayMetrics.widthPixels || height != mDisplayMetrics.heightPixels) {
587 Bitmap cropped = Bitmap.createBitmap(mScreenBitmap, x, y, width, height);
629 if (rect.width() != 0 && rect.height() != 0) {
634 rect.left, rect.top, rect.width(), rect.height());
544 takeScreenshot(Runnable finisher, boolean statusBarVisible, boolean navBarVisible, int x, int y, int width, int height) argument
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DWallpaperCropActivity.java60 protected static final String WALLPAPER_WIDTH_KEY = "wallpaper.width";
209 private static float wallpaperTravelToScreenWidthRatio(int width, int height) { argument
210 float aspectRatio = width / (float) height;
212 // At an aspect ratio of 16/10, the wallpaper parallax effect should span 1.5 * screen width
213 // At an aspect ratio of 10/16, the wallpaper parallax effect should span 1.2 * screen width
222 // To find out the desired width at different aspect ratios, we use the following two
223 // formulas, where the coefficient on x is the aspect ratio (width/height):
376 float cropScale = mCropView.getWidth() / (float) cropRect.width();
401 // Cap the amount of extra width
402 float maxExtraSpace = defaultWallpaperSize.x / cropScale - cropRect.width();
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DOverlayDisplayAdapter.java61 * [width]x[height]/[densityDpi]
171 int width = Integer.parseInt(modeMatcher.group(1), 10);
174 if (width >= MIN_WIDTH && width <= MAX_WIDTH
178 modes.add(new OverlayMode(width, height, densityDpi));
291 mInfo.width = mode.getPhysicalWidth();
511 OverlayMode(int width, int height, int densityDpi) { argument
512 mWidth = width;
520 .append("width=").append(mWidth)
/frameworks/base/telecomm/java/android/telecom/
H A DInCallService.java679 * @param width The updated peer video width.
682 public abstract void onPeerDimensionsChanged(int width, int height); argument
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DRenderTarget.java86 public static RenderTarget newTarget(int width, int height) { argument
91 EGLSurface eglSurface = createSurface(egl, eglDisplay, width, height);
103 public RenderTarget forTexture(TextureSource texture, int width, int height) { argument
265 public void readPixelData(ByteBuffer pixels, int width, int height) { argument
266 GLToolbox.readTarget(this, pixels, width, height);
269 public ByteBuffer getPixelData(int width, int height) { argument
270 ByteBuffer pixels = ByteBuffer.allocateDirect(width * height * 4);
271 GLToolbox.readTarget(this, pixels, width, height);
390 private static EGLSurface createSurface(EGL10 egl, EGLDisplay display, int width, int height) { argument
392 int[] attribs = { EGL10.EGL_WIDTH, width, EGL1
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmap_Delegate.java251 /*package*/ static Bitmap nativeCreate(int[] colors, int offset, int stride, int width, argument
256 BufferedImage image = new BufferedImage(width, height, imageType);
259 image.setRGB(0, 0, width, height, colors, offset, stride);
278 int width = srcImage.getWidth();
284 BufferedImage image = new BufferedImage(width, height, imageType);
287 int[] argb = new int[width * height];
288 srcImage.getRGB(0, 0, width, height, argb, 0, width);
289 image.setRGB(0, 0, width, height, argb, 0, width);
329 nativeReconfigure(long nativeBitmap, int width, int height, int config, int allocSize, boolean isPremultiplied) argument
413 nativeGetPixels(long nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
435 nativeSetPixels(long nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java225 public void drawBitmap(int[] colors, int offset, int stride, float x, float y, int width, argument
230 public void drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderSessionImpl.java267 // If the screen width is less than the exact measured width,
371 @Nullable Canvas canvas, int width, int height) {
375 width, MeasureSpec.EXACTLY,
379 viewRoot.layout(0, 0, width, height);
522 * if <var>measuredView</var> is non null, the method returns a {@link Pair} of (width, height)
526 * @param measuredView if non null, the view to query for its measured width/height.
527 * @param width the width to use in the MeasureSpec.
528 * @param widthMode the MeasureSpec mode to use for the width
370 render(@onNull BridgeContext context, @NonNull ViewGroup viewRoot, @Nullable Canvas canvas, int width, int height) argument
534 measureView(ViewGroup viewToMeasure, View measuredView, int width, int widthMode, int height, int heightMode) argument
[all...]
/frameworks/minikin/libs/minikin/
H A DLineBreaker.cpp34 // constants are larger than any reasonable actual width score.
120 // width buffer.
125 float width = 0.0f; local
130 width = Layout::measureText(mTextBuf.data(), start, end - start, mTextBuf.size(), bidiFlags,
209 // Skip break for zero-width characters inside replacement span
220 return width;
224 // needed (ie when word exceeds current line width)
228 ParaWidth width = mCandidates.back().preBreak; local
229 if (postBreak - width > currentLineWidth()) {
234 width
288 pushBreak(int offset, float width, uint8_t hyph) argument
297 addReplacement(size_t start, size_t end, float width) argument
341 float width = mLineWidths.getLineWidth(0); local
[all...]
/frameworks/native/cmds/flatland/
H A DMain.cpp47 uint32_t width; member in struct:BenchmarkDesc
299 result = mGLHelper->createSurfaceTexture(mDesc.width, mDesc.height,
397 uint32_t w = uint32_t(scaleFactor * float(mDesc.width));
418 ld.width = uint32_t(scaleFactor * float(ld.width));
602 uint32_t runWidth = b.width * runHeight / b.height;
/frameworks/native/libs/gui/
H A DBufferQueueProducer.cpp344 sp<android::Fence> *outFence, uint32_t width, uint32_t height,
362 BQ_LOGV("dequeueBuffer: w=%u h=%u format=%#x, usage=%#x", width, height,
365 if ((width && !height) || (!width && height)) {
366 BQ_LOGE("dequeueBuffer: invalid size: w=%u h=%u", width, height);
386 const bool useDefaultSize = !width && !height;
388 width = mCore->mDefaultWidth;
413 if (buffer->needsReallocation(width, height, format, usage)) {
429 buffer->needsReallocation(width, height, format, usage)) {
448 buffer->needsReallocation(width, heigh
343 dequeueBuffer(int *outSlot, sp<android::Fence> *outFence, uint32_t width, uint32_t height, PixelFormat format, uint32_t usage) argument
1222 allocateBuffers(uint32_t width, uint32_t height, PixelFormat format, uint32_t usage) argument
[all...]
H A DIGraphicBufferProducer.cpp120 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, uint32_t width, argument
124 data.writeUint32(width);
288 virtual void allocateBuffers(uint32_t width, uint32_t height, argument
292 data.writeUint32(width);
483 uint32_t width = data.readUint32(); local
489 int result = dequeueBuffer(&buf, &fence, width, height, format,
599 uint32_t width = data.readUint32(); local
603 allocateBuffers(width, height, format, usage);
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp44 uint32_t width; member in struct:android::CpuConsumerTestParams
51 return os << "[ (" << p.width << ", " << p.height << "), B:"
65 params.width, params.height,
283 // Blocks need to be even-width/height, aim for 8-wide otherwise
308 uint32_t w = buf.width;
347 uint32_t w = buf.width;
390 uint32_t w = buf.width;
456 params.width, params.height);
504 fillYV12Buffer(img, params.width, params.height, *stride);
507 fillBayerRawBuffer(img, params.width, param
[all...]
H A DSRGB_test.cpp212 void drawTexture(bool asSRGB, GLint x, GLint y, GLsizei width, argument
215 glViewport(x, y, width, height);
223 ASSERT_EQ(mLockedBuffer.width, DISPLAY_WIDTH);
316 for (int x = 0; x < outBuffer.width; ++x) {
336 ASSERT_EQ(mLockedBuffer.width, static_cast<uint32_t>(outBuffer.width));
349 for (int x = 0; x < outBuffer.width; ++x) {
/frameworks/native/opengl/libagl/
H A Ddxt.cpp136 DXT1HasAlpha(const GLvoid *data, int width, int height) { argument
146 int xblocks = (width + 3)/4;
187 printf("Scanned w=%d h=%d in %ld usec\n", width, height, usec);
194 decodeDXT1(const GLvoid *data, int width, int height, argument
214 for (int base_x = 0; base_x < width; base_x += 4, blockPtr += 4) {
293 int w = min(width - base_x, 4);
307 decodeDXT3(const GLvoid *data, int width, int height, argument
326 for (int base_x = 0; base_x < width; base_x += 4, blockPtr += 4) {
399 int w = min(width - base_x, 4);
416 decodeDXT5(const GLvoid *data, int width, in argument
599 decodeDXT(const GLvoid *data, int width, int height, void *surface, int stride, int format) argument
[all...]

Completed in 580 milliseconds

<<11121314151617181920>>