Searched defs:height (Results 426 - 450 of 674) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp55 static void rgbToYuv420(uint8_t* rgbBuf, size_t width, size_t height, uint8_t* yPlane, argument
59 for (size_t j = 0; j < height; j++) {
86 static void rgbToYuv420(uint8_t* rgbBuf, size_t width, size_t height, android_ycbcr* ycbcr) { argument
92 rgbToYuv420(rgbBuf, width, height, reinterpret_cast<uint8_t*>(ycbcr->y),
141 * height - height of the pixelBuffer in pixels.
170 ALOGE("%s: height must be non-negative", __FUNCTION__);
178 size_t height = static_cast<size_t>(bufHeight); local
189 if (grallocBufWidth != width || grallocBufHeight != height) {
192 grallocBufHeight, width, height);
567 LegacyCameraDevice_nativeProduceFrame(JNIEnv* env, jobject thiz, jobject surface, jbyteArray pixelBuffer, jint width, jint height, jint pixelFormat) argument
617 LegacyCameraDevice_nativeSetSurfaceDimens(JNIEnv* env, jobject thiz, jobject surface, jint width, jint height) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DShapeDrawable.java181 * Sets the intrinsic (default) height for this shape.
183 * @param height the intrinsic height (in pixels)
185 public void setIntrinsicHeight(int height) { argument
186 mShapeState.mIntrinsicHeight = height;
470 final int h = r.height();
602 * is resized (has a new width or height). Its resize() method returns a
615 * @param height the heigh of the Drawable being drawn
618 public abstract Shader resize(int width, int height); argument
/frameworks/base/libs/hwui/
H A DDeferredDisplayList.cpp150 MergingDrawBatch(DeferInfo& deferInfo, int width, int height) : argument
151 DrawBatch(deferInfo), mClipRect(width, height),
H A DLayer.h100 const float height = layer.getHeight(); local
102 regionRect.left * texX, (height - regionRect.top) * texY,
103 regionRect.right * texX, (height - regionRect.bottom) * texY);
127 * @param height The new height of the layer
132 bool resize(const uint32_t width, const uint32_t height);
134 void setSize(uint32_t width, uint32_t height) { argument
135 texture.updateSize(width, height, texture.format());
H A DTessellationCache.cpp73 if (lRect.height != rRect.height) return false;
440 description.shape.roundRect.height);
456 float width, float height, float rx, float ry) {
459 entry.shape.roundRect.height = height;
465 float width, float height, float rx, float ry) {
466 return getRoundRectBuffer(transform, paint, width, height, rx, ry)->getVertexBuffer();
454 getRoundRectBuffer( const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
464 getRoundRect(const Matrix4& transform, const SkPaint& paint, float width, float height, float rx, float ry) argument
H A DVectorDrawable.cpp78 // return the minimal height of the 2 bases.
476 int scaledHeight = (int) (bounds.height() * canvasScaleY);
518 mStagingCache.bitmap.width(), mStagingCache.bitmap.height(),
558 float scaleY = outCache->height() / viewportHeight;
562 bool Tree::allocateBitmapIfNeeded(SkBitmap* outCache, int width, int height) { argument
563 if (!canReuseBitmap(*outCache, width, height)) {
564 SkImageInfo info = SkImageInfo::Make(width, height,
574 bool Tree::canReuseBitmap(const SkBitmap& bitmap, int width, int height) { argument
575 return width == bitmap.width() && height == bitmap.height();
[all...]
/frameworks/base/libs/hwui/font/
H A DFont.cpp138 int height = (int) glyph->mBitmapHeight; local
152 if (bounds->top < nPenY + height) {
153 bounds->top = nPenY + height;
160 float height = (float) glyph->mBitmapHeight; local
163 float nPenY = y + glyph->mBitmapTop + height;
172 nPenX + width, nPenY - height, u2, v1,
173 nPenX, nPenY - height, u1, v1, glyph->mCacheTexture);
179 float height = (float) glyph->mBitmapHeight; local
182 p[0].iset(glyph->mBitmapLeft, glyph->mBitmapTop + height);
183 p[1].iset(glyph->mBitmapLeft + width, glyph->mBitmapTop + height);
240 const float height = glyph->mBitmapHeight; local
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DCanvasContext.cpp159 void CanvasContext::setup(int width, int height, float lightRadius, argument
311 if (frame.width() != mLastFrameWidth || frame.height() != mLastFrameHeight) {
315 mLastFrameHeight = frame.height();
320 if (!dirty.isEmpty() && !dirty.intersect(0, 0, frame.width(), frame.height())) {
322 SK_RECT_ARGS(dirty), frame.width(), frame.height());
329 dirty.set(0, 0, frame.width(), frame.height());
345 dirty.set(0, 0, frame.width(), frame.height());
361 FrameBuilder frameBuilder(dirty, frame.width(), frame.height(), mLightGeometry, caches);
388 mCanvas->prepareDirty(frame.width(), frame.height(),
485 const float height local
[all...]
H A DRenderProxy.cpp183 CREATE_BRIDGE6(setup, CanvasContext* context, int width, int height, argument
185 args->context->setup(args->width, args->height, args->lightRadius,
190 void RenderProxy::setup(int width, int height, float lightRadius, argument
195 args->height = height;
/frameworks/base/libs/input/
H A DPointerController.cpp352 void PointerController::setDisplayViewport(int32_t width, int32_t height, int32_t orientation) { argument
358 int32_t temp = height;
359 height = width;
363 if (mLocked.displayWidth != width || mLocked.displayHeight != height) {
365 mLocked.displayHeight = height;
/frameworks/base/media/java/android/media/
H A DImageReader.java108 * @param height The default height in pixels of the Images that this reader
123 public static ImageReader newInstance(int width, int height, int format, int maxImages) { argument
124 return new ImageReader(width, height, format, maxImages);
130 protected ImageReader(int width, int height, int format, int maxImages) { argument
132 mHeight = height;
136 if (width < 1 || height < 1) {
152 nativeInit(new WeakReference<ImageReader>(this), width, height, format, maxImages);
164 width, height, format, /*buffer count*/ 1);
182 * The default height o
[all...]
H A DRemoteController.java291 * @param height
295 public boolean setArtworkConfiguration(boolean wantBitmap, int width, int height) argument
299 if ((width > 0) && (height > 0)) {
301 if (height > mMaxBitmapDimension) { height = mMaxBitmapDimension; }
303 mArtworkHeight = height;
319 * @param height the maximum height in pixels
323 public boolean setArtworkConfiguration(int width, int height) throws IllegalArgumentException { argument
324 return setArtworkConfiguration(true, width, height);
[all...]
H A DSubtitleTrack.java686 * @param height height 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.cpp78 void setBufferHeight(int height) { mHeight = height; } argument
258 int32_t width, height, format; local
266 if ((res = anw->query(anw.get(), NATIVE_WINDOW_HEIGHT, &height)) != OK) {
267 ALOGE("%s: Query Surface height failed: %s (%d)", __FUNCTION__, strerror(-res), res);
268 jniThrowRuntimeException(env, "Failed to query Surface height");
271 ctx->setBufferHeight(height);
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.java128 int height = getFormat().getHeight();
129 if (!nativeAllocateWithTexture(mGLEnvironment, texId, width, height)) {
138 int height = getFormat().getHeight();
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
369 int height);
374 int height);
396 private native boolean setNativeViewport(int x, int y, int width, int height); 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);
497 prop.setProperty("height", Integer.toString(mHeight));
/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*/4096, /*height*/259
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
268 int heightWithoutPadding = height - mPaddingTop - mPaddingBottom;
275 setMeasuredDimension(width, height);
H A DTaskViewHeader.java317 onTaskViewSizeChanged(mTaskViewRect.width(), mTaskViewRect.height());
324 public void onTaskViewSizeChanged(int width, int height) { argument
325 mTaskViewRect.set(0, 0, width, height);
/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/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarIconController.java240 int height = mContext.getResources().getDimensionPixelSize(
245 setHeightAndCenter(imageView, height);
249 setHeightAndCenter(imageView, height);
252 private void setHeightAndCenter(ImageView imageView, int height) { argument
254 params.height = height;
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DWallpaperCropActivity.java61 protected static final String WALLPAPER_HEIGHT_KEY = "wallpaper.height";
207 // As a ratio of screen height, the total distance we want the parallax effect to span
209 private static float wallpaperTravelToScreenWidthRatio(int width, int height) { argument
210 float aspectRatio = width / (float) height;
223 // formulas, where the coefficient on x is the aspect ratio (width/height):
421 defaultWallpaperSize.y / cropScale - cropRect.height();
429 final int outHeight = (int) Math.round(cropRect.height() * cropScale);
628 if (roundedTrueCrop.width() <= 0 || roundedTrueCrop.height() <= 0) {
636 roundedTrueCrop.height() / mOutHeight));
700 if (roundedTrueCrop.height() > fullSiz
[all...]

Completed in 306 milliseconds

<<11121314151617181920>>