/frameworks/base/rs/java/android/renderscript/ |
H A D | RSTextureView.java | 33 private SurfaceTexture mSurfaceTexture; field in class:RSTextureView 70 mSurfaceTexture = surface; 73 mRS.setSurfaceTexture(mSurfaceTexture, width, height); 83 mSurfaceTexture = surface; 86 mRS.setSurfaceTexture(mSurfaceTexture, width, height); 96 mSurfaceTexture = surface; 111 mSurfaceTexture = surface; 154 if (mSurfaceTexture != null) { 155 mRS.setSurfaceTexture(mSurfaceTexture, getWidth(), getHeight()); 179 if (mSurfaceTexture ! [all...] |
/frameworks/base/libs/hwui/ |
H A D | DeferredLayerUpdater.cpp | 32 , mSurfaceTexture(nullptr) 53 if (mSurfaceTexture.get() && mLayerApi == Layer::Api::OpenGL && mGLContextAttached) { 54 status_t err = mSurfaceTexture->detachFromContext(); 84 if (mSurfaceTexture.get()) { 97 mSurfaceTexture->attachToContext(static_cast<GlLayer*>(mLayer)->getTextureId()); 103 GLenum renderTarget = mSurfaceTexture->getCurrentTextureTarget(); 117 if (mSurfaceTexture->updateTexImage() == NO_ERROR) { 120 int64_t frameNumber = mSurfaceTexture->getFrameNumber(); 126 while (mSurfaceTexture->updateTexImage() == NO_ERROR) { 127 int64_t newFrameNumber = mSurfaceTexture [all...] |
H A D | DeferredLayerUpdater.h | 74 if (texture.get() != mSurfaceTexture.get()) { 75 mSurfaceTexture = texture; 116 sp<GLConsumer> mSurfaceTexture; member in class:android::uirenderer::DeferredLayerUpdater
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | GpuVideoTrackDecoder.java | 57 private final SurfaceTexture mSurfaceTexture; // Access guarded by mFrameMonitor. field in class:GpuVideoTrackDecoder 73 mSurfaceTexture = new SurfaceTexture(mTextureSource.getTextureId()); 74 mSurfaceTexture.detachFromGLContext(); 75 mSurfaceTexture.setOnFrameAvailableListener(new OnFrameAvailableListener() { 99 Surface surface = new Surface(mSurfaceTexture); 135 mSurfaceTexture.attachToGLContext(mTextureSource.getTextureId()); 136 mSurfaceTexture.updateTexImage(); 137 mSurfaceTexture.detachFromGLContext(); 148 mSurfaceTexture.attachToGLContext(targetTexture.getTextureId()); 149 mSurfaceTexture [all...] |
/frameworks/av/packages/MediaComponents/src/com/android/widget/ |
H A D | VideoTextureView.java | 38 private SurfaceTexture mSurfaceTexture; field in class:VideoTextureView 70 Log.d(TAG, "assignSurfaceToMediaPlayer(): mSurfaceTexture: " + mSurfaceTexture); 114 return (mSurfaceTexture != null && !mSurfaceTexture.isReleased() && mSurface != null); 123 Log.d(TAG, "onSurfaceTextureAvailable: mSurfaceTexture: " + mSurfaceTexture 125 mSurfaceTexture = surfaceTexture; 126 mSurface = new Surface(mSurfaceTexture); 155 mSurfaceTexture [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
H A D | SurfaceTextureSource.java | 105 private SurfaceTexture mSurfaceTexture; field in class:SurfaceTextureSource 172 mSurfaceTexture = new SurfaceTexture(mMediaFrame.getTextureId()); 174 mSurfaceTexture.setOnFrameAvailableListener(onFrameAvailableListener); 176 mSourceListener.onSurfaceTextureSourceReady(mSurfaceTexture); 205 mSurfaceTexture.updateTexImage(); 207 mSurfaceTexture.getTransformMatrix(mFrameTransform); 219 output.setTimestamp(mSurfaceTexture.getTimestamp()); 229 mSurfaceTexture.release(); 230 mSurfaceTexture = null;
|
H A D | CameraSource.java | 72 private SurfaceTexture mSurfaceTexture; field in class:CameraSource 149 mSurfaceTexture = new SurfaceTexture(mCameraFrame.getTextureId()); 151 mCamera.setPreviewTexture(mSurfaceTexture); 158 mSurfaceTexture.setOnFrameAvailableListener(onCameraFrameAvailableListener); 184 mSurfaceTexture.updateTexImage(); 187 mSurfaceTexture.getTransformMatrix(mCameraTransform); 199 long timestamp = mSurfaceTexture.getTimestamp(); 217 mSurfaceTexture.release(); 218 mSurfaceTexture = null;
|
H A D | SurfaceTextureTarget.java | 52 private SurfaceTexture mSurfaceTexture; field in class:SurfaceTextureTarget 105 if (mSurfaceTexture == null) { 155 if (mSurfaceTexture == null) { 157 throw new RuntimeException("Could not register SurfaceTexture: " + mSurfaceTexture); 160 mSurfaceTexture, mScreenWidth, mScreenHeight); 162 throw new RuntimeException("Could not register SurfaceTexture: " + mSurfaceTexture); 169 // may not set the mSurfaceTexture again on the filter. In some cases, the app 187 if (mSurfaceTexture == null) { 191 mSurfaceTexture = null;
|
H A D | MediaSource.java | 99 private SurfaceTexture mSurfaceTexture; field in class:MediaSource 211 mSurfaceTexture = new SurfaceTexture(mMediaFrame.getTextureId()); 287 mSurfaceTexture.updateTexImage(); 292 mSurfaceTexture.getTransformMatrix(surfaceTransform); 335 long timestamp = mSurfaceTexture.getTimestamp(); 359 mSurfaceTexture.release(); 360 mSurfaceTexture = null; 492 Surface surface = new Surface(mSurfaceTexture); 503 mSurfaceTexture.setOnFrameAvailableListener(onMediaFrameAvailableListener);
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/ |
H A D | IllustrationVideoViewTest.java | 68 private SurfaceTexture mSurfaceTexture; field in class:IllustrationVideoViewTest 124 mView.onSurfaceTextureDestroyed(mSurfaceTexture); 151 mView.onSurfaceTextureAvailable(mSurfaceTexture, 500, 500);
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraFlashlight.cpp | 329 mSurfaceTexture.clear(); 485 mSurfaceTexture = new GLConsumer(mConsumer, 0, GLConsumer::TEXTURE_EXTERNAL, 487 if (mSurfaceTexture == NULL) { 492 res = mSurfaceTexture->setDefaultBufferSize(width, height); 496 res = mSurfaceTexture->setDefaultBufferFormat(format);
|
H A D | CameraFlashlight.h | 174 sp<GLConsumer> mSurfaceTexture; member in class:android::CameraHardwareInterfaceFlashControl
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | OverlayDisplayAdapter.java | 232 private SurfaceTexture mSurfaceTexture; field in class:OverlayDisplayAdapter.OverlayDisplayDevice 248 mSurfaceTexture = surfaceTexture; 260 mSurfaceTexture = null; 275 if (mSurfaceTexture != null) { 277 mSurface = new Surface(mSurfaceTexture);
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | SurfaceTextureRenderer.java | 83 private volatile SurfaceTexture mSurfaceTexture; field in class:SurfaceTextureRenderer 414 if (mSurfaceTexture != null) { 415 mSurfaceTexture.release(); 417 mSurfaceTexture = null; 662 return mSurfaceTexture; 715 mSurfaceTexture = new SurfaceTexture(getTextureId()); 749 mSurfaceTexture.updateTexImage(); 751 long timestamp = mSurfaceTexture.getTimestamp(); 789 drawFrame(mSurfaceTexture, holder.width, holder.height, 804 drawFrame(mSurfaceTexture, holde [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | SurfaceTexture.java | 76 private long mSurfaceTexture; field in class:SurfaceTexture
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/ |
H A D | VrView.java | 55 private SurfaceTexture mSurfaceTexture; field in class:VrView 125 mSurfaceTexture = surface; 130 mSurfaceTexture = surface; 363 if (mSurfaceTexture == null) return 0L; 388 mSurface = new Surface(mSurfaceTexture);
|