/frameworks/base/rs/java/android/renderscript/ |
D | RSTextureView.java | 33 private SurfaceTexture mSurfaceTexture; field in RSTextureView 70 mSurfaceTexture = surface; in onSurfaceTextureAvailable() 73 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureAvailable() 83 mSurfaceTexture = surface; in onSurfaceTextureSizeChanged() 86 mRS.setSurfaceTexture(mSurfaceTexture, width, height); in onSurfaceTextureSizeChanged() 96 mSurfaceTexture = surface; in onSurfaceTextureDestroyed() 111 mSurfaceTexture = surface; in onSurfaceTextureUpdated() 154 if (mSurfaceTexture != null) { in createRenderScriptGL() 155 mRS.setSurfaceTexture(mSurfaceTexture, getWidth(), getHeight()); in createRenderScriptGL() 179 if (mSurfaceTexture != null) { in setRenderScriptGL() [all …]
|
/frameworks/base/libs/hwui/ |
D | DeferredLayerUpdater.cpp | 32 , mSurfaceTexture(nullptr) in DeferredLayerUpdater() 54 if (mSurfaceTexture.get() && mLayerApi == Layer::Api::OpenGL && mGLContextAttached) { in destroyLayer() 55 status_t err = mSurfaceTexture->detachFromContext(); in destroyLayer() 82 if (mSurfaceTexture.get()) { in apply() 95 mSurfaceTexture->attachToContext(static_cast<GlLayer*>(mLayer)->getTextureId()); in apply() 101 GLenum renderTarget = mSurfaceTexture->getCurrentTextureTarget(); in apply() 115 if (mSurfaceTexture->updateTexImage() == NO_ERROR) { in doUpdateTexImage() 118 int64_t frameNumber = mSurfaceTexture->getFrameNumber(); in doUpdateTexImage() 124 while (mSurfaceTexture->updateTexImage() == NO_ERROR) { in doUpdateTexImage() 125 int64_t newFrameNumber = mSurfaceTexture->getFrameNumber(); in doUpdateTexImage() [all …]
|
D | DeferredLayerUpdater.h | 72 if (texture.get() != mSurfaceTexture.get()) { in setSurfaceTexture() 73 mSurfaceTexture = texture; in setSurfaceTexture() 122 sp<GLConsumer> mSurfaceTexture; variable
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
D | GpuVideoTrackDecoder.java | 57 private final SurfaceTexture mSurfaceTexture; // Access guarded by mFrameMonitor. field in GpuVideoTrackDecoder 73 mSurfaceTexture = new SurfaceTexture(mTextureSource.getTextureId()); in GpuVideoTrackDecoder() 74 mSurfaceTexture.detachFromGLContext(); in GpuVideoTrackDecoder() 75 mSurfaceTexture.setOnFrameAvailableListener(new OnFrameAvailableListener() { in GpuVideoTrackDecoder() 99 Surface surface = new Surface(mSurfaceTexture); in initMediaCodec() 135 mSurfaceTexture.attachToGLContext(mTextureSource.getTextureId()); in updateTexture() 136 mSurfaceTexture.updateTexImage(); in updateTexture() 137 mSurfaceTexture.detachFromGLContext(); in updateTexture() 148 mSurfaceTexture.attachToGLContext(targetTexture.getTextureId()); in copyFrameDataTo() 149 mSurfaceTexture.getTransformMatrix(mTransformMatrix); in copyFrameDataTo() [all …]
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
D | SurfaceTextureSource.java | 105 private SurfaceTexture mSurfaceTexture; field in SurfaceTextureSource 172 mSurfaceTexture = new SurfaceTexture(mMediaFrame.getTextureId()); in open() 174 mSurfaceTexture.setOnFrameAvailableListener(onFrameAvailableListener); in open() 176 mSourceListener.onSurfaceTextureSourceReady(mSurfaceTexture); in open() 205 mSurfaceTexture.updateTexImage(); in process() 207 mSurfaceTexture.getTransformMatrix(mFrameTransform); in process() 219 output.setTimestamp(mSurfaceTexture.getTimestamp()); in process() 229 mSurfaceTexture.release(); in close() 230 mSurfaceTexture = null; in close()
|
D | CameraSource.java | 72 private SurfaceTexture mSurfaceTexture; field in CameraSource 149 mSurfaceTexture = new SurfaceTexture(mCameraFrame.getTextureId()); in open() 151 mCamera.setPreviewTexture(mSurfaceTexture); in open() 158 mSurfaceTexture.setOnFrameAvailableListener(onCameraFrameAvailableListener); in open() 184 mSurfaceTexture.updateTexImage(); in process() 187 mSurfaceTexture.getTransformMatrix(mCameraTransform); in process() 199 long timestamp = mSurfaceTexture.getTimestamp(); in process() 217 mSurfaceTexture.release(); in close() 218 mSurfaceTexture = null; in close()
|
D | SurfaceTextureTarget.java | 52 private SurfaceTexture mSurfaceTexture; field in SurfaceTextureTarget 105 if (mSurfaceTexture == null) { in setupPorts() 155 if (mSurfaceTexture == null) { in open() 157 throw new RuntimeException("Could not register SurfaceTexture: " + mSurfaceTexture); in open() 160 mSurfaceTexture, mScreenWidth, mScreenHeight); in open() 162 throw new RuntimeException("Could not register SurfaceTexture: " + mSurfaceTexture); in open() 187 if (mSurfaceTexture == null) { in disconnect() 191 mSurfaceTexture = null; in disconnect()
|
D | MediaSource.java | 99 private SurfaceTexture mSurfaceTexture; field in MediaSource 211 mSurfaceTexture = new SurfaceTexture(mMediaFrame.getTextureId()); in open() 287 mSurfaceTexture.updateTexImage(); in process() 292 mSurfaceTexture.getTransformMatrix(surfaceTransform); in process() 335 long timestamp = mSurfaceTexture.getTimestamp(); in process() 359 mSurfaceTexture.release(); in close() 360 mSurfaceTexture = null; in close() 492 Surface surface = new Surface(mSurfaceTexture); in setupMediaPlayer() 503 mSurfaceTexture.setOnFrameAvailableListener(onMediaFrameAvailableListener); in setupMediaPlayer()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | SurfaceTextureRenderer.java | 83 private volatile SurfaceTexture mSurfaceTexture; field in SurfaceTextureRenderer 414 if (mSurfaceTexture != null) { in clearState() 415 mSurfaceTexture.release(); in clearState() 417 mSurfaceTexture = null; in clearState() 644 return mSurfaceTexture; in getSurfaceTexture() 697 mSurfaceTexture = new SurfaceTexture(getTextureId()); in configureSurfaces() 731 mSurfaceTexture.updateTexImage(); in drawIntoSurfaces() 733 long timestamp = mSurfaceTexture.getTimestamp(); in drawIntoSurfaces() 771 drawFrame(mSurfaceTexture, holder.width, holder.height, in drawIntoSurfaces() 786 drawFrame(mSurfaceTexture, holder.width, holder.height, in drawIntoSurfaces()
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/ |
D | IllustrationVideoViewTest.java | 66 private SurfaceTexture mSurfaceTexture; field in IllustrationVideoViewTest 111 mView.onSurfaceTextureDestroyed(mSurfaceTexture); in testSurfaceReleasedWhenTextureDestroyed() 138 mView.onSurfaceTextureAvailable(mSurfaceTexture, 500, 500); in createDefaultView()
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraFlashlight.cpp | 328 mSurfaceTexture.clear(); in ~CameraHardwareInterfaceFlashControl() 487 mSurfaceTexture = new GLConsumer(mConsumer, 0, GLConsumer::TEXTURE_EXTERNAL, in initializePreviewWindow() 489 if (mSurfaceTexture == NULL) { in initializePreviewWindow() 494 res = mSurfaceTexture->setDefaultBufferSize(width, height); in initializePreviewWindow() 498 res = mSurfaceTexture->setDefaultBufferFormat(format); in initializePreviewWindow()
|
D | CameraFlashlight.h | 177 sp<GLConsumer> mSurfaceTexture; variable
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | OverlayDisplayAdapter.java | 232 private SurfaceTexture mSurfaceTexture; field in OverlayDisplayAdapter.OverlayDisplayDevice 248 mSurfaceTexture = surfaceTexture; in OverlayDisplayDevice() 260 mSurfaceTexture = null; in destroyLocked() 275 if (mSurfaceTexture != null) { in performTraversalInTransactionLocked() 277 mSurface = new Surface(mSurfaceTexture); in performTraversalInTransactionLocked()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/ |
D | VrView.java | 55 private SurfaceTexture mSurfaceTexture; field in VrView 125 mSurfaceTexture = surface; in setup() 130 mSurfaceTexture = surface; in setup() 363 if (mSurfaceTexture == null) return 0L; in doInBackground() 388 mSurface = new Surface(mSurfaceTexture); in doInBackground()
|
/frameworks/base/graphics/java/android/graphics/ |
D | SurfaceTexture.java | 76 private long mSurfaceTexture; field in SurfaceTexture
|