Expose VpnTransportInfo as module-lib API.
This information originates in non-mainline system server code and needs to be passed to the connectivity mainline code. Bug: 173331190 Test: already covered by CTS tests Change-Id: Ic612b6a51f7ec13e2213c8754312cf716130c876
This commit is contained in:
@@ -16,8 +16,10 @@
|
||||
|
||||
package android.net;
|
||||
|
||||
import static android.annotation.SystemApi.Client.MODULE_LIBRARIES;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.SystemApi;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.SparseArray;
|
||||
@@ -26,7 +28,15 @@ import com.android.internal.util.MessageUtils;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/** @hide */
|
||||
/**
|
||||
* Container for VPN-specific transport information.
|
||||
*
|
||||
* @see android.net.TransportInfo
|
||||
* @see NetworkCapabilities#getTransportInfo()
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi(client = MODULE_LIBRARIES)
|
||||
public final class VpnTransportInfo implements TransportInfo, Parcelable {
|
||||
private static final SparseArray<String> sTypeToString =
|
||||
MessageUtils.findMessageNames(new Class[]{VpnManager.class}, new String[]{"TYPE_VPN_"});
|
||||
Reference in New Issue
Block a user