Home
last modified time | relevance | path

Searched refs:surface (Results 1 – 25 of 142) sorted by relevance

123456

/cts/tests/tests/media/common/src/android/media/cts/
DMediaStubActivity.java68 SurfaceView surfaceV = (SurfaceView)findViewById(R.id.surface); in onCreate()
91 private void waitTillSurfaceHolderIsCreated(Surface surface, in waitTillSurfaceHolderIsCreated() argument
97 while (!surface.isValid() && (SystemClock.elapsedRealtime() - start) < waitTimeMs) { in waitTillSurfaceHolderIsCreated()
103 if (!surface.isValid()) { in waitTillSurfaceHolderIsCreated()
116 Surface surface = holder.getSurface(); in getSurface() local
119 if (surface.isValid()) { in getSurface()
120 return surface; in getSurface()
152 waitTillSurfaceHolderIsCreated(surface, 3000); in getSurface()
157 return surface; in getSurface()
171 var surfaceV = (SurfaceView)findViewById(R.id.surface); in hideSystemBars()
DInputSurface.java56 public InputSurface(Surface surface, boolean releaseSurface, boolean useHighBitDepth) { in InputSurface() argument
57 if (surface == null) { in InputSurface()
60 mSurface = surface; in InputSurface()
66 public InputSurface(Surface surface, boolean useHighBitDepth) { in InputSurface() argument
67 this(surface, true, useHighBitDepth); in InputSurface()
73 public InputSurface(Surface surface) { in InputSurface() argument
74 this(surface, true, false); in InputSurface()
272 public static void clearSurface(Surface surface) { in clearSurface() argument
280 InputSurface win = new InputSurface(surface, /* release */ false, in clearSurface()
DNdkMediaCodec.java51 private static native boolean AMediaCodecSetInputSurface(long ndkMediaCodec, Surface surface); in AMediaCodecSetInputSurface() argument
76 Surface surface, in AMediaCodecConfigure() argument
121 public void configure(MediaFormat format, int flags, Surface surface) { in configure() argument
169 surface, in configure()
176 public void setInputSurface(InputSurfaceInterface surface) { in setInputSurface() argument
177 surface.configure(this); in setInputSurface()
180 public void setInputSurface(Surface surface) { in setInputSurface() argument
181 AMediaCodecSetInputSurface(mNdkMediaCodec, surface); in setInputSurface()
DSdkMediaCodec.java59 public void configure(MediaFormat format, int flags, Surface surface) { in configure() argument
60 mCodec.configure(format, surface, null, flags); in configure()
64 public void setInputSurface(InputSurfaceInterface surface) { in setInputSurface() argument
65 surface.configure(mCodec); in setInputSurface()
/cts/tests/tests/graphics/src/android/graphics/cts/
DFrameRateCtsActivity.java540 for (TestSurface surface : surfaces) { in waitForEvents()
542 surface.getLastBufferPostTime() in waitForEvents()
558 for (TestSurface surface : surfaces) { in waitForEvents()
559 surface.postBuffer(); in waitForEvents()
635 void run(TestSurface surface) throws InterruptedException; in run() argument
717 runOneSurfaceTest(api, (TestSurface surface) -> { in testExactFrameRateMatch()
727 surface.setFrameRate(frameRate, Surface.FRAME_RATE_COMPATIBILITY_DEFAULT, in testExactFrameRateMatch()
730 surface); in testExactFrameRateMatch()
736 surface.setFrameRate(0.f, Surface.FRAME_RATE_COMPATIBILITY_DEFAULT, in testExactFrameRateMatch()
739 waitForStableFrameRate(surface); in testExactFrameRateMatch()
[all …]
DANativeWindowTest.java151 Surface surface = new Surface(consumer); in testSetBuffersTransform() local
157 nPushBufferWithTransform(surface, transform); in testSetBuffersTransform()
219 Surface surface = new Surface(consumer); in testSetBuffersDataSpace() local
221 assertEquals(nGetBuffersDataSpace(surface), 0); in testSetBuffersDataSpace()
222 assertEquals(nSetBuffersDataSpace(surface, DataSpace.ADATASPACE_SRGB), 0); in testSetBuffersDataSpace()
223 assertEquals(nGetBuffersDataSpace(surface), DataSpace.ADATASPACE_SRGB); in testSetBuffersDataSpace()
227 assertEquals(nGetBuffersDataSpace(surface), DataSpace.ADATASPACE_SRGB); in testSetBuffersDataSpace()
335 Surface surface = new Surface(consumer); in testTryAllocateBuffersDoesNotCrash() local
337 nTryAllocateBuffers(surface); in testTryAllocateBuffersDoesNotCrash()
341 private static native void nPushBufferWithTransform(Surface surface, int transform); in nPushBufferWithTransform() argument
[all …]
DHardwareRendererTest.java67 Surface surface = new Surface(st); in lockHardwareCanvasSingleBuffer() local
68 Canvas canvas = surface.lockHardwareCanvas(); in lockHardwareCanvasSingleBuffer()
70 surface.unlockCanvasAndPost(canvas); in lockHardwareCanvasSingleBuffer()
71 PixelCopy.Result result = SynchronousPixelCopy.copySurface(surface); in lockHardwareCanvasSingleBuffer()
/cts/tests/media/common/src/android/mediav2/common/cts/
DInputSurface.java155 public InputSurface(Surface surface, boolean releaseSurface, boolean useHighBitDepth) { in InputSurface() argument
156 if (surface == null) { in InputSurface()
159 mSurface = surface; in InputSurface()
165 public InputSurface(Surface surface, boolean useHighBitDepth) { in InputSurface() argument
166 this(surface, true, useHighBitDepth); in InputSurface()
172 public InputSurface(Surface surface) { in InputSurface() argument
173 this(surface, true, false); in InputSurface()
262 public static void clearSurface(Surface surface) { in clearSurface() argument
270 InputSurface win = new InputSurface(surface, /* release */ false, in clearSurface()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewSnapshotTestActivity.java65 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
66 mProducerThread = new GLProducerThread(surface, new GLRendererImpl(), in onSurfaceTextureAvailable()
72 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
76 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
82 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
DSDRTestActivity.java95 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
97 mSurface = surface; in onSurfaceTextureAvailable()
103 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {} in onSurfaceTextureSizeChanged() argument
106 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
115 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
DTextureViewStressTestActivity.java94 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
95 mProducerThread = new GLProducerThread(surface, new GLRendererImpl(), in onSurfaceTextureAvailable()
101 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
105 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
111 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
DTextureViewCameraActivity.java53 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
73 mCamera.setPreviewTexture(surface); in onSurfaceTextureAvailable()
81 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
87 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
97 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionActivity.java120 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
122 mSurface = new Surface(surface); in onSurfaceTextureAvailable()
132 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
150 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
151 Log.i(TAG, "onSurfaceTextureSizeChanged " + surface.toString() + "w: " + width + " h: " in onSurfaceTextureSizeChanged()
158 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
159 Log.i(TAG, "onSurfaceTextureUpdated " + surface.toString()); in onSurfaceTextureUpdated()
DProjectionService.java76 public void startRendering(final Surface surface, final int width, final int height, in startRendering() argument
83 Log.i(TAG, "Surface " + surface.toString() + ": " in startRendering()
84 + Boolean.toString(surface.isValid())); in startRendering()
86 surface, 0); in startRendering()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DNativeImageReaderTest.java53 Surface surface = testCreateSurfaceNative(); in testCreateSurface() local
54 assertNotNull("Surface created is null.", surface); in testCreateSurface()
55 assertTrue("Surface created is invalid.", surface.isValid()); in testCreateSurface()
/cts/tests/tests/media/player/src/android/media/player/cts/
DVideoSurfaceView.java121 Surface surface = new Surface(mSurfaceTexture); in onSurfaceCreated() local
122 mMediaPlayer.setSurface(surface); in onSurfaceCreated()
123 surface.release(); in onSurfaceCreated()
136 synchronized public void onFrameAvailable(SurfaceTexture surface) { in onFrameAvailable() argument
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DRemoteVirtualDisplayService.java60 Surface surface = Surface.CREATOR.createFromParcel(data); in onCreate()
63 start(surface, w, h); in onCreate()
96 private void start(Surface surface, int w, int h) { in start() argument
98 mPresentation = new VirtualDisplayPresentation(this, surface, w, h); in start()
119 VirtualDisplayPresentation(Context context, Surface surface, int w, int h) { in VirtualDisplayPresentation() argument
121 mSurface = surface; in VirtualDisplayPresentation()
/cts/tests/tests/security/src/android/security/cts/
DOutputConfigurationTest.java42 Surface surface = new Surface(outputTexture); in testSharedSurfaceOutputConfigurationBasic() local
45 OutputConfiguration outputConfig = new OutputConfiguration(surface); in testSharedSurfaceOutputConfigurationBasic()
69 /* random surface groupd id */1, surface); in testSharedSurfaceOutputConfigurationBasic()
84 parcelledOutput.addSurface(surface); in testSharedSurfaceOutputConfigurationBasic()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_FrameRateCtsActivity.cpp207 Surface* surface = new Surface(parentWindow.mNw, strName, left, top, right, bottom); in surfaceControlCreate() local
208 if (!surface->isValid()) { in surfaceControlCreate()
209 delete surface; in surfaceControlCreate()
213 return reinterpret_cast<jlong>(surface); in surfaceControlCreate()
260 Surface* surface = reinterpret_cast<Surface*>(surfaceControlLong); in surfaceControlPostBuffer() local
261 ASurfaceControl* surfaceControl = surface->getSurfaceControl(); in surfaceControlPostBuffer()
270 Buffer buffer(surface->getWidth(), surface->getHeight(), rgbaColor); in surfaceControlPostBuffer()
/cts/tests/tests/media/recorder/src/android/media/recorder/cts/
DMediaRecorderTest.java936 Surface surface = MediaCodec.createPersistentInputSurface(); in testLevel() local
937 if (surface == null) { in testLevel()
940 InputSurface encSurface = new InputSurface(surface); in testLevel()
1082 Surface surface = MediaCodec.createPersistentInputSurface(); in testCodec() local
1083 if (surface == null) { in testCodec()
1086 InputSurface encSurface = new InputSurface(surface); in testCodec()
1363 Surface surface = null; in tryGetSurface() local
1365 surface = mMediaRecorder.getSurface(); in tryGetSurface()
1370 return surface; in tryGetSurface()
1379 Surface surface = null; in validateGetSurface() local
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DMockVideoProvider.java64 public void onSetPreviewSurface(Surface surface) { in onSetPreviewSurface() argument
65 mPreviewSurface = surface; in onSetPreviewSurface()
69 public void onSetDisplaySurface(Surface surface) { in onSetDisplaySurface() argument
70 mDisplaySurface = surface; in onSetDisplaySurface()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageWriterTest.java211 Surface surface = new Surface(texture); in testWriterFormatOverride() local
214 ImageWriter defaultWriter = ImageWriter.newInstance(surface, MAX_NUM_IMAGES); in testWriterFormatOverride()
220 ImageWriter writer = ImageWriter.newInstance(surface, MAX_NUM_IMAGES, format); in testWriterFormatOverride()
290 Surface surface = new Surface(texture); in testWriterBuilderSetImageFormatAndSize() local
297 .Builder(surface) in testWriterBuilderSetImageFormatAndSize()
322 Surface surface = new Surface(texture); in testWriterBuilderSetHardwareBufferFormatAndDataSpace() local
327 .Builder(surface) in testWriterBuilderSetHardwareBufferFormatAndDataSpace()
351 Surface surface = new Surface(texture); in testWriterBuilderWithBLOB() local
356 .Builder(surface) in testWriterBuilderWithBLOB()
394 Surface surface = new Surface(texture); in testSetFence() local
[all …]
/cts/tests/media/jni/
DNativeCodecDecoderTestCommon.h22 extern jboolean nativeTestSimpleDecode(JNIEnv* env, jobject, jstring jDecoder, jobject surface,
30 extern jboolean nativeTestFlush(JNIEnv* env, jobject, jstring jDecoder, jobject surface,
/cts/tests/tests/opengl/src/android/opengl/cts/
DFramebufferTest.java330 public EGLSurface createWindowSurface(Object surface) { in createWindowSurface() argument
331 if (!(surface instanceof Surface) && !(surface instanceof SurfaceTexture)) { in createWindowSurface()
332 throw new RuntimeException("invalid surface: " + surface); in createWindowSurface()
339 EGLSurface eglSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mEGLConfig, surface, in createWindowSurface()
448 EGLSurface surface; in logCurrent() local
452 surface = EGL14.eglGetCurrentSurface(EGL14.EGL_DRAW); in logCurrent()
454 ", surface=" + surface); in logCurrent()
491 public void createWindowSurface(Object surface) { in createWindowSurface() argument
495 mEGLSurface = mEglCore.createWindowSurface(surface); in createWindowSurface()
/cts/hostsidetests/angle/app/common/src/com/android/angleIntegrationTest/common/
DGlesView.java92 EGLSurface surface = EGL.eglCreatePbufferSurface(display, eglConfig, null); in createEGL() local
96 EGL.eglMakeCurrent(display, surface, surface, context); in createEGL()

123456