Loading wifi/java/android/net/wifi/IWifiManager.aidl +3 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.net.wifi; import android.content.pm.ParceledListSlice; import android.net.wifi.hotspot2.OsuProvider; import android.net.wifi.hotspot2.PasspointConfiguration; import android.net.wifi.WifiConfiguration; Loading Loading @@ -61,6 +62,8 @@ interface IWifiManager WifiConfiguration getMatchingWifiConfig(in ScanResult scanResult); List<OsuProvider> getMatchingOsuProviders(in ScanResult scanResult); int addOrUpdateNetwork(in WifiConfiguration config); boolean addOrUpdatePasspointConfiguration(in PasspointConfiguration config); Loading wifi/java/android/net/wifi/WifiManager.java +20 −3 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ import android.net.DhcpInfo; import android.net.Network; import android.net.NetworkCapabilities; import android.net.NetworkRequest; import android.net.wifi.hotspot2.OsuProvider; import android.net.wifi.hotspot2.PasspointConfiguration; import android.os.Binder; import android.os.Build; Loading Loading @@ -1000,11 +1001,9 @@ public class WifiManager { /** * Returns a WifiConfiguration matching this ScanResult * * An {@link UnsupportedOperationException} will be thrown if Passpoint is not enabled * on the device. * * @param scanResult scanResult that represents the BSSID * @return {@link WifiConfiguration} that matches this BSSID or null * @throws UnsupportedOperationException if Passpoint is not enabled on the device. * @hide */ public WifiConfiguration getMatchingWifiConfig(ScanResult scanResult) { Loading @@ -1015,6 +1014,24 @@ public class WifiManager { } } /** * Returns a list of Hotspot 2.0 OSU (Online Sign-Up) providers associated with the given AP. * * An empty list will be returned if no match is found. * * @param scanResult scanResult that represents the BSSID * @return list of {@link OsuProvider} * @throws UnsupportedOperationException if Passpoint is not enabled on the device. * @hide */ public List<OsuProvider> getMatchingOsuProviders(ScanResult scanResult) { try { return mService.getMatchingOsuProviders(scanResult); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } /** * Add a new network description to the set of configured networks. * The {@code networkId} field of the supplied configuration object Loading Loading
wifi/java/android/net/wifi/IWifiManager.aidl +3 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.net.wifi; import android.content.pm.ParceledListSlice; import android.net.wifi.hotspot2.OsuProvider; import android.net.wifi.hotspot2.PasspointConfiguration; import android.net.wifi.WifiConfiguration; Loading Loading @@ -61,6 +62,8 @@ interface IWifiManager WifiConfiguration getMatchingWifiConfig(in ScanResult scanResult); List<OsuProvider> getMatchingOsuProviders(in ScanResult scanResult); int addOrUpdateNetwork(in WifiConfiguration config); boolean addOrUpdatePasspointConfiguration(in PasspointConfiguration config); Loading
wifi/java/android/net/wifi/WifiManager.java +20 −3 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ import android.net.DhcpInfo; import android.net.Network; import android.net.NetworkCapabilities; import android.net.NetworkRequest; import android.net.wifi.hotspot2.OsuProvider; import android.net.wifi.hotspot2.PasspointConfiguration; import android.os.Binder; import android.os.Build; Loading Loading @@ -1000,11 +1001,9 @@ public class WifiManager { /** * Returns a WifiConfiguration matching this ScanResult * * An {@link UnsupportedOperationException} will be thrown if Passpoint is not enabled * on the device. * * @param scanResult scanResult that represents the BSSID * @return {@link WifiConfiguration} that matches this BSSID or null * @throws UnsupportedOperationException if Passpoint is not enabled on the device. * @hide */ public WifiConfiguration getMatchingWifiConfig(ScanResult scanResult) { Loading @@ -1015,6 +1014,24 @@ public class WifiManager { } } /** * Returns a list of Hotspot 2.0 OSU (Online Sign-Up) providers associated with the given AP. * * An empty list will be returned if no match is found. * * @param scanResult scanResult that represents the BSSID * @return list of {@link OsuProvider} * @throws UnsupportedOperationException if Passpoint is not enabled on the device. * @hide */ public List<OsuProvider> getMatchingOsuProviders(ScanResult scanResult) { try { return mService.getMatchingOsuProviders(scanResult); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } /** * Add a new network description to the set of configured networks. * The {@code networkId} field of the supplied configuration object Loading