Searched refs:height (Results 76 - 100 of 1236) sorted by relevance

1234567891011>>

/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DShadowPainter.java81 int height = source.getHeight();
82 image = new BufferedImage(width + SHADOW_SIZE, height + SHADOW_SIZE,
190 int height = source.getHeight();
192 image = new BufferedImage(width + SHADOW_SIZE, height + SHADOW_SIZE, type);
195 drawRectangleShadow(image, 0, 0, width, height);
217 int height = source.getHeight();
220 image = new BufferedImage(width + SMALL_SHADOW_SIZE, height + SMALL_SHADOW_SIZE, type);
224 drawSmallRectangleShadow(image, 0, 0, width, height);
239 * @param height the height o
241 drawRectangleShadow(BufferedImage image, int x, int y, int width, int height) argument
262 drawSmallRectangleShadow(BufferedImage image, int x, int y, int width, int height) argument
295 drawRectangleShadow(Graphics2D gc, int x, int y, int width, int height) argument
336 drawSmallRectangleShadow(Graphics2D gc, int x, int y, int width, int height) argument
[all...]
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
H A DFixedAspectSurfaceView.java34 * requested aspect ratio. This can happen if both the width and the height are exactly
35 * determined by the layout. To avoid this, ensure that either the height or the width is
42 * Desired width/height ratio
63 * @param aspect the desired width/height ratio in the current UI orientation. Must be a
91 int height = MeasureSpec.getSize(heightMeasureSpec);
105 // Width is fixed, heightMode either AT_MOST or UNSPECIFIED, so adjust height
111 // Need to fit into box <= [width, height] in size.
114 float boxAspectRatio = width / (float) height;
126 // Maximize height, widthSpec is UNSPECIFIED
130 // with width == height
[all...]
/frameworks/av/include/camera/
H A DCameraParameters.h27 int height; member in struct:android::Size
31 height = 0;
36 height = h;
59 void setPreviewSize(int width, int height);
60 void getPreviewSize(int *width, int *height) const;
63 // Set the dimensions in pixels to the given width and height
64 // for video frames. The given width and height must be one
68 void setVideoSize(int width, int height);
69 // Retrieve the current dimensions (width and height)
74 void getVideoSize(int *width, int *height) cons
[all...]
/frameworks/native/libs/ui/
H A DGraphicBufferAllocator.cpp69 rec.width, rec.stride, rec.height, rec.format, rec.usage);
73 rec.width, rec.stride, rec.height, rec.format, rec.usage);
93 status_t GraphicBufferAllocator::alloc(uint32_t width, uint32_t height, argument
101 if (!width || !height)
102 width = height = 1;
112 static_cast<int>(height), format, static_cast<int>(usage), handle,
117 width, height, format, usage, err, strerror(-err));
125 rec.height = height;
129 rec.size = static_cast<size_t>(height * (*strid
[all...]
H A DGraphicBuffer.cpp49 height =
62 height =
78 height = static_cast<int>(inHeight);
92 height = buffer->height;
144 static_cast<int>(inHeight) == height &&
161 if (static_cast<int>(inHeight) != height) return true;
176 height = static_cast<int>(inHeight);
186 const Rect lockBounds(width, height);
194 rect.top < 0 || rect.bottom > height) {
[all...]
/frameworks/av/media/libstagefright/include/
H A DSoftVideoEncoderOMXComponent.h38 int32_t height,
55 struct android_ycbcr *ycbcr, int32_t width, int32_t height);
58 const uint8_t *inYVU, uint8_t* outYUV, int32_t width, int32_t height);
62 const uint8_t *src, size_t width, size_t height, size_t srcStride,
67 size_t width, size_t height) const;
78 int32_t mHeight; // height of the input frames
/frameworks/base/libs/hwui/tests/common/scenes/
H A DOpPropAnimation.cpp44 void createContent(int width, int height, TestCanvas& canvas) override {
45 content = TestUtils::createNode(0, 0, width, height,
46 [this, width, height](RenderProperties& props, TestCanvas& canvas) {
51 mRoundRectBottom->value = height / 2;
54 mCircleY->value = height * 0.75;
/frameworks/base/media/java/android/media/
H A DFaceDetector.java108 * @param height the height of the image
112 public FaceDetector(int width, int height, int maxFaces) argument
117 fft_initialize(width, height, maxFaces);
119 mHeight = height;
121 mBWBuffer = new byte[width * height];
189 native private int fft_initialize(int width, int height, int maxFaces); argument
/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_frame.h46 // Initialize a GL frame to the given width, height, format. Also specify
48 bool Init(int width, int height);
54 bool InitWithTexture(GLint texture_id, int width, int height);
57 bool InitWithFbo(GLint fbo_id, int width, int height);
93 bool SetViewport(int x, int y, int width, int height);
130 void InitDimensions(int width, int height);
185 // The width, height and format of the frame
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DResizingSpace.java53 int height = getContext().getResources().getDimensionPixelOffset(mHeight);
54 if (height != params.height) {
55 params.height = height;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DFixedSizeFrameLayout.java81 protected void measureContents(int width, int height) { argument
83 MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST));
93 int height = getMeasuredHeight();
94 onSizeChanged(width, height, width, height);
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java111 Bitmap(long nativeBitmap, byte[] buffer, int width, int height, int density, argument
119 mHeight = height;
149 * width/height values
152 void reinit(int width, int height, boolean requestPremultiplied) { argument
154 mHeight = height;
203 * <p>Modifies the bitmap to have a specified width, height, and {@link
251 public void reconfigure(int width, int height, Config config) { argument
253 if (width <= 0 || height <= 0) {
254 throw new IllegalArgumentException("width and height must be > 0");
263 nativeReconfigure(mNativePtr, width, height, confi
297 setHeight(int height) argument
408 checkWidthHeight(int width, int height) argument
700 createBitmap(Bitmap source, int x, int y, int width, int height) argument
728 createBitmap(Bitmap source, int x, int y, int width, int height, Matrix m, boolean filter) argument
822 createBitmap(int width, int height, Config config) argument
837 createBitmap(DisplayMetrics display, int width, int height, Config config) argument
855 createBitmap(int width, int height, Config config, boolean hasAlpha) argument
874 createBitmap(DisplayMetrics display, int width, int height, Config config, boolean hasAlpha) argument
911 createBitmap(int colors[], int offset, int stride, int width, int height, Config config) argument
936 createBitmap(DisplayMetrics display, int colors[], int offset, int stride, int width, int height, Config config) argument
975 createBitmap(int colors[], int width, int height, Config config) argument
996 createBitmap(DisplayMetrics display, int colors[], int width, int height, Config config) argument
1427 getPixels(@olorInt int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1467 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument
1541 setPixels(@olorInt int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1688 nativeCreate(int[] colors, int offset, int stride, int width, int height, int nativeConfig, boolean mutable) argument
1697 nativeReconfigure(long nativeBitmap, int width, int height, int config, int allocSize, boolean isPremultiplied) argument
1709 nativeGetPixels(long nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1714 nativeSetPixels(long nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument
[all...]
/frameworks/av/media/ndk/
H A DNdkImage.cpp34 int32_t width, int32_t height, int32_t numPlanes) :
37 mWidth(width), mHeight(height), mNumPlanes(numPlanes) {
117 AImage::getHeight(int32_t* height) const {
118 if (height == nullptr) {
121 *height = -1;
126 *height = mHeight;
271 // Single plane 16bpp bayer data. even width/height,
363 dataSize = mBuffer->stride * (mBuffer->height - 1) + mBuffer->width;
365 dataSize = mBuffer->chromaStride * (mBuffer->height / 2 - 1) +
371 cr = mBuffer->data + (mBuffer->stride * mBuffer->height);
32 AImage(AImageReader* reader, int32_t format, CpuConsumer::LockedBuffer* buffer, int64_t timestamp, int32_t width, int32_t height, int32_t numPlanes) argument
527 AImage_getHeight(const AImage* image, int32_t* height) argument
562 int32_t height = -1; local
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DGLToolbox.java70 public static void readFbo(int fboId, ByteBuffer pixels, int width, int height) { argument
72 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels);
76 public static void readTarget(RenderTarget target, ByteBuffer pixels, int width, int height) { argument
78 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels);
103 public static void allocateTexturePixels(int texId, int target, int width, int height) { argument
104 setTexturePixels(texId, target, (ByteBuffer)null, width, height);
115 int width, int height) {
120 pixels = ByteBuffer.allocateDirect(width * height * 4);
122 GLES20.glTexImage2D(target, 0, GLES20.GL_RGBA, width, height, 0,
114 setTexturePixels(int texId, int target, ByteBuffer pixels, int width, int height) argument
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/
H A Dm4v_h263_enc_test.cpp50 "<height> <frame rate> <bitrate in kbps>\n", argv[0]);
53 fprintf(stderr, "Max height %d\n", kMaxHeight);
70 // Read height and width.
72 int32_t height; local
74 height = atoi(argv[5]);
75 if (width > kMaxWidth || height > kMaxHeight || width <= 0 || height <= 0) {
76 fprintf(stderr, "Unsupported dimensions %dx%d\n", width, height);
80 if (width % 16 != 0 || height % 16 != 0) {
82 width, height);
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dpp_semaphore_luma.cpp37 height = luminance VOP height in pixels (int)
123 int height /* i */
140 ypred <= ((height << 1) - (2*MB_SIZE)))
277 else if (nmvy > (height >> 3) - 1)
279 nmvy = (height >> 3) - 1;
300 if (((dy&0xF) != 0) && (mmvy + 1 < (height >> 3) - 1))
332 if (((dy&0xF) != 0) && (mmvy + 1 < (height >> 3) - 1))
/frameworks/av/media/libstagefright/filters/
H A DColorConvert.cpp49 uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height,
53 for (int32_t i = 0; i < height; i++) {
71 uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height,
75 for (int32_t i = 0; i < height; i++) {
94 uint8_t *src, int32_t width, int32_t height, uint32_t stride,
96 for (int32_t i = 0; i < height; ++i) {
48 convertYUV420spToARGB( uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, uint8_t *dest) argument
70 convertYUV420spToRGB888( uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, uint8_t *dest) argument
93 convertRGBAToARGB( uint8_t *src, int32_t width, int32_t height, uint32_t stride, uint8_t *dest) argument
/frameworks/base/core/java/com/android/internal/util/
H A DImageUtils.java59 int height = bitmap.getHeight();
63 if (height > COMPACT_BITMAP_SIZE || width > COMPACT_BITMAP_SIZE) {
75 (float) COMPACT_BITMAP_SIZE / height,
80 width = height = COMPACT_BITMAP_SIZE;
83 final int size = height*width;
85 bitmap.getPixels(mTempBuffer, 0, width, 0, 0, width, height);
/frameworks/base/core/jni/android/graphics/
H A DPicture.cpp28 mHeight = src->height();
41 Canvas* Picture::beginRecording(int width, int height) { argument
45 mHeight = height;
46 SkCanvas* canvas = mRecorder->beginRecording(width, height, NULL, 0);
63 int Picture::height() const { function in class:android::Picture
77 newPict->mHeight = cullRect.height();
/frameworks/base/libs/hwui/
H A DAssetAtlas.cpp98 const float height = float(mTexture->height()); local
115 y / height, (y + pixelRef->info().height()) / height);
120 pixelRef->info().height(), mTexture->format());
H A DTexture.h66 * Sets the width, height, and format of the texture along with allocating
67 * the texture ID. Does nothing if the width, height, and format are already
72 void resize(uint32_t width, uint32_t height, GLint format) { argument
73 upload(format, width, height, format, GL_UNSIGNED_BYTE, nullptr);
78 * also setting the appropriate width, height, and format. It is not necessary
88 void upload(GLint internalformat, uint32_t width, uint32_t height,
94 void wrap(GLuint id, uint32_t width, uint32_t height, GLint format);
104 uint32_t height() const { function in class:android::uirenderer::Texture
151 bool updateSize(uint32_t width, uint32_t height, GLint format);
H A DPathCache.cpp130 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) {
132 PathCache::computeBounds(bounds, paint, left, top, offset, width, height);
136 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) {
138 const float pathHeight = std::max(bounds.height(), 1.0f);
146 height = uint32_t(pathHeight + offset * 2.0 + 0.5);
149 static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { argument
150 bitmap.allocPixels(SkImageInfo::MakeA8(width, height));
167 float left, float top, float offset, uint32_t width, uint32_t height) {
168 initBitmap(bitmap, width, height);
225 const uint32_t size = texture->width() * texture->height();
129 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument
135 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument
166 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument
254 purgeCache(uint32_t width, uint32_t height) argument
275 uint32_t width, height; local
334 uint32_t width, height; local
461 getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint) argument
507 getOval(float width, float height, const SkPaint* paint) argument
530 getRect(float width, float height, const SkPaint* paint) argument
553 getArc(float width, float height, float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) argument
[all...]
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.h39 * texture.width/.height are actual allocated texture size. Texture will tend to be larger than the
40 * viewport bounds, since textures are always allocated with width / height as a multiple of 64, for
93 const uint32_t width, const uint32_t height);
96 const uint32_t width, const uint32_t height);
127 , height(OffscreenBuffer::computeIdealDimension(layerHeight)) {}
132 , height(layer->texture.height()) {
151 uint32_t height = 0; member in struct:android::uirenderer::OffscreenBufferPool::Entry
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dsobeloperator.cpp42 void computeGradient(unsigned char* dataPtr, int width, int height, short* gxPtr, short* gyPtr) { argument
43 for (int i = 0; i < height; i++) {
49 const int below = (i < height - 1) ? curr + 4 * width : curr;
66 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer,
78 int numPixels = width * height;
82 computeGradient(srcPtr, width, height, gxPtr, gyPtr);
65 Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator( JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer, jobject magBuffer, jobject dirBuffer) argument
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DFlowLayout.java39 int height =
49 childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.AT_MOST);
73 height = y + lineHeight;
75 if (y + lineHeight < height) {
76 height = y + lineHeight;
79 setMeasuredDimension(width, height);

Completed in 593 milliseconds

1234567891011>>