/frameworks/base/core/java/android/view/ |
H A D | HardwareLayer.java | 100 * return false if the requested width/height cannot be satisfied 102 * @param width The new width of this layer 109 public boolean prepare(int width, int height, boolean isOpaque) { argument 110 return nPrepare(mFinalizer.get(), width, height, isOpaque); 148 private static native boolean nPrepare(long layerUpdater, int width, int height, boolean isOpaque); argument
|
H A D | SurfaceHolder.java | 89 * @param width The new width of the surface. 92 public void surfaceChanged(SurfaceHolder holder, int format, int width, argument 186 * @param width The surface's width. 189 public void setFixedSize(int width, int height); argument
|
/frameworks/base/core/java/android/view/animation/ |
H A D | RotateAnimation.java | 178 public void initialize(int width, int height, int parentWidth, int parentHeight) { argument 179 super.initialize(width, height, parentWidth, parentHeight); 180 mPivotX = resolveSize(mPivotXType, mPivotXValue, width, parentWidth);
|
H A D | TranslateAnimation.java | 171 public void initialize(int width, int height, int parentWidth, int parentHeight) { argument 172 super.initialize(width, height, parentWidth, parentHeight); 173 mFromXDelta = resolveSize(mFromXType, mFromXValue, width, parentWidth); 174 mToXDelta = resolveSize(mToXType, mToXValue, width, parentWidth);
|
/frameworks/base/core/java/android/widget/ |
H A D | AbsoluteLayout.java | 90 // Check against minimum height and width 99 * Returns a set of layout parameters with a width of 169 * Creates a new set of layout parameters with the specified width, 172 * @param width the width, either {@link #MATCH_PARENT}, 179 public LayoutParams(int width, int height, int x, int y) { argument 180 super(width, height); 221 return output + "Absolute.LayoutParams={width=" 222 + sizeToString(width) + ", height=" + sizeToString(height)
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | MessagingLinearLayout.java | 154 // Now that we know which views to take, fix up the indents and see what width we get. 180 lp.width); 215 final int width = right - left; 216 final int childRight = width - mPaddingRight; 279 LayoutParams copy = new LayoutParams(lp.width, lp.height); 317 public LayoutParams(int width, int height) { argument 318 super(width, height);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapRegionDecoder.java | 199 /** Returns the original image's width */ 264 int start_x, int start_y, int width, int height, 263 nativeDecodeRegion(long lbm, int start_x, int start_y, int width, int height, BitmapFactory.Options options) argument
|
H A D | Movie.java | 33 public native int width(); method in class:Movie
|
H A D | YuvImage.java | 28 * region by left, top, width and height. 56 * The width of the image. 71 * @param width The width of the YuvImage. 75 * padding and derives the row bytes by format and width itself. 76 * @throws IllegalArgumentException if format is not support; width or height <= 0; or yuv is 79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { argument 87 if (width <= 0 || height <= 0) { 89 "width and height must large than 0"); 97 mStrides = calculateStrides(width, forma 199 calculateStrides(int width, int format) argument 237 nativeCompressToJpeg(byte[] oriYuv, int format, int width, int height, int[] offsets, int[] strides, int quality, OutputStream stream, byte[] tempStorage) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | DeferredLayerUpdater.h | 51 ANDROID_API bool setSize(int width, int height) { argument 52 if (mWidth != width || mHeight != height) { 53 mWidth = width;
|
H A D | GradientCache.h | 145 const uint32_t width, const uint32_t height, Texture* texture); 148 uint32_t width; member in struct:android::uirenderer::GradientCache::GradientInfo
|
H A D | LayerBuilder.h | 75 LayerBuilder(uint32_t width, uint32_t height, const Rect& repaintRect) argument 76 : LayerBuilder(width, height, repaintRect, nullptr, nullptr) {}; 80 LayerBuilder(uint32_t width, uint32_t height, 107 const uint32_t width; member in class:android::uirenderer::LayerBuilder
|
H A D | PixelBuffer.h | 68 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height, 107 virtual void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) = 0; 117 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height) { argument 118 upload(x, y, width, height, getOffset(x, y)); 122 * Returns the width of the render buffer in pixels. 190 PixelBuffer(GLenum format, uint32_t width, uint32_t height): argument 191 mFormat(format), mWidth(width), mHeight(height), mAccessMode(kAccessMode_None) {
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Bitmap.h | 70 int width() const { return info().width(); } function in class:android::Bitmap
|
/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/libs/hwui/tests/macrobench/ |
H A D | TestSceneRunner.cpp | 125 const int width = gDisplay.w; local 129 sp<RenderNode> rootNode = TestUtils::createNode(0, 0, width, height, 130 [&scene, width, height](RenderProperties& props, Canvas& canvas) { 132 scene->createContent(width, height, canvas); 140 float lightX = width / 2.0;
|
/frameworks/base/libs/hwui/utils/ |
H A D | Blur.cpp | 95 const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) { 101 const uint8_t* input = source + y * width; 102 uint8_t* output = dest + y * width; 104 for (int32_t x = 0; x < width; x ++) { 108 if (x > radius && x < (width - radius)) { 123 if (validW > width - 1) { 124 validW = width - 1; 139 const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) { 144 uint8_t* output = dest + y * width; 146 for (int32_t x = 0; x < width; 94 horizontal(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) argument 138 vertical(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest, int32_t width, int32_t height) argument [all...] |
H A D | TestWindowContext.cpp | 64 mCpuConsumer->setDefaultBufferSize(mSize.width(), mSize.height()); 67 mSize.width(), mSize.height()); 77 (0, 0, mSize.width(), mSize.height()); 87 float lightX = mSize.width() / 2.0f; 91 mCanvas.reset(new android::uirenderer::RecordingCanvas(mSize.width(), mSize.height())); 95 //mCanvas->reset(mSize.width(), mSize.height()); 96 mCanvas->clipRect(0, 0, mSize.width(), mSize.height(), SkClipOp::kReplace_deprecated); 114 SkImageInfo::Make(mSize.width(), mSize.height(), 118 mSize.width() * mSize.height() * 4); 139 SkImageInfo::Make(nativeBuffer.width, nativeBuffe 185 initialize(int width, int height) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | RemoteDisplay.java | 129 final int width, final int height, final int flags, final int session) { 133 mListener.onDisplayConnected(surface, width, height, flags, session); 163 int width, int height, int flags, int session); 128 notifyDisplayConnected(final Surface surface, final int width, final int height, final int flags, final int session) argument 162 onDisplayConnected(Surface surface, int width, int height, int flags, int session) argument
|
/frameworks/base/media/java/android/media/projection/ |
H A D | MediaProjection.java | 101 int width, int height, int dpi, boolean isSecure, @Nullable Surface surface, 105 return dm.createVirtualDisplay(this, name, width, height, dpi, surface, 116 * @param width The width of the virtual display in pixels. Must be 135 int width, int height, int dpi, int flags, @Nullable Surface surface, 138 return dm.createVirtualDisplay(this, name, width, height, dpi, surface, flags, callback, 100 createVirtualDisplay(@onNull String name, int width, int height, int dpi, boolean isSecure, @Nullable Surface surface, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument 134 createVirtualDisplay(@onNull String name, int width, int height, int dpi, int flags, @Nullable Surface surface, @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) argument
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | FilterSurfaceView.java | 117 int width, 121 mWidth = width; 127 mListener.surfaceChanged(holder, format, width, height); 115 surfaceChanged(SurfaceHolder holder, int format, int width, int height) argument
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | AutoFixFilter.java | 269 private void createHistogramFrame(FilterContext context, int width, int height, int[] data) { argument 275 int x_border_thickness = (int) (width * border_thickness_ratio); 276 int pixels = (width - 2 * x_border_thickness) * (height - 2 * y_border_thickness); 280 for (int x = x_border_thickness; x < width - x_border_thickness; ++x) { 281 int index = y * width + x;
|
H A D | GrainFilter.java | 133 private void updateFrameSize(int width, int height) { argument 134 mWidth = width;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
H A D | SurfaceRenderFilter.java | 132 // will update our screen width and height. 216 int width, 221 mScreenWidth = width; 214 surfaceChanged(SurfaceHolder holder, int format, int width, int height) argument
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 42 * minSideLength is used to specify that minimal width or height of a 58 public static int computeSampleSize(int width, int height, argument 61 width, height, minSideLength, maxNumOfPixels); 117 int width = Math.round(bitmap.getWidth() * scale); 119 if (width == bitmap.getWidth() 121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap)); 158 int width = Math.round(scale * bitmap.getWidth()); 161 canvas.translate((size - width) / 2f, (size - height) / 2f);
|