diff options
| author | 2019-01-22 22:03:44 +0000 | |
|---|---|---|
| committer | 2019-01-22 22:03:44 +0000 | |
| commit | eb7c53718ae675d65ff726edb748ac27a74c4fd2 (patch) | |
| tree | 7b272775c6582a5b1802474eb3c5b6d66dc63a21 | |
| parent | 2a2b4eec35d25d9928b42fdad0d49ad7368fd84a (diff) | |
| parent | 1e6b1860231ec42434d17e1d857a09ca30f790f1 (diff) | |
Merge "Migrate ICaptivePortal to stable AIDL"
| -rw-r--r-- | Android.bp | 2 | ||||
| -rw-r--r-- | api/system-current.txt | 2 | ||||
| -rw-r--r-- | api/test-current.txt | 2 | ||||
| -rw-r--r-- | core/java/android/net/CaptivePortal.java | 4 | ||||
| -rw-r--r-- | core/java/android/net/ICaptivePortal.aidl | 5 |
5 files changed, 11 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp index a21cd2803267..416613d03e79 100644 --- a/Android.bp +++ b/Android.bp @@ -187,7 +187,6 @@ java_defaults { "core/java/android/hardware/radio/ITunerCallback.aidl", "core/java/android/hardware/soundtrigger/IRecognitionStatusCallback.aidl", "core/java/android/hardware/usb/IUsbManager.aidl", - "core/java/android/net/ICaptivePortal.aidl", "core/java/android/net/IConnectivityManager.aidl", "core/java/android/net/IIpConnectivityMetrics.aidl", "core/java/android/net/IEthernetManager.aidl", @@ -826,6 +825,7 @@ aidl_interface { srcs: [ "core/java/android/net/ApfCapabilitiesParcelable.aidl", "core/java/android/net/DhcpResultsParcelable.aidl", + "core/java/android/net/ICaptivePortal.aidl", "core/java/android/net/INetworkMonitor.aidl", "core/java/android/net/INetworkMonitorCallbacks.aidl", "core/java/android/net/IIpMemoryStore.aidl", diff --git a/api/system-current.txt b/api/system-current.txt index b13a391067c7..6d2473673051 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -3025,6 +3025,8 @@ package android.metrics { package android.net { public class CaptivePortal implements android.os.Parcelable { + ctor public CaptivePortal(android.os.IBinder); + method public void useNetwork(); field public static final int APP_RETURN_DISMISSED = 0; // 0x0 field public static final int APP_RETURN_UNWANTED = 1; // 0x1 field public static final int APP_RETURN_WANTED_AS_IS = 2; // 0x2 diff --git a/api/test-current.txt b/api/test-current.txt index 1c00cc4ae70c..d5ab31f9c74c 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -599,6 +599,8 @@ package android.media.audiofx { package android.net { public class CaptivePortal implements android.os.Parcelable { + ctor public CaptivePortal(android.os.IBinder); + method public void useNetwork(); field public static final int APP_RETURN_DISMISSED = 0; // 0x0 field public static final int APP_RETURN_UNWANTED = 1; // 0x1 field public static final int APP_RETURN_WANTED_AS_IS = 2; // 0x2 diff --git a/core/java/android/net/CaptivePortal.java b/core/java/android/net/CaptivePortal.java index 4047068f1c7b..3b0126673779 100644 --- a/core/java/android/net/CaptivePortal.java +++ b/core/java/android/net/CaptivePortal.java @@ -45,6 +45,8 @@ public class CaptivePortal implements Parcelable { private final IBinder mBinder; /** @hide */ + @SystemApi + @TestApi public CaptivePortal(IBinder binder) { mBinder = binder; } @@ -107,6 +109,8 @@ public class CaptivePortal implements Parcelable { * connectivity for apps because the captive portal is still in place. * @hide */ + @SystemApi + @TestApi public void useNetwork() { try { ICaptivePortal.Stub.asInterface(mBinder).appResponse(APP_RETURN_WANTED_AS_IS); diff --git a/core/java/android/net/ICaptivePortal.aidl b/core/java/android/net/ICaptivePortal.aidl index a013e79106e7..56ae57dc0e8d 100644 --- a/core/java/android/net/ICaptivePortal.aidl +++ b/core/java/android/net/ICaptivePortal.aidl @@ -20,7 +20,6 @@ package android.net; * Interface to inform NetworkMonitor of decisions of app handling captive portal. * @hide */ -interface ICaptivePortal -{ - oneway void appResponse(int response); +oneway interface ICaptivePortal { + void appResponse(int response); } |