Home
last modified time | relevance | path

Searched refs:mMediaProjection (Results 1 – 2 of 2) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/media/projection/
DMediaProjectionDemo.java63 private MediaProjection mMediaProjection; field in MediaProjectionDemo
103 if (mMediaProjection != null) { in onDestroy()
104 mMediaProjection.stop(); in onDestroy()
105 mMediaProjection = null; in onDestroy()
120 mMediaProjection = mProjectionManager.getMediaProjection(resultCode, data); in onActivityResult()
121 mMediaProjection.registerCallback(new MediaProjectionCallback(), null); in onActivityResult()
138 if (mMediaProjection == null) { in shareScreen()
159 return mMediaProjection.createVirtualDisplay("ScreenSharingDemo", in createVirtualDisplay()
197 mMediaProjection = null; in onStop()
/development/samples/browseable/ScreenCapture/src/com.example.android.screencapture/
DScreenCaptureFragment.java58 private MediaProjection mMediaProjection; field in ScreenCaptureFragment
153 mMediaProjection = mMediaProjectionManager.getMediaProjection(mResultCode, mResultData); in setUpMediaProjection()
157 if (mMediaProjection != null) { in tearDownMediaProjection()
158 mMediaProjection.stop(); in tearDownMediaProjection()
159 mMediaProjection = null; in tearDownMediaProjection()
168 if (mMediaProjection != null) { in startScreenCapture()
186 mVirtualDisplay = mMediaProjection.createVirtualDisplay("ScreenCapture", in setUpVirtualDisplay()