Home
last modified time | relevance | path

Searched refs:surfaceHolder (Results 1 – 7 of 7) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSurfaceViewTest.java23 private SurfaceHolder surfaceHolder = view.getHolder(); field in ShadowSurfaceViewTest
32 surfaceHolder.addCallback(callback1); in addCallback()
36 surfaceHolder.addCallback(callback2); in addCallback()
44 surfaceHolder.addCallback(callback1); in removeCallback()
45 surfaceHolder.addCallback(callback2); in removeCallback()
49 surfaceHolder.removeCallback(callback1); in removeCallback()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/
DCaptureActivity.java107 SurfaceHolder surfaceHolder = surfaceView.getHolder(); in onResume() local
112 initCamera(surfaceHolder); in onResume()
115 surfaceHolder.addCallback(this); in onResume()
116 surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); in onResume()
150 SurfaceHolder surfaceHolder = surfaceView.getHolder(); in onPause() local
151 surfaceHolder.removeCallback(this); in onPause()
256 private void initCamera(SurfaceHolder surfaceHolder) { in initCamera() argument
258 cameraManager.openDriver(surfaceHolder); in initCamera()
/external/exoplayer/tree/extensions/leanback/src/main/java/com/google/android/exoplayer2/ext/leanback/
DLeanbackPlayerAdapter.java258 public void surfaceCreated(SurfaceHolder surfaceHolder) { in surfaceCreated() argument
259 setVideoSurface(surfaceHolder.getSurface()); in surfaceCreated()
263 public void surfaceChanged(SurfaceHolder surfaceHolder, int format, int width, int height) { in surfaceChanged() argument
268 public void surfaceDestroyed(SurfaceHolder surfaceHolder) { in surfaceDestroyed() argument
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DSimpleExoPlayer.java369 @Nullable private SurfaceHolder surfaceHolder; field in SimpleExoPlayer
576 public void setVideoSurfaceHolder(@Nullable SurfaceHolder surfaceHolder) { in setVideoSurfaceHolder() argument
579 if (surfaceHolder != null) { in setVideoSurfaceHolder()
582 this.surfaceHolder = surfaceHolder; in setVideoSurfaceHolder()
583 if (surfaceHolder == null) { in setVideoSurfaceHolder()
587 surfaceHolder.addCallback(componentListener); in setVideoSurfaceHolder()
588 Surface surface = surfaceHolder.getSurface(); in setVideoSurfaceHolder()
591 Rect surfaceSize = surfaceHolder.getSurfaceFrame(); in setVideoSurfaceHolder()
601 public void clearVideoSurfaceHolder(@Nullable SurfaceHolder surfaceHolder) { in clearVideoSurfaceHolder() argument
603 if (surfaceHolder != null && surfaceHolder == this.surfaceHolder) { in clearVideoSurfaceHolder()
[all …]
DPlayer.java269 void setVideoSurfaceHolder(@Nullable SurfaceHolder surfaceHolder); in setVideoSurfaceHolder() argument
277 void clearVideoSurfaceHolder(@Nullable SurfaceHolder surfaceHolder); in clearVideoSurfaceHolder() argument
/external/exoplayer/tree/demos/surface/src/main/java/com/google/android/exoplayer2/surfacedemo/
DMainActivity.java250 public void surfaceCreated(SurfaceHolder surfaceHolder) { in attachSurfaceListener()
258 SurfaceHolder surfaceHolder, int format, int width, int height) {} in attachSurfaceListener()
261 public void surfaceDestroyed(SurfaceHolder surfaceHolder) {} in attachSurfaceListener()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCamera.java32 private SurfaceHolder surfaceHolder; field in ShadowCamera
95 surfaceHolder = holder; in setPreviewDisplay()
229 return surfaceHolder; in getPreviewDisplay()