Search in sources :

Example 6 with IpManagerEvent

use of android.net.metrics.IpManagerEvent in project platform_frameworks_base by android.

the class IpManager method recordMetric.

private void recordMetric(final int type) {
    if (mStartTimeMillis <= 0) {
        Log.wtf(mTag, "Start time undefined!");
    }
    final long duration = SystemClock.elapsedRealtime() - mStartTimeMillis;
    mMetricsLog.log(new IpManagerEvent(mInterfaceName, type, duration));
}
Also used : IpManagerEvent(android.net.metrics.IpManagerEvent)

Example 7 with IpManagerEvent

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

the class IpManager method recordMetric.

private void recordMetric(final int type) {
    if (mStartTimeMillis <= 0) {
        Log.wtf(mTag, "Start time undefined!");
    }
    final long duration = SystemClock.elapsedRealtime() - mStartTimeMillis;
    mMetricsLog.log(new IpManagerEvent(mInterfaceName, type, duration));
}
Also used : IpManagerEvent(android.net.metrics.IpManagerEvent)

Example 8 with IpManagerEvent

use of android.net.metrics.IpManagerEvent in project android_frameworks_base by crdroidandroid.

the class IpManager method recordMetric.

private void recordMetric(final int type) {
    if (mStartTimeMillis <= 0) {
        Log.wtf(mTag, "Start time undefined!");
    }
    final long duration = SystemClock.elapsedRealtime() - mStartTimeMillis;
    mMetricsLog.log(new IpManagerEvent(mInterfaceName, type, duration));
}
Also used : IpManagerEvent(android.net.metrics.IpManagerEvent)

Aggregations

IpManagerEvent (android.net.metrics.IpManagerEvent)8 ApfStats (android.net.metrics.ApfStats)4 DefaultNetworkEvent (android.net.metrics.DefaultNetworkEvent)4 DhcpClientEvent (android.net.metrics.DhcpClientEvent)4 IpConnectivityLog (android.net.metrics.IpConnectivityLog)4 IpReachabilityEvent (android.net.metrics.IpReachabilityEvent)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