/frameworks/base/core/java/android/view/ |
D | TextureView.java | 110 private SurfaceTexture mSurface; field in TextureView 231 shouldRelease = mListener.onSurfaceTextureDestroyed(mSurface); in destroySurface() 239 if (shouldRelease) mSurface.release(); in destroySurface() 240 mSurface = null; in destroySurface() 349 if (mSurface != null) { in onSizeChanged() 350 mSurface.setDefaultBufferSize(getWidth(), getHeight()); in onSizeChanged() 353 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight()); in onSizeChanged() 378 mSurface = new SurfaceTexture(false); in getHardwareLayer() 379 mLayer.setSurfaceTexture(mSurface); in getHardwareLayer() 381 mSurface.setDefaultBufferSize(getWidth(), getHeight()); in getHardwareLayer() [all …]
|
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
D | CustomSurfaceView.java | 42 private Surface mSurface; field in CustomSurfaceView 106 if (mSurface != null) { in acquireCanvas() 107 mCanvas = mSurface.lockCanvas(null); in acquireCanvas() 115 if (mSurface == null) { in releaseCanvas() 119 mSurface.unlockCanvasAndPost(mCanvas); in releaseCanvas() 130 if (mSurface != null) { in invalidateSurface() 131 Canvas canvas = mSurface.lockCanvas(null); in invalidateSurface() 146 mSurface.unlockCanvasAndPost(canvas); in invalidateSurface() 157 if (mSurface == null) { in waitForSurfaceReady() 164 if (mSurface == null) in waitForSurfaceReady() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | OutputConfiguration.java | 182 mSurface = surface; in OutputConfiguration() 203 this.mSurface = other.mSurface; in OutputConfiguration() 222 mSurface = surface; in OutputConfiguration() 224 mConfiguredSize = SurfaceUtils.getSurfaceSize(mSurface); in OutputConfiguration() 225 mConfiguredFormat = SurfaceUtils.getSurfaceFormat(mSurface); in OutputConfiguration() 226 mConfiguredDataspace = SurfaceUtils.getSurfaceDataspace(mSurface); in OutputConfiguration() 227 mConfiguredGenerationId = mSurface.getGenerationId(); in OutputConfiguration() 237 return mSurface; in getSurface() 294 mSurface.writeToParcel(dest, flags); in writeToParcel() 315 mSurface == other.mSurface && in equals() [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | VirtualDisplay.java | 38 private Surface mSurface; field in VirtualDisplay 45 mSurface = surface; in VirtualDisplay() 59 return mSurface; in getSurface() 75 if (mSurface != surface) { in setSurface() 77 mSurface = surface; in setSurface() 110 + ", surface=" + mSurface + "}"; in toString()
|
/frameworks/base/core/java/android/app/ |
D | ActivityView.java | 126 private Surface mSurface; field in ActivityView 185 if (mSurface != null && (visibility == View.GONE || mLastVisibility == View.GONE)) { in onVisibilityChanged() 187 final Surface surface = (visibility == View.GONE) ? null : mSurface; in onVisibilityChanged() 215 " mSurface=" + mSurface); in onAttachedToWindow() 221 " mSurface=" + mSurface); in onDetachedFromWindow() 225 return mSurface != null; in isAttachedToDisplay() 232 if (mSurface == null) { in startActivity() 246 if (mSurface == null) { in startActivity() 261 if (mSurface == null) { in startActivity() 274 " mSurface=" + mSurface); in release() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.cpp | 92 mSurface(EGL_NO_SURFACE), in DisplayDevice() 139 mSurface = eglSurface; in DisplayDevice() 174 if (mSurface != EGL_NO_SURFACE) { in ~DisplayDevice() 175 eglDestroySurface(mDisplay, mSurface); in ~DisplayDevice() 176 mSurface = EGL_NO_SURFACE; in ~DisplayDevice() 210 return mSurface; in getEGLSurface() 238 eglSetSwapRectangleANDROID(mDisplay, mSurface, in flip() 309 EGLBoolean success = eglSwapBuffers(mDisplay, mSurface); 315 mDisplay, mSurface, error); 318 mDisplay, mSurface, error); [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | CanvasTextureViewActivity.java | 72 private final TextureView mSurface; field in CanvasTextureViewActivity.RenderingThread 76 mSurface = surface; in RenderingThread() 90 final Canvas canvas = mSurface.lockCanvas(null); in run() 95 mSurface.unlockCanvasAndPost(canvas); in run() 98 if (x + 20.0f + speedX >= mSurface.getWidth() || x + speedX <= 0.0f) { in run() 101 if (y + 20.0f + speedY >= mSurface.getHeight() || y + speedY <= 0.0f) { in run()
|
D | HardwareCanvasTextureViewActivity.java | 74 private final Surface mSurface; field in HardwareCanvasTextureViewActivity.RenderingThread 79 mSurface = new Surface(mView.getSurfaceTexture()); in RenderingThread() 93 final Canvas canvas = mSurface.lockHardwareCanvas(); in run() 98 mSurface.unlockCanvasAndPost(canvas); in run()
|
D | HardwareCanvasSurfaceViewActivity.java | 106 private final Surface mSurface; field in HardwareCanvasSurfaceViewActivity.RenderingThread 111 mSurface = surface; in RenderingThread() 130 final Canvas canvas = mSurface.lockHardwareCanvas(); in run() 135 mSurface.unlockCanvasAndPost(canvas); in run()
|
/frameworks/native/cmds/flatland/ |
D | Main.cpp | 290 mSurface(EGL_NO_SURFACE) { in Layer() 300 &mGLConsumer, &mSurface, &mTexName); in setUp() 333 if (mSurface != EGL_NO_SURFACE) { in tearDown() 334 mGLHelper->destroySurface(&mSurface); in tearDown() 342 return mRenderer->render(mSurface); in render() 370 EGLSurface mSurface; member in Layer 385 mSurface(EGL_NO_SURFACE), in BenchmarkRunner() 407 result = mGLHelper->createSurfaceTexture(w, h, &mGLConsumer, &mSurface, in setUp() 455 mGLHelper->destroySurface(&mSurface); in tearDown() 475 result = doFrame(mSurface); in run() [all …]
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
D | RsYuv.java | 48 private Surface mSurface; field in RsYuv 59 mAllocationOut.setSurface(mSurface); in setupSurface() 61 if (mSurface != null) { in setupSurface() 129 mSurface = new Surface(surface); in onSurfaceTextureAvailable() 136 mSurface = new Surface(surface); in onSurfaceTextureSizeChanged() 143 mSurface = null; in onSurfaceTextureDestroyed()
|
/frameworks/native/libs/gui/tests/ |
D | MultiTextureConsumer_test.cpp | 42 mSurface = new Surface(producer); in SetUp() 43 mANW = mSurface.get(); in SetUp() 64 sp<Surface> mSurface; member in android::MultiTextureConsumerTest 108 mSurface->lock(&buffer, NULL); in TEST_F() 110 mSurface->unlockAndPost(); in TEST_F()
|
D | Surface_test.cpp | 56 mSurface = mSurfaceControl->getSurface(); in SetUp() 57 ASSERT_TRUE(mSurface != NULL); in SetUp() 64 sp<Surface> mSurface; member in android::SurfaceTest 70 sp<ANativeWindow> anw(mSurface); in TEST_F() 81 sp<ANativeWindow> anw(mSurface); in TEST_F() 91 sp<ANativeWindow> anw(mSurface); in TEST_F() 136 sp<ANativeWindow> anw(mSurface); in TEST_F()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | VirtualDisplayAdapter.java | 180 private Surface mSurface; field in VirtualDisplayAdapter.VirtualDisplayDevice 201 mSurface = surface; in VirtualDisplayDevice() 217 if (mSurface != null) { in destroyLocked() 218 mSurface.release(); in destroyLocked() 219 mSurface = null; in destroyLocked() 246 setSurfaceInTransactionLocked(mSurface); in performTraversalInTransactionLocked() 252 if (!mStopped && mSurface != surface) { in setSurfaceLocked() 253 if ((mSurface != null) != (surface != null)) { in setSurfaceLocked() 257 mSurface = surface; in setSurfaceLocked() 333 mInfo.state = mSurface != null ? Display.STATE_ON : Display.STATE_OFF; in getDisplayDeviceInfoLocked()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvInputHal.cpp | 87 sp<Surface> mSurface; member in android::BufferProducerThread 118 sp<ANativeWindow> anw(mSurface); in readyToRun() 141 if (surface == mSurface) { in setSurfaceLocked() 158 mSurface = surface; in setSurfaceLocked() 190 if (mSurface == NULL) { in threadLoop() 199 sp<ANativeWindow> anw(mSurface); in threadLoop() 255 sp<Surface> mSurface; member in android::JTvInputHal::Connection 341 if (connection.mSurface == surface) { in addOrUpdateStream() 346 if (connection.mSurface != NULL) { in addOrUpdateStream() 348 if (Surface::isValid(connection.mSurface)) { in addOrUpdateStream() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | RenderTarget.java | 67 private EGLSurface mSurface; field in RenderTarget 195 if (currentSurface != null && !currentSurface.equals(mSurface)) { in registerAsDisplaySurface() 198 mDisplaySurfaces.put(mContext, mSurface); in registerAsDisplaySurface() 253 if (removeReferenceTo(mSurface)) { in release() 254 mEgl.eglDestroySurface(mDisplay, mSurface); in release() 255 mSurface = EGL10.EGL_NO_SURFACE; in release() 291 return "RenderTarget(" + mDisplay + ", " + mContext + ", " + mSurface + ", " + mFbo + ")"; in toString() 353 mSurface = surface; in RenderTarget() 361 return mSurface; in surface() 364 return displaySurface != null ? displaySurface : mSurface; in surface()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | BlockingGLTextureView.java | 318 private SurfaceTexture mSurface; field in BlockingGLTextureView.RenderThread 338 if (mSurface == null) { in checkSurface() 349 mSurface = surface; in setSurface() 363 if (mSurface != null) { in render() 365 mSurface.updateTexImage(); in render() 370 mSurface = null; in finish() 398 if (mEglHelper.createSurface(mSurface)) { in handleMessageLocked()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | StrictModeFlash.java | 38 private final Surface mSurface = new Surface(); field in StrictModeFlash 53 mSurface.copyFrom(ctrl); in StrictModeFlash() 71 c = mSurface.lockCanvas(dirty); in drawIfNeeded() 92 mSurface.unlockCanvasAndPost(c); in drawIfNeeded()
|
D | EmulatorDisplayOverlay.java | 45 private final Surface mSurface = new Surface(); field in EmulatorDisplayOverlay 72 mSurface.copyFrom(ctrl); in EmulatorDisplayOverlay() 90 c = mSurface.lockCanvas(dirty); in drawIfNeeded() 103 mSurface.unlockCanvasAndPost(c); in drawIfNeeded()
|
D | CircularDisplayMask.java | 48 private final Surface mSurface = new Surface(); field in CircularDisplayMask 82 mSurface.copyFrom(ctrl); in CircularDisplayMask() 103 c = mSurface.lockCanvas(dirty); in drawIfNeeded() 131 mSurface.unlockCanvasAndPost(c); in drawIfNeeded()
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | DisplaySinkService.java | 48 private Surface mSurface; field in DisplaySinkService 136 if (mSurface == surface && mSurfaceWidth == width && mSurfaceHeight == height) { in updateSurfaceFromUi() 140 mSurface = surface; in updateSurfaceFromUi() 151 if (mSurface != null) { in updateSurfaceFromUi() 160 mCodec.configure(format, mSurface, null, 0); in updateSurfaceFromUi()
|
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/ |
D | MyGLSurfaceView.java | 98 mSurface.updateTexImage(); in onDrawFrame() 100 mSurface.getTransformMatrix(mSTMatrix); in onDrawFrame() 216 mSurface = new SurfaceTexture(mTextureID); in onSurfaceCreated() 217 mSurface.setOnFrameAvailableListener(this); in onSurfaceCreated() 337 private SurfaceTexture mSurface; field in MyRenderer 346 return mSurface; in getSurfaceTexture()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | BaseSurfaceHolder.java | 40 public Surface mSurface = new Surface(); field in BaseSurfaceHolder 184 c = mSurface.lockCanvas(dirty); in internalLockCanvas() 215 mSurface.unlockCanvasAndPost(canvas); in unlockCanvasAndPost() 220 return mSurface; in getSurface()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
D | SurfaceTargetFilter.java | 50 private Surface mSurface; field in SurfaceTargetFilter 91 if (mSurface == null) { in setupPorts() 237 mSurfaceId = mGlEnv.registerSurface(mSurface); in registerSurface() 239 throw new RuntimeException("Could not register Surface: " + mSurface); in registerSurface()
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
D | VirtualDisplayTest.java | 73 private Surface mSurface; field in VirtualDisplayTest 88 mSurface = mImageReader.getSurface(); in setUp() 102 mSurface = null; in tearDown() 114 WIDTH, HEIGHT, DENSITY, mSurface, 0); in testPrivateVirtualDisplay() 137 WIDTH, HEIGHT, DENSITY, mSurface, in testPrivatePresentationVirtualDisplay() 165 WIDTH, HEIGHT, DENSITY, mSurface, in testPublicPresentationVirtualDisplay() 218 WIDTH, HEIGHT, DENSITY, mSurface, in testSecurePublicPresentationVirtualDisplay()
|