diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2017-10-25 18:43:39 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-10-25 18:43:39 +0000 |
| commit | d62ff511dcec5b3052eef9786c346279145a025d (patch) | |
| tree | da7103f5c55dac8e07296f566ca3e3d3288fe057 /core/java/android/app/PendingIntent.java | |
| parent | 4b3a7f2987f9e9fa31e2421fb30b3f40ecb94213 (diff) | |
| parent | 61e03292077343a4a3282f5ce513ee8f9152e255 (diff) | |
Merge "incidentd: Adding proto dump for AlarmManager."
Diffstat (limited to 'core/java/android/app/PendingIntent.java')
| -rw-r--r-- | core/java/android/app/PendingIntent.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/java/android/app/PendingIntent.java b/core/java/android/app/PendingIntent.java index a25c2267214e..baeabc39e3fb 100644 --- a/core/java/android/app/PendingIntent.java +++ b/core/java/android/app/PendingIntent.java @@ -33,6 +33,7 @@ import android.os.Parcelable; import android.os.RemoteException; import android.os.UserHandle; import android.util.AndroidException; +import android.util.proto.ProtoOutputStream; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @@ -1081,7 +1082,16 @@ public final class PendingIntent implements Parcelable { sb.append('}'); return sb.toString(); } - + + /** @hide */ + public void writeToProto(ProtoOutputStream proto, long fieldId) { + final long token = proto.start(fieldId); + if (mTarget != null) { + proto.write(PendingIntentProto.TARGET, mTarget.asBinder().toString()); + } + proto.end(token); + } + public int describeContents() { return 0; } |
