Loading core/java/android/view/DisplayInfo.java +2 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import static android.view.DisplayInfoProto.FLAGS; import static android.view.DisplayInfoProto.LOGICAL_HEIGHT; import static android.view.DisplayInfoProto.LOGICAL_WIDTH; import static android.view.DisplayInfoProto.NAME; import static android.view.DisplayInfoProto.TYPE; import android.annotation.NonNull; import android.annotation.Nullable; Loading Loading @@ -961,6 +962,7 @@ public final class DisplayInfo implements Parcelable { protoOutputStream.write(APP_HEIGHT, appHeight); protoOutputStream.write(NAME, name); protoOutputStream.write(FLAGS, flags); protoOutputStream.write(TYPE, type); if (displayCutout != null) { displayCutout.dumpDebug(protoOutputStream, CUTOUT); } Loading core/proto/android/view/displayinfo.proto +1 −0 Original line number Diff line number Diff line Loading @@ -36,4 +36,5 @@ message DisplayInfoProto { optional string name = 5; optional int32 flags = 6; optional DisplayCutoutProto cutout = 7; optional int32 type = 8; } Loading
core/java/android/view/DisplayInfo.java +2 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import static android.view.DisplayInfoProto.FLAGS; import static android.view.DisplayInfoProto.LOGICAL_HEIGHT; import static android.view.DisplayInfoProto.LOGICAL_WIDTH; import static android.view.DisplayInfoProto.NAME; import static android.view.DisplayInfoProto.TYPE; import android.annotation.NonNull; import android.annotation.Nullable; Loading Loading @@ -961,6 +962,7 @@ public final class DisplayInfo implements Parcelable { protoOutputStream.write(APP_HEIGHT, appHeight); protoOutputStream.write(NAME, name); protoOutputStream.write(FLAGS, flags); protoOutputStream.write(TYPE, type); if (displayCutout != null) { displayCutout.dumpDebug(protoOutputStream, CUTOUT); } Loading
core/proto/android/view/displayinfo.proto +1 −0 Original line number Diff line number Diff line Loading @@ -36,4 +36,5 @@ message DisplayInfoProto { optional string name = 5; optional int32 flags = 6; optional DisplayCutoutProto cutout = 7; optional int32 type = 8; }