/frameworks/support/v7/cardview/base/android/support/v7/widget/ |
H A D | CardViewDelegate.java | 32 void setMinWidthHeightInternal(int width, int height); argument
|
/frameworks/av/include/camera/ |
H A D | CameraParameters2.h | 66 void setPreviewSize(int width, int height); 67 void getPreviewSize(int *width, int *height) const; 70 // Set the dimensions in pixels to the given width and height 71 // for video frames. The given width and height must be one 75 void setVideoSize(int width, int height); 76 // Retrieve the current dimensions (width and height) 81 void getVideoSize(int *width, int *height) const; 82 // Retrieve a Vector of supported dimensions (width and height) 89 // Retrieve the preferred preview size (width and height) in pixels 90 // for video recording. The given width an [all...] |
H A D | CameraParameters.h | 26 int width; member in struct:android::Size 30 width = 0; 35 width = w; 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, in [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_util.c | 266 u32 width, height; local 271 width = image->width; 273 row = mbNum / width; 274 col = mbNum % width; 276 tmp = row * width; 277 picSize = width * height;
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ImageUtils.java | 60 int width = bitmap.getWidth(); 63 if (height > COMPACT_BITMAP_SIZE || width > COMPACT_BITMAP_SIZE) { 74 (float) COMPACT_BITMAP_SIZE / width, 80 width = height = COMPACT_BITMAP_SIZE; 83 final int size = height*width; 85 bitmap.getPixels(mTempBuffer, 0, width, 0, 0, width, height);
|
/frameworks/base/libs/hwui/ |
H A D | LayerRenderer.cpp | 52 const float width = mLayer->layer.getWidth(); local 57 dirty.right >= width && dirty.bottom >= height)) { 59 dirty.set(0.0f, 0.0f, width, height); 61 dirty.doIntersect(0.0f, 0.0f, width, height); 187 Layer* LayerRenderer::createRenderLayer(RenderState& renderState, uint32_t width, uint32_t height) { argument 188 ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height); 189 LAYER_RENDERER_LOGD("Requesting new render layer %dx%d", width, height); 199 Layer* layer = caches.layerCache.get(renderState, width, height); 211 width, height, maxTextureSize, maxTextureSize); 221 layer->layer.set(0.0f, 0.0f, width, heigh 257 resizeLayer(Layer* layer, uint32_t width, uint32_t height) argument 289 updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, bool isOpaque, bool forceFilter, GLenum renderTarget, const float* textureTransform) argument [all...] |
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | FixedAspectSurfaceView.java | 34 * 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 90 int width = MeasureSpec.getSize(widthMeasureSpec); 108 // Height is fixed, widthMode either AT_MOST or UNSPECIFIED, so adjust width 111 // Need to fit into box <= [width, height] in size. 114 float boxAspectRatio = width / (float) height; 123 // Maximize width, heightSpec is UNSPECIFIED 130 // with width [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | jpeg.cpp | 40 int writeJpegFile(const char *filename, uint8_t *frame, int width, int height) { argument 43 uint8_t row_data[width * 3]; 63 cinfo.image_width = width; 74 uint16_t *src = (uint16_t *)(frame + row * width * 2); 76 for (int col = 0; col < width; col++) {
|
/frameworks/av/media/libstagefright/include/ |
H A D | SoftVideoEncoderOMXComponent.h | 37 int32_t width, 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; 77 int32_t mWidth; // width of the input frames
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | BackgroundFallback.java | 48 final int width = root.getWidth(); 50 int left = width; 85 mBackgroundFallback.setBounds(0, 0, width, top); 92 if (right < width) { 93 mBackgroundFallback.setBounds(right, top, width, height);
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | OpPropAnimation.cpp | 44 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) { 50 mRoundRectRight->value = width / 2; 53 mCircleX->value = width * 0.75;
|
/frameworks/base/media/java/android/media/ |
H A D | FaceDetector.java | 105 * Note that the width of the image must be even. 107 * @param width the width of the image 112 public FaceDetector(int width, int height, int maxFaces) argument 117 fft_initialize(width, height, maxFaces); 118 mWidth = width; 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 D | gl_frame.h | 46 // 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 D | ResizingSpace.java | 46 int width = getContext().getResources().getDimensionPixelOffset(mWidth); 47 if (width != params.width) { 48 params.width = width;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | FixedSizeFrameLayout.java | 81 protected void measureContents(int width, int height) { argument 82 super.onMeasure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), 92 int width = getMeasuredWidth(); 94 onSizeChanged(width, height, width, height);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | IconMerger.java | 69 int width = getMeasuredWidth(); 70 setMeasuredDimension(width - (width % getFullIconWidth()), getMeasuredHeight()); 79 private void checkOverflow(int width) { argument 90 final boolean moreRequired = visibleChildren * getFullIconWidth() > width;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | colorspace.cpp | 57 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) { 61 const int size = width * height; 69 for (int x = 0; x < width; x += 2) { 74 y3 = pInY[width]; 75 y4 = pInY[width + 1]; 82 pOutColor[width] = convertYuvToRgba(y3, u, v); 83 pOutColor[width + 1] = convertYuvToRgba(y4, u, v); 90 pInY += width; 91 pOutColor += width; 96 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jin 56 nativeYuv420pToRgba8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument 95 nativeArgb8888ToRgba8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument 110 nativeRgba8888ToHsva8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument 153 nativeRgba8888ToYcbcra8888( JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
H A D | GEOLocationElement.java | 206 int width = Math.min(Byte.SIZE - sbit, remaining); 208 value = (value << width) | getBits(mOctets[octet], sbit, width); 210 mBitoffset += width; 211 remaining -= width; 217 private static int getBits(byte b, int b0, int width) { argument 218 int mask = (1 << width) - 1; 219 return (b >> (Byte.SIZE - b0 - width)) & mask; 232 private void append(long value, int width) { argument 233 System.out.printf("Appending %x:%d\n", value, width); 258 fixToFloat(long value, int fractionSize, int width) argument 268 floatToFix(double value, int fractionSize, int width) argument [all...] |
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
H A D | UT_alloc_copyPadded.java | 84 int width = random.nextInt(512); 85 int arr_len = width * 3; 92 typeBuilder.setX(width); 115 int width = random.nextInt(128); 117 int arr_len = width * height * 3; 124 typeBuilder.setX(width).setY(height); 180 int width = random.nextInt(512); 181 int arr_len = width * 3; 191 typeBuilder.setX(width); 214 int width [all...] |
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
H A D | UT_alloc_copyPadded.java | 84 int width = random.nextInt(512); 85 int arr_len = width * 3; 92 typeBuilder.setX(width); 115 int width = random.nextInt(128); 117 int arr_len = width * height * 3; 124 typeBuilder.setX(width).setY(height); 180 int width = random.nextInt(512); 181 int arr_len = width * 3; 191 typeBuilder.setX(width); 214 int width [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | ShadowPainter.java | 80 int width = source.getWidth(); 82 image = new BufferedImage(width + SHADOW_SIZE, height + SHADOW_SIZE, 189 int width = source.getWidth(); 192 image = new BufferedImage(width + SHADOW_SIZE, height + SHADOW_SIZE, type); 195 drawRectangleShadow(image, 0, 0, width, height); 216 int width = source.getWidth(); 220 image = new BufferedImage(width + SMALL_SHADOW_SIZE, height + SMALL_SHADOW_SIZE, type); 224 drawSmallRectangleShadow(image, 0, 0, width, height); 238 * @param width the width 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/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 48 width = 61 width = 78 width = static_cast<int>(inWidth); 92 width = buffer->width; 144 static_cast<int>(inWidth) == width && 161 if (static_cast<int>(inWidth) != width) return true; 176 width = static_cast<int>(inWidth); 187 const Rect lockBounds(width, height); 194 if (rect.left < 0 || rect.right > width || [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | fastcodemb.cpp | 78 Int width = currVop->width; local 131 if (lx != width) input -= (ind_y << 9); /* non-padded offset */ 151 dctMode = ((width << 3) - 8); 163 if (lx != width) input -= (ind_y << 7); 165 width >>= 1; 168 sad = getBlockSum(input, width); 178 sad = Sad8x8(input, pred, width); 184 if (lx != width) input -= (ind_y << 7); 187 sad = getBlockSum(input, width); 309 Int width = currVop->width; local 533 Sad8x8(UChar *cur, UChar *prev, Int width) argument 599 getBlockSum(UChar *cur, Int width) argument [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
H A D | PrintOptionsLayout.java | 60 int width = 0; 93 getPaddingStart() + getPaddingEnd() + width, childParams.width); 110 width = Math.max(width, rowWidth); 114 width += getPaddingStart() + getPaddingEnd(); 115 width = Math.max(width, getMinimumWidth()); 120 setMeasuredDimension(resolveSizeAndState(width, widthMeasureSpec, childState),
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GLToolbox.java | 70 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
|