diff options
author | Jeff Chang <chengjeff@google.com> | 2020-05-07 18:31:29 +0800 |
---|---|---|
committer | Jeff Chang <chengjeff@google.com> | 2020-05-07 19:49:43 +0800 |
commit | db625de3c866bc2f83904eae28f741a7a74d37a8 (patch) | |
tree | 314da4d15a7eecd6fce19f4ae78f0b778d980559 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 7f1ad4d34a9fdd6de1ce1c4ead3e76f0e0baff7e (diff) |
Handle the WatchRotation failed
WindowManagerService#WatchRotation throw the IllegalArgumentException
when trying to register the rotation event with invalid display.
There is a case in MultiDisplaySystemDecorationTests when the display
is invalid, but the RotationButtonController still tries to register
the rotation event. The symptom impact the WindowManager CTS to
execute tesing completely.
This CL do the basic protection first to make the WM CTS more smooth.
Bug: 153607881
Test: atest MultiDisplaySystemDecorationTests
Change-Id: Ie3c240c3bc270d1f145640ee420b33ce95902e5d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions