Merge changes from topic 'HS2 API Cleanup'
* changes: wifi: remove unused hidden Hotspot 2.0 Release 1 API wifi: remove hidden unused Hotspot 2.0 Release 2 APIs
This commit is contained in:
@@ -59,11 +59,6 @@ interface IWifiManager
|
|||||||
|
|
||||||
int addOrUpdateNetwork(in WifiConfiguration config);
|
int addOrUpdateNetwork(in WifiConfiguration config);
|
||||||
|
|
||||||
int addPasspointManagementObject(String mo);
|
|
||||||
|
|
||||||
int modifyPasspointManagementObject(String fqdn,
|
|
||||||
in List<PasspointManagementObjectDefinition> mos);
|
|
||||||
|
|
||||||
boolean addPasspointConfiguration(in PasspointConfiguration config);
|
boolean addPasspointConfiguration(in PasspointConfiguration config);
|
||||||
|
|
||||||
boolean removePasspointConfiguration(in String fqdn);
|
boolean removePasspointConfiguration(in String fqdn);
|
||||||
@@ -132,8 +127,6 @@ interface IWifiManager
|
|||||||
|
|
||||||
WifiConfiguration getWifiApConfiguration();
|
WifiConfiguration getWifiApConfiguration();
|
||||||
|
|
||||||
WifiConfiguration buildWifiConfig(String uriString, String mimeType, in byte[] data);
|
|
||||||
|
|
||||||
void setWifiApConfiguration(in WifiConfiguration wifiConfig);
|
void setWifiApConfiguration(in WifiConfiguration wifiConfig);
|
||||||
|
|
||||||
Messenger getWifiServiceMessenger();
|
Messenger getWifiServiceMessenger();
|
||||||
|
|||||||
@@ -839,36 +839,6 @@ public class WifiManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Add a Hotspot 2.0 release 2 Management Object
|
|
||||||
* @param mo The MO in XML form
|
|
||||||
* @return -1 for failure
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public int addPasspointManagementObject(String mo) {
|
|
||||||
try {
|
|
||||||
return mService.addPasspointManagementObject(mo);
|
|
||||||
} catch (RemoteException e) {
|
|
||||||
throw e.rethrowFromSystemServer();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Modify a Hotspot 2.0 release 2 Management Object
|
|
||||||
* @param fqdn The FQDN of the service provider
|
|
||||||
* @param mos A List of MO definitions to be updated
|
|
||||||
* @return the number of nodes updated, or -1 for failure
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public int modifyPasspointManagementObject(String fqdn,
|
|
||||||
List<PasspointManagementObjectDefinition> mos) {
|
|
||||||
try {
|
|
||||||
return mService.modifyPasspointManagementObject(fqdn, mos);
|
|
||||||
} catch (RemoteException e) {
|
|
||||||
throw e.rethrowFromSystemServer();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a Passpoint configuration. The configuration provides a credential
|
* Add a Passpoint configuration. The configuration provides a credential
|
||||||
* for connecting to Passpoint networks that are operated by the Passpoint
|
* for connecting to Passpoint networks that are operated by the Passpoint
|
||||||
@@ -1625,20 +1595,6 @@ public class WifiManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Builds a WifiConfiguration from Hotspot 2.0 MIME file.
|
|
||||||
* @return AP details in WifiConfiguration
|
|
||||||
*
|
|
||||||
* @hide Dont open yet
|
|
||||||
*/
|
|
||||||
public WifiConfiguration buildWifiConfig(String uriString, String mimeType, byte[] data) {
|
|
||||||
try {
|
|
||||||
return mService.buildWifiConfig(uriString, mimeType, data);
|
|
||||||
} catch (RemoteException e) {
|
|
||||||
throw e.rethrowFromSystemServer();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the Wi-Fi AP Configuration.
|
* Sets the Wi-Fi AP Configuration.
|
||||||
* @return {@code true} if the operation succeeded, {@code false} otherwise
|
* @return {@code true} if the operation succeeded, {@code false} otherwise
|
||||||
|
|||||||
Reference in New Issue
Block a user