OSDN Git Service

Enable recovery in RIL wakelock release check.
authorJohn Wang <johnwang@google.com>
Sat, 22 Jan 2011 00:18:26 +0000 (16:18 -0800)
committerJohn Wang <johnwang@google.com>
Sat, 22 Jan 2011 01:46:08 +0000 (17:46 -0800)
commit696794fc139a752e2a10fa66d73a9ae6fd085acc
tree42bf30c10b15428b3bbc4cdd3603ac95c28f875a
parent398a589ccea744556732b25097412dbb22c51271
Enable recovery in RIL wakelock release check.

Wakelock will get released while
1) no request pending to be sent out, in which mRequestMessagesPending increases
before calling EVENT_SEND and decreases while handling EVENT_SEND.

and

2) no waiting requests sent to RIL but no replied, in which mRequestMessagesWaiting
increases while sending request and decreases while handling response.

Both will be cleared while WAKE_LOCK_TIMEOUT occurs to recovery from out of sync situation.

bug: 33694273370827
Change-Id: Ib2fc54db3b155bd3fb1296ad83720b7836708caf
telephony/java/com/android/internal/telephony/RIL.java