Searched defs:width (Results 201 - 225 of 710) sorted by relevance

1234567891011>>

/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayAdapter.java139 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 DUinputBridge.java34 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 DDisplaySinkService.java112 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 DCameraTooActivity.java84 * 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 DGLToolbox.java70 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 DStatsFilter.java81 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 DTextureSource.java63 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 DCpuVideoTrackDecoder.java237 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 DDisplayListLayersActivity.java71 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 DSurfaceAndTextureViews.java138 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 DOptimizingLineBreaker.java52 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 DShadowPainter.java80 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 Dexample_skia.cpp129 int width = 800; local
132 bitmap.allocN32Pixels(width, height);
/frameworks/native/include/ui/
H A DRect.h79 // 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 DISurfaceComposerClient.cpp56 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 DGraphicBufferAllocator.cpp69 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 Dgl_code.cpp152 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 Dgl_code.cpp152 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 DhwcTestLib.h86 // 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 DTestView.java236 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 DHWComposer.h86 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 DBallsRS.java95 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 DGenImage.java75 public void onSurfaceChanged(GL10 unused, int width, int height) { argument
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
H A DHealing.java50 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 DRegion.java156 Bitmap createMutableBitmap(Bitmap image, int x, int y, int width, int height) { argument
157 Bitmap ret = Bitmap.createBitmap(image, x, y, width, height);

Completed in 2527 milliseconds

1234567891011>>