commit | 99844534e0b66969eed83afc09009356084b00d9 | [log] [tgz] |
---|---|---|
author | Yu-Ting Tseng <yutingtseng@google.com> | Tue Dec 05 14:24:47 2023 -0800 |
committer | Yu-Ting Tseng <yutingtseng@google.com> | Fri Jan 19 15:06:02 2024 -0800 |
tree | d29283e61b07d31ea9f891e023e050c751d0d0a7 | |
parent | 54debd28a7e34b4ac8ab297d6b6473fb726c288b [diff] |
Use WeakReference in RemoteFillService. This mitigates the issue of lingering IFillCallback and ISaveCallback stub allocations. After the change, Binder would only hold onto the new thin callback wrappers. The actual underlying stubs would not be prevented from being GC'ed. Bug: 307972253 Test: atest CtsAutoFillServiceTestCases Change-Id: I7860ad66be134a5328e8dc88e71e665406d51d7d