Eric Laurent ca35e48234 Fix media server restart detection mechanism
There is a flaw in the mechanism used by AudioService
to detect the fact that mediaserver process did crash and restart.
It relies on polling AudioFlinger service until a successful
connection triggers a callback into AudioSystem JNI and then into AudioService.
But if another thread in system_server process, not attached to the
JNI environment, reconnects before AudioService, the callback is called in
a detached context and dropped.

The fix consists in attaching the thread executing the callback
and detaching it if needed.

Bug: 9693068.
Change-Id: I184308b12a3f87653bf818abf0159e0e45a66ef0
2013-07-18 09:10:56 -07:00
2013-06-26 23:04:32 +00:00
2013-04-09 21:54:12 -07:00
2013-07-01 11:03:41 -07:00
2013-05-21 12:38:22 -07:00
2013-06-24 17:42:25 +00:00
2013-07-01 13:47:49 -07:00
2013-06-25 16:03:55 -07:00
2013-07-10 12:14:54 -07:00
Description
No description provided
5.1 GiB
Languages
Java 77.3%
Kotlin 9.2%
PowerBuilder 6.6%
C++ 5.5%
AIDL 1%