diff options
author | 2018-02-09 06:16:25 +0000 | |
---|---|---|
committer | 2018-02-09 06:16:25 +0000 | |
commit | 09726a5d9dc691762a9bdd52221fbb76bac9dd3b (patch) | |
tree | ae6246b69f5b2491c839db4d05efc5a5c398ab1e | |
parent | e4cf2564c6e5d9ca03fa14926fde7b2b7aae03f8 (diff) | |
parent | 764e104e2838d1eb708876dd7e545e6f8b8a61ba (diff) |
Merge "Added display name to DisplayInfo proto"
-rw-r--r-- | core/java/android/view/DisplayInfo.java | 2 | ||||
-rw-r--r-- | core/proto/android/view/displayinfo.proto | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/view/DisplayInfo.java b/core/java/android/view/DisplayInfo.java index 37e9815c93c5..7251b71ac35d 100644 --- a/core/java/android/view/DisplayInfo.java +++ b/core/java/android/view/DisplayInfo.java @@ -20,6 +20,7 @@ import static android.view.DisplayInfoProto.APP_HEIGHT; import static android.view.DisplayInfoProto.APP_WIDTH; import static android.view.DisplayInfoProto.LOGICAL_HEIGHT; import static android.view.DisplayInfoProto.LOGICAL_WIDTH; +import static android.view.DisplayInfoProto.NAME; import android.content.res.CompatibilityInfo; import android.content.res.Configuration; @@ -685,6 +686,7 @@ public final class DisplayInfo implements Parcelable { protoOutputStream.write(LOGICAL_HEIGHT, logicalHeight); protoOutputStream.write(APP_WIDTH, appWidth); protoOutputStream.write(APP_HEIGHT, appHeight); + protoOutputStream.write(NAME, name); protoOutputStream.end(token); } diff --git a/core/proto/android/view/displayinfo.proto b/core/proto/android/view/displayinfo.proto index 3ac8f3b22fd2..cbd06fdb8c04 100644 --- a/core/proto/android/view/displayinfo.proto +++ b/core/proto/android/view/displayinfo.proto @@ -29,4 +29,5 @@ message DisplayInfoProto { optional int32 logical_height = 2; optional int32 app_width = 3; optional int32 app_height = 4; + optional string name = 5; } |