Loading wifi/java/android/net/wifi/passpoint/IWifiPasspointManager.aidl +11 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package android.net.wifi.passpoint; import android.net.wifi.ScanResult; import android.net.wifi.passpoint.WifiPasspointPolicy; import android.net.wifi.passpoint.WifiPasspointCredential; import android.os.Messenger; /** Loading @@ -28,7 +29,17 @@ import android.os.Messenger; interface IWifiPasspointManager { Messenger getMessenger(); int getPasspointState(); List<WifiPasspointPolicy> requestCredentialMatch(in List<ScanResult> requested); List<WifiPasspointCredential> getCredentials(); boolean addCredential(in WifiPasspointCredential cred); boolean updateCredential(in WifiPasspointCredential cred); boolean removeCredential(in WifiPasspointCredential cred); } wifi/java/android/net/wifi/passpoint/WifiPasspointCredential.java +1 −1 Original line number Diff line number Diff line Loading @@ -333,7 +333,7 @@ public class WifiPasspointCredential implements Parcelable { * Set the fully qualified domain name (FQDN) of this Passpoint credential. * @param fqdn FQDN */ public void setFqdn(String fqdn) { public void setHomeFqdn(String fqdn) { mHomeSpFqdn = fqdn; } Loading wifi/java/android/net/wifi/passpoint/WifiPasspointManager.java +20 −4 Original line number Diff line number Diff line Loading @@ -496,8 +496,12 @@ public class WifiPasspointManager { * @return The list of credentials */ public List<WifiPasspointCredential> getCredentials() { try { return mService.getCredentials(); } catch (RemoteException e) { return null; } } /** * Add a new Passpoint credential. Loading @@ -506,7 +510,11 @@ public class WifiPasspointManager { * @return {@code true} if the operation succeeds, {@code false} otherwise */ public boolean addCredential(WifiPasspointCredential cred) { return true; try { return mService.addCredential(cred); } catch (RemoteException e) { return false; } } /** Loading @@ -517,7 +525,11 @@ public class WifiPasspointManager { * @return {@code true} if the operation succeeds, {@code false} otherwise */ public boolean updateCredential(WifiPasspointCredential cred) { return true; try { return mService.updateCredential(cred); } catch (RemoteException e) { return false; } } /** Loading @@ -528,7 +540,11 @@ public class WifiPasspointManager { * @return {@code true} if the operation succeeds, {@code false} otherwise */ public boolean removeCredential(WifiPasspointCredential cred) { return true; try { return mService.removeCredential(cred); } catch (RemoteException e) { return false; } } public void startOsu(Channel c, WifiPasspointOsuProvider osu, OsuRemListener listener) { Loading Loading
wifi/java/android/net/wifi/passpoint/IWifiPasspointManager.aidl +11 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package android.net.wifi.passpoint; import android.net.wifi.ScanResult; import android.net.wifi.passpoint.WifiPasspointPolicy; import android.net.wifi.passpoint.WifiPasspointCredential; import android.os.Messenger; /** Loading @@ -28,7 +29,17 @@ import android.os.Messenger; interface IWifiPasspointManager { Messenger getMessenger(); int getPasspointState(); List<WifiPasspointPolicy> requestCredentialMatch(in List<ScanResult> requested); List<WifiPasspointCredential> getCredentials(); boolean addCredential(in WifiPasspointCredential cred); boolean updateCredential(in WifiPasspointCredential cred); boolean removeCredential(in WifiPasspointCredential cred); }
wifi/java/android/net/wifi/passpoint/WifiPasspointCredential.java +1 −1 Original line number Diff line number Diff line Loading @@ -333,7 +333,7 @@ public class WifiPasspointCredential implements Parcelable { * Set the fully qualified domain name (FQDN) of this Passpoint credential. * @param fqdn FQDN */ public void setFqdn(String fqdn) { public void setHomeFqdn(String fqdn) { mHomeSpFqdn = fqdn; } Loading
wifi/java/android/net/wifi/passpoint/WifiPasspointManager.java +20 −4 Original line number Diff line number Diff line Loading @@ -496,8 +496,12 @@ public class WifiPasspointManager { * @return The list of credentials */ public List<WifiPasspointCredential> getCredentials() { try { return mService.getCredentials(); } catch (RemoteException e) { return null; } } /** * Add a new Passpoint credential. Loading @@ -506,7 +510,11 @@ public class WifiPasspointManager { * @return {@code true} if the operation succeeds, {@code false} otherwise */ public boolean addCredential(WifiPasspointCredential cred) { return true; try { return mService.addCredential(cred); } catch (RemoteException e) { return false; } } /** Loading @@ -517,7 +525,11 @@ public class WifiPasspointManager { * @return {@code true} if the operation succeeds, {@code false} otherwise */ public boolean updateCredential(WifiPasspointCredential cred) { return true; try { return mService.updateCredential(cred); } catch (RemoteException e) { return false; } } /** Loading @@ -528,7 +540,11 @@ public class WifiPasspointManager { * @return {@code true} if the operation succeeds, {@code false} otherwise */ public boolean removeCredential(WifiPasspointCredential cred) { return true; try { return mService.removeCredential(cred); } catch (RemoteException e) { return false; } } public void startOsu(Channel c, WifiPasspointOsuProvider osu, OsuRemListener listener) { Loading