Home
last modified time | relevance | path

Searched refs:mWidth (Results 1 – 25 of 51) sorted by relevance

123

/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DGoldenImageVerifier.java27 private final int mWidth; field in GoldenImageVerifier
31 mWidth = goldenBitmap.getWidth(); 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/tests/tests/text/src/android/text/cts/
DStaticLayoutGetLineLeftRightTest.java64 final int mWidth; field in StaticLayoutGetLineLeftRightTest
113 mWidth = mLeadingMargin + (int) mPaint.measureText(mText, 0, mText.length()) / 10; in StaticLayoutGetLineLeftRightTest()
114 mLayout = StaticLayout.Builder.obtain(mText, 0, mText.length(), mPaint, mWidth) in StaticLayoutGetLineLeftRightTest()
154 expectedLeft = mWidth - textWidth - mLeadingMargin; in testGetLineLeft()
157 expectedLeft = (float) Math.floor((mWidth - mLeadingMargin - textWidth) / 2); in testGetLineLeft()
160 + (mWidth - mLeadingMargin - textWidth) / 2); in testGetLineLeft()
178 expectedRight = mWidth; in testGetLineRight()
181 expectedRight = (float) Math.ceil(mWidth - mLeadingMargin in testGetLineRight()
182 - (mWidth - mLeadingMargin - textWidth) / 2); in testGetLineRight()
184 expectedRight = (float) Math.ceil(mWidth in testGetLineRight()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DEncodeDecodeTest.java89 private int mWidth = -1; field in EncodeDecodeTest
366 mWidth = width; in setParameters()
379 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in shouldSkip()
411 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in encodeDecodeVideoFromBuffer()
483 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
504 outputSurface = new OutputSurface(mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
529 inputSurface.updateSize(mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
632 byte[] frameData = new byte[mWidth * mHeight * 3 / 2]; in doEncodeDecodeVideoFromBuffer()
642 String fileName = DEBUG_FILE_NAME_BASE + mWidth + "x" + mHeight + ".mp4"; in doEncodeDecodeVideoFromBuffer()
653 outputSurface = new OutputSurface(mWidth, mHeight); in doEncodeDecodeVideoFromBuffer()
[all …]
DPresentationSyncTest.java50 private int mWidth; field in PresentationSyncTest
92 mWidth = output.getWidth(); in testThroughput()
94 Log.d(TAG, "Surface w=" + mWidth + " h=" + mHeight); in testThroughput()
226 mWidth = output.getWidth(); in suppressed_testChoreographed()
228 Log.d(TAG, "Surface w=" + mWidth + " h=" + mHeight); in suppressed_testChoreographed()
401 startX = (num % 16) * (mWidth / 16); in drawFrame()
405 startX = (mWidth - mWidth/16) - startX; in drawFrame()
414 GLES20.glScissor(startX, startY, mWidth / 16, mHeight / 4); in drawFrame()
431 mWidth = width; in surfaceChanged()
DNdkInputSurface.java31 private int mWidth, mHeight; field in NdkInputSurface
69 mWidth = eglGetWidth(mEGLDisplay, mEGLSurface); in NdkInputSurface()
103 if (width != mWidth || height != mHeight) { in updateSize()
107 mWidth = eglGetWidth(mEGLDisplay, mEGLSurface); in updateSize()
DDecodeEditEncodeTest.java83 private int mWidth = -1; field in DecodeEditEncodeTest
146 mWidth = width; in setParameters()
167 String fileName = "vedit1_" + mWidth + "x" + mHeight + ".mp4"; in videoEditTest()
175 String fileName = "vedit2_" + mWidth + "x" + mHeight + ".mp4"; in videoEditTest()
190 if (VERBOSE) Log.d(TAG, "generateVideoFile " + mWidth + "x" + mHeight); in generateVideoFile()
197 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); in generateVideoFile()
361 startX = frameIndex * (mWidth / 4); in generateSurfaceFrame()
364 startX = (7 - frameIndex) * (mWidth / 4); in generateSurfaceFrame()
372 GLES20.glScissor(startX, startY, mWidth / 4, mHeight / 2); in generateSurfaceFrame()
388 if (VERBOSE) Log.d(TAG, "editVideoFile " + mWidth + "x" + mHeight); in editVideoFile()
[all …]
DIvfReader.java42 private int mWidth; field in IvfReader
81 return mWidth; in getWidth()
151 mWidth = (int) changeEndianness(mIvfFile.readShort()); in readHeaderData()
DIvfWriter.java34 private int mWidth; field in IvfWriter
60 mWidth = width; in IvfWriter()
89 mOutputFile.write(makeIvfHeader(mFrameCount, mWidth, mHeight, mScale, mRate, mMimeType)); in close()
DInputSurface.java49 private int mWidth; field in InputSurface
117 mWidth = getWidth(); in eglSetup()
123 if (width != mWidth || height != mHeight) { in updateSize()
127 mWidth = getWidth(); in updateSize()
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyGLProducerCtsActivity.java44 private int mWidth, mHeight; field in PixelCopyGLProducerCtsActivity.QuadColorGLRenderer
59 mWidth = width; in onSurfaceChanged()
65 int cx = mWidth / 2; in onDrawFrame()
73 glScissor(cx, cy, mWidth - cx, mHeight - cy); in onDrawFrame()
79 glScissor(cx, 0, mWidth - cx, cy); in onDrawFrame()
DTextureViewCameraActivity.java47 private int mWidth; field in TextureViewCameraActivity
59 mWidth = width; in onSurfaceTextureAvailable()
83 mWidth = width; in onSurfaceTextureSizeChanged()
104 Assert.assertEquals(mWidth, bitmap.getWidth()); 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.java36 private int mWidth; field in Intrinsics
48 mWidth = width; in Intrinsics()
55 return mWidth; in getWidth()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DUserActivityEmulator.java26 private final int mWidth; field in UserActivityEmulator
43 mWidth = Integer.valueOf(sizes[0].trim()); in UserActivityEmulator()
48 mDevice.executeShellCommand(String.format("input tap %d %d", mWidth / 2, mHeight / 2)); in tapScreenCenter()
/cts/tests/tests/opengl/src/android/opengl/cts/
DCompressedTextureLoader.java40 mWidth = width; in Texture()
51 public int getWidth() { return mWidth; } in getWidth()
77 private int mWidth; field in CompressedTextureLoader.Texture
114 int mWidth; // width of input surface field in CompressedTextureLoader.PVRHeader
144 header.mWidth = 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()
308 int mWidth; field in CompressedTextureLoader.DDSHeader
353 header.mWidth = headerBuffer.getInt(); in readDDSHeader()
416 int dataSize = (header.mWidth * header.mHeight * bpp) >> 3; in loadTextureDXT()
[all …]
DFramebufferTest.java479 private int mWidth = -1; field in FramebufferTest.EglSurfaceBase
496 mWidth = mEglCore.querySurface(mEGLSurface, EGL14.EGL_WIDTH); in createWindowSurface()
508 mWidth = width; in createOffscreenSurface()
516 return mWidth; in getWidth()
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.java37 private int mWidth; 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()
232 mWidth = width; in onSurfaceChanged()
235 GLES20.glViewport(0, 0, mWidth, mHeight); in onSurfaceChanged()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DSurfacePixelValidator.java44 private final int mWidth; field in SurfacePixelValidator
75 boolean success = mPixelChecker.checkPixels(blackishPixelCount, mWidth, mHeight);
92 Bitmap capture = Bitmap.createBitmap(mWidth, mHeight,
105 mWidth = size.x; in SurfacePixelValidator()
133 /*Element.U32(mRS)*/, mWidth, mHeight), in createBufferQueueAllocation()
DSurfacePixelValidator2.java39 private final int mWidth; field in SurfacePixelValidator2
68 boolean success = mPixelChecker.validatePlane(plane, mBoundsToCheck, mWidth, mHeight);
104 mWidth = size.x; in SurfacePixelValidator2()
113 mImageReader = ImageReader.newInstance(mWidth, mHeight, HardwareBuffer.RGBA_8888, 1, in SurfacePixelValidator2()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionActivity.java50 protected int mWidth; field in ProjectionActivity
67 … mService.startRendering(mSurface, mWidth, mHeight, metrics.densityDpi, mType.ordinal());
123 mWidth = width; in onSurfaceTextureAvailable()
153 mWidth = width; in onSurfaceTextureSizeChanged()
/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/tests/camera/src/android/hardware/camera2/cts/
DHeifWriterTest.java235 final int mWidth; field in HeifWriterTest.TestConfig
247 mWidth = width; in TestConfig()
258 int mWidth; field in HeifWriterTest.TestConfig.Builder
267 mWidth = 1920; in Builder()
286 mWidth = sz.getWidth(); in setSize()
306 mWidth, mHeight, mRotation, mQuality, mOutputPath); in build()
316 + ", mWidth " + mWidth in toString()
/cts/apps/CtsVerifier/include/colorchecker/
Dtestingimage.h46 inline int getWidth() const { return mWidth; } in getWidth()
63 int mWidth; variable
/cts/tests/pdf/src/android/graphics/pdf/cts/
DPdfRendererTransformTest.java49 private int mWidth; field in PdfRendererTransformTest
58 mWidth = width; 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/libimagereaderjni/
DAImageReaderCts.cpp273 : mWidth(width), in ImageReaderTestCase()
295 mWidth, mHeight, mFormat, mUsage, mMaxImages, &mImgReader); in initImageReader()
385 if (imageWidth != mWidth || imageHeight != mHeight) { in HandleImageAvailable()
386 ALOGE("Mismatched output image dimension: expected=%dx%d, actual=%dx%d", mWidth, in HandleImageAvailable()
400 if (bufferWidth != mWidth || bufferHeight != mHeight) { in HandleImageAvailable()
401 ALOGE("Mismatched output buffer dimension: expected=%dx%d, actual=%dx%d", mWidth, in HandleImageAvailable()
445 int32_t mWidth; member in __anonbe2c1fa30111::ImageReaderTestCase

123