/frameworks/support/wear/src/android/support/wear/widget/ |
H A D | CurvingLayoutCallback.java | 129 private void maybeSetUpCircularInitialLayout(int width, int height) { argument 137 mCurvePath.moveTo(0.5f * width, mCurveBottom); 138 mCurvePath.lineTo(0.34f * width, 0.075f * height); 140 0.22f * width, 0.17f * height, 0.13f * width, 0.32f * height, 0.13f * width, 143 0.13f * width, 145 0.22f * width, 147 0.34f * width, 149 mCurvePath.lineTo(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/include/media/stagefright/ |
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/av/media/libstagefright/foundation/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/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 | 56 final int width = boundsView.getWidth(); 58 int left = width; 93 mBackgroundFallback.setBounds(0, 0, width, top); 100 if (right < width) { 101 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, Canvas& canvas) override { 45 content = TestUtils::createNode(0, 0, width, height, 46 [this, width, height](RenderProperties& props, Canvas& 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/support/compat/ics/android/support/v4/graphics/ |
H A D | PaintCompatApi14.java | 39 final float width = paint.measureText(string); 41 if (width == 0f) { 42 // If the string width is 0, it can't be rendered 49 if (width > 2 * missingGlyphWidth) { 54 // If width is greater than or equal to the sum of width of each code point, it is very 57 // False detections are possible (the ligature glyph may happen to have the same width 58 // as the sum width), but there are no good way to avoid them. 70 if (width >= sumWidth) { 75 if (width ! [all...] |
/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/rs/tests/java_api/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/tests/java_api/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/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
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Picture.cpp | 27 mWidth = src->width(); 41 Canvas* Picture::beginRecording(int width, int height) { argument 44 mWidth = width; 46 SkCanvas* canvas = mRecorder->beginRecording(SkIntToScalar(width), SkIntToScalar(height)); 58 int Picture::width() const { function in class:android::Picture 76 newPict->mWidth = cullRect.width();
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | PaintTest.java | 91 assertEquals("Text width of '" + testCase.mText + "' without hinting is not expected.", 96 assertEquals("Text width of '" + testCase.mText + "' with hinting is not expected.", 309 float width = p.measureText(bidiText, 0, 4); 311 width += p.measureText(bidiText, 4, 7); 313 width += p.measureText(bidiText, 7, bidiText.length()); 314 assertEquals(width, p.measureText(bidiText), 1.0f); 319 float width = p.measureText(bidiText, 0, 4); 320 width += p.measureText(bidiText, 4, 7); 321 width += p.measureText(bidiText, 7, bidiText.length()); 322 assertEquals(width, [all...] |
/frameworks/base/libs/hwui/renderstate/ |
H A D | OffscreenBufferPool.h | 39 * 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); 126 : width(OffscreenBuffer::computeIdealDimension(layerWidth)) 131 , width(layer->texture.width()) 150 uint32_t width = 0; member in struct:android::uirenderer::OffscreenBufferPool::Entry
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaMetadataRetriever.cpp | 193 static void rotate0(T* dst, const T* src, size_t width, size_t height) argument 195 memcpy(dst, src, width * height * sizeof(T)); 199 static void rotate90(T* dst, const T* src, size_t width, size_t height) argument 202 for (size_t j = 0; j < width; ++j) { 203 dst[j * height + height - 1 - i] = src[i * width + j]; 209 static void rotate180(T* dst, const T* src, size_t width, size_t height) argument 212 for (size_t j = 0; j < width; ++j) { 213 dst[(height - 1 - i) * width + width - 1 - j] = src[i * width 219 rotate270(T* dst, const T* src, size_t width, size_t height) argument 229 rotate(T *dst, const T *src, size_t width, size_t height, int angle) argument 277 uint32_t width, height; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyguardUserSwitcherScrim.java | 58 float width = bounds.width() * OUTER_EXTENT; 61 canvas.scale(1, height / width); 62 canvas.drawRect(isLtr ? bounds.right - width : 0, 0, 63 isLtr ? bounds.right : bounds.left + width, width, mRadialGradientPaint);
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
H A D | FlowLayout.java | 37 final int width = 57 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST), 62 if (x + childWidth > width) { 79 setMeasuredDimension(width, height); 93 final int width = r - l; 102 if (x + childWidth > width) {
|