summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorGarfield Tan <xutan@google.com>2019-08-02 17:31:30 -0700
committerGarfield Tan <xutan@google.com>2019-08-02 18:16:18 -0700
commitb30145c2cf249681fceae92bd18cdec076471504 (patch)
tree19ddb559bf6ac4d215603f339ac71010a7269d6a /tools/aapt2/java/JavaClassGenerator.cpp
parent2ef7b3ec1d7d859bc1d1a08f2b2025754f75a15a (diff)
Fix some issues about AMS creation in tests.
In commit ce8db89ce529343262f7f4c669dd2d8976afcff6 we fixed a mem leak issue caused by thread leak. That makes some tests using the constructor in question crash. Therefore instead of trying to restore the original state, convert these tests to use another constructor to avoid the mem leak. Also fixed another NPE when getting resources from null context and null UiHandler for some of these tests. Bug: 138840116 Test: atest FrameworksServicesTests:ActivityManagerServiceTest Test: atest FrameworksServicesTests:ActivityManagerInternalTest Test: atest FrameworksServicesTests:CoreSettingsObserverTest doesn't fail for these reasons. Test: atest FrameworksMockingServicesTests:AppCompactorTest Test: atest FrameworksServicesTests:AppErrorDialogTest Change-Id: Id349a3e1100faa5b4f5033d94c0f892d3f3745bf
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions