| commit | cfc3dc6bb0d629357214cdcbc8ef7290fbe0c480 | [log] [tgz] |
|---|---|---|
| author | Etienne Ruffieux <eruffieux@google.com> | Tue Jun 21 18:26:12 2022 -0700 |
| committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 30 02:24:21 2022 +0000 |
| tree | c5f2a2dcaf67f2585397b094ff8660b4db0a99e3 | |
| parent | ed336c3814c34eb097b243ef57e7f474820d53ca [diff] |
Add static list to reuse existing SynchronousResultReceiver When instantiating a new SynchronousResultReceiver, BinderProxy keeps a reference to its instance. As Bluetooth makes a lot of calls to its service with this class, we need to store and reuse instead of instantiate each time. Tested with 4 process each creating 4 threads each calling 30000 times a service method through SyncResultReceiver, all calls with a param value that is returned and checked once the result is retrieved. Bug: 217366135 Test: manual Tag: #feature Ignore-AOSP-First: cherry-pick Change-Id: Ide3336c624a0e58896072656a2458f25fb0a3572 (cherry picked from commit 74c52917e753aa44f859000cd308486a00be0545) Merged-In: Ide3336c624a0e58896072656a2458f25fb0a3572
Libraries and utilities intended for use by module and framework code.
Since modules use the code in this project, it must adhere to mainline requirements, for example, by setting min_sdk_version in Soong modules.
This project uses a single source path for Java code. All Java code should go in the java directory with subdirectories corresponding to the java package. Android.bp files should go alongside the java source files, and should only include java source for a single java package to encourage good code hygiene.
Tests for java code should go in the javatests directory and follow the same structure.