Searched refs:height (Results 1 - 25 of 255) sorted by relevance

1234567891011

/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
H A DSize.java24 public final int height; field in class:Size
26 public Size(int width, int height) { argument
28 this.height = height;
H A DSelectableResolution.java25 public final int height; field in class:SelectableResolution
30 public SelectableResolution(int cameraId, int width, int height) { argument
33 this.height = height;
40 return "Cam " + cameraId + ": " + width + " x " + height + " - "
/cts/hostsidetests/sustainedperf/shadertoy_android/src/
H A DGLtestLib.java29 * @param height the current view height
31 public static native void init(int width, int height); argument
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/
H A Dhooks_android.cpp19 extern void Init(int width, int height);
24 JNIEXPORT void JNICALL Java_com_android_gputest_GLtestLib_init(JNIEnv * env, jobject obj, jint width, jint height);
28 JNIEXPORT void JNICALL Java_com_android_gputest_GLtestLib_init(__attribute__((unused)) JNIEnv * env,__attribute__((unused)) jobject obj, jint width, jint height) argument
30 Init(width, height);
H A Dshadertoy_shader.h29 int height; member in struct:InputTextures
38 void PrepareForDraw(int width, int height, float global_time, int frame, float time_delta);
/cts/tests/tests/graphics/src/android/graphics/cts/
H A DPorterDuffColorFilterTest.java33 int height = 100;
34 Bitmap b1 = Bitmap.createBitmap(width / 2, height, Config.ARGB_8888);
36 Bitmap b2 = Bitmap.createBitmap(width, height / 2, Config.ARGB_8888);
39 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888);
48 canvas.drawBitmap(b2, 0, height / 2, p);
49 assertEquals(Color.RED, target.getPixel(width / 4, height / 4));
50 int lowerLeft = target.getPixel(width / 4, height * 3 / 4);
53 int lowerRight = target.getPixel(width * 3 / 4, height * 3 / 4);
61 canvas.drawBitmap(b2, 0, height / 2, p);
62 assertEquals(Color.RED, target.getPixel(width / 4, height /
[all...]
H A DShaderTest.java32 int height = 120;
33 int[] color = new int[width * height];
34 Bitmap bitmap = Bitmap.createBitmap(color, width, height, Bitmap.Config.RGB_565);
H A DYuvImageTest.java94 int height = 100;
95 byte[] yuv = new byte[width * height * 2];
101 image = new YuvImage(yuv, mFormats[i], width, height, null);
119 image = new YuvImage(yuv, mFormats[i], width, height, null);
133 image = new YuvImage(yuv, format, -1, height, null);
139 // abnormal case: height is non-positive
142 fail("not catching illegal height");
149 image = new YuvImage(null, format, width, height, null);
201 int height = mTestBitmaps[0].getHeight();
203 int[] argb = new int[stride * height];
219 generateTestBitmaps(int width, int height) argument
303 convertArgbsToYuvs(int[] argb, int width, int height, int format) argument
[all...]
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
H A DPassComparer.java24 int height) {
23 verifySame(int[] ideal, int[] given, int offset, int stride, int width, int height) argument
H A DBitmapComparer.java31 * @param height the height of the subsection being tested
35 int height);
43 Allocation given, int offset, int stride, int width, int height,
34 verifySame(int[] ideal, int[] given, int offset, int stride, int width, int height) argument
42 verifySameRS(Resources resources, Allocation ideal, Allocation given, int offset, int stride, int width, int height, RenderScript renderScript) argument
H A DMeanSquaredComparer.java45 int height) {
46 float totalError = getMSE(ideal, given, offset, stride, width, height);
53 Allocation given, int offset, int stride, int width, int height,
68 error /= (height * width);
79 int height) {
82 for (int y = 0 ; y < height ; y++) {
92 totalError /= (width * height);
44 verifySame(int[] ideal, int[] given, int offset, int stride, int width, int height) argument
52 verifySameRowsRS(Resources resources, Allocation ideal, Allocation given, int offset, int stride, int width, int height, RenderScript renderScript, Allocation inputAllocation, Allocation outputAllocation) argument
78 getMSE(int[] ideal, int[] given, int offset, int stride, int width, int height) argument
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
H A DCanvasClient.java24 void draw(Canvas canvas, int width, int height); argument
H A DResourceModifier.java99 final float height = bitmap.getHeight() / 8.0f;
103 0.0f, height, width, height, width * 2, height, width * 4, height,
104 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2,
105 0.0f, height *
[all...]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
H A DAllocationCopy2DRangeTest.java33 int height = random.nextInt(512);
35 int[] inArray = new int[width * height];
36 int[] outArray = new int[width * height];
38 for (int i = 0; i < width * height; i++) {
44 typeBuilder.setX(width).setY(height);
47 mInAllocation.copy2DRangeFrom(0, 0, width, height, inArray);
49 mScript.set_height(height);
57 compareTwoArrays(inArray, outArray, width*height));
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
H A DInvertVerifier.java29 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { argument
30 boolean success = mBitmapVerifier.verify(bitmap, offset, stride, width, height);
H A DGoldenImageVerifier.java35 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { argument
37 width, height);
39 mDifferenceBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
41 mDifferenceBitmap.setPixels(differences, 0, width, 0, 0, width, height);
/cts/tests/tests/opengl/src/android/opengl/cts/
H A DGL2JniLibOne.java24 public static native void init(int category, int subcategory, int width, int height); argument
/cts/tests/tests/media/src/android/media/cts/
H A DIvfWriter.java47 * @param height frame height
52 int width, int height,
56 mHeight = height;
71 * @param height frame height
73 public IvfWriter(String filename, int width, int height) throws IOException { argument
74 this(filename, width, height, 1, 1000000);
106 * @param height frame height
51 IvfWriter(String filename, int width, int height, int scale, int rate) argument
110 makeIvfHeader(int frameCount, int width, int height, int scale, int rate) argument
[all...]
/cts/tests/camera/src/android/hardware/cts/
H A DCamera_SizeTest.java90 float jpegAspect = largestJpegDimen.width / (float) largestJpegDimen.height;
92 largestPreviewDimen.width / (float) largestPreviewDimen.height;
97 largestPreviewDimen.height + ") should have the same aspect ratio " +
99 ", h=" + largestJpegDimen.height + ")");
108 private void checkSize(Parameters parameters, int width, int height) { argument
109 parameters.setPictureSize(width, height);
111 assertEquals(height, parameters.getPictureSize().height);
/cts/tests/openglperf2/jni/reference/scene/flocking/
H A DFlockingScene.h24 FlockingScene(int width, int height);
35 Matrix* setUpProjectionMatrix(float width, float height);
/cts/tests/openglperf2/jni/reference/scene/glowing/
H A DGlowingScene.h23 GlowingScene(int width, int height);
34 Matrix* setUpProjectionMatrix(float width, float height);
/cts/tests/tests/rscpp/src/android/cts/rscpp/
H A DRSYuvTest.java32 int height; field in class:RSYuvTest
44 return (height + 1) / 2;
50 height = h;
77 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height));
88 byte tmp[] = new byte[(width * height) + (getCWidth() * getCHeight() * 2)];
90 for (int j = 0; j < (width * height); j++) {
105 byte[] nativeByteAlloc = new byte[width * height * 4];
106 yuvTest(this.getContext().getCacheDir().toString(), width, height, tmp, nativeByteAlloc, 0);
123 tb.setY(height);
127 byte tmp[] = new byte[(width * height)
[all...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
H A DStatsImage.java33 byte[] img, int width, int height, int gridW, int gridH);
32 computeStatsImage( byte[] img, int width, int height, int gridW, int gridH) argument
/cts/tests/tests/widget/src/android/widget/cts/
H A DAbsListView_LayoutParamsTest.java51 assertEquals(TEST_HEIGHT, layoutParams.height);
56 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height);
61 assertEquals(LayoutParams.MATCH_PARENT, layoutParams.height);
66 assertEquals(TEST_HEIGHT2, layoutParams.height);
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
H A DShaderTests.java44 public void draw(Canvas canvas, int width, int height) {
51 canvas.drawRect(0, 0, width, height, mPaint);
64 public void draw(Canvas canvas, int width, int height) {
82 canvas.drawRect(0, 0, width, height, mPaint);
106 public void draw(Canvas canvas, int width, int height) {
108 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ALPHA_8);
112 bitmapCanvas.drawCircle(width / 2, height / 2, radius, mPaint);
116 width, height, Bitmap.Config.ALPHA_8);
119 bitmapCanvas.drawCircle(width / 2, height, radius, mPaint);
125 width / 2, height /
[all...]

Completed in 501 milliseconds

1234567891011