/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayAdapter.java | 139 public static Display.Mode createMode(int width, int height, float refreshRate) { argument 141 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/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; 128 width = frame.width(); 136 if (mSurface == surface && mSurfaceWidth == width && mSurfaceHeight == height) { 141 mSurfaceWidth = width;
|
/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. 86 * @param width The minimum desired width 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/layoutlib/bridge/src/android/text/ |
H A D | OptimizingLineBreaker.java | 52 breakInfo.widths = new float[]{p.width}; 161 w += p.width; 166 w = mTabStops.width(w); 173 private static float computeDemerits(float maxWidth, float width, boolean finalBreak, argument 175 float deviation = finalBreak ? 0 : maxWidth - width; 192 w += p.width; 197 w = mTabStops.width(w); 224 /** Actual width of the line. */ 233 public LineMetrics(float width, float printedWidth, boolean hasTabs) { argument 234 mWidth = width; 253 Node(int prev, int prevCount, float demerits, float width, boolean hasTabs) argument [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/minikin/sample/ |
H A D | example_skia.cpp | 129 int width = 800; local 132 bitmap.allocN32Pixels(width, height);
|
/frameworks/native/include/ui/ |
H A D | Rect.h | 79 // a valid rectangle has a non negative width and height 84 // an empty rect has a zero width or height, or is invalid 89 // rectangle's width 171 // the origin and extending to (width, height). If the transform includes 173 // (height, width). Otherwise the output rectangle is in the same space as 175 Rect transform(uint32_t xform, int32_t width, int32_t height) const; 182 inline int32_t width() const { return getWidth(); } function in class:android::Rect
|
/frameworks/native/libs/gui/ |
H A D | ISurfaceComposerClient.cpp | 56 virtual status_t createSurface(const String8& name, uint32_t width, argument 63 data.writeUint32(width); 114 uint32_t width = data.readUint32(); local 120 status_t result = createSurface(name, width, height, format,
|
/frameworks/native/libs/ui/ |
H A D | GraphicBufferAllocator.cpp | 69 rec.width, rec.stride, rec.height, rec.format, rec.usage); 73 rec.width, rec.stride, rec.height, rec.format, rec.usage); 93 status_t GraphicBufferAllocator::alloc(uint32_t width, uint32_t height, argument 101 if (!width || !height) 102 width = height = 1; 111 err = mAllocDev->alloc(mAllocDev, static_cast<int>(width), 117 width, height, format, usage, err, strerror(-err)); 124 rec.width = width;
|
/frameworks/native/opengl/tests/gl2_jni/jni/ |
H A D | gl_code.cpp | 152 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_init(JNIEnv * env, jobject obj, jint width, jint height); 156 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_init(JNIEnv * env, jobject obj, jint width, jint height) argument 158 setupGraphics(width, height);
|
/frameworks/native/opengl/tests/gldual/jni/ |
H A D | gl_code.cpp | 152 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_init(JNIEnv * env, jobject obj, jint width, jint height); 156 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_init(JNIEnv * env, jobject obj, jint width, jint height)
argument 158 setupGraphics(width, height);
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcTestLib.h | 86 // Dimension - width and height of a rectanguler area 91 uint32_t width(void) const { return _w; } function in class:HwcTestDim 106 EGLint *width, EGLint *height);
|
/frameworks/native/opengl/tests/testViewport/src/com/android/test/ |
H A D | TestView.java | 236 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 237 gl.glViewport(0, 0, width, height); 240 gl.glOrthof(0, width, height, 0, -1, 1); 242 createGrid(gl, width, height);
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer.h | 86 status_t allocateVirtualDisplay(uint32_t width, uint32_t height, 141 uint32_t width; member in struct:android::HWComposer::DisplayConfig
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
H A D | BallsRS.java | 95 private void createPF(int width, int height) { argument 104 public void init(RenderScriptGL rs, Resources res, int width, int height) { argument 108 createPF(width, height); 119 mGrid = ScriptField_BallGrid.create2D(mRS, (width + 99) / 100, (height + 99) / 100); 141 mPhysicsScript.set_gMaxPos(new Float2(width - 5, height - 5)); 144 mScript.invoke_initParts(width, height);
|
/frameworks/rs/java/tests/GenImages/src/com/android/rs/genimage/ |
H A D | GenImage.java | 75 public void onSurfaceChanged(GL10 unused, int width, int height) { argument
|
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Healing.java | 50 Bitmap bitmap = Bitmap.createBitmap(rec.width(), rec.height(), Bitmap.Config.ALPHA_8); 79 floatImage.setX(mRoiBounds.width()); 91 mRoiBounds.width(), mRoiBounds.height()); 96 mRoiBounds.width(), mRoiBounds.height()); 109 options.setX(1, mRoiBounds.width() - 1); 133 mUndoBitmap = Bitmap.createBitmap(mRoiBounds.width(), mRoiBounds.height(), 136 Rect undoRect = new Rect(0, 0, mRoiBounds.width(), mRoiBounds.height()); 145 Bitmap createMutableBitmap(Bitmap image, int x, int y, int width, int height) { argument 146 Bitmap ret = Bitmap.createBitmap(image, x, y, width, height);
|
H A D | Region.java | 156 Bitmap createMutableBitmap(Bitmap image, int x, int y, int width, int height) {
argument 157 Bitmap ret = Bitmap.createBitmap(image, x, y, width, height);
|