/frameworks/base/apct-tests/perftests/core/src/android/view/ |
H A D | ViewShowHidePerfTest.java | 139 void run(BenchmarkState state, int width, int height, ViewGroup parent, View child); argument 149 final int width = 1000; 151 layout(width, height, parent); 153 callback.run(state, width, height, parent, mChild); 162 private void layout(int width, int height, View view) { argument 164 MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY), 166 view.layout(0, 0, height, width); 171 testParentWithChild((state, width, height, parent, child) -> { 176 layout(width, height, child); 187 testParentWithChild((state, width, heigh [all...] |
/frameworks/base/libs/hwui/private/hwui/ |
H A D | DrawGlInfo.h | 34 // Input: current width/height of destination surface 35 int width; member in struct:android::uirenderer::DrawGlInfo
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | BitmapAllocationTestUtils.h | 30 static sk_sp<Bitmap> allocateHeapBitmap(int width, int height, argument 32 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(width, height, colorType); 39 static sk_sp<Bitmap> allocateHardwareBitmap(int width, int height, argument 42 SkImageInfo info = SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | MutableFrameFormat.java | 64 public void setDimensions(int width, int height) { argument 66 dimensions[0] = width; 72 public void setDimensions(int width, int height, int depth) { argument 74 dimensions[0] = width;
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/ |
H A D | ImageFormat.java | 36 public static MutableFrameFormat create(int width, argument 42 result.setDimensions(width, height); 51 public static MutableFrameFormat create(int width, argument 55 return create(width,
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | exposure.cpp | 30 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) { 34 const int numPixels = width * height; 52 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) { 56 const int numPixels = width * height; 29 Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_overExposureOperator( JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) argument 51 Java_androidx_media_filterfw_samples_simplecamera_ExposureFilter_underExposureOperator( JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer) argument
|
H A D | pixelutils.h | 31 JNIEnv* env, jclass clazz, jobject input, jobject output, jint width, jint height, jint offset,
|
H A D | sobeloperator.h | 30 JNIEnv* env, jclass clazz, jint width, jint height,
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | ResizeHWLayerActivity.java | 37 int width = metrics.widthPixels; 41 child.setLayoutParams(new FrameLayout.LayoutParams(width, height)); 43 PropertyValuesHolder pvhWidth = PropertyValuesHolder.ofInt("width", width, 1); 52 params.width = (Integer)valueAnimator.getAnimatedValue("width");
|
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
H A D | TabStops.java | 33 public float width(float widthSoFar) { method in class:TabStops
|
/frameworks/native/opengl/tests/lib/ |
H A D | WindowSurface.cpp | 46 uint32_t width, height; local 50 width = mainDpyInfo.h; 53 width = mainDpyInfo.w; 58 String8("Benchmark"), width, height,
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ThumbsBar.java | 66 public void setThumbSize(int width, int height) { argument 68 mThumbWidth = width; 79 if (lp.width != width) { 80 lp.width = width; 93 public void setHeroThumbSize(int width, int height) { argument 95 mHeroThumbWidth = width; 106 if (lp.width != width) { [all...] |
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
H A D | CardViewDelegate.java | 32 void setMinWidthHeightInternal(int width, int height); argument
|
/frameworks/av/camera/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/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/tests/common/scenes/ |
H A D | SimpleColorMatrixAnimation.cpp | 34 void createContent(int width, int height, Canvas& canvas) override { 37 sp<RenderNode> card = createCard(0, 0, width, height); 50 sp<RenderNode> createCard(int x, int y, int width, int height) { argument 51 return TestUtils::createNode(x, y, x + width, y + height, 52 [width, height](RenderProperties& props, Canvas& canvas) { 72 SkPoint pts[] = { SkPoint::Make(0, 0), SkPoint::Make(width, height) }; 79 canvas.drawRect(i, i, width, height, paint);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | SignalDrawable.java | 220 float width = getBounds().width(); 222 float padding = Math.round(PAD * width); 223 mFullPath.moveTo(width - padding, height - padding); 224 mFullPath.lineTo(width - padding, padding); 226 mFullPath.lineTo(width - padding, height - padding); 229 float cutWidth = (DOT_CUT_WIDTH * width); 230 float cutHeight = (DOT_CUT_HEIGHT * width); 234 mFullPath.moveTo(width - padding, height - padding); 240 float x = width 411 draw(int height, int width, @NonNull Canvas canvas, Paint paint) argument 444 scale(float frac, int width) argument [all...] |
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
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/rs/tests/java_api/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/base/graphics/java/android/graphics/ |
H A D | GraphicBuffer.java | 69 * @param width The width in pixels of the buffer 76 public static GraphicBuffer create(int width, int height, int format, int usage) { argument 77 long nativeObject = nCreateGraphicBuffer(width, height, format, usage); 79 return new GraphicBuffer(width, height, format, usage, nativeObject); 87 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { argument 88 mWidth = width; 99 public static GraphicBuffer createFromExisting(int width, int height, argument 103 return new GraphicBuffer(width, height, format, usage, nativeObject); 109 * Returns the width o 296 nCreateGraphicBuffer(int width, int height, int format, int usage) argument [all...] |
/frameworks/native/libs/ui/ |
H A D | GraphicBufferAllocator.cpp | 69 rec.width, rec.stride, rec.height, rec.layerCount, rec.format, 75 rec.width, rec.stride, rec.height, rec.layerCount, rec.format, 95 status_t GraphicBufferAllocator::allocate(uint32_t width, uint32_t height, argument 104 if (!width || !height) 105 width = height = 1; 112 info.width = width; 124 rec.width = width; 138 width, heigh [all...] |