Home
last modified time | relevance | path

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

1234

/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/media/common/src/android/mediav2/common/cts/
DRawResource.java28 public final int mWidth; field in RawResource
44 if (!builder.mIsAudio && (builder.mWidth <= 0 || builder.mHeight <= 0 in RawResource()
50 mWidth = builder.mWidth; in RawResource()
62 private int mWidth; field in RawResource.Builder
77 this.mWidth = width; in setDimension()
DVideoErrorManager.java61 if (mRefYuv.mHeight != mTestYuv.mHeight || mRefYuv.mWidth != mTestYuv.mWidth in VideoErrorManager()
67 mRefYuv.mWidth, mRefYuv.mHeight, mRefYuv.mBytesPerSample, mTestYuv.mWidth, in VideoErrorManager()
71 if (((mRefYuv.mWidth & 1) != 0) || ((mRefYuv.mHeight & 1) != 0) || ( in VideoErrorManager()
76 mRefYuv.mWidth, mRefYuv.mHeight, mRefYuv.mBytesPerSample); in VideoErrorManager()
180 int ySize = mRefYuv.mWidth * mRefYuv.mHeight * mRefYuv.mBytesPerSample; in generateErrorStats()
196 double curYMSE = computeMSE(yRef, yTest, mRefYuv.mBytesPerSample, mRefYuv.mWidth, in generateErrorStats()
208 mRefYuv.mWidth / 2, mRefYuv.mHeight / 2, null); in generateErrorStats()
219 mRefYuv.mWidth / 2, mRefYuv.mHeight / 2, null); in generateErrorStats()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DBitmapImage.java39 private final int mWidth; field in BitmapImage
43 mWidth = width; in BitmapImage()
68 return mWidth; in getWidth()
85 return Bitmap.createBitmap(mPixels, mWidth, mHeight, Bitmap.Config.ARGB_8888); in toBitmap()
98 return mPixels[y * mWidth + x]; in getPixel()
130 for (int x = 0; x < mWidth; ++x) { in robustMatch()
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DPinchToZoomTestPlayerListener.java41 private int mWidth; field in PinchToZoomTestPlayerListener
104 mWidth = displayMetrics.widthPixels; in setInputRegionSize()
106 mStepSize = (RIGHT_MARGIN_WIDTH_FACTOR * mWidth - LEFT_MARGIN_WIDTH_FACTOR * mWidth in setInputRegionSize()
108 Log.i(TAG, "Set the touchable region size: width=" + mWidth + ", height=" + mHeight in setInputRegionSize()
145 float midDisplayWidth = mWidth / 2.0f; in getPointerCoords()
151 leftPointerStartCoords = getDisplayPointer(LEFT_MARGIN_WIDTH_FACTOR * mWidth, in getPointerCoords()
153 rightPointerStartCoords = getDisplayPointer(RIGHT_MARGIN_WIDTH_FACTOR * mWidth, in getPointerCoords()
/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/tests/tests/view/src/android/view/cts/
DPixelCopyGLProducerCtsActivity.java45 private int mWidth, mHeight; field in PixelCopyGLProducerCtsActivity.QuadColorGLRenderer
60 mWidth = width; in onSurfaceChanged()
66 int cx = mWidth / 2; in onDrawFrame()
77 glScissor(cx, cy, mWidth - cx, mHeight - cy); in onDrawFrame()
83 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/tests/inputmethod/mockime/src/com/android/cts/mockime/
DWatermark.java43 private final int mWidth; field in Watermark.BitmapImage
47 mWidth = width; in BitmapImage()
72 return mWidth; in getWidth()
89 return Bitmap.createBitmap(mPixels, mWidth, mHeight, Bitmap.Config.ARGB_8888); in toBitmap()
108 if (offsetX < 0 || targetWidth <= mWidth - 1 + offsetX) return false; in robustMatch()
112 for (int x = 0; x < mWidth; ++x) { in robustMatch()
116 final int sourcePx = sourcePixels[y * mWidth + x]; in robustMatch()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DResourceManagerMultiTest.java86 public int mWidth; field in ResourceManagerMultiTest
110 int mWidth; in getAllVideoCodecParameters() field in ResourceManagerMultiTest.Resolution
114 mWidth = w; in getAllVideoCodecParameters()
181 long pixels = (long) resolution.mWidth * resolution.mHeight; in getAllVideoCodecParameters()
197 long pixels = (long) resolution.mWidth * resolution.mHeight; in getAllVideoCodecParameters()
203 if (videoCap.isSizeSupported(resolution.mWidth, resolution.mHeight)) { in getAllVideoCodecParameters()
206 resolution.mWidth, resolution.mHeight)); in getAllVideoCodecParameters()
253 doTestReclaimResource(mCodecName, mMimeType, mWidth, mHeight); in testReclaimResource()
267 doTestCodecImportanceReclaimResource(mCodecName, mMimeType, mWidth, mHeight); in testCodecImportanceReclaimResource()
DResourceManagerTestActivityBase.java48 private int mWidth = 0; field in ResourceManagerTestActivityBase
96 if (mWidth == 0 || mHeight == 0) { in getTestFormat()
97 mWidth = vcaps.getSupportedWidths().getUpper(); in getTestFormat()
98 mHeight = vcaps.getSupportedHeightsFor(mWidth).getUpper(); in getTestFormat()
102 if (mWidth == 0 || mHeight == 0) { in getTestFormat()
103 mWidth = vcaps.getSupportedWidths().getLower(); in getTestFormat()
104 mHeight = vcaps.getSupportedHeightsFor(mWidth).getLower(); in getTestFormat()
109 MediaFormat format = MediaFormat.createVideoFormat(mMime, mWidth, mHeight); in getTestFormat()
196 mWidth = extras.getInt("width"); in allocateCodecs()
198 if (mWidth == 0 || mHeight == 0) { in allocateCodecs()
[all …]
DPresentationSyncTest.java56 private int mWidth; field in PresentationSyncTest
98 mWidth = output.getWidth(); in testThroughput()
100 Log.d(TAG, "Surface w=" + mWidth + " h=" + mHeight); in testThroughput()
233 mWidth = output.getWidth(); in suppressed_testChoreographed()
235 Log.d(TAG, "Surface w=" + mWidth + " h=" + mHeight); in suppressed_testChoreographed()
408 startX = (num % 16) * (mWidth / 16); in drawFrame()
412 startX = (mWidth - mWidth/16) - startX; in drawFrame()
421 GLES20.glScissor(startX, startY, mWidth / 16, mHeight / 4); in drawFrame()
438 mWidth = width; in surfaceChanged()
DResourceManagerCodecActivity.java39 private int mWidth = 0; field in ResourceManagerCodecActivity
141 mWidth = vcaps.getSupportedWidths().getUpper(); in createVideoFormat()
142 mHeight = vcaps.getSupportedHeightsFor(mWidth).getUpper(); in createVideoFormat()
145 mWidth = vcaps.getSupportedWidths().getLower(); in createVideoFormat()
146 mHeight = vcaps.getSupportedHeightsFor(mWidth).getLower(); in createVideoFormat()
150 Log.d(TAG, "Mime: " + mMime + " Resolution: " + mWidth + "x" + mHeight in createVideoFormat()
152 MediaFormat format = MediaFormat.createVideoFormat(mMime, mWidth, mHeight); in createVideoFormat()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DEncodeDecodeTest.java120 private final int mWidth; field in EncodeDecodeTest
175 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in shouldSkip()
205 mWidth = width; in EncodeDecodeTest()
332 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in encodeDecodeVideoFromBuffer()
390 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
409 outputSurface = new OutputSurface(mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
427 inputSurface.updateSize(mWidth, mHeight); in encodeDecodeVideoFromSurfaceToSurface()
530 byte[] frameData = new byte[mWidth * mHeight * 3 / 2]; in doEncodeDecodeVideoFromBuffer()
540 String fileName = DEBUG_FILE_NAME_BASE + mWidth + "x" + mHeight + ".mp4"; in doEncodeDecodeVideoFromBuffer()
551 outputSurface = new OutputSurface(mWidth, mHeight); in doEncodeDecodeVideoFromBuffer()
[all …]
DIvfReader.java42 private int mWidth; field in IvfReader
81 return mWidth; in getWidth()
151 mWidth = (int) changeEndianness(mIvfFile.readShort()); in readHeaderData()
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/
DSurfacePixelValidator2.java49 private final int mWidth; field in SurfacePixelValidator2
89 mBoundsToCheck, mWidth, mHeight);
126 mWidth = size.x; in SurfacePixelValidator2()
134 mBoundsToCheck = new Rect(0, 0, mWidth, mHeight); in SurfacePixelValidator2()
139 Log.d(TAG, "boundsToCheck=" + mBoundsToCheck + " size=" + mWidth + "x" + mHeight); in SurfacePixelValidator2()
144 mImageReader = ImageReader.newInstance(mWidth, mHeight, HardwareBuffer.RGBA_8888, 1, in SurfacePixelValidator2()
/cts/tests/video/src/android/video/cts/
DVideoCodecClaimsPerformanceTestBase.java42 protected final int mWidth; field in VideoCodecClaimsPerformanceTestBase
53 mWidth = width; in VideoCodecClaimsPerformanceTestBase()
103 PerformancePoint PPReq = new PerformancePoint(mWidth, mHeight, mFps); in deviceClaimsPerformanceSupported()
114 Range<Double> reported = videoCaps.getAchievableFrameRatesFor(mWidth, mHeight); in deviceClaimsPerformanceSupported()
122 mWidth, mHeight, mFps); in deviceClaimsPerformanceSupported()
/cts/tests/tests/media/common/src/android/media/cts/
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()
/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()
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DPdfRendererTransformTest.java53 private final int mWidth; field in PdfRendererTransformTest
65 mWidth = width; in PdfRendererTransformTest()
129 renderAndCompare(mWidth, mHeight, mDocRes, mClipping, mTransformation, mRenderMode, in test()
133 renderPreVAndCompare(mWidth, mHeight, mDocRes, mClipping, mTransformation, mRenderMode, in test()
137 renderAndCompare(mWidth, mHeight, mDocRes, mClipping, mTransformation, mRenderMode, in test()
/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()
/cts/tests/mediapc/src/android/mediapc/cts/
DInputSurface.java36 private int mWidth; field in InputSurface
93 mWidth = getWidth(); in eglSetup()
190 if (width != mWidth || height != mHeight) { in updateSize()
194 mWidth = getWidth(); in updateSize()
/cts/apps/CtsVerifier/include/colorchecker/
Dtestingimage.h46 inline int getWidth() const { return mWidth; } in getWidth()
63 int mWidth; variable

1234