Loading core/java/android/hardware/display/DisplayManager.java +4 −0 Original line number Diff line number Diff line Loading @@ -198,10 +198,14 @@ public final class DisplayManager { * VIRTUAL_DISPLAY_FLAG_PRIVATE. Other flags are not allowed (especially * not VIRTUAL_DISPLAY_FLAG_PUBLIC or PRESENTATION). * * <p> * Requires screen share permission for use. * </p> * * <p> * While a display of this type exists, the system will show some sort of * notification to the user indicating that the screen is being shared. * </p> * * @see #createVirtualDisplay */ Loading media/java/android/media/projection/MediaProjection.java +2 −1 Original line number Diff line number Diff line Loading @@ -160,9 +160,10 @@ public final class MediaProjection { public static abstract class Callback { /** * Called when the MediaProjection session is no longer valid. * * <p> * Once a MediaProjection has been stopped, it's up to the application to release any * resources it may be holding (e.g. {@link android.hardware.display.VirtualDisplay}s). * </p> */ public void onStop() { } } Loading Loading
core/java/android/hardware/display/DisplayManager.java +4 −0 Original line number Diff line number Diff line Loading @@ -198,10 +198,14 @@ public final class DisplayManager { * VIRTUAL_DISPLAY_FLAG_PRIVATE. Other flags are not allowed (especially * not VIRTUAL_DISPLAY_FLAG_PUBLIC or PRESENTATION). * * <p> * Requires screen share permission for use. * </p> * * <p> * While a display of this type exists, the system will show some sort of * notification to the user indicating that the screen is being shared. * </p> * * @see #createVirtualDisplay */ Loading
media/java/android/media/projection/MediaProjection.java +2 −1 Original line number Diff line number Diff line Loading @@ -160,9 +160,10 @@ public final class MediaProjection { public static abstract class Callback { /** * Called when the MediaProjection session is no longer valid. * * <p> * Once a MediaProjection has been stopped, it's up to the application to release any * resources it may be holding (e.g. {@link android.hardware.display.VirtualDisplay}s). * </p> */ public void onStop() { } } Loading