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:
Jeffrey Huang
2019-12-05 11:28:11 -08:00
parent e880831db9
commit cb78285b81
143 changed files with 441 additions and 441 deletions

View File

@@ -439,7 +439,7 @@ public abstract class AppLaunchEvent implements Parcelable {
final ProtoOutputStream protoOutputStream =
new ProtoOutputStream(INTENT_PROTO_CHUNK_SIZE);
// Write this data out as the top-most IntentProto (i.e. it is not a sub-object).
intent.writeToProto(protoOutputStream);
intent.dumpDebug(protoOutputStream);
final byte[] bytes = protoOutputStream.getBytes();
p.writeByteArray(bytes);