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));
}
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));
}
Aggregations