commit | 626697a1416ec5306c92b0675f812e979bbcd5b0 | [log] [tgz] |
---|---|---|
author | Santos Cordon <santoscordon@google.com> | Thu Jul 10 22:36:37 2014 -0700 |
committer | Santos Cordon <santoscordon@google.com> | Thu Jul 10 23:44:38 2014 -0700 |
tree | 85cc4d8948d51c901823fed405e8a2877e76cd44 | |
parent | e20bc974ffc24d852d09e153a280b51e0329299c [diff] |
Change isRinging and isInAPhoneCall to execute from binder thread. We call into the audio service from telecomm main thread through setMode, but it calls us back on isInAPhoneCall which tries to move the code execution to the main thread (where it waiting for audio service) causing a deadlock. Change isInAPhoneCall() to support multi-threaded execution and do not force the invocation onto the main thread. Bug: 16179606 Change-Id: I2cc6f6220b34a2b35841a08897a50f2dc50839c6