diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-10-13 12:45:30 -0400 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-10-13 12:45:30 -0400 |
commit | 16cb04ab1cd88d917fdd34a9063fe4a9707aa5b1 (patch) | |
tree | 599560b836ffa93056158eb46856aef84b381dc1 /services/java/com/android | |
parent | 69e2ef473cd47404ee711bf2464cbfc7c8c83e42 (diff) | |
parent | f1acb2ddcde20638d592b3cdcf61cfaf01d3df7b (diff) | |
download | frameworks_base-16cb04ab1cd88d917fdd34a9063fe4a9707aa5b1.zip frameworks_base-16cb04ab1cd88d917fdd34a9063fe4a9707aa5b1.tar.gz frameworks_base-16cb04ab1cd88d917fdd34a9063fe4a9707aa5b1.tar.bz2 |
Merge change If1acb2dd into eclair
* changes:
Add a little logging to diagnose wifi cycle bug
Diffstat (limited to 'services/java/com/android')
-rw-r--r-- | services/java/com/android/server/WifiService.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/services/java/com/android/server/WifiService.java b/services/java/com/android/server/WifiService.java index a3589c7..32ad6c6 100644 --- a/services/java/com/android/server/WifiService.java +++ b/services/java/com/android/server/WifiService.java @@ -1702,8 +1702,10 @@ public class WifiService extends IWifiManager.Stub { } private boolean acquireWifiLockLocked(WifiLock wifiLock) { + Log.d(TAG, "acquireWifiLockLocked: " + wifiLock); + mLocks.addLock(wifiLock); - + int uid = Binder.getCallingUid(); long ident = Binder.clearCallingIdentity(); try { @@ -1721,7 +1723,7 @@ public class WifiService extends IWifiManager.Stub { } finally { Binder.restoreCallingIdentity(ident); } - + updateWifiState(); return true; } @@ -1735,8 +1737,11 @@ public class WifiService extends IWifiManager.Stub { private boolean releaseWifiLockLocked(IBinder lock) { boolean hadLock; - + WifiLock wifiLock = mLocks.removeLock(lock); + + Log.d(TAG, "releaseWifiLockLocked: " + wifiLock); + hadLock = (wifiLock != null); if (hadLock) { @@ -1758,7 +1763,7 @@ public class WifiService extends IWifiManager.Stub { Binder.restoreCallingIdentity(ident); } } - + // TODO - should this only happen if you hadLock? updateWifiState(); return hadLock; } |