diff options
author | Etan Cohen <etancohen@google.com> | 2019-01-15 14:48:35 -0800 |
---|---|---|
committer | xshu <xshu@google.com> | 2019-01-18 15:52:45 -0800 |
commit | aeaf59e186fedc91679aeb2d22fd5dc9e35636f2 (patch) | |
tree | 55d5bbf3416e4c49e88d013017d9b529cfb9c57e /tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTestUtil.java | |
parent | f82ab892db971df60072bf24530c37e2f00b5151 (diff) | |
download | android_frameworks_opt_net_wifi-aeaf59e186fedc91679aeb2d22fd5dc9e35636f2.tar.gz android_frameworks_opt_net_wifi-aeaf59e186fedc91679aeb2d22fd5dc9e35636f2.tar.bz2 android_frameworks_opt_net_wifi-aeaf59e186fedc91679aeb2d22fd5dc9e35636f2.zip |
[WIFI] Add exemptions to allow DO/PO/Carrier apps to obtain randomized MAC address
The randomized MAC address is not available to apps (exceptions are
for other parts of the stack and Settings). Add exemptions for DO,
PO, and Carrier apps (Carrier apps only for configs which they
created).
Bug: 112205095
Test: atest com.android.server.wifi
Change-Id: I6cc0cf59a2134963bd1003769bf0eba26a0bf344
Diffstat (limited to 'tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTestUtil.java')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTestUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTestUtil.java b/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTestUtil.java index 5519cf045..6bf5c04c2 100644 --- a/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTestUtil.java +++ b/tests/wifitests/src/com/android/server/wifi/WifiNetworkSelectorTestUtil.java @@ -202,9 +202,9 @@ public class WifiNetworkSelectorTestUtil { return null; } }); - when(wifiConfigManager.getSavedNetworks()) + when(wifiConfigManager.getSavedNetworks(anyInt())) .then(new AnswerWithArguments() { - public List<WifiConfiguration> answer() { + public List<WifiConfiguration> answer(int uid) { List<WifiConfiguration> savedNetworks = new ArrayList<>(); for (int netId = 0; netId < configs.length; netId++) { savedNetworks.add(new WifiConfiguration(configs[netId])); |