Merge "[FUI22] Support getAllNetworkStateSnapshot" am: 89f7c5570a am: cc34801bd5 am: 431fec7f2b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1614779 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I52f8339bd1cda35a3f26f28fd3c0165f6f6ff91e
This commit is contained in:
@@ -24,6 +24,8 @@ import android.annotation.SystemApi;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import com.android.net.module.util.NetworkIdentityUtils;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
@@ -124,4 +126,15 @@ public final class NetworkStateSnapshot implements Parcelable {
|
||||
public int hashCode() {
|
||||
return Objects.hash(network, networkCapabilities, linkProperties, subscriberId, legacyType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "NetworkStateSnapshot{"
|
||||
+ "network=" + network
|
||||
+ ", networkCapabilities=" + networkCapabilities
|
||||
+ ", linkProperties=" + linkProperties
|
||||
+ ", subscriberId='" + NetworkIdentityUtils.scrubSubscriberId(subscriberId) + '\''
|
||||
+ ", legacyType=" + legacyType
|
||||
+ '}';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user