[SP03.1] Replace com.android.internal.util.Preconditions.checkNotNull am: 644ec019dd am: 9ea8dae9fc

Change-Id: I872285f988905d6707109ab3c7e6a419df47d39b
This commit is contained in:
Automerger Merge Worker
2020-01-13 14:28:02 +00:00

View File

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