/frameworks/base/libs/hwui/utils/ |
H A D | TestWindowContext.cpp | 64 mCpuConsumer->setDefaultBufferSize(mSize.width(), mSize.height()); 67 mSize.width(), mSize.height()); 77 (0, 0, mSize.width(), mSize.height()); 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, nativeBuffer.height, 185 void TestWindowContext::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, 118 * @param height The height 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 | 118 int height) { 122 mHeight = height; 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 274 int y_border_thickness = (int) (height * border_thickness_ratio); 276 int pixels = (width - 2 * x_border_thickness) * (height - 2 * y_border_thickness); 279 for (int y = y_border_thickness; y < height - y_border_thickness; ++y) {
|
H A D | GrainFilter.java | 133 private void updateFrameSize(int width, int height) { argument 135 mHeight = height;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
H A D | SurfaceRenderFilter.java | 132 // will update our screen width and height. 217 int height) { 222 mScreenHeight = height; 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); 118 int height = Math.round(bitmap.getHeight() * scale); 120 && height == bitmap.getHeight()) return bitmap; 121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap)); 159 int height = Math.round(scale * bitmap.getHeight()); 161 canvas.translate((size - width) / 2f, (size - height) / 2f);
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayAdapter.java | 132 public static Display.Mode createMode(int width, int height, float refreshRate) { argument 134 NEXT_DISPLAY_MODE_ID.getAndIncrement(), width, height, refreshRate);
|
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | UinputBridge.java | 34 private static native long nativeOpen(String name, String uniqueId, int width, int height, argument 44 public UinputBridge(IBinder token, String name, int width, int height, int maxPointers) argument 46 if (width < 1 || height < 1) { 55 mPtr = nativeOpen(name, token.toString(), width, height, maxPointers);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
H A D | TaskSnapshotSurfaceTest.java | 58 private void setupSurface(int width, int height, Rect contentInsets, int sysuiVis, argument 60 final GraphicBuffer buffer = GraphicBuffer.create(width, height, PixelFormat.RGBA_8888, 69 private void setupSurface(int width, int height) { argument 70 setupSurface(width, height, new Rect(), 0, FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS, 71 new Rect(0, 0, width, height));
|
H A D | WindowFrameTests.java | 160 w.mAttrs.width = 100; w.mAttrs.height = 100; //have to clear MATCH_PARENT 191 w.mAttrs.height = 300; 193 // Explicit width and height without requested width/height 204 // With FLAG_SCALED though, requestedWidth/height is used to control 205 // the unscaled surface size, and mAttrs.width/height becomes the 211 w.mAttrs.height = 100; 347 w.mAttrs.height = logicalHeight / 2; 363 Math.min(pf.height(), displayInfo.logicalHeight)); 366 private WindowStateWithTask createWindow(Task task, int width, int height) { argument [all...] |
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A D | DisplaySinkService.java | 112 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument 123 int width = 0, height = 0; 129 height = frame.height(); 136 if (mSurface == surface && mSurfaceWidth == width && mSurfaceHeight == height) { 142 mSurfaceHeight = height;
|
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/ |
H A D | CameraTooActivity.java | 84 * width and height are at least as large as the respective requested values. 87 * @param height The minimum desired height 90 static Size chooseBigEnoughSize(Size[] choices, int width, int height) { argument 94 if (option.getWidth() >= width && option.getHeight() >= height) { 153 mSurfaceView.getHolder().setFixedSize(/*width*/0, /*height*/0); 232 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { 233 // On the first invocation, width and height were automatically set to the view's size 264 info.getOutputSizes(SurfaceHolder.class), width, height);
|
/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
|
H A D | StatsFilter.java | 81 private void calcMeanAndStd(ByteBuffer pixelBuffer, int width, int height, Quad quad) { argument 84 regionscore(pixelBuffer, width, height, quad.topLeft().x, quad.topLeft().y, 114 private native void regionscore(ByteBuffer imageBuffer, int width, int height, float left, argument
|
H A D | TextureSource.java | 63 public void allocate(int width, int height) { argument 64 //Log.i("TextureSource", "Allocating empty texture " + mTexId + ": " + width + "x" + height + "."); 65 GLToolbox.allocateTexturePixels(mTexId, mTarget, width, height); 69 public void allocateWithPixels(ByteBuffer pixels, int width, int height) { argument 70 //Log.i("TextureSource", "Uploading pixels to texture " + mTexId + ": " + width + "x" + height + "."); 71 GLToolbox.setTexturePixels(mTexId, mTarget, pixels, width, height);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | CpuVideoTrackDecoder.java | 237 ByteBuffer input, ByteBuffer output, int colorFormat, int width, int height) { 240 ColorSpace.convertArgb8888ToRgba8888(input, output, width, height); 243 ColorSpace.convertYuv420pToRgba8888(input, output, width, height); 236 convertImage( ByteBuffer input, ByteBuffer output, int colorFormat, int width, int height) argument
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | DisplayListLayersActivity.java | 71 private void addChild(LinearLayout root, View child, int width, int height) { argument 72 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(width, height);
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
H A D | SurfaceAndTextureViews.java | 138 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { argument 139 System.out.println("surfaceChanged: w h = " + width + ", " + height); 173 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument 178 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument 179 System.out.println("SurfaceTexture size changed to " + width + ", " + height);
|
/frameworks/base/tools/aapt2/compile/ |
H A D | Image.h | 37 * A `height` sized array of pointers, where each element points to a 50 * The height of the image in RGBA_8888 pixels. This is int32_t because of 54 int32_t height = 0; member in class:aapt::Image 118 const int32_t height,
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | ShadowPainter.java | 81 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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/shadowutil/ |
H A D | ShadowBuffer.java | 31 public ShadowBuffer(int width, int height) { argument 33 mHeight = height; 34 mBitmap = Bitmap.createBitmap(width, height, Config.ARGB_8888);
|
/frameworks/native/libs/nativewindow/include/vndk/ |
H A D | window.h | 87 int height; member in struct:ANativeWindowBuffer 187 * 2. The GL driver overrides the width and height of the ANW to
|
/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; 113 info.height = height; 125 rec.height = height; 130 rec.size = static_cast<size_t>(height * (*strid [all...] |