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

123

/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/hardware/camera2/params/
H A DOutputConfiguration.java70 mSurface = surface;
95 mSurface = surface;
107 mSurface = surface;
117 return mSurface;
160 mSurface.writeToParcel(dest, flags);
179 return (mSurface == other.mSurface && mRotation == other.mRotation);
189 return HashCodeHelpers.hashCode(mSurface.hashCode(), mRotation);
193 private final Surface mSurface; field in class:OutputConfiguration
/frameworks/base/core/java/android/view/
H A DTextureView.java108 private SurfaceTexture mSurface; field in class:TextureView
237 shouldRelease = mListener.onSurfaceTextureDestroyed(mSurface);
245 if (shouldRelease) mSurface.release();
246 mSurface = null;
325 if (mSurface != null) {
326 mSurface.setDefaultBufferSize(getWidth(), getHeight());
329 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight());
359 mSurface = new SurfaceTexture(false);
360 mLayer.setSurfaceTexture(mSurface);
362 mSurface
[all...]
/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 DHardwareCanvasSurfaceViewActivity.java69 private final Surface mSurface; field in class:HardwareCanvasSurfaceViewActivity.RenderingThread
74 mSurface = surface;
93 final Canvas canvas = mSurface.lockHardwareCanvas();
98 mSurface.unlockCanvasAndPost(canvas);
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/base/core/java/android/app/
H A DActivityView.java62 private Surface mSurface; field in class:ActivityView
137 if (mSurface != null && (visibility == View.GONE || mLastVisibility == View.GONE)) {
139 msg.obj = (visibility == View.GONE) ? null : mSurface;
169 " mSurface=" + mSurface);
175 " mSurface=" + mSurface);
179 return mSurface != null;
186 if (mSurface == null) {
200 if (mSurface
[all...]
/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();
H A DSurface_test.cpp56 mSurface = mSurfaceControl->getSurface();
57 ASSERT_TRUE(mSurface != NULL);
64 sp<Surface> mSurface; member in class:android::SurfaceTest
70 sp<ANativeWindow> anw(mSurface);
81 sp<ANativeWindow> anw(mSurface);
91 sp<ANativeWindow> anw(mSurface);
134 sp<ANativeWindow> anw(mSurface);
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.cpp80 mSurface(EGL_NO_SURFACE),
119 mSurface = surface;
148 if (mSurface != EGL_NO_SURFACE) {
149 eglDestroySurface(mDisplay, mSurface);
150 mSurface = EGL_NO_SURFACE;
180 return mSurface;
206 eglSetSwapRectangleANDROID(mDisplay, mSurface,
247 EGLBoolean success = eglSwapBuffers(mDisplay, mSurface);
253 mDisplay, mSurface, error);
256 mDisplay, mSurface, erro
[all...]
/frameworks/rs/java/tests/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/base/services/core/java/com/android/server/wm/
H A DEmulatorDisplayOverlay.java41 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.java35 private final Surface mSurface = new Surface(); field in class:StrictModeFlash
50 mSurface.copyFrom(ctrl);
68 c = mSurface.lockCanvas(dirty);
89 mSurface.unlockCanvasAndPost(c);
H A DCircularDisplayMask.java45 private final Surface mSurface = new Surface(); field in class:CircularDisplayMask
79 mSurface.copyFrom(ctrl);
100 c = mSurface.lockCanvas(dirty);
128 mSurface.unlockCanvasAndPost(c);
H A DFocusedStackFrame.java43 private final Surface mSurface = new Surface(); field in class:FocusedStackFrame
62 mSurface.copyFrom(ctrl);
85 c = mSurface.lockCanvas(mLastBounds);
101 mSurface.unlockCanvasAndPost(c);
/frameworks/native/cmds/flatland/
H A DMain.cpp290 mSurface(EGL_NO_SURFACE) {
300 &mGLConsumer, &mSurface, &mTexName);
333 if (mSurface != EGL_NO_SURFACE) {
334 mGLHelper->destroySurface(&mSurface);
342 return mRenderer->render(mSurface);
370 EGLSurface mSurface; member in class:Layer
385 mSurface(EGL_NO_SURFACE),
407 result = mGLHelper->createSurfaceTexture(w, h, &mGLConsumer, &mSurface,
455 mGLHelper->destroySurface(&mSurface);
475 result = doFrame(mSurface);
577 EGLSurface mSurface; member in class:BenchmarkRunner
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DBaseSurfaceHolder.java40 public Surface mSurface = new Surface(); field in class:BaseSurfaceHolder
184 c = mSurface.lockCanvas(dirty);
215 mSurface.unlockCanvasAndPost(canvas);
220 return mSurface;
/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);
/frameworks/base/services/core/java/com/android/server/display/
H A DVirtualDisplayAdapter.java180 private Surface mSurface; field in class:VirtualDisplayAdapter.VirtualDisplayDevice
201 mSurface = surface;
217 if (mSurface != null) {
218 mSurface.release();
219 mSurface = null;
246 setSurfaceInTransactionLocked(mSurface);
252 if (!mStopped && mSurface != surface) {
253 if ((mSurface != null) != (surface != null)) {
257 mSurface = surface;
333 mInfo.state = mSurface !
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DRenderTarget.java67 private EGLSurface mSurface; field in class:RenderTarget
195 if (currentSurface != null && !currentSurface.equals(mSurface)) {
198 mDisplaySurfaces.put(mContext, mSurface);
253 if (removeReferenceTo(mSurface)) {
254 mEgl.eglDestroySurface(mDisplay, mSurface);
255 mSurface = EGL10.EGL_NO_SURFACE;
291 return "RenderTarget(" + mDisplay + ", " + mContext + ", " + mSurface + ", " + mFbo + ")";
353 mSurface = surface;
361 return mSurface;
364 return displaySurface != null ? displaySurface : mSurface;
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DBlockingGLTextureView.java318 private SurfaceTexture mSurface; field in class:BlockingGLTextureView.RenderThread
338 if (mSurface == null) {
349 mSurface = surface;
363 if (mSurface != null) {
365 mSurface.updateTexImage();
370 mSurface = null;
398 if (mEglHelper.createSurface(mSurface)) {
/frameworks/base/services/core/jni/
H A Dcom_android_server_tv_TvInputHal.cpp87 sp<Surface> mSurface; member in class:android::BufferProducerThread
118 sp<ANativeWindow> anw(mSurface);
141 if (surface == mSurface) {
158 mSurface = surface;
190 if (mSurface == NULL) {
199 sp<ANativeWindow> anw(mSurface);
255 sp<Surface> mSurface; member in class:android::JTvInputHal::Connection
341 if (connection.mSurface == surface) {
346 if (connection.mSurface != NULL) {
348 if (Surface::isValid(connection.mSurface)) {
[all...]
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DDisplaySinkService.java48 private Surface mSurface; field in class:DisplaySinkService
136 if (mSurface == surface && mSurfaceWidth == width && mSurfaceHeight == height) {
140 mSurface = surface;
151 if (mSurface != null) {
160 mCodec.configure(format, mSurface, null, 0);
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DMyGLSurfaceView.java98 mSurface.updateTexImage();
100 mSurface.getTransformMatrix(mSTMatrix);
216 mSurface = new SurfaceTexture(mTextureID);
217 mSurface.setOnFrameAvailableListener(this);
337 private SurfaceTexture mSurface; field in class:MyRenderer
346 return mSurface;
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DEGLImpl.java29 private EGLSurfaceImpl mSurface = new EGLSurfaceImpl(-1); field in class:EGLImpl
143 if (mSurface.mEGLSurface != value)
144 mSurface = new EGLSurfaceImpl(value);
145 return mSurface;

Completed in 1320 milliseconds

123