Introduce Status and Failure code for Provisioning
Passpoint Provisioning status and failure codes to be used by callback
API to provide information to the caller about the provisioning flow
Bug: 67914151
Test: Unit test
Change-Id: If1bf28ac8e2e0b7d8141d1b9cb12e3a6e46cb126
diff --git a/framework/java/android/net/wifi/hotspot2/ProvisioningCallback.java b/framework/java/android/net/wifi/hotspot2/ProvisioningCallback.java
index 93d0d24..8b86cdd 100644
--- a/framework/java/android/net/wifi/hotspot2/ProvisioningCallback.java
+++ b/framework/java/android/net/wifi/hotspot2/ProvisioningCallback.java
@@ -26,6 +26,24 @@
*/
public abstract class ProvisioningCallback {
+ /**
+ * The reason code for Provisioning Failure due to connection failure to OSU AP.
+ * @hide
+ */
+ public static final int OSU_FAILURE_AP_CONNECTION = 1;
+
+ /**
+ * The status code for Provisioning flow to indicate connecting to OSU AP
+ * @hide
+ */
+ public static final int OSU_STATUS_AP_CONNECTING = 1;
+
+ /**
+ * The status code for Provisioning flow to indicate connected to OSU AP
+ * @hide
+ */
+ public static final int OSU_STATUS_AP_CONNECTED = 2;
+
/**
* Provisioning status for OSU failure
* @param status indicates error condition