/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ANativeWindowTest.java | 134 Surface surface = new Surface(consumer); in testSetBuffersTransform() local 140 nPushBufferWithTransform(surface, transform); in testSetBuffersTransform() 205 Surface surface = new Surface(consumer); in testSetBuffersDataSpace() local 207 assertEquals(nGetBuffersDataSpace(surface), 0); in testSetBuffersDataSpace() 208 assertEquals(nSetBuffersDataSpace(surface, DATASPACE_SRGB), 0); in testSetBuffersDataSpace() 209 assertEquals(nGetBuffersDataSpace(surface), DATASPACE_SRGB); in testSetBuffersDataSpace() 213 assertEquals(nGetBuffersDataSpace(surface), DATASPACE_SRGB); in testSetBuffersDataSpace() 217 assertEquals(nSetBuffersDataSpace(surface, DATASPACE_UNKNOWN), -22); in testSetBuffersDataSpace() 218 assertEquals(nGetBuffersDataSpace(surface), DATASPACE_SRGB); in testSetBuffersDataSpace() 247 private static native void nPushBufferWithTransform(Surface surface, int transform); in nPushBufferWithTransform() argument [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | NativeImageReaderTest.java | 50 Surface surface = testCreateSurfaceNative(); in testCreateSurface() local 51 assertNotNull("Surface created is null.", surface); in testCreateSurface() 52 assertTrue("Surface created is invalid.", surface.isValid()); in testCreateSurface()
|
D | VideoSurfaceView.java | 120 Surface surface = new Surface(mSurfaceTexture); in onSurfaceCreated() local 121 mMediaPlayer.setSurface(surface); in onSurfaceCreated() 122 surface.release(); in onSurfaceCreated() 135 synchronized public void onFrameAvailable(SurfaceTexture surface) { in onFrameAvailable() argument
|
D | RemoteVirtualDisplayService.java | 60 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()
|
D | MediaRecorderTest.java | 853 Surface surface = MediaCodec.createPersistentInputSurface(); in testLevel() local 854 if (surface == null) { in testLevel() 857 InputSurface encSurface = new InputSurface(surface); in testLevel() 1167 Surface surface = null; in tryGetSurface() local 1169 surface = mMediaRecorder.getSurface(); in tryGetSurface() 1174 return surface; in tryGetSurface() 1183 Surface surface = null; in validateGetSurface() local 1191 surface = tryGetSurface(true /* shouldThow */); in validateGetSurface() 1199 surface = tryGetSurface(!useSurface); in validateGetSurface() 1207 surface = tryGetSurface(!useSurface); in validateGetSurface() [all …]
|
D | NdkMediaCodec.java | 45 private static native boolean AMediaCodecSetInputSurface(long ndkMediaCodec, Surface surface); in AMediaCodecSetInputSurface() argument 135 public void setInputSurface(InputSurfaceInterface surface) { in setInputSurface() argument 136 surface.configure(this); in setInputSurface() 139 public void setInputSurface(Surface surface) { in setInputSurface() argument 140 AMediaCodecSetInputSurface(mNdkMediaCodec, surface); in setInputSurface()
|
D | InputSurface.java | 53 public InputSurface(Surface surface) { in InputSurface() argument 54 if (surface == null) { in InputSurface() 57 mSurface = surface; in InputSurface()
|
D | SdkMediaCodec.java | 57 public void setInputSurface(InputSurfaceInterface surface) { in setInputSurface() argument 58 surface.configure(mCodec); in setInputSurface()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewSnapshotTestActivity.java | 65 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
|
D | TextureViewStressTestActivity.java | 94 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
|
D | TextureViewCameraActivity.java | 53 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/ |
D | ProjectionActivity.java | 120 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()
|
D | ProjectionService.java | 76 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()
|
D | IProjectionService.aidl | 25 void startRendering(in Surface surface, int width, int height, int density, int viewType); in startRendering() argument
|
/cts/tests/tests/security/src/android/security/cts/ |
D | OutputConfigurationTest.java | 35 Surface surface = new Surface(outputTexture); in testSharedSurfaceOutputConfigurationBasic() local 38 OutputConfiguration outputConfig = new OutputConfiguration(surface); in testSharedSurfaceOutputConfigurationBasic() 62 /* random surface groupd id */1, surface); in testSharedSurfaceOutputConfigurationBasic() 77 parcelledOutput.addSurface(surface); in testSharedSurfaceOutputConfigurationBasic()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | MockVideoProvider.java | 64 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/tests/opengl/src/android/opengl/cts/ |
D | FramebufferTest.java | 330 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/tests/openglperf2/jni/reference/ |
D | GLReference.cpp | 26 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/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | TextureViewTests.java | 137 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in testLockCanvas() 141 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, in testLockCanvas() 144 public void onSurfaceTextureAvailable(SurfaceTexture surface, in testLockCanvas() 151 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in testLockCanvas()
|
/cts/tests/openglperf2/jni/primitive/ |
D | GLPrimitive.cpp | 79 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/ |
D | Camera2MultiViewTestCase.java | 355 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument 360 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument 365 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument 377 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument 474 for (Surface surface : outputSurfaces) { in startPreview() 475 captureBuilder.addTarget(surface); in startPreview() 509 for (Surface surface : config.getSurfaces()) { in startPreviewWithConfigs() 510 captureBuilder.addTarget(surface); in startPreviewWithConfigs() 522 for (Surface surface : config.getSurfaces()) { in updateRepeatingRequest() 523 captureBuilder.addTarget(surface); in updateRepeatingRequest()
|
D | Camera2AndroidTestCase.java | 375 Surface surface = mReader.getSurface(); in prepareCaptureRequest() local 376 assertNotNull("Fail to get surface from ImageReader", surface); in prepareCaptureRequest() 377 outputSurfaces.add(surface); in prepareCaptureRequest() 390 for (Surface surface : surfaces) { in prepareCaptureRequestForSurfaces() 391 captureBuilder.addTarget(surface); in prepareCaptureRequestForSurfaces()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | MockTvInputService.java | 298 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/tests/tv/src/android/media/tv/cts/ |
D | StubTvInputService.java | 43 public boolean onSetSurface(Surface surface) { in onSetSurface() argument
|
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/ |
D | StubTvInputService.java | 43 public boolean onSetSurface(Surface surface) { in onSetSurface() argument
|