android: service: platform_service: Read rotation angle from parcel

When passing window state, currently only the frame location and
stack & task IDs are contained in the parcel.  This patch also
receives the new 'rotation_angle' attribute.  This patch is critical
since it ensures each '4 Byte' value in this strongly ordered
sequence is extracted at the right time, in the correct way.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
Lee Jones 2018-01-31 08:51:32 +00:00
commit 6d50d44083

View file

@ -49,6 +49,7 @@ anbox::PlatformApiStub::WindowStateUpdate::Window PlatformService::unpack_window
auto frame_bottom = data.readInt32();
auto task_id = data.readInt32();
auto stack_id = data.readInt32();
auto rotation_angle = data.readInt32();
return anbox::PlatformApiStub::WindowStateUpdate::Window{
-1, // Display id will be added by the caller