Home
last modified time | relevance | path

Searched refs:mSurface (Results 1 – 25 of 31) sorted by relevance

12

/cts/tests/tests/media/src/android/media/cts/
DCompositionTextureView.java36 private Surface mSurface; field in CompositionTextureView
112 if (mSurface == null && surfaceTexture != null) { in isSurfaceTextureAvailable()
115 return (mSurface != null); in isSurfaceTextureAvailable()
119 if (mSurface != null) { in recreateSurface()
120 mSurface.release(); in recreateSurface()
122 mSurface = new Surface(surfaceTexture); in recreateSurface()
126 return mSurface; in getSurface()
DInputSurface.java48 private Surface mSurface; field in InputSurface
59 mSurface = surface; in InputSurface()
137 mEGLSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mConfigs[0], mSurface, in createEGLSurface()
164 mSurface.release(); in release()
171 mSurface = null; in release()
203 return mSurface; in getSurface()
244 codec.setInputSurface(mSurface); in configure()
249 codec.setInputSurface(mSurface); in configure()
DMediaStubActivity2.java33 private Surface mSurface; field in MediaStubActivity2
42 mSurface = surfaceV.getHolder().getSurface(); in onCreate()
54 return Arrays.asList(mSurface, mSurface2.get()); in getSurfaces()
56 return Arrays.asList(mSurface); in getSurfaces()
DOutputSurface.java53 private Surface mSurface; field in OutputSurface
116 mSurface = new Surface(mSurfaceTexture); in setup()
187 mSurface.release(); in release()
198 mSurface = null; in release()
215 return mSurface; in getSurface()
DMediaSyncTest.java81 private Surface mSurface = null; field in MediaSyncTest
135 if (mSurface != null) { in tearDown()
136 mSurface.release(); in tearDown()
137 mSurface = null; in tearDown()
484 mSurface = mMediaSync.createInputSurface(); in runPlayAV()
487 inputResourceId, mSurface, lastBufferTimestampUs, NO_TIMESTAMP) == false) { in runPlayAV()
595 private Surface mSurface = null; field in MediaSyncTest.Decoder
633 mSurface = surface; in setup()
656 mDecoder.configure(mediaFormat, mSurface, null, 0); in setup()
DRemoteVirtualDisplayService.java112 private Surface mSurface; field in RemoteVirtualDisplayService.VirtualDisplayPresentation
121 mSurface = surface; in VirtualDisplayPresentation()
132 TAG, mWidth, mHeight, 200, mSurface, 0); in createVirtualDisplay()
DEncodeVirtualDisplayWithCompositionTest.java720 private Surface mSurface; field in EncodeVirtualDisplayWithCompositionTest.GlCompositor
760 mSurface = surface; in startComposition()
780 mSurface = null; in stopComposition()
870 mEglHelper = new InputSurface(mSurface); in initGl()
1027 private volatile Surface mSurface; field in EncodeVirtualDisplayWithCompositionTest.GlCompositor.GlWindow
1085 mSurface = new Surface(mSurfaceTexture); in init()
1098 if (mSurface != null) { in cleanup()
1099 mSurface.release(); in cleanup()
1100 mSurface = null; in cleanup()
1160 return mSurface; in getSurface()
[all …]
DAdaptivePlaybackTest.java885 TestSurface mSurface;
944 mSurface = surface;
945 Log.i(TAG, "configure(" + format + ", " + mSurface.getSurface() + ")");
946 mCodec.configure(format, mSurface.getSurface(), null /* crypto */, 0 /* flags */);
956 mCodec.setOutputSurface(mSurface.getSurface());
1013 if (mSurface.getSurface() == null) {
1024 mSurface.prepare();
1026 mSurface.waitForDraw();
1028 sum = mSurface.checksum();
1170 mSurface.release();
[all …]
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DSurfaceTextureRenderer.java87 private SurfaceTexture mSurface = null; field in SurfaceTextureRenderer
106 mSurface.updateTexImage(); in onDrawFrame()
108 mSurface.getTransformMatrix(mSTMatrix); in onDrawFrame()
220 if (mSurface != null) { in onSurfaceCreated()
221 mSurface.release(); in onSurfaceCreated()
223 mSurface = new SurfaceTexture(mTextureID); in onSurfaceCreated()
224 mSurface.setOnFrameAvailableListener(this); in onSurfaceCreated()
299 return mSurface; in getSurfaceTexture()
/cts/tests/tests/tv/src/android/media/tv/cts/
DStubTunerTvInputService.java85 private Surface mSurface; field in StubTunerTvInputService.StubSessionImpl
100 if (mCurrentIndex >= 0 && mSurface != null) { in updateSurfaceLocked()
102 Canvas c = mSurface.lockCanvas(null); in updateSurfaceLocked()
104 mSurface.unlockCanvasAndPost(c); in updateSurfaceLocked()
106 mSurface = null; in updateSurfaceLocked()
114 mSurface = surface; in onSetSurface()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java74 private Surface mSurface; field in VirtualDisplayTest
95 mSurface = mImageReader.getSurface(); in setUp()
108 mSurface = null; in tearDown()
121 WIDTH, HEIGHT, DENSITY, mSurface, 0); in testPrivateVirtualDisplay()
127 assertEquals(mSurface, virtualDisplay.getSurface()); in testPrivateVirtualDisplay()
145 WIDTH, HEIGHT, DENSITY, mSurface, in testPrivatePresentationVirtualDisplay()
152 assertEquals(mSurface, virtualDisplay.getSurface()); in testPrivatePresentationVirtualDisplay()
179 virtualDisplay.setSurface(mSurface); in testPrivateVirtualDisplayWithDynamicSurface()
180 assertEquals(mSurface, virtualDisplay.getSurface()); in testPrivateVirtualDisplayWithDynamicSurface()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionActivity.java49 protected volatile Surface mSurface; field in ProjectionActivity
67 … mService.startRendering(mSurface, mWidth, mHeight, metrics.densityDpi, mType.ordinal());
122 mSurface = new Surface(surface); in onSurfaceTextureAvailable()
141 mSurface.release(); in onSurfaceTextureDestroyed()
142 mSurface = null; in onSurfaceTextureDestroyed()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DCtsMediaOutputSurface.java57 private Surface mSurface; field in CtsMediaOutputSurface
120 mSurface = new Surface(mSurfaceTexture); in setup()
191 mSurface.release(); in release()
202 mSurface = null; in release()
219 return mSurface; in getSurface()
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanPreTransformCtsActivity.java42 protected Surface mSurface; field in VulkanPreTransformCtsActivity
51 mSurface = surfaceView.getHolder().getSurface(); in onCreate()
79 nCreateNativeTest(getAssets(), mSurface, setPreTransform); in testVulkanPreTransform() local
DRenderTarget.java79 private Surface mSurface; field in RenderTarget
84 mSurface = new Surface(mSurfaceTexture); in RenderTarget()
88 return mSurface; in getSurface()
96 mSurface = null; in destroy()
/cts/tests/media/src/android/mediav2/cts/
DCodecDecoderSurfaceTest.java93 mCodec.releaseOutputBuffer(bufferIndex, mSurface != null); in dequeueOutput()
119 mSurface = mSurfaceView.getHolder().getSurface(); in setUpSurface()
123 if (mSurface != null) { in tearDownSurface()
124 mSurface.release(); in tearDownSurface()
125 mSurface = null; in tearDownSurface()
232 mSurface = null; in testSimpleDecodeToSurface()
326 mSurface = null; in testFlush()
435 mSurface = null; in testReconfigure()
455 assertTrue(nativeTestSimpleDecode(decoder, mSurface, mMime, mInpPrefix + mTestFile, in testSimpleDecodeToSurfaceNative()
476 assertTrue(nativeTestFlush(decoder, mSurface, mMime, mInpPrefix + mTestFile)); in testFlushNative()
DCodecEncoderSurfaceTest.java78 private Surface mSurface; field in CodecEncoderSurfaceTest
215 mSurface = mEncoder.createInputSurface(); in configureCodec()
216 assertTrue("Surface is not valid", mSurface.isValid()); in configureCodec()
218 mDecoder.configure(decFormat, mSurface, null, 0); in configureCodec()
278 mDecoder.releaseOutputBuffer(bufferIndex, mSurface != null); in dequeueDecoderOutput()
550 mSurface.release(); in testSimpleEncodeFromSurface()
551 mSurface = null; in testSimpleEncodeFromSurface()
/cts/tests/tests/security/src/android/security/cts/
DRenderTarget.java82 private Surface mSurface; field in RenderTarget
87 mSurface = new Surface(mSurfaceTexture); in RenderTarget()
91 return mSurface; in getSurface()
99 mSurface = null; in destroy()
/cts/tests/openglperf2/src/android/opengl2/cts/primitive/
DGLPrimitiveActivity.java35 private volatile Surface mSurface = null; field in GLPrimitiveActivity
69 mSurface = holder.getSurface(); in onCreate()
136 setupBenchmark(mSurface, mBenchmark.ordinal(), mOffscreen); in run()
/cts/tests/openglperf2/src/android/opengl2/cts/reference/
DGLGameActivity.java48 private volatile Surface mSurface = null; field in GLGameActivity
64 mSurface = holder.getSurface(); in onCreate()
129 mSurface, in run()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCtsActivity.java61 private SurfaceTexture mSurface; field in TextureViewCtsActivity
201 while (mSurface == null) { in waitForSurface()
306 mSurface = surface; in onSurfaceTextureAvailable()
320 mSurface = null; in onSurfaceTextureDestroyed()
403 mSurface, (mEglColorSpace == 0) ? null :
/cts/tests/tests/graphics/jni/
DVulkanPreTransformTestHelpers.h40 VkSurfaceKHR surface() const { return mSurface; } in surface()
49 VkSurfaceKHR mSurface; variable
/cts/tests/tests/media/libmediandkjni/
Dnative_media_decoder_source.cpp202 mSurface = n; in prepare()
215 ALOGI("configure decoder. surface = %p", mSurface.get()); in prepare()
217 mDec.get(), mFormat.get(), mSurface.get(), NULL /* crypto */, 0); in prepare()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSurfaceViewCtsActivity.java78 Surface mSurface; field in SurfaceViewCtsActivity.MockSurfaceView
179 mSurface = holder.getSurface(); in surfaceCreated()
DSurfaceViewTest.java169 assertTrue(mMockSurfaceView.mSurface.isValid()); in surfaceInvalidatedWhileDetaching()
175 assertFalse(mMockSurfaceView.mSurface.isValid()); in surfaceInvalidatedWhileDetaching()

12