Connectivity metrics: serialize networkId, transports, ifname
This patch adds translation from ConnectivityMetricsEvent to IpConnectivityEvent of recently added fields: - top-level network id - top-level ifname - transports Also adds inference of link layer from transports or ifname. At the moment these new fields are not populated in ConnectivityMetricsEvent. Follow-up patches will fill this gap for the events of the android.net.metrics package. Test: new unit tests, $ runtest frameworks-net passes Bug: 34901696 Change-Id: I563a6a3183470bdfaabb7c781a1beaf6b1058bf0
This commit is contained in:
@@ -423,8 +423,10 @@ public final class NetworkCapabilities implements Parcelable {
|
||||
*/
|
||||
public static final int TRANSPORT_WIFI_AWARE = 5;
|
||||
|
||||
private static final int MIN_TRANSPORT = TRANSPORT_CELLULAR;
|
||||
private static final int MAX_TRANSPORT = TRANSPORT_WIFI_AWARE;
|
||||
/** @hide */
|
||||
public static final int MIN_TRANSPORT = TRANSPORT_CELLULAR;
|
||||
/** @hide */
|
||||
public static final int MAX_TRANSPORT = TRANSPORT_WIFI_AWARE;
|
||||
|
||||
/**
|
||||
* Adds the given transport type to this {@code NetworkCapability} instance.
|
||||
|
||||
Reference in New Issue
Block a user