Searched refs:mSurface (Results 1 - 25 of 97) sorted by relevance

1234

/frameworks/base/core/java/android/hardware/display/
H A DVirtualDisplay.java38 private Surface mSurface; field in class:VirtualDisplay
45 mSurface = surface;
59 return mSurface;
75 if (mSurface != surface) {
77 mSurface = surface;
110 + ", surface=" + mSurface + "}";
/frameworks/base/core/java/android/view/
H A DTextureView.java110 private SurfaceTexture mSurface; field in class:TextureView
245 if (mSurface != null) {
249 shouldRelease = mListener.onSurfaceTextureDestroyed(mSurface);
257 mSurface.release();
259 mSurface = null;
363 if (mSurface != null) {
364 mSurface.setDefaultBufferSize(getWidth(), getHeight());
367 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight());
379 boolean createNewSurface = (mSurface == null);
382 mSurface
[all...]
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DCustomSurfaceView.java42 private Surface mSurface; field in class:CustomSurfaceView
106 if (mSurface != null) {
107 mCanvas = mSurface.lockCanvas(null);
115 if (mSurface == null) {
119 mSurface.unlockCanvasAndPost(mCanvas);
130 if (mSurface != null) {
131 Canvas canvas = mSurface.lockCanvas(null);
146 mSurface.unlockCanvasAndPost(canvas);
157 if (mSurface == null) {
164 if (mSurface
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DTaskSnapshotSurfaceTest.java57 private TaskSnapshotSurface mSurface; field in class:TaskSnapshotSurfaceTest
66 mSurface = new TaskSnapshotSurface(sWm, new Window(), new Surface(), snapshot, "Test",
82 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 200));
92 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 200, 100));
102 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 100));
113 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 100));
123 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 200, 200));
130 assertEquals(new Rect(0, 0, 100, 90), mSurface.calculateSnapshotCrop());
136 assertEquals(new Rect(0, 10, 100, 90), mSurface.calculateSnapshotCrop());
142 assertEquals(new Rect(10, 0, 100, 100), mSurface
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DLetterbox.java131 private SurfaceControl mSurface; field in class:Letterbox.LetterboxSurface
150 mSurface = mFactory.get().setName("Letterbox - " + mType)
152 mSurface.setLayer(-1);
153 mSurface.setColor(new float[]{0, 0, 0});
157 if (mSurface != null) {
158 mSurface.destroy();
159 mSurface = null;
185 if (mSurface == null) {
188 t.setPosition(mSurface, mSurfaceFrame.left, mSurfaceFrame.top);
189 t.setSize(mSurface, mSurfaceFram
[all...]
H A DEmulatorDisplayOverlay.java44 private final Surface mSurface = new Surface(); field in class:EmulatorDisplayOverlay
68 mSurface.copyFrom(ctrl);
86 c = mSurface.lockCanvas(dirty);
99 mSurface.unlockCanvasAndPost(c);
H A DStrictModeFlash.java38 private final Surface mSurface = new Surface(); field in class:StrictModeFlash
55 mSurface.copyFrom(ctrl);
73 c = mSurface.lockCanvas(dirty);
102 mSurface.unlockCanvasAndPost(c);
H A DCircularDisplayMask.java46 private final Surface mSurface = new Surface(); field in class:CircularDisplayMask
80 mSurface.copyFrom(ctrl);
101 c = mSurface.lockCanvas(dirty);
129 mSurface.unlockCanvasAndPost(c);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DCanvasTextureViewActivity.java72 private final TextureView mSurface; field in class:CanvasTextureViewActivity.RenderingThread
76 mSurface = surface;
90 final Canvas canvas = mSurface.lockCanvas(null);
95 mSurface.unlockCanvasAndPost(canvas);
98 if (x + 20.0f + speedX >= mSurface.getWidth() || x + speedX <= 0.0f) {
101 if (y + 20.0f + speedY >= mSurface.getHeight() || y + speedY <= 0.0f) {
H A DHardwareCanvasTextureViewActivity.java74 private final Surface mSurface; field in class:HardwareCanvasTextureViewActivity.RenderingThread
79 mSurface = new Surface(mView.getSurfaceTexture());
93 final Canvas canvas = mSurface.lockHardwareCanvas();
98 mSurface.unlockCanvasAndPost(canvas);
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl/
H A DVideoSurfaceView.java38 private Surface mSurface = null; field in class:VideoSurfaceView
56 Log.d(TAG, "assignSurfaceToMediaPlayer(): mSurface: " + mSurface);
60 mp.setSurface(mSurface);
99 return mSurface != null && mSurface.isValid();
108 Log.d(TAG, "surfaceCreated: mSurface: " + mSurface + ", new : " + holder.getSurface());
109 mSurface = holder.getSurface();
132 mSurface
[all...]
H A DVideoTextureView.java38 private Surface mSurface; field in class:VideoTextureView
60 mp.setSurface(mSurface);
99 return mSurface != null && mSurface.isValid();
108 mSurface = new Surface(surfaceTexture);
137 mSurface = null;
/frameworks/base/libs/hwui/tests/common/
H A DTestContext.cpp65 if (!mSurface.get()) {
68 return mSurface;
85 mSurface = mSurfaceControl->getSurface();
96 mSurface = new Surface(producer);
H A DTestContext.h48 LOG_ALWAYS_FATAL_IF(mSurface.get(), "Must be called before surface is created");
66 sp<Surface> mSurface; member in class:android::uirenderer::test::TestContext
/frameworks/native/libs/gui/tests/
H A DMultiTextureConsumer_test.cpp42 mSurface = new Surface(producer);
43 mANW = mSurface.get();
64 sp<Surface> mSurface; member in class:android::MultiTextureConsumerTest
108 mSurface->lock(&buffer, NULL);
110 mSurface->unlockAndPost();
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DIllustrationVideoView.java65 @VisibleForTesting Surface mSurface; field in class:IllustrationVideoView
131 if (mSurface == null || mVideoResId == 0) {
138 mMediaPlayer.setSurface(mSurface);
175 if (mSurface != null) {
176 mSurface.release();
177 mSurface = null;
187 mSurface = new Surface(surfaceTexture);
/frameworks/base/libs/hwui/pipeline/skia/
H A DVectorDrawableAtlas.cpp37 if (!mSurface) {
38 mSurface = createSurface(mWidth, mHeight, context);
65 if (isFragmented() && mSurface) {
89 if (!mSurface) {
96 if (mSurface) {
97 sourceImageAtlas = mSurface->makeImageSnapshot().get();
148 mSurface = newSurface;
158 if (mSurface) {
168 result.surface = mSurface;
183 result.surface = mSurface;
[all...]
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
H A DRsYuv.java48 private Surface mSurface; field in class:RsYuv
59 mAllocationOut.setSurface(mSurface);
61 if (mSurface != null) {
129 mSurface = new Surface(surface);
136 mSurface = new Surface(surface);
143 mSurface = null;
/frameworks/support/heifwriter/src/main/java/androidx/heifwriter/
H A DEglWindowSurface.java47 private Surface mSurface; field in class:EglWindowSurface
58 mSurface = surface;
126 mEGLSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mConfigs[0], mSurface,
153 mSurface.release();
159 mSurface = null;
192 return mSurface;
/frameworks/support/media-widget/src/main/java/androidx/media/widget/impl_with_mp1/
H A DVideoTextureViewWithMp1.java38 private Surface mSurface; field in class:VideoTextureViewWithMp1
60 mp.setSurface(mSurface);
99 return mSurface != null && mSurface.isValid();
108 mSurface = new Surface(surfaceTexture);
137 mSurface = null;
/frameworks/base/libs/hwui/renderthread/
H A DFrame.h48 EGLSurface mSurface; member in class:android::uirenderer::renderthread::Frame
/frameworks/av/packages/MediaComponents/src/com/android/widget/
H A DVideoTextureView.java39 private Surface mSurface; field in class:VideoTextureView
75 mp.setSurface(mSurface);
114 return (mSurfaceTexture != null && !mSurfaceTexture.isReleased() && mSurface != null);
126 mSurface = new Surface(mSurfaceTexture);
156 mSurface = null;
/frameworks/base/core/java/com/android/internal/view/
H A DBaseSurfaceHolder.java40 public Surface mSurface = new Surface(); field in class:BaseSurfaceHolder
192 c = mSurface.lockHardwareCanvas();
194 c = mSurface.lockCanvas(dirty);
226 mSurface.unlockCanvasAndPost(canvas);
231 return mSurface;
/frameworks/native/cmds/flatland/
H A DMain.cpp288 mSurface(EGL_NO_SURFACE) {
298 &mGLConsumer, &mSurface, &mTexName);
331 if (mSurface != EGL_NO_SURFACE) {
332 mGLHelper->destroySurface(&mSurface);
340 return mRenderer->render(mSurface);
366 EGLSurface mSurface; member in class:Layer
381 mSurface(EGL_NO_SURFACE),
402 result = mGLHelper->createSurfaceTexture(w, h, &mGLConsumer, &mSurface,
450 mGLHelper->destroySurface(&mSurface);
469 result = doFrame(mSurface);
571 EGLSurface mSurface; member in class:BenchmarkRunner
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
H A DSurfaceTargetFilter.java50 private Surface mSurface; field in class:SurfaceTargetFilter
91 if (mSurface == null) {
237 mSurfaceId = mGlEnv.registerSurface(mSurface);
239 throw new RuntimeException("Could not register Surface: " + mSurface);

Completed in 212 milliseconds

1234