Loading core/java/android/app/usage/NetworkStatsManager.java +3 −3 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ package android.app.usage; import static com.android.internal.util.Preconditions.checkNotNull; import android.annotation.Nullable; import android.annotation.SystemService; import android.annotation.TestApi; Loading @@ -42,6 +40,8 @@ import android.util.Log; import com.android.internal.annotations.VisibleForTesting; import java.util.Objects; /** * Provides access to network usage history and statistics. Usage data is collected in * discrete bins of time called 'Buckets'. See {@link NetworkStats.Bucket} for details. Loading Loading @@ -418,7 +418,7 @@ public class NetworkStatsManager { /** @hide */ public void registerUsageCallback(NetworkTemplate template, int networkType, long thresholdBytes, UsageCallback callback, @Nullable Handler handler) { checkNotNull(callback, "UsageCallback cannot be null"); Objects.requireNonNull(callback, "UsageCallback cannot be null"); final Looper looper; if (handler == null) { Loading Loading
core/java/android/app/usage/NetworkStatsManager.java +3 −3 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ package android.app.usage; import static com.android.internal.util.Preconditions.checkNotNull; import android.annotation.Nullable; import android.annotation.SystemService; import android.annotation.TestApi; Loading @@ -42,6 +40,8 @@ import android.util.Log; import com.android.internal.annotations.VisibleForTesting; import java.util.Objects; /** * Provides access to network usage history and statistics. Usage data is collected in * discrete bins of time called 'Buckets'. See {@link NetworkStats.Bucket} for details. Loading Loading @@ -418,7 +418,7 @@ public class NetworkStatsManager { /** @hide */ public void registerUsageCallback(NetworkTemplate template, int networkType, long thresholdBytes, UsageCallback callback, @Nullable Handler handler) { checkNotNull(callback, "UsageCallback cannot be null"); Objects.requireNonNull(callback, "UsageCallback cannot be null"); final Looper looper; if (handler == null) { Loading