Loading services/java/com/android/server/WifiService.java +9 −4 Original line number Diff line number Diff line Loading @@ -1716,6 +1716,8 @@ public class WifiService extends IWifiManager.Stub { } private boolean acquireWifiLockLocked(WifiLock wifiLock) { Log.d(TAG, "acquireWifiLockLocked: " + wifiLock); mLocks.addLock(wifiLock); int uid = Binder.getCallingUid(); Loading Loading @@ -1751,6 +1753,9 @@ public class WifiService extends IWifiManager.Stub { boolean hadLock; WifiLock wifiLock = mLocks.removeLock(lock); Log.d(TAG, "releaseWifiLockLocked: " + wifiLock); hadLock = (wifiLock != null); if (hadLock) { Loading @@ -1772,7 +1777,7 @@ public class WifiService extends IWifiManager.Stub { Binder.restoreCallingIdentity(ident); } } // TODO - should this only happen if you hadLock? updateWifiState(); return hadLock; } Loading Loading
services/java/com/android/server/WifiService.java +9 −4 Original line number Diff line number Diff line Loading @@ -1716,6 +1716,8 @@ public class WifiService extends IWifiManager.Stub { } private boolean acquireWifiLockLocked(WifiLock wifiLock) { Log.d(TAG, "acquireWifiLockLocked: " + wifiLock); mLocks.addLock(wifiLock); int uid = Binder.getCallingUid(); Loading Loading @@ -1751,6 +1753,9 @@ public class WifiService extends IWifiManager.Stub { boolean hadLock; WifiLock wifiLock = mLocks.removeLock(lock); Log.d(TAG, "releaseWifiLockLocked: " + wifiLock); hadLock = (wifiLock != null); if (hadLock) { Loading @@ -1772,7 +1777,7 @@ public class WifiService extends IWifiManager.Stub { Binder.restoreCallingIdentity(ident); } } // TODO - should this only happen if you hadLock? updateWifiState(); return hadLock; } Loading