summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Qiu <zqiu@google.com>2016-10-25 11:39:45 -0700
committerPeter Qiu <zqiu@google.com>2016-11-01 09:12:41 -0700
commit3ebf0b17fd1cdd3a0ef22d9e199c1686c01dcc9f (patch)
tree9498e1a99f7e64fdd90cd481b08614b563090f4f
parentb4de659a6d54c1633cf95fc9763e9a9d81a46916 (diff)
hotspot2: stub implementation of Passpoint APIs
Bug: 32282711 Change-Id: If1b9801c0fe021b7b5817f51455dd5e0f7404b2c Test: None
-rw-r--r--service/java/com/android/server/wifi/WifiServiceImpl.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiServiceImpl.java b/service/java/com/android/server/wifi/WifiServiceImpl.java
index 3539cc249..56772e4a4 100644
--- a/service/java/com/android/server/wifi/WifiServiceImpl.java
+++ b/service/java/com/android/server/wifi/WifiServiceImpl.java
@@ -56,6 +56,7 @@ import android.net.wifi.WifiInfo;
import android.net.wifi.WifiLinkLayerStats;
import android.net.wifi.WifiManager;
import android.net.wifi.WifiScanner;
+import android.net.wifi.hotspot2.PasspointConfiguration;
import android.os.AsyncTask;
import android.os.BatteryStats;
import android.os.Binder;
@@ -1012,6 +1013,41 @@ public class WifiServiceImpl extends IWifiManager.Stub {
}
/**
+ * Add a Passpoint configuration.
+ *
+ * @param config The Passpoint configuration to be added
+ * @return true on success or false on failure
+ */
+ @Override
+ public boolean addPasspointConfiguration(PasspointConfiguration config) {
+ // TO BE IMPLEMENTED.
+ return true;
+ }
+
+ /**
+ * Remove the Passpoint configuration identified by its FQDN (Fully Qualified Domain Name).
+ *
+ * @param fqdn The FQDN of the Passpoint configuration to be removed
+ * @return true on success or false on failure
+ */
+ @Override
+ public boolean removePasspointConfiguration(String fqdn) {
+ // TO BE IMPLEMENTED.
+ return true;
+ }
+
+ /**
+ * Return the list of the installed Passpoint configurations.
+ *
+ * @return A list of {@link PasspointConfiguration} or null
+ */
+ @Override
+ public List<PasspointConfiguration> getPasspointConfigurations() {
+ // TO BE IMPLEMENTED.
+ return null;
+ }
+
+ /**
* Add a Hotspot 2.0 release 2 Management Object
* @param mo The MO in XML form
* @return -1 for failure