Home
last modified time | relevance | path

Searched refs:mHeight (Results 1 – 25 of 68) sorted by relevance

123

/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DGoldenImageVerifier.java28 private final int mHeight; field in GoldenImageVerifier
32 mHeight = goldenBitmap.getHeight(); in GoldenImageVerifier()
33 mGoldenBitmapArray = new int[mWidth * mHeight]; in GoldenImageVerifier()
34 goldenBitmap.getPixels(mGoldenBitmapArray, 0, mWidth, 0, 0, mWidth, mHeight); in GoldenImageVerifier()
45 if (bitmap.getWidth() > mWidth || bitmap.getHeight() > mHeight) { in verify()
46 bitmap = Bitmap.createBitmap(bitmap, 0, 0, mWidth, mHeight); in verify()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DBitmapImage.java40 private final int mHeight; field in BitmapImage
44 mHeight = height; in BitmapImage()
76 return mHeight; in getHeight()
85 return Bitmap.createBitmap(mPixels, mWidth, mHeight, Bitmap.Config.ARGB_8888); in toBitmap()
129 for (int y = 0; y < mHeight; ++y) { in robustMatch()
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyGLProducerCtsActivity.java44 private int mWidth, mHeight; field in PixelCopyGLProducerCtsActivity.QuadColorGLRenderer
60 mHeight = height; in onSurfaceChanged()
66 int cy = mHeight / 2; in onDrawFrame()
70 glScissor(0, cy, cx, mHeight - cy); in onDrawFrame()
73 glScissor(cx, cy, mWidth - cx, mHeight - cy); in onDrawFrame()
DTextureViewCameraActivity.java48 private int mHeight; field in TextureViewCameraActivity
60 mHeight = height; in onSurfaceTextureAvailable()
84 mHeight = height; in onSurfaceTextureSizeChanged()
103 Assert.assertEquals(mHeight, bitmap.getHeight()); in onSurfaceTextureUpdated()
113 transformMatrix.setRotate(mRotation, mWidth / 2, mHeight / 2); in onSurfaceTextureUpdated()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/PoseProvider/
DIntrinsics.java37 private int mHeight; field in Intrinsics
49 mHeight = height; in Intrinsics()
59 return mHeight; in getHeight()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DUserActivityEmulator.java27 private final int mHeight; field in UserActivityEmulator
44 mHeight = Integer.valueOf(sizes[1].trim()); in UserActivityEmulator()
48 mDevice.executeShellCommand(String.format("input tap %d %d", mWidth / 2, mHeight / 2)); in tapScreenCenter()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DWatermark.java44 private final int mHeight; field in Watermark.BitmapImage
48 mHeight = height; in BitmapImage()
80 return mHeight; in getHeight()
89 return Bitmap.createBitmap(mPixels, mWidth, mHeight, Bitmap.Config.ARGB_8888); in toBitmap()
109 if (offsetY < 0 || targetHeight <= mHeight - 1 + offsetY) return false; in robustMatch()
111 for (int y = 0; y < mHeight; ++y) { in robustMatch()
/cts/tests/tests/opengl/src/android/opengl/cts/
DCompressedTextureLoader.java41 mHeight = height; in Texture()
57 public int getHeight() { return mHeight; } in getHeight()
78 private int mHeight; field in CompressedTextureLoader.Texture
113 int mHeight; // height of surface to be created field in CompressedTextureLoader.PVRHeader
143 header.mHeight = headerBuffer.getInt(); in readPVRHeader()
241 int dataSize = (header.mWidth * header.mHeight * header.mBitCount) >> 3; in loadTexturePVRTC()
243 Texture tex = new Texture(header.mWidth, header.mHeight, in loadTexturePVRTC()
307 int mHeight; field in CompressedTextureLoader.DDSHeader
352 header.mHeight = headerBuffer.getInt(); in readDDSHeader()
416 int dataSize = (header.mWidth * header.mHeight * bpp) >> 3; in loadTextureDXT()
[all …]
DFramebufferTest.java480 private int mHeight = -1; field in FramebufferTest.EglSurfaceBase
497 mHeight = mEglCore.querySurface(mEGLSurface, EGL14.EGL_HEIGHT); in createWindowSurface()
509 mHeight = height; in createOffscreenSurface()
523 return mHeight; in getHeight()
532 mWidth = mHeight = -1; in releaseEglSurface()
601 ByteBuffer buf = ByteBuffer.allocateDirect(mWidth * mHeight * 4); in saveFrame()
603 GLES20.glReadPixels(0, 0, mWidth, mHeight, in saveFrame()
608 int pixelCount = mWidth * mHeight; in saveFrame()
619 Bitmap bmp = Bitmap.createBitmap(colors, mWidth, mHeight, Bitmap.Config.ARGB_8888); in saveFrame()
625 Log.d(TAG, "Saved " + mWidth + "x" + mHeight + " frame as '" + filename + "'"); in saveFrame()
DRendererOneColorBufferTest.java38 private int mHeight; field in RendererOneColorBufferTest
211 GLES20.glReadPixels(mWidth/2, mHeight/2, 1, 1, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, in doOnDrawFrame()
219 Log.i(TAG, "w " + mWidth + " h " + mHeight + " rgba" + r + " " + g + " " + b + " " + a); in doOnDrawFrame()
233 mHeight = height; in onSurfaceChanged()
235 GLES20.glViewport(0, 0, mWidth, mHeight); in onSurfaceChanged()
/cts/tests/tests/media/src/android/media/cts/
DNdkInputSurface.java31 private int mWidth, mHeight; field in NdkInputSurface
70 mHeight = eglGetHeight(mEGLDisplay, mEGLSurface); in NdkInputSurface()
103 if (width != mWidth || height != mHeight) { in updateSize()
108 mHeight = eglGetHeight(mEGLDisplay, mEGLSurface); in updateSize()
DEncodeDecodeTest.java95 private int mHeight = -1; field in EncodeDecodeTest
372 mHeight = height; in setParameters()
384 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in shouldSkip()
416 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in encodeDecodeVideoFromBuffer()
488 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
515 outputSurface = new OutputSurface(mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
540 inputSurface.updateSize(mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
643 byte[] frameData = new byte[mWidth * mHeight * 3 / 2]; in doEncodeDecodeVideoFromBuffer()
653 String fileName = DEBUG_FILE_NAME_BASE + mWidth + "x" + mHeight + ".mp4"; in doEncodeDecodeVideoFromBuffer()
664 outputSurface = new OutputSurface(mWidth, mHeight); in doEncodeDecodeVideoFromBuffer()
[all …]
DPresentationSyncTest.java52 private int mHeight; field in PresentationSyncTest
94 mHeight = output.getHeight(); in testThroughput()
95 Log.d(TAG, "Surface w=" + mWidth + " h=" + mHeight); in testThroughput()
228 mHeight = output.getHeight(); in suppressed_testChoreographed()
229 Log.d(TAG, "Surface w=" + mWidth + " h=" + mHeight); in suppressed_testChoreographed()
403 startY = (num / 16) * (mHeight / 4); in drawFrame()
415 GLES20.glScissor(startX, startY, mWidth / 16, mHeight / 4); in drawFrame()
433 mHeight = height; in surfaceChanged()
DIvfReader.java43 private int mHeight; field in IvfReader
88 return mHeight; in getHeight()
155 mHeight = (int) changeEndianness(mIvfFile.readShort()); in readHeaderData()
DIvfWriter.java35 private int mHeight; field in IvfWriter
61 mHeight = height; in IvfWriter()
89 mOutputFile.write(makeIvfHeader(mFrameCount, mWidth, mHeight, mScale, mRate, mMimeType)); in close()
DDecodeEditEncodeTest.java96 private int mHeight = -1; field in DecodeEditEncodeTest
159 mHeight = height; in setParameters()
179 String fileName = "vedit1_" + mWidth + "x" + mHeight + ".mp4"; in videoEditTest()
187 String fileName = "vedit2_" + mWidth + "x" + mHeight + ".mp4"; in videoEditTest()
202 if (VERBOSE) Log.d(TAG, "generateVideoFile " + mWidth + "x" + mHeight); in generateVideoFile()
209 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); in generateVideoFile()
374 startY = mHeight / 2; in generateSurfaceFrame()
384 GLES20.glScissor(startX, startY, mWidth / 4, mHeight / 2); in generateSurfaceFrame()
400 if (VERBOSE) Log.d(TAG, "editVideoFile " + mWidth + "x" + mHeight); in editVideoFile()
412 MediaFormat outputFormat = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); in editVideoFile()
[all …]
DInputSurface.java50 private int mHeight; field in InputSurface
118 mHeight = getHeight(); in eglSetup()
123 if (width != mWidth || height != mHeight) { in updateSize()
128 mHeight = getHeight(); in updateSize()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionActivity.java51 protected int mHeight; field in ProjectionActivity
67 … mService.startRendering(mSurface, mWidth, mHeight, metrics.densityDpi, mType.ordinal());
124 mHeight = height; in onSurfaceTextureAvailable()
154 mHeight = height; in onSurfaceTextureSizeChanged()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DSurfacePixelValidator2.java40 private final int mHeight; field in SurfacePixelValidator2
70 mWidth, mHeight);
120 mHeight = size.y; in SurfacePixelValidator2()
128 mImageReader = ImageReader.newInstance(mWidth, mHeight, HardwareBuffer.RGBA_8888, 1, in SurfacePixelValidator2()
/cts/tests/openglperf2/jni/reference/scene/glowing/
DGlowingScene.cpp116 mTextureIds.push_back(GLUtils::genTexture(mWidth, mHeight, 0)); // fbo in setUpTextures()
117 mTextureIds.push_back(GLUtils::genTexture(mWidth, mHeight, 0)); // tmp1 in setUpTextures()
118 mTextureIds.push_back(GLUtils::genTexture(mWidth, mHeight, 0)); // tmp2 in setUpTextures()
194 glViewport(0, 0, mWidth, mHeight); in draw()
/cts/apps/CtsVerifier/include/colorchecker/
Dtestingimage.h47 inline int getHeight() const { return mHeight; } in getHeight()
64 int mHeight; variable
/cts/tests/pdf/src/android/graphics/pdf/cts/
DPdfRendererTransformTest.java50 private int mHeight; field in PdfRendererTransformTest
59 mHeight = height; in PdfRendererTransformTest()
127 renderAndCompare(mWidth, mHeight, mDocRes, mClipping, mTransformation, mRenderMode, in test()
/cts/tests/openglperf2/jni/reference/scene/
DScene.cpp22 mWidth(width), mHeight(height) { in Scene()
38 mProjectionMatrix = setUpProjectionMatrix(mWidth, mHeight); in setUpContext()
/cts/tests/tests/media/libmediandkjni/
Dnative_media_source.h40 mHeight(h), in Source()
60 int32_t mHeight; variable
/cts/tests/camera/src/android/hardware/camera2/cts/
DHeifWriterTest.java242 final int mHeight; field in HeifWriterTest.TestConfig
254 mHeight = height; in TestConfig()
265 int mHeight; field in HeifWriterTest.TestConfig.Builder
274 mHeight = 1080; in Builder()
293 mHeight = sz.getHeight(); in setSize()
312 mWidth, mHeight, mRotation, mQuality, mOutputPath); in build()
323 + ", mHeight " + mHeight in toString()

123