Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c47e9d00 authored by Rupesh Bansal's avatar Rupesh Bansal Committed by Android (Google) Code Review
Browse files

Merge "When a Virtual Display is plugged in, we create a corresponding surface...

Merge "When a Virtual Display is plugged in, we create a corresponding surface whose mutation should be owned by mSyncRoot(Owned by DisplayManagerService). However, there is an operation of getting the defaultSize of this Display which is performed without honouring the mSyncRoot." into tm-dev
parents 235814bb 9a85809c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ abstract class DisplayDevice {
     * Only used for mirroring started from MediaProjection.
     */
    @Nullable
    public Point getDisplaySurfaceDefaultSize() {
    public Point getDisplaySurfaceDefaultSizeLocked() {
        return null;
    }

+1 −1
Original line number Diff line number Diff line
@@ -3880,8 +3880,8 @@ public final class DisplayManagerService extends SystemService {
                if (device == null) {
                    return null;
                }
                return device.getDisplaySurfaceDefaultSizeLocked();
            }
            return device.getDisplaySurfaceDefaultSize();
        }

        @Override
+1 −1
Original line number Diff line number Diff line
@@ -302,7 +302,7 @@ public class VirtualDisplayAdapter extends DisplayAdapter {
        }

        @Override
        public Point getDisplaySurfaceDefaultSize() {
        public Point getDisplaySurfaceDefaultSizeLocked() {
            if (mSurface == null) {
                return null;
            }