diff options
author | Ningyuan Wang <nywang@google.com> | 2017-12-19 10:17:13 -0800 |
---|---|---|
committer | xshu <xshu@google.com> | 2018-03-19 17:01:16 -0700 |
commit | cd1a9faab17a14532425a10543429b68790309af (patch) | |
tree | 157c9d3fe71f2c7104ddca76b34f9b36f5e3842e /service | |
parent | 9e5ab57cbbcb2871e8675fe0a241aa7591a5ed5e (diff) |
Remove the use of ScanSettings
This is an internal cleanup patch.
Bug: 68388459
Test: compile, unit tests
Test: manual test that wifi scan still works
Change-Id: Iaa5bd5d8c78bc0adea3d29a0b2970a714743834f
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiServiceImpl.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/service/java/com/android/server/wifi/WifiServiceImpl.java b/service/java/com/android/server/wifi/WifiServiceImpl.java index a88b20d62..43c549388 100644 --- a/service/java/com/android/server/wifi/WifiServiceImpl.java +++ b/service/java/com/android/server/wifi/WifiServiceImpl.java @@ -63,7 +63,6 @@ import android.net.ip.IpClient; import android.net.wifi.ISoftApCallback; import android.net.wifi.IWifiManager; import android.net.wifi.ScanResult; -import android.net.wifi.ScanSettings; import android.net.wifi.WifiActivityEnergyInfo; import android.net.wifi.WifiConfiguration; import android.net.wifi.WifiInfo; @@ -605,13 +604,10 @@ public class WifiServiceImpl extends IWifiManager.Stub { * see {@link android.net.wifi.WifiManager#startScan} * and {@link android.net.wifi.WifiManager#startCustomizedScan} * - * @param settings If null, use default parameter, i.e. full scan. - * @param workSource If null, all blame is given to the calling uid. * @param packageName Package name of the app that requests wifi scan. - * TODO(b/68388459): Remove |settings| & |worksource| */ @Override - public void startScan(ScanSettings settings, WorkSource workSource, String packageName) { + public void startScan(String packageName) { if (enforceChangePermission(packageName) != MODE_ALLOWED) { return; } @@ -693,7 +689,7 @@ public class WifiServiceImpl extends IWifiManager.Stub { // Someone requested a scan while we were idle; do a full scan now. // A security check of the caller's identity was made when the request arrived via // Binder. Now we'll pass the current process's identity to startScan(). - startScan(null, null, mContext.getOpPackageName()); + startScan(mContext.getOpPackageName()); } } |