diff options
author | Makoto Onuki <omakoto@google.com> | 2019-05-30 11:36:55 -0700 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2019-06-04 17:06:39 -0700 |
commit | ad1291e7490b259ade603a8211c124ae748d3fcf (patch) | |
tree | 60c7c7c7453643e6d6937f8e31e4c65cf2161fe3 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | a54b943d59765d0b60aefde3132fdce8f039d2e3 (diff) |
Avoid creating multiple death recipients for same observer
Also do a WTF when the same process registers 1000 observers with the
same observer instance.
Fix: 133388082
Test: manual test: Launch leaky app and make sure WTF is raised
Test: manual test: Open contacts app, close, and make sure the
"Total number of unique observers" goes back
Test: manual test: Open contacts app, kill it, and make sure the
"Total number of unique observers" goes back
Test: manual test: Open contacts app while contacts are syncing,
and make sure the activity refreshes itself.
Test: atest cts/tests/tests/content/src/android/content/cts/ContentResolverTest.java
Test: atest FrameworksCoreTests:BinderDeathDispatcherTest
Test: atest FrameworksServicesTests:com.android.server.content.ObserverNodeTest
Change-Id: Id738ca66023c029b92db3d108d99a9fc240fe77c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions