summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorKevin Han <kevhan@google.com>2021-11-11 14:29:35 -0800
committerKevin Han <kevhan@google.com>2021-12-02 01:53:41 +0000
commit8eb67dd5d130952641c01d86c30f1beac2a4d59a (patch)
tree34ddaf67e7532480aca80e0eee914c538a542ff8 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent74fe24aef1c21c8ad202e8c4784b40c5c5f3e3c8 (diff)
Add hibernation NPE check and unhibernate only if hibernating
Rather than depend strictly on "leaving" force-stop (i.e. stopped to not stopped), we unhibernate when setting stopped to false and the app is hibernating. This prevents situations where an app is not stopped but hibernating and can never exit hibernation because the app never "leaves" force-stop. With this, we can add the NPE check without risk of putting the app into a permanent hibernation state. Bug: 205774141 Test: atest AppHibernationIntegrationTest Test: atest PackageManagerServiceHibernationTests Merged-In: Ia45d0c9236474841d0ba63b5265b3b835cf9f6f5 Change-Id: Ia45d0c9236474841d0ba63b5265b3b835cf9f6f5 (cherry picked from commit 2e8b4013072f30ee96f77cd691a52a98240c1b71)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions