diff options
author | Bill Lin <lbill@google.com> | 2020-09-02 00:56:18 +0800 |
---|---|---|
committer | Bill Lin <lbill@google.com> | 2020-09-02 01:28:55 +0800 |
commit | e78dd5f06870cdf98b1627345efe8ed69950105c (patch) | |
tree | 8ad8ac0fd0659595fdc9bb154f25c123dd4e9e1d /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 8f36c6e55ace1f08c447de7dd7c9f11562dcada1 (diff) |
Fix NPE when device do NOT has FEATURE_PICTURE_IN_PICTURE
Some project may be config FEATURE_PICTURE_IN_PICTURE = false
If device not support PIP, components in PipController won't initialized,
but OverviewProxyService PipController APIs will lead NPE
Solution: Check if device has system PIP feature before calling
Bug: 161118569
Fixes: 167390795
Test: make SystemUI
Test: make ArcSystemUI
Test: lunch aosp_tv_arm-userdebug & make
Test: atest WindowManagerShellTests
Test: atest SystemUITests
Test: adb shell input keyevent 171(KEYCODE_WINDOW)
Test: manual test Pip demo AP
Change-Id: I0ac17901f31623f04ad5e6787be0f4f25e6066c5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions