Search in sources :

Example 11 with IpReachabilityEvent

use of android.net.metrics.IpReachabilityEvent in project android_frameworks_base by DirtyUnicorns.

the class IpReachabilityMonitor method logEvent.

private void logEvent(int probeType, int errorCode) {
    int eventType = probeType | (errorCode & 0xff);
    mMetricsLog.log(new IpReachabilityEvent(mInterfaceName, eventType));
}
Also used : IpReachabilityEvent(android.net.metrics.IpReachabilityEvent)

Example 12 with IpReachabilityEvent

use of android.net.metrics.IpReachabilityEvent in project android_frameworks_base by ResurrectionRemix.

the class IpReachabilityMonitor method logNudFailed.

private void logNudFailed(ProvisioningChange delta) {
    long duration = SystemClock.elapsedRealtime() - mLastProbeTimeMs;
    boolean isFromProbe = (duration < getProbeWakeLockDuration());
    boolean isProvisioningLost = (delta == ProvisioningChange.LOST_PROVISIONING);
    int eventType = IpReachabilityEvent.nudFailureEventType(isFromProbe, isProvisioningLost);
    mMetricsLog.log(new IpReachabilityEvent(mInterfaceName, eventType));
}
Also used : IpReachabilityEvent(android.net.metrics.IpReachabilityEvent)

Aggregations

IpReachabilityEvent (android.net.metrics.IpReachabilityEvent)12 ApfStats (android.net.metrics.ApfStats)4 DefaultNetworkEvent (android.net.metrics.DefaultNetworkEvent)4 DhcpClientEvent (android.net.metrics.DhcpClientEvent)4 IpConnectivityLog (android.net.metrics.IpConnectivityLog)4 IpManagerEvent (android.net.metrics.IpManagerEvent)4 RaEvent (android.net.metrics.RaEvent)4 ValidationProbeEvent (android.net.metrics.ValidationProbeEvent)4 Parcelable (android.os.Parcelable)4 SmallTest (android.test.suitebuilder.annotation.SmallTest)3