Home
last modified time | relevance | path

Searched refs:mSurfaceHolder (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DSurfaceHolderTarget.java41 private SurfaceHolder mSurfaceHolder = null; field in SurfaceHolderTarget
86 mSurfaceHolder = holder; in setSurfaceHolder()
119 mSurfaceHolder.addCallback(mSurfaceHolderListener); in onOpen()
120 Surface surface = mSurfaceHolder.getSurface(); in onOpen()
129 synchronized (mSurfaceHolder) { in onProcess()
145 mRenderTarget = RenderTarget.currentTarget().forSurfaceHolder(mSurfaceHolder); in renderGL()
149 Rect surfRect = mSurfaceHolder.getSurfaceFrame(); in renderGL()
164 Canvas canvas = mSurfaceHolder.lockCanvas(); in renderCanvas()
167 Rect surfaceRect = mSurfaceHolder.getSurfaceFrame(); in renderCanvas()
174 mSurfaceHolder.unlockCanvasAndPost(canvas); in renderCanvas()
[all …]
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DGameActivity.java32 private SurfaceHolder mSurfaceHolder; field in GameActivity
43 mSurfaceHolder = mSurfaceView.getHolder(); in onCreate()
44 mSurfaceHolder.setFormat(PixelFormat.TRANSPARENT); in onCreate()
45 mSurfaceHolder.addCallback(this); in onCreate()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCameraTest.java195 SurfaceHolder mSurfaceHolder; in checkTakePicture() local
197 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in checkTakePicture()
198 mCamera.setPreviewDisplay(mSurfaceHolder); in checkTakePicture()
211 SurfaceHolder mSurfaceHolder; in checkPreviewCallback() local
213 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in checkPreviewCallback()
214 mCamera.setPreviewDisplay(mSurfaceHolder); in checkPreviewCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/
DImageWallpaperTest.java85 private SurfaceHolder mSurfaceHolder; field in ImageWallpaperTest
125 when(mSurfaceHolder.getSurface()).thenReturn(mSurface); in setUp()
168 spyEngine.onCreate(mSurfaceHolder); in testLoadDrawAndUnloadBitmap()
169 spyEngine.onSurfaceRedrawNeeded(mSurfaceHolder); in testLoadDrawAndUnloadBitmap()
196 return mSurfaceHolder; in createImageWallpaper()
241 clearInvocations(mSurfaceHolder);
245 engine.onCreate(mSurfaceHolder);
247 verify(mSurfaceHolder, times(1)).setFixedSize(
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallpapers/
DImageWallpaper.java116 private SurfaceHolder mSurfaceHolder; field in ImageWallpaper.CanvasEngine
192 mSurfaceHolder = surfaceHolder; in onCreate()
196 mSurfaceHolder.setFixedSize(width, height); in onCreate()
238 mSurfaceHolder = null; in onSurfaceDestroyed()
247 mSurfaceHolder = null; in onSurfaceDestroyedSynchronized()
278 if (mSurfaceHolder == null && !fixImageWallpaperCrashSurfaceAlreadyReleased()) { in drawFrameInternal()
289 if (mSurfaceHolder == null) { in drawFrameInternal()
310 Surface surface = mSurfaceHolder.getSurface(); in drawFrameOnCanvas()
320 Rect dest = mSurfaceHolder.getSurfaceFrame(); in drawFrameOnCanvas()
362 if (mSurfaceHolder != null) mSurfaceHolder.getSurface().hwuiDestroy(); in unloadBitmapInternal()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaFrameworkTest.java67 private SurfaceHolder mSurfaceHolder = null; field in MediaFrameworkTest
82 mSurfaceHolder = mSurfaceView.getHolder(); in onCreate()
83 mSurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); in onCreate()
84 mSurfaceHolder.addCallback(this); in onCreate()
110 mSurfaceHolder = null; in surfaceDestroyed()
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DMainActivity.kt40 private var mSurfaceHolder: SurfaceHolder? = null variable in com.android.test.MainActivity
45 val surface: Surface? get() = mSurfaceHolder?.surface
104 mSurfaceHolder = holder in createSurfaceView()
121 mSurfaceHolder = null in createSurfaceView()
130 val holder = mSurfaceHolder ?: return Rect() in drawFrame()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java375 final BaseSurfaceHolder mSurfaceHolder = new BaseSurfaceHolder() { field in WallpaperService.Engine
566 return mSurfaceHolder; in getSurfaceHolder()
1186 int myWidth = mSurfaceHolder.getRequestedWidth(); in updateSurface()
1189 int myHeight = mSurfaceHolder.getRequestedHeight(); in updateSurface()
1195 final boolean formatChanged = mFormat != mSurfaceHolder.getRequestedFormat(); in updateSurface()
1198 final boolean typeChanged = mType != mSurfaceHolder.getRequestedType(); in updateSurface()
1211 mFormat = mSurfaceHolder.getRequestedFormat(); in updateSurface()
1212 mType = mSurfaceHolder.getRequestedType(); in updateSurface()
1272 mSurfaceHolder.mSurfaceLock.lock(); in updateSurface()
1294 mSurfaceHolder.mSurfaceLock.unlock(); in updateSurface()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceViewSyncValidatorTestCase.java144 private final SurfaceHolder mSurfaceHolder;
175 Canvas c = mSurfaceHolder.lockCanvas();
178 mSurfaceHolder.unlockCanvasAndPost(c);
190 mSurfaceHolder = holder;
/frameworks/base/tests/SurfaceViewSyncTest/src/com/android/test/
DSurfaceViewSyncActivity.java132 private final SurfaceHolder mSurfaceHolder; field in SurfaceViewSyncActivity.RenderingThread
143 mSurfaceHolder = holder; in RenderingThread()
177 Canvas c = mSurfaceHolder.lockCanvas();
180 mSurfaceHolder.unlockCanvasAndPost(c);
/frameworks/base/rs/java/android/renderscript/
DRSSurfaceView.java38 private SurfaceHolder mSurfaceHolder; field in RSSurfaceView
80 mSurfaceHolder = holder; in surfaceCreated()
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
DAttachedChoreographerNativeTest.java56 private SurfaceHolder mSurfaceHolder; field in AttachedChoreographerNativeTest
71 mSurfaceHolder = mSurfaceView.getHolder(); in setup()
72 mSurfaceHolder.addCallback(new SurfaceHolder.Callback() { in setup()
DAttachedChoreographerTest.java69 private SurfaceHolder mSurfaceHolder; field in AttachedChoreographerTest
87 mSurfaceHolder = mSurfaceView.getHolder(); in setUp()
88 mSurfaceHolder.addCallback(new SurfaceHolder.Callback() { in setUp()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/
DMediaRecorderTest.java54 private SurfaceHolder mSurfaceHolder = null; field in MediaRecorderTest
95 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in recordVideo()
97 mRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); in recordVideo()
127 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in validateGetSurface()
128 recorder.setPreviewDisplay(mSurfaceHolder.getSurface()); in validateGetSurface()
326 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in recordVideoWithPara()
355 mMediaRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); in recordVideoWithPara()
387 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in invalidRecordSetting()
389 mRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); in invalidRecordSetting()
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
DNativeMedia.java353 private final SurfaceHolder mSurfaceHolder; field in NativeMedia.SurfaceHolderVideoSink
356 mSurfaceHolder = surfaceHolder; in SurfaceHolderVideoSink()
360 mSurfaceHolder.setFixedSize(width, height); in setFixedSize()
364 mediaPlayer.setDisplay(mSurfaceHolder); in useAsSinkForJava()
368 setSurface(mSurfaceHolder.getSurface()); in useAsSinkForNative()
/frameworks/layoutlib/bridge/src/android/view/
DSurfaceView.java86 return mSurfaceHolder; in getHolder()
143 private SurfaceHolder mSurfaceHolder = new SurfaceHolder() { field in SurfaceView
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java58 private SurfaceHolder mSurfaceHolder = null; field in MediaPlayerPerformance
187 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in stressCameraPreview()
188 mCamera.setPreviewDisplay(mSurfaceHolder); in stressCameraPreview()
241 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in stressVideoRecord()
242 mRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); in stressVideoRecord()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaRecorderStressTest.java302 SurfaceHolder mSurfaceHolder; in testStressTimeLapse() local
303 mSurfaceHolder = MediaFrameworkTest.mSurfaceView.getHolder(); in testStressTimeLapse()
344 mRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); in testStressTimeLapse()
356 mp.setDisplay(mSurfaceHolder); in testStressTimeLapse()
/frameworks/base/core/java/android/widget/
DVideoView.java117 private SurfaceHolder mSurfaceHolder = null; field in VideoView
374 if (mUri == null || mSurfaceHolder == null) { in openVideo()
413 mMediaPlayer.setDisplay(mSurfaceHolder); in openVideo()
693 mSurfaceHolder = holder;
700 mSurfaceHolder = null;
/frameworks/base/core/java/android/view/
DSurfaceView.java408 return mSurfaceHolder; in getHolder()
1240 c.surfaceCreated(mSurfaceHolder); in updateSurface()
1252 c.surfaceChanged(mSurfaceHolder, mFormat, myWidth, myHeight); in updateSurface()
1341 sch.dispatchSurfaceRedrawNeededAsync(mSurfaceHolder, callbacks); in redrawNeededAsync()
1743 private final SurfaceHolder mSurfaceHolder = new SurfaceHolder() { field in SurfaceView
2105 c.surfaceDestroyed(mSurfaceHolder); in notifySurfaceDestroyed()
DViewRootImpl.java616 BaseSurfaceHolder mSurfaceHolder; field in ViewRootImpl
1420 mSurfaceHolder.removeCallback(mSurfaceHolderCallback);
1427 mSurfaceHolder = new TakenSurfaceHolder();
1428 mSurfaceHolder.setFormat(PixelFormat.UNKNOWN);
1429 mSurfaceHolder.addCallback(mSurfaceHolderCallback);
1431 mSurfaceHolder = null;
1509 mSurfaceHolder = new TakenSurfaceHolder();
1510 mSurfaceHolder.setFormat(PixelFormat.UNKNOWN);
1511 mSurfaceHolder.addCallback(mSurfaceHolderCallback);
1526 if (mSurfaceHolder == null) {
[all …]
/frameworks/base/media/java/android/media/
DMediaPlayer.java633 private SurfaceHolder mSurfaceHolder; field in MediaPlayer
798 mSurfaceHolder = sh; in setDisplay()
833 mSurfaceHolder = null; in setSurface()
1732 if (screenOn && mSurfaceHolder == null) { in setScreenOnWhilePlaying()
1753 if (mSurfaceHolder != null) { in updateSurfaceScreenOn()
1754 mSurfaceHolder.setKeepScreenOn(mScreenOnWhilePlaying && mStayAwake); in updateSurfaceScreenOn()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt28012 Landroid/media/MediaPlayer2Impl;->mSurfaceHolder:Landroid/view/SurfaceHolder;
28203 Landroid/media/MediaPlayer;->mSurfaceHolder:Landroid/view/SurfaceHolder;
45999 Landroid/renderscript/RSSurfaceView;->mSurfaceHolder:Landroid/view/SurfaceHolder;
50272 Landroid/service/wallpaper/WallpaperService$Engine;->mSurfaceHolder:Lcom/android/internal/view/Base…
64207 Landroid/view/ViewRootImpl;->mSurfaceHolder:Lcom/android/internal/view/BaseSurfaceHolder;