summaryrefslogtreecommitdiff
path: root/android/content/Intent.java
diff options
context:
space:
mode:
Diffstat (limited to 'android/content/Intent.java')
-rw-r--r--android/content/Intent.java52
1 files changed, 0 insertions, 52 deletions
diff --git a/android/content/Intent.java b/android/content/Intent.java
index e47de752..c9ad9519 100644
--- a/android/content/Intent.java
+++ b/android/content/Intent.java
@@ -53,7 +53,6 @@ import android.provider.OpenableColumns;
import android.util.ArraySet;
import android.util.AttributeSet;
import android.util.Log;
-import android.util.proto.ProtoOutputStream;
import com.android.internal.util.XmlUtils;
@@ -9372,57 +9371,6 @@ public class Intent implements Parcelable, Cloneable {
}
}
- /** @hide */
- public void writeToProto(ProtoOutputStream proto, long fieldId, boolean secure, boolean comp,
- boolean extras, boolean clip) {
- long token = proto.start(fieldId);
- if (mAction != null) {
- proto.write(IntentProto.ACTION, mAction);
- }
- if (mCategories != null) {
- for (String category : mCategories) {
- proto.write(IntentProto.CATEGORIES, category);
- }
- }
- if (mData != null) {
- proto.write(IntentProto.DATA, secure ? mData.toSafeString() : mData.toString());
- }
- if (mType != null) {
- proto.write(IntentProto.TYPE, mType);
- }
- if (mFlags != 0) {
- proto.write(IntentProto.FLAG, "0x" + Integer.toHexString(mFlags));
- }
- if (mPackage != null) {
- proto.write(IntentProto.PACKAGE, mPackage);
- }
- if (comp && mComponent != null) {
- proto.write(IntentProto.COMPONENT, mComponent.flattenToShortString());
- }
- if (mSourceBounds != null) {
- proto.write(IntentProto.SOURCE_BOUNDS, mSourceBounds.toShortString());
- }
- if (mClipData != null) {
- StringBuilder b = new StringBuilder();
- if (clip) {
- mClipData.toShortString(b);
- } else {
- mClipData.toShortStringShortItems(b, false);
- }
- proto.write(IntentProto.CLIP_DATA, b.toString());
- }
- if (extras && mExtras != null) {
- proto.write(IntentProto.EXTRAS, mExtras.toShortString());
- }
- if (mContentUserHint != 0) {
- proto.write(IntentProto.CONTENT_USER_HINT, mContentUserHint);
- }
- if (mSelector != null) {
- proto.write(IntentProto.SELECTOR, mSelector.toShortString(secure, comp, extras, clip));
- }
- proto.end(token);
- }
-
/**
* Call {@link #toUri} with 0 flags.
* @deprecated Use {@link #toUri} instead.