summaryrefslogtreecommitdiff
path: root/tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java
diff options
context:
space:
mode:
authorUgo Yu <ugoyu@google.com>2019-03-26 21:38:08 +0800
committerUgo Yu <ugoyu@google.com>2019-05-02 18:06:41 +0800
commit6d9cfce73a3ae7471d34d272455427ca05f757cc (patch)
tree52fcd3e335cacde42f77388f20fbf174b4d61520 /tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java
parentc53df3a9cc4bf297d39b198e551be423db23acc3 (diff)
Fix binder leakage when turning off Bluetooth
* In current design, Bluetooth AdapterState stops all BR/EDR profiles' service and triggers onServiceDisconnected callback to all binder clients before BluetoothManagerService invokes onBluetoothStateChange(false), which means unbind service would never be called in framework. * Do unbind service when onServiceDisconnected is invoked. * Move profile binder logic to BluetoothProfileConnector except: - BluetoothHeadset: its binder logic is in BluetoothManagerService - BluetoothPbap: it has an individual ServiceListener Bug: 129037442 Bug: 129437895 Test: Bluetooth ON/OFF stress test. adb shell dumpsys activity services | egrep "com.android.bluetooth" to check whether AppBindRecord for com.android.bluetooth grows Change-Id: Id0d85866d386962b94d2d966f0a864b1da165d13
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleDataClassTest.java')
0 files changed, 0 insertions, 0 deletions