Searched defs:WifiLock (Results 1 - 2 of 2) sorted by relevance
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiLockManager.java | 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 loc 294 private class WifiLock implements IBinder.DeathRecipient { class in class:WifiLockManager 301 WifiLock(int lockMode, String tag, IBinder binder, WorkSource ws) { method in class:WifiLockManager.WifiLock [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiManager.java | 3105 * Acquiring a WifiLock will keep the radio on until the lock is released. Multiple 3109 * Before using a WifiLock, consider carefully if your application requires Wi-Fi access, or 3111 * files should hold a WifiLock to ensure that the download will complete, but a program whose 3112 * network usage is occasional or low-bandwidth should not hold a WifiLock to avoid adversely 3119 * Any application using a WifiLock must request the {@code android.permission.WAKE_LOCK} 3122 public class WifiLock { class in class:WifiManager 3131 private WifiLock(int lockType, String tag) { method in class:WifiManager.WifiLock 3143 * If this WifiLock is reference-counted, each call to {@code acquire} will increment the 3147 * If this WifiLock is not reference-counted, the first call to {@code acquire} will lock 3175 * If this WifiLock i [all...] |
Completed in 89 milliseconds