OSDN Git Service

DisplayViewport should only have actual viewports (1/2)
authorArthur Hung <arthurhung@google.com>
Thu, 22 Nov 2018 11:41:03 +0000 (19:41 +0800)
committerArthur Hung <arthurhung@google.com>
Tue, 18 Dec 2018 12:26:05 +0000 (20:26 +0800)
commit41a712e2e56aac3da8c929117df79c498f3c254d
treeabbe6d1119f2badd932b954f6e07b3fa2bdd90c7
parentd85333ddca0f8046d1c7553ac611f579a2a0c6fa
DisplayViewport should only have actual viewports (1/2)

If input device is external, TouchInputMapper would be associated with
external display. But if external viewport is not present,
it should fallback to the internal viewport.

Bug: 116850516
Test: atest inputflinger_tests
Change-Id: I044a5c66fd28ae1d032e56791478c4c46f13ef25
services/inputflinger/InputReader.cpp
services/inputflinger/tests/InputReader_test.cpp