Merge "DO NOT MERGE. Wifi service now blames apps for its wake lock use." into gingerbread

This commit is contained in:
Dianne Hackborn
2010-09-20 17:03:15 -07:00
committed by Android (Google) Code Review

View File

@@ -145,7 +145,7 @@ public class WifiService extends IWifiManager.Stub {
*/
private static final long DEFAULT_IDLE_MILLIS = 15 * 60 * 1000; /* 15 minutes */
private static final String WAKELOCK_TAG = "WifiService";
private static final String WAKELOCK_TAG = "*wifi*";
/**
* The maximum amount of time to hold the wake lock after a disconnect
@@ -1825,6 +1825,7 @@ public class WifiService extends IWifiManager.Stub {
}
}
mWifiStateTracker.updateBatteryWorkSourceLocked(mTmpWorkSource);
sWakeLock.setWorkSource(mTmpWorkSource);
}
}