/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/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/libs/hwui/ |
D | DeferredLayerUpdater.cpp | 39 , mSurfaceTexture(nullptr, [](ASurfaceTexture*) {}) in DeferredLayerUpdater() 54 mSurfaceTexture = std::move(consumer); in setSurfaceTexture() 56 GLenum target = ASurfaceTexture_getCurrentTextureTarget(mSurfaceTexture.get()); in setSurfaceTexture() 70 if (mSurfaceTexture.get() && mGLContextAttached) { in destroyLayer() 71 ASurfaceTexture_releaseConsumerOwnership(mSurfaceTexture.get()); in destroyLayer() 129 if (mSurfaceTexture.get()) { in apply() 133 ASurfaceTexture_takeConsumerOwnership(mSurfaceTexture.get()); in apply() 145 mSurfaceTexture.get(), &slot, &dataspace, transformMatrix, &newContent, in apply() 183 if (mSurfaceTexture.get()) { in detachSurfaceTexture() 185 mSurfaceTexture = nullptr; in detachSurfaceTexture()
|
D | DeferredLayerUpdater.h | 141 AutoTextureRelease mSurfaceTexture; variable
|
/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 | 90 private volatile SurfaceTexture mSurfaceTexture; field in SurfaceTextureRenderer 421 if (mSurfaceTexture != null) { in clearState() 422 mSurfaceTexture.release(); in clearState() 424 mSurfaceTexture = null; in clearState() 688 return mSurfaceTexture; in getSurfaceTexture() 747 mSurfaceTexture = new SurfaceTexture(getTextureId()); in configureSurfaces() 781 mSurfaceTexture.updateTexImage(); in drawIntoSurfaces() 783 long timestamp = mSurfaceTexture.getTimestamp(); in drawIntoSurfaces() 821 drawFrame(mSurfaceTexture, holder.width, holder.height, in drawIntoSurfaces() 836 drawFrame(mSurfaceTexture, holder.width, holder.height, in drawIntoSurfaces()
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraFlashlight.cpp | 329 mSurfaceTexture.clear(); in ~CameraHardwareInterfaceFlashControl() 485 mSurfaceTexture = new GLConsumer(mConsumer, 0, GLConsumer::TEXTURE_EXTERNAL, in initializePreviewWindow() 487 if (mSurfaceTexture == NULL) { in initializePreviewWindow() 492 res = mSurfaceTexture->setDefaultBufferSize(width, height); in initializePreviewWindow() 496 res = mSurfaceTexture->setDefaultBufferFormat(format); in initializePreviewWindow()
|
D | CameraFlashlight.h | 174 sp<GLConsumer> mSurfaceTexture; variable
|
/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/services/core/java/com/android/server/display/ |
D | OverlayDisplayAdapter.java | 275 private SurfaceTexture mSurfaceTexture; field in OverlayDisplayAdapter.OverlayDisplayDevice 290 mSurfaceTexture = surfaceTexture; in OverlayDisplayDevice() 302 mSurfaceTexture = null; in destroyLocked() 317 if (mSurfaceTexture != null) { in performTraversalLocked() 319 mSurface = new Surface(mSurfaceTexture); in performTraversalLocked()
|
/frameworks/base/graphics/java/android/graphics/ |
D | SurfaceTexture.java | 79 private long mSurfaceTexture; field in SurfaceTexture
|