Home
last modified time | relevance | path

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

123

/cts/tests/tests/media/src/android/media/cts/
DMediaRecorderTest.java609 Surface surface = null; in tryGetSurface() local
611 surface = mMediaRecorder.getSurface(); in tryGetSurface()
616 return surface; in tryGetSurface()
625 Surface surface = null; in validateGetSurface() local
633 surface = tryGetSurface(true /* shouldThow */); in validateGetSurface()
641 surface = tryGetSurface(!useSurface); in validateGetSurface()
649 surface = tryGetSurface(!useSurface); in validateGetSurface()
661 surface = tryGetSurface(true /* shouldThow */); in validateGetSurface()
673 if (surface != null) { in validateGetSurface()
674 surface.release(); in validateGetSurface()
[all …]
DVideoSurfaceView.java118 Surface surface = new Surface(mSurfaceTexture); in onSurfaceCreated() local
119 mMediaPlayer.setSurface(surface); in onSurfaceCreated()
120 surface.release(); in onSurfaceCreated()
133 synchronized public void onFrameAvailable(SurfaceTexture surface) { in onFrameAvailable() argument
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()
DInputSurface.java53 public InputSurface(Surface surface) { in InputSurface() argument
54 if (surface == null) { in InputSurface()
57 mSurface = surface; in InputSurface()
DDecodeEditEncodeTest.java608 OutputSurface surface = null; in checkVideoFile() local
616 surface = new OutputSurface(mWidth, mHeight); in checkVideoFile()
620 decoder.configure(format, surface.getSurface(), null, 0); in checkVideoFile()
623 int badFrames = checkVideoData(inputData, decoder, surface); in checkVideoFile()
628 if (surface != null) { in checkVideoFile()
629 surface.release(); in checkVideoFile()
645 private int checkVideoData(VideoChunks inputData, MediaCodec decoder, OutputSurface surface) { in checkVideoData() argument
724 surface.awaitNewImage(); in checkVideoData()
725 surface.drawImage(); in checkVideoData()
DEncodeVirtualDisplayWithCompositionTest.java647 void startComposition(Surface surface, int w, int h, int numWindows) throws Exception { in startComposition() argument
648 mSurface = surface; in startComposition()
688 public void onFrameAvailable(SurfaceTexture surface) { in onFrameAvailable() argument
690 Log.i(TAG, "onFrameAvailable " + surface); in onFrameAvailable()
1080 VirtualDisplayPresentation(Context context, Surface surface, int w, int h) { in VirtualDisplayPresentation() argument
1082 mSurface = surface; in VirtualDisplayPresentation()
1238 Surface surface = mWindows[windowIndex].getSurface(); in getSurface() local
1239 assertNotNull(surface); in getSurface()
1240 return surface; in getSurface()
1247 TopWindowVirtualDisplayPresentation(Context context, Surface surface, int w, int h, in TopWindowVirtualDisplayPresentation() argument
[all …]
DMediaCodecTest.java236 Surface surface = codec.createInputSurface(); in verifyException() local
308 Surface surface = null; in testCreateInputSurfaceErrors() local
322 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors()
330 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors()
339 surface = encoder.createInputSurface(); in testCreateInputSurfaceErrors()
350 assertNull(surface); in testCreateInputSurfaceErrors()
778 Surface surface = null; in testDequeueSurface() local
787 surface = encoder.createInputSurface(); in testDequeueSurface()
802 if (surface != null) { in testDequeueSurface()
803 surface.release(); in testDequeueSurface()
[all …]
/cts/tests/tests/textureview/src/android/textureview/cts/
DTextureViewSnapshotTestActivity.java61 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
62 mProducerThread = new GLProducerThread(surface, new GLRendererImpl(), in onSurfaceTextureAvailable()
68 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
72 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
78 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
DTextureViewTestActivity.java90 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
91 mProducerThread = new GLProducerThread(surface, new GLRendererImpl(), in onSurfaceTextureAvailable()
97 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
101 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
107 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()
DIProjectionService.aidl25 void startRendering(in Surface surface, int width, int height, int density, int viewType); in startRendering() argument
/cts/tests/tests/graphics2/src/android/graphics2/cts/
DTextureViewCameraActivity.java50 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
86 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
92 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
/cts/tests/tests/telecom/src/android/telecom/cts/
DMockVideoProvider.java65 public void onSetPreviewSurface(Surface surface) { in onSetPreviewSurface() argument
66 mPreviewSurface = surface; in onSetPreviewSurface()
70 public void onSetDisplaySurface(Surface surface) { in onSetDisplaySurface() argument
71 mDisplaySurface = surface; in onSetDisplaySurface()
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyTests.java81 Surface surface = null; in testErrors() local
85 surface = new Surface(surfaceTexture); in testErrors()
87 copyHelper.request(surface, dest); in testErrors()
96 int result = copyHelper.request(surface, dest); in testErrors()
101 copyHelper.request(surface, dest); in testErrors()
111 if (surface != null) surface.release(); in testErrors()
116 surface = null; in testErrors()
DTextureViewCtsActivity.java176 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
178 mSurface = surface; in onSurfaceTextureAvailable()
184 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
188 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
197 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
/cts/tests/tests/opengl/src/android/opengl/cts/
DFramebufferTest.java333 public EGLSurface createWindowSurface(Object surface) { in createWindowSurface() argument
334 if (!(surface instanceof Surface) && !(surface instanceof SurfaceTexture)) { in createWindowSurface()
335 throw new RuntimeException("invalid surface: " + surface); in createWindowSurface()
342 EGLSurface eglSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mEGLConfig, surface, in createWindowSurface()
451 EGLSurface surface; in logCurrent() local
455 surface = EGL14.eglGetCurrentSurface(EGL14.EGL_DRAW); in logCurrent()
457 ", surface=" + surface); in logCurrent()
494 public void createWindowSurface(Object surface) { in createWindowSurface() argument
498 mEGLSurface = mEglCore.createWindowSurface(surface); in createWindowSurface()
/cts/tests/openglperf2/jni/reference/
DGLReference.cpp26 JNIEnv* env, jclass /*clazz*/, jobject assetManager, jobject surface, jint numFrames, in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark() argument
35 ANativeWindow* nativeWindow = ANativeWindow_fromSurface(env, surface); in Java_android_opengl2_cts_reference_GLGameActivity_startBenchmark()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputService.java298 Surface surface = mSurface; in draw() local
299 if (surface == null) return; in draw()
300 if (!surface.isValid()) return; in draw()
302 Canvas c = surface.lockCanvas(null); in draw()
315 surface.unlockCanvasAndPost(c); in draw()
343 public boolean onSetSurface(Surface surface) { in onSetSurface() argument
344 mSurface = surface; in onSetSurface()
345 if (surface != null) { in onSetSurface()
/cts/tests/openglperf2/jni/primitive/
DGLPrimitive.cpp79 JNIEnv* env, jclass /*clazz*/, jobject surface, jint benchmark, in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_setupBenchmark() argument
81 gNativeWindow = ANativeWindow_fromSurface(env, surface); in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_setupBenchmark()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java288 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
293 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
298 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
310 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
398 for (Surface surface : outputSurfaces) { in startPreview()
399 captureBuilder.addTarget(surface); in startPreview()
DCamera2AndroidTestCase.java343 Surface surface = mReader.getSurface(); in prepareCaptureRequest() local
344 assertNotNull("Fail to get surface from ImageReader", surface); in prepareCaptureRequest()
345 outputSurfaces.add(surface); in prepareCaptureRequest()
358 for (Surface surface : surfaces) { in prepareCaptureRequestForSurfaces()
359 captureBuilder.addTarget(surface); in prepareCaptureRequestForSurfaces()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java278 Surface surface = getDummySurface(); in doStagefrightTestMediaPlayer()
279 mp.setSurface(surface); in doStagefrightTestMediaPlayer()
381 Surface surface = null; in doStagefrightTestMediaCodec() local
383 surface = getDummySurface(); in doStagefrightTestMediaCodec()
385 codec.configure(format, surface, null, 0); in doStagefrightTestMediaCodec()
/cts/tests/tests/tv/src/android/media/tv/cts/
DStubTvInputService.java43 public boolean onSetSurface(Surface surface) { in onSetSurface() argument
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/
DStubTvInputService.java43 public boolean onSetSurface(Surface surface) { in onSetSurface() argument

123