summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/14/changes
diff options
context:
space:
mode:
authorAlbert Mojir <albert.mojir@sonyericsson.com>2011-06-20 16:14:13 +0200
committerJohan Redestig <johan.redestig@sonyericsson.com>2011-08-16 12:26:13 +0200
commitf4c6404f50b8a2da601f97bfcd86ab744589b28e (patch)
treeee774c3489d28b557e5220485718f179557d8872 /docs/html/sdk/api_diff/14/changes
parentd144748d4767b2ccfb13857e23f78bc944e9531d (diff)
Bluetooth event loop dispatches dbus data on wakeup
On some occasions when the event loop thread and a binder thread are both waiting for a message from dbus, both threads are not woken up when a message is received. This causes applications not receiving responses or events. This happens because both threads are listening to same socket and both threads are not guaranteed to wake up when there is data to read. To fix this we subscribe to callback to wake the eventloop when an message is added to incoming queue. To reproduce the issue: 1. Activate BT 2. Make phone Discoverable 3. Clock is ticking down from 120s 4. At 20s tap the setting again 5. Crash due to keyDispatchingTimedOut 6. Not possible to scan for other devices or making your phone discoverable again 7. Restart necessary Tell tale sign: 07-25 16:37:12.240 E/ActivityManager( 262): ANR in com.android.settings (com.android.settings/.bluetooth.BluetoothSettings) 07-25 16:37:12.240 E/ActivityManager( 262): Reason: keyDispatchingTimedOut Test case to verify this patch: android.bluetooth.BluetoothStressTest#testDiscoverable Change-Id: I7696b5722805e85cd0204ce2597e91594cbe6789
Diffstat (limited to 'docs/html/sdk/api_diff/14/changes')
0 files changed, 0 insertions, 0 deletions