Home
last modified time | relevance | path

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

12

/cts/tests/tests/text/src/android/text/cts/
DLayoutTest.java35 private int mWidth; field in LayoutTest
49 mWidth = 11; in setUp()
56 new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, mAlign, mSpacingmult, mSpacingadd); in testConstructor()
67 Layout layout = new MockLayout(text, mTextPaint, mWidth, in testGetText()
71 layout = new MockLayout(null, mTextPaint, mWidth, mAlign, mSpacingmult, mSpacingadd); in testGetText()
76 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetPaint()
81 layout = new MockLayout(LAYOUT_TEXT, null, mWidth, mAlign, mSpacingmult, mSpacingadd); in testGetPaint()
104 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testIncreaseWidthTo()
122 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetHeight()
128 Layout layout = new MockLayout(LAYOUT_TEXT, mTextPaint, mWidth, in testGetAlignment()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DEncodeDecodeTest.java83 private int mWidth = -1; field in EncodeDecodeTest
339 mWidth = width; in setParameters()
352 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in shouldSkip()
384 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in encodeDecodeVideoFromBuffer()
456 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
477 outputSurface = new OutputSurface(mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
498 inputSurface.updateSize(mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
601 byte[] frameData = new byte[mWidth * mHeight * 3 / 2]; in doEncodeDecodeVideoFromBuffer()
611 String fileName = DEBUG_FILE_NAME_BASE + mWidth + "x" + mHeight + ".mp4"; in doEncodeDecodeVideoFromBuffer()
622 outputSurface = new OutputSurface(mWidth, mHeight); in doEncodeDecodeVideoFromBuffer()
[all …]
DPresentationSyncTest.java48 private int mWidth; field in PresentationSyncTest
90 mWidth = output.getWidth(); in testThroughput()
92 Log.d(TAG, "Surface w=" + mWidth + " h=" + mHeight); in testThroughput()
224 mWidth = output.getWidth(); in suppressed_testChoreographed()
226 Log.d(TAG, "Surface w=" + mWidth + " h=" + mHeight); in suppressed_testChoreographed()
399 startX = (num % 16) * (mWidth / 16); in drawFrame()
403 startX = (mWidth - mWidth/16) - startX; in drawFrame()
412 GLES20.glScissor(startX, startY, mWidth / 16, mHeight / 4); in drawFrame()
429 mWidth = width; in surfaceChanged()
DDecodeEditEncodeTest.java82 private int mWidth = -1; field in DecodeEditEncodeTest
145 mWidth = width; in setParameters()
166 String fileName = "vedit1_" + mWidth + "x" + mHeight + ".mp4"; in videoEditTest()
174 String fileName = "vedit2_" + mWidth + "x" + mHeight + ".mp4"; in videoEditTest()
189 if (VERBOSE) Log.d(TAG, "generateVideoFile " + mWidth + "x" + mHeight); in generateVideoFile()
196 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); in generateVideoFile()
360 startX = frameIndex * (mWidth / 4); in generateSurfaceFrame()
363 startX = (7 - frameIndex) * (mWidth / 4); in generateSurfaceFrame()
371 GLES20.glScissor(startX, startY, mWidth / 4, mHeight / 2); in generateSurfaceFrame()
387 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.java32 private int mWidth; field in IvfWriter
55 mWidth = width; in IvfWriter()
83 mOutputFile.write(makeIvfHeader(mFrameCount, mWidth, mHeight, mScale, mRate)); in close()
DInputSurface.java47 private int mWidth; field in InputSurface
107 mWidth = getWidth(); in eglSetup()
112 if (width != mWidth || height != mHeight) { in updateSize()
116 mWidth = getWidth(); in updateSize()
DEncodeVirtualDisplayWithCompositionTest.java609 private int mWidth; field in EncodeVirtualDisplayWithCompositionTest.GlCompositor
649 mWidth = w; in startComposition()
782 Log.i(TAG, "initGl w:" + mWidth + " h:" + mHeight); in initGl()
783 GLES20.glViewport(0, 0, mWidth, mHeight); in initGl()
787 float wMid = mWidth / 2f; in initGl()
798 mTopWindow = new GlWindow(this, 0, 0, mWidth, mHeight); in createWindows()
801 mTopWindow.getSurface(), mWidth, mHeight, mNumWindows); in createWindows()
837 GLES20.glReadPixels(mWidth / 2, mHeight / 2, 1, 1, in doGlRendering()
911 private int mWidth; field in EncodeVirtualDisplayWithCompositionTest.GlCompositor.GlWindow
931 mWidth = w; in GlWindow()
[all …]
DRemoteVirtualDisplayService.java113 private int mWidth; field in RemoteVirtualDisplayService.VirtualDisplayPresentation
122 mWidth = w; in VirtualDisplayPresentation()
132 TAG, mWidth, mHeight, 200, mSurface, 0); in createVirtualDisplay()
/cts/tests/tests/graphics2/src/android/graphics2/cts/
DTextureViewCameraActivity.java45 private int mWidth; field in TextureViewCameraActivity
56 mWidth = width; in onSurfaceTextureAvailable()
82 mWidth = width; in onSurfaceTextureSizeChanged()
97 Assert.assertEquals(mWidth, bitmap.getWidth()); in onSurfaceTextureUpdated()
105 transformMatrix.setRotate(mRotation, mWidth/2, mHeight/2); in onSurfaceTextureUpdated()
/cts/tests/tests/graphics/src/android/opengl/cts/
DCompressedTextureLoader.java52 mWidth = width; in Texture()
63 public int getWidth() { return mWidth; } in getWidth()
89 private int mWidth; field in CompressedTextureLoader.Texture
126 int mWidth; // width of input surface field in CompressedTextureLoader.PVRHeader
156 header.mWidth = headerBuffer.getInt(); in readPVRHeader()
253 int dataSize = (header.mWidth * header.mHeight * header.mBitCount) >> 3; in loadTexturePVRTC()
255 Texture tex = new Texture(header.mWidth, header.mHeight, in loadTexturePVRTC()
320 int mWidth; field in CompressedTextureLoader.DDSHeader
365 header.mWidth = headerBuffer.getInt(); in readDDSHeader()
428 int dataSize = (header.mWidth * header.mHeight * bpp) >> 3; in loadTextureDXT()
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DFramebufferTest.java482 private int mWidth = -1; field in FramebufferTest.EglSurfaceBase
499 mWidth = mEglCore.querySurface(mEGLSurface, EGL14.EGL_WIDTH); in createWindowSurface()
511 mWidth = width; in createOffscreenSurface()
519 return mWidth; in getWidth()
535 mWidth = mHeight = -1; in releaseEglSurface()
604 ByteBuffer buf = ByteBuffer.allocateDirect(mWidth * mHeight * 4); in saveFrame()
606 GLES20.glReadPixels(0, 0, mWidth, mHeight, in saveFrame()
611 int pixelCount = mWidth * mHeight; in saveFrame()
622 Bitmap bmp = Bitmap.createBitmap(colors, mWidth, mHeight, Bitmap.Config.ARGB_8888); in saveFrame()
628 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()
DNativeRendererOneColorBufferTest.java37 private int mWidth; field in NativeRendererOneColorBufferTest
82 mWidth = width; in onSurfaceChanged()
/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/apps/CtsVerifier/include/colorchecker/
Dtestingimage.h46 inline int getWidth() const { return mWidth; } in getWidth()
63 int mWidth; variable
/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()
DBlurMeshNode.cpp20 mWidth(width), mHeight(height) { in BlurMeshNode()
40 glUniform2f(scaleUniformHandle, 1.0f / mWidth, 0); in before()
DBlurMeshNode.h33 const float mWidth; variable
/cts/tests/openglperf2/jni/reference/scene/
DScene.cpp22 mWidth(width), mHeight(height) { in Scene()
38 mProjectionMatrix = setUpProjectionMatrix(mWidth, mHeight); in setUpContext()
/cts/tests/openglperf2/jni/reference/
DReferenceRenderer.cpp43 mScenes[0] = new FlockingScene(mWidth, mHeight); in setUp()
44 mScenes[1] = new GlowingScene(mWidth, mHeight); in setUp()
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyTests.java243 private int mWidth, mHeight; field in PixelCopyTests.QuadColorGLRenderer
260 mWidth = width; in onSurfaceChanged()
266 int cx = mWidth / 2; in onDrawFrame()
274 glScissor(cx, cy, mWidth - cx, mHeight - cy); in onDrawFrame()
280 glScissor(cx, 0, mWidth - cx, cy); in onDrawFrame()
/cts/tests/openglperf2/jni/primitive/fullpipeline/
DFullPipelineRenderer.cpp134 float ratio = (float) mWidth / mHeight; in setUp()
145 mTextureId = GLUtils::genTexture(mWidth, mHeight, GLUtils::RANDOM_FILL); in setUp()
/cts/tests/openglperf2/jni/graphics/
DRenderer.cpp115 EGL_RESULT_CHECK(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &mWidth)); in eglSetUp()
232 glViewport(0, 0, mWidth, mHeight); in draw()
253 glViewport(0, 0, mWidth, mHeight); in draw()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DTextureTestRenderer.java62 private int mWidth; field in TextureTestRenderer
122 gl.glReadPixels(mWidth / 2, mHeight / 2, 1, 1, GL10.GL_RGBA, in onDrawFrame()
133 mWidth = width; in onSurfaceChanged()

12