Merge "Expose netId by adding getter API" am: 461f81faac am: d0484fa1dd

Change-Id: I45a3b531454d7555ece5483846047cfdb6aefc17
This commit is contained in:
Chalard Jean
2020-03-25 02:59:32 +00:00
committed by Automerger Merge Worker

View File

@@ -65,7 +65,7 @@ public class Network implements Parcelable {
* The unique id of the network.
* @hide
*/
@SystemApi
@UnsupportedAppUsage
public final int netId;
// Objects used to perform per-network operations such as getSocketFactory
@@ -170,6 +170,17 @@ public class Network implements Parcelable {
return new Network(netId, true);
}
/**
* Get the unique id of the network.
*
* @hide
*/
@TestApi
@SystemApi
public int getNetId() {
return netId;
}
/**
* Returns a netid marked with the Private DNS bypass flag.
*