Home
last modified time | relevance | path

Searched refs:SurfaceTexture (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/
DSurfaceTexture.java69 public class SurfaceTexture { class
84 void onFrameAvailable(SurfaceTexture surfaceTexture); in onFrameAvailable()
110 public SurfaceTexture(int texName) { in SurfaceTexture() method in SurfaceTexture
131 public SurfaceTexture(int texName, boolean singleBufferMode) { in SurfaceTexture() method in SurfaceTexture
133 nativeInit(false, texName, singleBufferMode, new WeakReference<SurfaceTexture>(this)); in SurfaceTexture()
158 public SurfaceTexture(boolean singleBufferMode) { in SurfaceTexture() method in SurfaceTexture
160 nativeInit(true, 0, singleBufferMode, new WeakReference<SurfaceTexture>(this)); in SurfaceTexture()
203 listener.onFrameAvailable(SurfaceTexture.this); in setOnFrameAvailableListener()
371 private static void postEventFromNative(WeakReference<SurfaceTexture> weakSelf) { in postEventFromNative()
372 SurfaceTexture st = weakSelf.get(); in postEventFromNative()
[all …]
/frameworks/base/core/java/android/view/
DTextureView.java26 import android.graphics.SurfaceTexture;
110 private SurfaceTexture mSurface;
378 mSurface = new SurfaceTexture(false); in getHardwareLayer()
713 public SurfaceTexture getSurfaceTexture() { in getSurfaceTexture()
732 public void setSurfaceTexture(SurfaceTexture surfaceTexture) { in setSurfaceTexture()
784 private final SurfaceTexture.OnFrameAvailableListener mUpdateListener =
785 new SurfaceTexture.OnFrameAvailableListener() {
787 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
806 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height); in onSurfaceTextureAvailable()
816 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height); in onSurfaceTextureSizeChanged()
[all …]
DHardwareLayer.java23 import android.graphics.SurfaceTexture;
134 public void setSurfaceTexture(SurfaceTexture surface) { in setSurfaceTexture()
152 SurfaceTexture surface, boolean isAlreadyAttached); in nSetSurfaceTexture()
/frameworks/base/rs/java/android/renderscript/
DRSTextureView.java20 import android.graphics.SurfaceTexture;
33 private SurfaceTexture mSurfaceTexture;
68 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
81 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
94 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
109 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DGlTextureViewActivity.java21 import android.graphics.SurfaceTexture;
48 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
68 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
72 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
83 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
DSurfaceTextureSource.java29 import android.graphics.SurfaceTexture;
57 public void onSurfaceTextureSourceReady(SurfaceTexture source); in onSurfaceTextureSourceReady()
105 private SurfaceTexture mSurfaceTexture;
172 mSurfaceTexture = new SurfaceTexture(mMediaFrame.getTextureId()); in open()
247 private SurfaceTexture.OnFrameAvailableListener onFrameAvailableListener =
248 new SurfaceTexture.OnFrameAvailableListener() {
249 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
DCameraSource.java30 import android.graphics.SurfaceTexture;
72 private SurfaceTexture mSurfaceTexture;
149 mSurfaceTexture = new SurfaceTexture(mCameraFrame.getTextureId()); in open()
339 private SurfaceTexture.OnFrameAvailableListener onCameraFrameAvailableListener =
340 new SurfaceTexture.OnFrameAvailableListener() {
342 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
DMediaSource.java32 import android.graphics.SurfaceTexture;
99 private SurfaceTexture mSurfaceTexture;
211 mSurfaceTexture = new SurfaceTexture(mMediaFrame.getTextureId()); in open()
557 private SurfaceTexture.OnFrameAvailableListener onMediaFrameAvailableListener =
558 new SurfaceTexture.OnFrameAvailableListener() {
559 public void onFrameAvailable(SurfaceTexture surfaceTexture) {
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DCanvasTextureViewActivity.java23 import android.graphics.SurfaceTexture;
50 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
56 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
61 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
67 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
DGetBitmapActivity.java21 import android.graphics.SurfaceTexture;
81 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
94 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
99 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
106 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
DHardwareCanvasTextureViewActivity.java23 import android.graphics.SurfaceTexture;
51 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
57 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
62 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
68 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
DTextureViewActivity.java22 import android.graphics.SurfaceTexture;
101 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
147 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
152 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
159 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
DSingleFrameTextureViewTestActivity.java25 import android.graphics.SurfaceTexture;
78 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
201 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
206 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
213 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
DGLTextureViewActivity.java25 import android.graphics.SurfaceTexture;
91 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
111 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
115 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
126 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
138 private final SurfaceTexture mSurface;
147 RenderThread(Resources resources, SurfaceTexture surface) { in RenderThread()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DBlockingGLTextureView.java20 import android.graphics.SurfaceTexture;
66 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, in onSurfaceTextureAvailable()
73 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, in onSurfaceTextureSizeChanged()
79 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
87 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
192 public boolean createSurface(SurfaceTexture surface) { in createSurface()
318 private SurfaceTexture mSurface;
343 public void setSurface(SurfaceTexture surface) { in setSurface()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DGpuVideoTrackDecoder.java20 import android.graphics.SurfaceTexture;
21 import android.graphics.SurfaceTexture.OnFrameAvailableListener;
57 private final SurfaceTexture mSurfaceTexture; // Access guarded by mFrameMonitor.
73 mSurfaceTexture = new SurfaceTexture(mTextureSource.getTextureId()); in GpuVideoTrackDecoder()
77 public void onFrameAvailable(SurfaceTexture surfaceTexture) { in GpuVideoTrackDecoder()
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
DRsYuv.java24 import android.graphics.SurfaceTexture;
127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
141 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
149 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
DCameraPreviewActivity.java29 import android.graphics.SurfaceTexture;
64 private SurfaceTexture mPreviewTexture;
138 public void onSurfaceTextureAvailable(SurfaceTexture surface, in onSurfaceTextureAvailable()
148 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
152 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
156 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
DMyGLSurfaceView.java19 import android.graphics.SurfaceTexture;
75 public SurfaceTexture getSurfaceTexture() { in getSurfaceTexture()
80 class MyRenderer implements GLSurfaceView.Renderer, SurfaceTexture.OnFrameAvailableListener {
216 mSurface = new SurfaceTexture(mTextureID); in onSurfaceCreated()
226 synchronized public void onFrameAvailable(SurfaceTexture surface) { in onFrameAvailable()
337 private SurfaceTexture mSurface;
345 public SurfaceTexture getSurfaceTexture() { in getSurfaceTexture()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DCameraStreamer.java20 import android.graphics.SurfaceTexture;
281 protected SurfaceTexture mPreviewSurfaceTexture = null;
284 protected HashMap<EGLContext, SurfaceTexture> mTargetSurfaceTextures
285 = new HashMap<EGLContext, SurfaceTexture>();
288 protected HashMap<SurfaceTexture, RenderTarget> mClientRenderTargets
289 = new HashMap<SurfaceTexture, RenderTarget>();
319 SurfaceTexture surfTex = surfaceTextureForContext(context); in onRegisterClient()
322 surfTex.setOnFrameAvailableListener(new SurfaceTexture.OnFrameAvailableListener() { in onRegisterClient()
324 public void onFrameAvailable(SurfaceTexture surfaceTexture) { in onRegisterClient()
338 SurfaceTexture surfTex = surfaceTextureForContext(clientContext); in grabFrame()
[all …]
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DSurfaceAndTextureViews.java22 import android.graphics.SurfaceTexture;
173 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
178 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
186 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
191 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
/frameworks/rs/java/tests/SampleTest/src/com/android/rs/sample/
DSampleRSActivity.java24 import android.graphics.SurfaceTexture;
52 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated()
55 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged()
61 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable()
68 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed()
/frameworks/base/services/core/java/com/android/server/display/
DOverlayDisplayWindow.java22 import android.graphics.SurfaceTexture;
315 public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture,
323 public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) {
329 public void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture,
334 public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {
388 public void onWindowCreated(SurfaceTexture surfaceTexture, in onWindowCreated()
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/
DVrView.java22 import android.graphics.SurfaceTexture;
55 private SurfaceTexture mSurfaceTexture;
125 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in setup()
130 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in setup()
135 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in setup()
140 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in setup()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DGLEnvironment.java21 import android.graphics.SurfaceTexture;
110 public int registerSurfaceTexture(SurfaceTexture surfaceTexture, int width, int height) { in registerSurfaceTexture()

123