Home
last modified time | relevance | path

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

123

/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/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/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/accessibility/
DVideoPlayer.java100 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
101 animationSurface = new Surface(surface); in onSurfaceTextureAvailable()
113 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
117 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
123 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java464 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
471 mSurfaceTextureListener.onSurfaceTextureAvailable(surface, width, height);
476 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
478 mSurfaceTextureListener.onSurfaceTextureSizeChanged(surface, width, height);
483 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
485 mSurfaceTextureListener.onSurfaceTextureDestroyed(surface);
491 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
493 mSurfaceTextureListener.onSurfaceTextureUpdated(surface);
DVideoUI.java277 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
282 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
289 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
293 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
DPhotoUI.java275 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
280 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
285 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
291 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
DPreviewStarter.java65 public ListenableFuture<Void> startPreview(final Surface surface) { in startPreview() argument
74 surfaceList.add(surface); in startPreview()
79 surfaceList.add(surface); in startPreview()
90 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()
DVideoProviderTest.java323 final Surface surface = new Surface(new SurfaceTexture(1)); in testSetPreviewSurface() local
324 mVideoCall.setPreviewSurface(surface); in testSetPreviewSurface()
329 return mConnectionInfo.mockVideoProvider.getPreviewSurface() == surface; in testSetPreviewSurface()
350 final Surface surface = new Surface(new SurfaceTexture(1)); in testSetDisplaySurface() local
351 mVideoCall.setDisplaySurface(surface); in testSetDisplaySurface()
356 return mConnectionInfo.mockVideoProvider.getDisplaySurface() == surface; in testSetDisplaySurface()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/
DQrCamera.java98 public void start(SurfaceTexture surface) { in start() argument
100 mDecodeTask = new DecodingTask(surface); in start()
223 private DecodingTask(SurfaceTexture surface) { in DecodingTask() argument
224 mSurface = surface; in DecodingTask()
276 private boolean initCamera(SurfaceTexture surface) { in initCamera() argument
284 mCamera.setPreviewTexture(surface); in initCamera()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java105 public void start(SurfaceTexture surface) { in start() argument
107 mDecodeTask = new DecodingTask(surface); in start()
231 private DecodingTask(SurfaceTexture surface) { in DecodingTask() argument
232 mSurface = surface; in DecodingTask()
284 private boolean initCamera(SurfaceTexture surface) { in initCamera() argument
292 mCamera.setPreviewTexture(surface); in initCamera()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiDppQrCodeScannerFragment.java401 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
402 initCamera(surface); in onSurfaceTextureAvailable()
406 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
411 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
417 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
503 private void initCamera(SurfaceTexture surface) { in initCamera() argument
513 mCamera.start(surface); in initCamera()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeScannerFragment.java408 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
409 initCamera(surface); in onSurfaceTextureAvailable()
413 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
418 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
424 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
510 private void initCamera(SurfaceTexture surface) { in initCamera() argument
520 mCamera.start(surface); in initCamera()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java79 void onDrawnToSurface(MpegTsPlayer player, Surface surface); in onDrawnToSurface() argument
200 public void setSurface(Surface surface) { in setSurface() argument
201 mSurface = surface; in setSurface()
582 public void onDrawnToSurface(Surface surface) { in onDrawnToSurface() argument
584 mListener.onDrawnToSurface(this, surface); in onDrawnToSurface()
/packages/apps/Camera2/src/com/android/camera/app/
DCameraAppUI.java1703 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { in onSurfaceTextureAvailable() argument
1704 mSurface = surface; in onSurfaceTextureAvailable()
1709 mPreviewStatusListener.onSurfaceTextureAvailable(surface, width, height); in onSurfaceTextureAvailable()
1715 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { in onSurfaceTextureSizeChanged() argument
1716 mSurface = surface; in onSurfaceTextureSizeChanged()
1720 mPreviewStatusListener.onSurfaceTextureSizeChanged(surface, width, height); in onSurfaceTextureSizeChanged()
1725 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { in onSurfaceTextureDestroyed() argument
1729 return mPreviewStatusListener.onSurfaceTextureDestroyed(surface); in onSurfaceTextureDestroyed()
1735 public void onSurfaceTextureUpdated(SurfaceTexture surface) { in onSurfaceTextureUpdated() argument
1736 mSurface = surface; in onSurfaceTextureUpdated()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DVideoProviderProxy.java366 public void onSetPreviewSurface(Surface surface) { in onSetPreviewSurface() argument
370 mConectionServiceVideoProvider.setPreviewSurface(surface); in onSetPreviewSurface()
383 public void onSetDisplaySurface(Surface surface) { in onSetDisplaySurface() argument
387 mConectionServiceVideoProvider.setDisplaySurface(surface); in onSetDisplaySurface()
/packages/apps/Dialer/java/com/android/incallui/
DVideoCallPresenter.java790 Surface surface = getRemoteVideoSurfaceTexture().getSavedSurface(); in adjustVideoMode() local
791 if (surface != null) { in adjustVideoMode()
793 "VideoCallPresenter.adjustVideoMode", "calling setDisplaySurface with: " + surface); in adjustVideoMode()
794 videoCall.setDisplaySurface(surface); in adjustVideoMode()
957 Surface surface = getLocalVideoSurfaceTexture().getSavedSurface(); in onCameraDimensionsChange() local
958 if (surface != null) { in onCameraDimensionsChange()
960 videoCall.setPreviewSurface(surface); in onCameraDimensionsChange()
/packages/apps/Car/Cluster/src/android/car/cluster/
DNavigationFragment.java184 private VirtualDisplay createVirtualDisplay(Surface surface, int width, int height) { in createVirtualDisplay() argument
185 Log.i(TAG, "createVirtualDisplay, surface: " + surface + ", width: " + width in createVirtualDisplay()
187 return mDisplayManager.createVirtualDisplay("Cluster-App-VD", width, height, 160, surface, in createVirtualDisplay()
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DSimpleCaptureStream.java31 public SimpleCaptureStream(Surface surface) { in SimpleCaptureStream() argument
32 mSurface = surface; in SimpleCaptureStream()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSelfManagedAnswerVideoCallScreen.java218 Surface surface = surfaceView.getHolder().getSurface();
221 captureRequestBuilder.addTarget(surface);
222 camera.createCaptureSession(Arrays.asList(surface), new CaptureSessionCallback(), null);
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/
DImageStreamImpl.java43 ImageDistributor imageDistributor, Surface surface) { in ImageStreamImpl() argument
45 mSurface = surface; in ImageStreamImpl()

123