Home
last modified time | relevance | path

Searched refs:surface (Results 1 – 25 of 133) sorted by relevance

123456

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/binder/
DWorkspacePreviewBinder.kt44 surface: SurfaceView, in <lambda>()
54 surface = surface, in <lambda>()
59 surface.setZOrderMediaOverlay(true) in <lambda>()
60 surface.holder.addCallback(surfaceCallback) in <lambda>()
64 surface.holder.removeCallback(it) in <lambda>()
76 surface: SurfaceView, in <lambda>()
93 surface = surface, in <lambda>()
123 surface: SurfaceView, in <lambda>()
132 surface = surface, in <lambda>()
136 surface.setZOrderMediaOverlay(true) in <lambda>()
[all …]
DSmallWallpaperPreviewBinder.kt52 surface: SurfaceView, in <lambda>()
66 surface = surface, in <lambda>()
73 surface.setZOrderMediaOverlay(true) in <lambda>()
74 surfaceCallback?.let { surface.holder.addCallback(it) } in <lambda>()
78 surface.holder.removeCallback(it) in <lambda>()
91 surface: SurfaceView, in <lambda>()
114 surface, in <lambda>()
137 surface.attachView(staticPreviewView) in <lambda>()
/packages/modules/Virtualization/libs/android_display_backend/
Dcrosvm_android_display_client.cpp38 ndk::ScopedAStatus setSurface(Surface* surface, bool forCursor) override { in setSurface() argument
42 mCursorSurface = std::make_unique<Surface>(surface->release()); in setSurface()
44 mSurface = std::make_unique<Surface>(surface->release()); in setSurface()
162 ANativeWindow* surface = ctx->disp_service->getSurface(for_cursor)->get(); // this can block in create_android_surface() local
163 if (ANativeWindow_setBuffersGeometry(surface, width, height, format) != 0) { in create_android_surface()
170 return surface; in create_android_surface()
178 ANativeWindow* surface, in get_android_surface_buffer() argument
184 if (ANativeWindow_lock(surface, out_buffer, nullptr) != 0) { in get_android_surface_buffer()
207 ANativeWindow* surface) { in post_android_surface_buffer() argument
208 if (ANativeWindow_unlockAndPost(surface) != 0) { in post_android_surface_buffer()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorRemoteVideo.java40 SimulatorRemoteVideo(@NonNull Surface surface) { in SimulatorRemoteVideo() argument
41 thread = new RenderThread(new Renderer(surface)); in SimulatorRemoteVideo()
65 @NonNull private final Surface surface; field in SimulatorRemoteVideo.Renderer
71 Renderer(@NonNull Surface surface) { in Renderer() argument
72 this.surface = Assert.isNotNull(surface); in Renderer()
92 canvas = surface.lockCanvas(null /* dirtyRect */); in drawFrame()
107 surface.unlockCanvasAndPost(canvas); in drawFrame()
DSimulatorVideoProvider.java62 public void onSetPreviewSurface(Surface surface) { in onSetPreviewSurface() argument
68 if (surface != null && previewCameraId != null) { in onSetPreviewSurface()
69 simulatorPreviewCamera = new SimulatorPreviewCamera(context, previewCameraId, surface); in onSetPreviewSurface()
75 public void onSetDisplaySurface(Surface surface) { in onSetDisplaySurface() argument
81 if (surface != null) { in onSetDisplaySurface()
82 simulatorRemoteVideo = new SimulatorRemoteVideo(surface); in onSetDisplaySurface()
DSimulatorPreviewCamera.java46 @NonNull private final Surface surface; field in SimulatorPreviewCamera
51 @NonNull Context context, @NonNull String cameraId, @NonNull Surface surface) { in SimulatorPreviewCamera() argument
54 this.surface = Assert.isNotNull(surface); in SimulatorPreviewCamera()
114 Arrays.asList(Assert.isNotNull(surface)), in onOpened()
152 builder.addTarget(surface); in onConfigured()
/packages/apps/Gallery2/src/com/android/photos/views/
DBlockingGLTextureView.java66 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, in onSurfaceTextureAvailable() argument
68 mRenderThread.setSurface(surface); in onSurfaceTextureAvailable()
73 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, in onSurfaceTextureSizeChanged() argument
79 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
87 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
192 public boolean createSurface(SurfaceTexture surface) { in createSurface() argument
215 if (surface != null) { in createSurface()
216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); in createSurface()
343 public void setSurface(SurfaceTexture surface) { in setSurface() argument
346 if (surface != null) { in setSurface()
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/
DVideoSession.cpp290 ImsMediaResult VideoSession::setPreviewSurface(ANativeWindow* surface) in setPreviewSurface() argument
292 if (surface == nullptr) in setPreviewSurface()
297 mPreviewSurface = surface; in setPreviewSurface()
301 mGraphRtpTx->setSurface(surface); in setPreviewSurface()
307 ImsMediaResult VideoSession::setDisplaySurface(ANativeWindow* surface) in setDisplaySurface() argument
309 if (surface == nullptr) in setDisplaySurface()
314 mDisplaySurface = surface; in setDisplaySurface()
318 mGraphRtpRx->setSurface(surface); in setDisplaySurface()
DVideoManager.cpp105 ImsMediaResult VideoManager::setPreviewSurfaceToSession(const int sessionId, ANativeWindow* surface) in setPreviewSurfaceToSession() argument
112 return (session->second)->setPreviewSurface(surface); in setPreviewSurfaceToSession()
121 ImsMediaResult VideoManager::setDisplaySurfaceToSession(const int sessionId, ANativeWindow* surface) in setDisplaySurfaceToSession() argument
128 return (session->second)->setDisplaySurface(surface); in setDisplaySurfaceToSession()
227 void VideoManager::setPreviewSurface(const int sessionId, ANativeWindow* surface) in setPreviewSurface() argument
231 reinterpret_cast<uint64_t>(surface)); in setPreviewSurface()
234 void VideoManager::setDisplaySurface(const int sessionId, ANativeWindow* surface) in setDisplaySurface() argument
238 reinterpret_cast<uint64_t>(surface)); in setDisplaySurface()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/
DVideoSession.java140 public void setPreviewSurface(Surface surface) { in setPreviewSurface() argument
141 Log.dc(TAG, "setPreviewSurface: " + surface); in setPreviewSurface()
142 Utils.sendMessage(mHandler, CMD_SET_PREVIEW_SURFACE, surface); in setPreviewSurface()
146 public void setDisplaySurface(Surface surface) { in setDisplaySurface() argument
147 Log.dc(TAG, "setDisplaySurface: " + surface); in setDisplaySurface()
148 Utils.sendMessage(mHandler, CMD_SET_DISPLAY_SURFACE, surface); in setDisplaySurface()
271 private void handleSetPreviewSurface(Surface surface) { in handleSetPreviewSurface() argument
272 mLocalSession.setPreviewSurface(surface); in handleSetPreviewSurface()
275 private void handleSetDisplaySurface(Surface surface) { in handleSetDisplaySurface() argument
276 mLocalSession.setDisplaySurface(surface); in handleSetDisplaySurface()
DVideoLocalSession.java92 public void setPreviewSurface(final Surface surface) { in setPreviewSurface() argument
94 JNIImsMediaService.setPreviewSurface(mNativeObject, mSessionId, surface); in setPreviewSurface()
104 public void setDisplaySurface(final Surface surface) { in setDisplaySurface() argument
106 JNIImsMediaService.setDisplaySurface(mNativeObject, mSessionId, surface); in setDisplaySurface()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSurfaceTransaction.java34 public SurfaceProperties forSurface(SurfaceControl surface) { in forSurface() argument
35 return surface.isValid() ? new SurfaceProperties(surface) : new MockProperties(); in forSurface()
52 SurfaceProperties(SurfaceControl surface) { in SurfaceProperties() argument
53 mSurface = surface; in SurfaceProperties()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestVideoProvider.java95 public void onSetPreviewSurface(Surface surface) { in onSetPreviewSurface() argument
96 log("Set preview surface " + (surface == null ? "unset" : "set")); in onSetPreviewSurface()
101 mPreviewSurface = surface; in onSetPreviewSurface()
109 public void onSetDisplaySurface(Surface surface) { in onSetDisplaySurface() argument
110 log("Set display surface " + (surface == null ? "unset" : "set")); in onSetDisplaySurface()
111 mDisplaySurface = surface; in onSetDisplaySurface()
222 private MediaPlayer createMediaPlayer(Surface surface, int videoResource) { in createMediaPlayer() argument
225 mediaPlayer.setSurface(surface); in createMediaPlayer()
DTestManagedVideoProvider.java80 public void onSetPreviewSurface(Surface surface) { in onSetPreviewSurface() argument
81 mRemoteVideoProvider.setPreviewSurface(surface); in onSetPreviewSurface()
85 public void onSetDisplaySurface(Surface surface) { in onSetDisplaySurface() argument
86 mRemoteVideoProvider.setDisplaySurface(surface); in onSetDisplaySurface()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DQrCodeScanModeFragment.java110 private void initCamera(SurfaceTexture surface) { in initCamera() argument
114 mCamera.start(surface); in initCamera()
126 public void onSurfaceTextureAvailable(@NonNull SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
127 initCamera(surface); in onSurfaceTextureAvailable()
131 public void onSurfaceTextureSizeChanged(@NonNull SurfaceTexture surface, int width, in onSurfaceTextureSizeChanged() argument
136 public boolean onSurfaceTextureDestroyed(@NonNull SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
142 public void onSurfaceTextureUpdated(@NonNull SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
/packages/modules/ImsMedia/framework/src/android/telephony/imsmedia/
DImsVideoSession.java75 public void setPreviewSurface(final Surface surface) { in setPreviewSurface() argument
77 mSession.setPreviewSurface(surface); in setPreviewSurface()
89 public void setDisplaySurface(final Surface surface) { in setDisplaySurface() argument
91 mSession.setDisplaySurface(surface); in setDisplaySurface()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/video/
DVideoManager.h65 void setPreviewSurface(const int sessionId, ANativeWindow* surface);
73 void setDisplaySurface(const int sessionId, ANativeWindow* surface);
90 virtual ImsMediaResult setPreviewSurfaceToSession(const int sessionId, ANativeWindow* surface);
91 virtual ImsMediaResult setDisplaySurfaceToSession(const int sessionId, ANativeWindow* surface);
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
DPreviewStarter.java66 public ListenableFuture<Void> startPreview(final Surface surface) { in startPreview() argument
75 surfaceList.add(surface); in startPreview()
80 surfaceList.add(surface); in startPreview()
91 mSessionListener.onCameraCaptureSessionCreated(captureSession, surface); in startPreview()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DMockVideoProvider.java69 public void onSetPreviewSurface(Surface surface) { in onSetPreviewSurface() argument
70 mPreviewSurface = surface; in onSetPreviewSurface()
80 public void onSetDisplaySurface(Surface surface) { in onSetDisplaySurface() argument
81 mDisplaySurface = surface; in onSetDisplaySurface()
/packages/apps/Settings/src/com/android/settings/development/
DAdbQrcodeScannerFragment.java213 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
236 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
237 initCamera(surface); in onSurfaceTextureAvailable()
241 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
246 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
304 private void initCamera(SurfaceTexture surface) { in initCamera() argument
308 mCamera.start(surface); in initCamera()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DFadeAnimationSurfaceView.kt34 surface: SurfaceControl, in onSetSurfacePositionAndScale()
42 surface, in onSetSurfacePositionAndScale()
48 transaction.setAlpha(surface, alpha) in onSetSurfacePositionAndScale()
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java465 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
472 mSurfaceTextureListener.onSurfaceTextureAvailable(surface, width, height);
477 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
479 mSurfaceTextureListener.onSurfaceTextureSizeChanged(surface, width, height);
484 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
486 mSurfaceTextureListener.onSurfaceTextureDestroyed(surface);
492 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
494 mSurfaceTextureListener.onSurfaceTextureUpdated(surface);
/packages/services/Car/tools/telemetry/lua-interpreter/static/css/
Dindex.css7 --mdc-theme-on-surface: #e8eaed;
10 --mdc-theme-surface: #202124;
41 border: 1px solid var(--mdc-theme-on-surface);
42 color: var(--mdc-theme-on-surface);
/packages/services/Car/service/src/com/android/car/cluster/
DClusterHealthMonitor.java99 void startVisibilityMonitoring(SurfaceControl surface) { in startVisibilityMonitoring() argument
101 Slogf.d(TAG, "startVisibilityMonitoring: surface=%s", surface); in startVisibilityMonitoring()
108 t.setTrustedPresentationCallback(surface, in startVisibilityMonitoring()
114 mClusterActivitySurface = surface; in startVisibilityMonitoring()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamsQrCodeScanFragment.java154 public void onSurfaceTextureAvailable(@NonNull SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
157 mCamera.start(surface); in onSurfaceTextureAvailable()
163 @NonNull SurfaceTexture surface, int width, int height) {} in onSurfaceTextureSizeChanged()
166 public boolean onSurfaceTextureDestroyed(@NonNull SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
172 public void onSurfaceTextureUpdated(@NonNull SurfaceTexture surface) {} in onSurfaceTextureUpdated() argument

123456