diff options
| author | Jeffrey Huang <jeffreyhuang@google.com> | 2019-12-05 11:28:11 -0800 |
|---|---|---|
| committer | Jeffrey Huang <jeffreyhuang@google.com> | 2019-12-05 11:28:11 -0800 |
| commit | cb78285b81eb731bf75a7cd869657505caec06ae (patch) | |
| tree | a802f64b4f75e0fc118eeb45e036c7bb1eb13424 /core/java/android/app | |
| parent | e880831db9271cec800b704b61a39b01d20b2d34 (diff) | |
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
Diffstat (limited to 'core/java/android/app')
| -rw-r--r-- | core/java/android/app/AlarmManager.java | 4 | ||||
| -rw-r--r-- | core/java/android/app/Notification.java | 4 | ||||
| -rw-r--r-- | core/java/android/app/NotificationChannel.java | 4 | ||||
| -rw-r--r-- | core/java/android/app/NotificationChannelGroup.java | 4 | ||||
| -rw-r--r-- | core/java/android/app/NotificationManager.java | 2 | ||||
| -rw-r--r-- | core/java/android/app/PendingIntent.java | 2 | ||||
| -rw-r--r-- | core/java/android/app/ProfilerInfo.java | 2 | ||||
| -rw-r--r-- | core/java/android/app/WindowConfiguration.java | 6 |
8 files changed, 14 insertions, 14 deletions
diff --git a/core/java/android/app/AlarmManager.java b/core/java/android/app/AlarmManager.java index 3a34b7926611..d8ddf218c6d4 100644 --- a/core/java/android/app/AlarmManager.java +++ b/core/java/android/app/AlarmManager.java @@ -1148,11 +1148,11 @@ public class AlarmManager { }; /** @hide */ - public void writeToProto(ProtoOutputStream proto, long fieldId) { + public void dumpDebug(ProtoOutputStream proto, long fieldId) { final long token = proto.start(fieldId); proto.write(AlarmClockInfoProto.TRIGGER_TIME_MS, mTriggerTime); if (mShowIntent != null) { - mShowIntent.writeToProto(proto, AlarmClockInfoProto.SHOW_INTENT); + mShowIntent.dumpDebug(proto, AlarmClockInfoProto.SHOW_INTENT); } proto.end(token); } diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index b37cc266a156..e30714270d1d 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -2977,7 +2977,7 @@ public class Notification implements Parcelable /** * @hide */ - public void writeToProto(ProtoOutputStream proto, long fieldId) { + public void dumpDebug(ProtoOutputStream proto, long fieldId) { long token = proto.start(fieldId); proto.write(NotificationProto.CHANNEL_ID, getChannelId()); proto.write(NotificationProto.HAS_TICKER_TEXT, this.tickerText != null); @@ -2993,7 +2993,7 @@ public class Notification implements Parcelable proto.write(NotificationProto.VISIBILITY, this.visibility); } if (publicVersion != null) { - publicVersion.writeToProto(proto, NotificationProto.PUBLIC_VERSION); + publicVersion.dumpDebug(proto, NotificationProto.PUBLIC_VERSION); } proto.end(token); } diff --git a/core/java/android/app/NotificationChannel.java b/core/java/android/app/NotificationChannel.java index 20d977b7da10..1fc8a2b38f95 100644 --- a/core/java/android/app/NotificationChannel.java +++ b/core/java/android/app/NotificationChannel.java @@ -1116,7 +1116,7 @@ public final class NotificationChannel implements Parcelable { } /** @hide */ - public void writeToProto(ProtoOutputStream proto, long fieldId) { + public void dumpDebug(ProtoOutputStream proto, long fieldId) { final long token = proto.start(fieldId); proto.write(NotificationChannelProto.ID, mId); @@ -1142,7 +1142,7 @@ public final class NotificationChannel implements Parcelable { proto.write(NotificationChannelProto.IS_DELETED, mDeleted); proto.write(NotificationChannelProto.GROUP, mGroup); if (mAudioAttributes != null) { - mAudioAttributes.writeToProto(proto, NotificationChannelProto.AUDIO_ATTRIBUTES); + mAudioAttributes.dumpDebug(proto, NotificationChannelProto.AUDIO_ATTRIBUTES); } proto.write(NotificationChannelProto.IS_BLOCKABLE_SYSTEM, mBlockableSystem); proto.write(NotificationChannelProto.ALLOW_APP_OVERLAY, mAllowBubbles); diff --git a/core/java/android/app/NotificationChannelGroup.java b/core/java/android/app/NotificationChannelGroup.java index a8ee414cac0a..c4c1e4f98dc8 100644 --- a/core/java/android/app/NotificationChannelGroup.java +++ b/core/java/android/app/NotificationChannelGroup.java @@ -332,7 +332,7 @@ public final class NotificationChannelGroup implements Parcelable { } /** @hide */ - public void writeToProto(ProtoOutputStream proto, long fieldId) { + public void dumpDebug(ProtoOutputStream proto, long fieldId) { final long token = proto.start(fieldId); proto.write(NotificationChannelGroupProto.ID, mId); @@ -340,7 +340,7 @@ public final class NotificationChannelGroup implements Parcelable { proto.write(NotificationChannelGroupProto.DESCRIPTION, mDescription); proto.write(NotificationChannelGroupProto.IS_BLOCKED, mBlocked); for (NotificationChannel channel : mChannels) { - channel.writeToProto(proto, NotificationChannelGroupProto.CHANNELS); + channel.dumpDebug(proto, NotificationChannelGroupProto.CHANNELS); } proto.end(token); } diff --git a/core/java/android/app/NotificationManager.java b/core/java/android/app/NotificationManager.java index 03ee1e93ba7e..850645dd81e2 100644 --- a/core/java/android/app/NotificationManager.java +++ b/core/java/android/app/NotificationManager.java @@ -1855,7 +1855,7 @@ public class NotificationManager { } /** @hide */ - public void writeToProto(ProtoOutputStream proto, long fieldId) { + public void dumpDebug(ProtoOutputStream proto, long fieldId) { final long pToken = proto.start(fieldId); bitwiseToProtoEnum(proto, PolicyProto.PRIORITY_CATEGORIES, priorityCategories); diff --git a/core/java/android/app/PendingIntent.java b/core/java/android/app/PendingIntent.java index 06b95067c2e8..0407a8a05609 100644 --- a/core/java/android/app/PendingIntent.java +++ b/core/java/android/app/PendingIntent.java @@ -1204,7 +1204,7 @@ public final class PendingIntent implements Parcelable { } /** @hide */ - public void writeToProto(ProtoOutputStream proto, long fieldId) { + public void dumpDebug(ProtoOutputStream proto, long fieldId) { final long token = proto.start(fieldId); if (mTarget != null) { proto.write(PendingIntentProto.TARGET, mTarget.asBinder().toString()); diff --git a/core/java/android/app/ProfilerInfo.java b/core/java/android/app/ProfilerInfo.java index 25589f8e42cb..d6eb4a83b509 100644 --- a/core/java/android/app/ProfilerInfo.java +++ b/core/java/android/app/ProfilerInfo.java @@ -135,7 +135,7 @@ public class ProfilerInfo implements Parcelable { } /** @hide */ - public void writeToProto(ProtoOutputStream proto, long fieldId) { + public void dumpDebug(ProtoOutputStream proto, long fieldId) { final long token = proto.start(fieldId); proto.write(ProfilerInfoProto.PROFILE_FILE, profileFile); if (profileFd != null) { diff --git a/core/java/android/app/WindowConfiguration.java b/core/java/android/app/WindowConfiguration.java index 8cb094f8a6a6..aa6492e9d098 100644 --- a/core/java/android/app/WindowConfiguration.java +++ b/core/java/android/app/WindowConfiguration.java @@ -615,15 +615,15 @@ public class WindowConfiguration implements Parcelable, Comparable<WindowConfigu * @param fieldId Field Id of the WindowConfiguration as defined in the parent message * @hide */ - public void writeToProto(ProtoOutputStream protoOutputStream, long fieldId) { + public void dumpDebug(ProtoOutputStream protoOutputStream, long fieldId) { final long token = protoOutputStream.start(fieldId); if (mAppBounds != null) { - mAppBounds.writeToProto(protoOutputStream, APP_BOUNDS); + mAppBounds.dumpDebug(protoOutputStream, APP_BOUNDS); } protoOutputStream.write(WINDOWING_MODE, mWindowingMode); protoOutputStream.write(ACTIVITY_TYPE, mActivityType); if (mBounds != null) { - mBounds.writeToProto(protoOutputStream, BOUNDS); + mBounds.dumpDebug(protoOutputStream, BOUNDS); } protoOutputStream.end(token); } |
