Merge "Migrate ICaptivePortal to stable AIDL"

am: eb7c53718a

Change-Id: Id0844ec4d438dcc1f6c1028552dd21da6bd76584
This commit is contained in:
Remi NGUYEN VAN
2019-01-22 14:25:09 -08:00
committed by android-build-merger

View File

@@ -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);