Lines Matching defs:WifiLock
43 private final List<WifiLock> mWifiLocks = new ArrayList<>();
61 * is a valid WifiLock mode.
63 * @param tag String passed to WifiManager.WifiLock
80 return addLock(new WifiLock(lockMode, tag, binder, ws));
85 * the caller and if allowed, releases the underlying WifiLock(s).
119 * Method to create a WorkSource containing all active WifiLock WorkSources.
123 for (WifiLock lock : mWifiLocks) {
133 * @param ws WorkSource to add to the existing WifiLock(s).
141 WifiLock wl = findLockByBinder(binder);
183 private synchronized boolean addLock(WifiLock lock) {
220 private synchronized WifiLock removeLock(IBinder binder) {
221 WifiLock lock = findLockByBinder(binder);
230 WifiLock wifiLock = removeLock(binder);
262 private synchronized WifiLock findLockByBinder(IBinder binder) {
263 for (WifiLock lock : mWifiLocks) {
280 for (WifiLock lock : mWifiLocks) {
294 private class WifiLock implements IBinder.DeathRecipient {
301 WifiLock(int lockMode, String tag, IBinder binder, WorkSource ws) {
335 return "WifiLock{" + this.mTag + " type=" + this.mMode + " uid=" + mUid