Merge changes Ieef54d84,Ica3e88c2 am: 491f53523a am: 8e4ce11318

am: c904972acd

Change-Id: Idcc18b95951c566335431a493ed7b9d49477a4c0
This commit is contained in:
Remi NGUYEN VAN
2019-01-22 05:32:01 -08:00
committed by android-build-merger
10 changed files with 62 additions and 46 deletions

View File

@@ -21,6 +21,7 @@ import android.annotation.TestApi;
import android.annotation.UnsupportedAppUsage;
import android.net.ConnectivityMetricsEvent;
import android.net.IIpConnectivityMetrics;
import android.net.Network;
import android.os.Parcelable;
import android.os.RemoteException;
import android.os.ServiceManager;
@@ -126,6 +127,18 @@ public class IpConnectivityLog {
return log(ev);
}
/**
* Log an IpConnectivity event.
* @param network the network associated with the event.
* @param transports the current transports of the network associated with the event, as defined
* in NetworkCapabilities.
* @param data is a Parcelable instance representing the event.
* @return true if the event was successfully logged.
*/
public boolean log(Network network, int[] transports, Event data) {
return log(network.netId, transports, data);
}
/**
* Log an IpConnectivity event.
* @param netid the id of the network associated with the event.

View File

@@ -15,6 +15,8 @@
*/
package android.os;
import android.annotation.SystemApi;
/**
* An exception specific to a service.
*
@@ -28,6 +30,7 @@ package android.os;
*
* @hide
*/
@SystemApi
public class ServiceSpecificException extends RuntimeException {
public final int errorCode;