Rename writeToProto to be dumpDebug
We want to eventually migrate some of these APIs to be @SystemApi for mainline modules. The #dumpDebug name is more appropriate than #writeToProto. Bug: 142279786 Test: Manual Change-Id: I60793e91cedf6b720d4ecef6a8484f4fed4ff30f
This commit is contained in:
@@ -502,7 +502,7 @@ public class Network implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public void writeToProto(ProtoOutputStream proto, long fieldId) {
|
public void dumpDebug(ProtoOutputStream proto, long fieldId) {
|
||||||
final long token = proto.start(fieldId);
|
final long token = proto.start(fieldId);
|
||||||
proto.write(NetworkProto.NET_ID, netId);
|
proto.write(NetworkProto.NET_ID, netId);
|
||||||
proto.end(token);
|
proto.end(token);
|
||||||
|
|||||||
@@ -1602,7 +1602,7 @@ public final class NetworkCapabilities implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public void writeToProto(@NonNull ProtoOutputStream proto, long fieldId) {
|
public void dumpDebug(@NonNull ProtoOutputStream proto, long fieldId) {
|
||||||
final long token = proto.start(fieldId);
|
final long token = proto.start(fieldId);
|
||||||
|
|
||||||
for (int transport : getTransportTypes()) {
|
for (int transport : getTransportTypes()) {
|
||||||
|
|||||||
@@ -485,13 +485,13 @@ public class NetworkRequest implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public void writeToProto(ProtoOutputStream proto, long fieldId) {
|
public void dumpDebug(ProtoOutputStream proto, long fieldId) {
|
||||||
final long token = proto.start(fieldId);
|
final long token = proto.start(fieldId);
|
||||||
|
|
||||||
proto.write(NetworkRequestProto.TYPE, typeToProtoEnum(type));
|
proto.write(NetworkRequestProto.TYPE, typeToProtoEnum(type));
|
||||||
proto.write(NetworkRequestProto.REQUEST_ID, requestId);
|
proto.write(NetworkRequestProto.REQUEST_ID, requestId);
|
||||||
proto.write(NetworkRequestProto.LEGACY_TYPE, legacyType);
|
proto.write(NetworkRequestProto.LEGACY_TYPE, legacyType);
|
||||||
networkCapabilities.writeToProto(proto, NetworkRequestProto.NETWORK_CAPABILITIES);
|
networkCapabilities.dumpDebug(proto, NetworkRequestProto.NETWORK_CAPABILITIES);
|
||||||
|
|
||||||
proto.end(token);
|
proto.end(token);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user