summaryrefslogtreecommitdiff
path: root/android/content/IntentFilter.java
diff options
context:
space:
mode:
Diffstat (limited to 'android/content/IntentFilter.java')
-rw-r--r--android/content/IntentFilter.java63
1 files changed, 0 insertions, 63 deletions
diff --git a/android/content/IntentFilter.java b/android/content/IntentFilter.java
index a957aed8..c9bce530 100644
--- a/android/content/IntentFilter.java
+++ b/android/content/IntentFilter.java
@@ -26,7 +26,6 @@ import android.text.TextUtils;
import android.util.AndroidException;
import android.util.Log;
import android.util.Printer;
-import android.util.proto.ProtoOutputStream;
import com.android.internal.util.XmlUtils;
@@ -919,15 +918,6 @@ public class IntentFilter implements Parcelable {
dest.writeInt(mPort);
}
- void writeToProto(ProtoOutputStream proto, long fieldId) {
- long token = proto.start(fieldId);
- // The original host information is already contained in host and wild, no output now.
- proto.write(AuthorityEntryProto.HOST, mHost);
- proto.write(AuthorityEntryProto.WILD, mWild);
- proto.write(AuthorityEntryProto.PORT, mPort);
- proto.end(token);
- }
-
public String getHost() {
return mOrigHost;
}
@@ -1749,59 +1739,6 @@ public class IntentFilter implements Parcelable {
}
}
- /** @hide */
- public void writeToProto(ProtoOutputStream proto, long fieldId) {
- long token = proto.start(fieldId);
- if (mActions.size() > 0) {
- Iterator<String> it = mActions.iterator();
- while (it.hasNext()) {
- proto.write(IntentFilterProto.ACTIONS, it.next());
- }
- }
- if (mCategories != null) {
- Iterator<String> it = mCategories.iterator();
- while (it.hasNext()) {
- proto.write(IntentFilterProto.CATEGORIES, it.next());
- }
- }
- if (mDataSchemes != null) {
- Iterator<String> it = mDataSchemes.iterator();
- while (it.hasNext()) {
- proto.write(IntentFilterProto.DATA_SCHEMES, it.next());
- }
- }
- if (mDataSchemeSpecificParts != null) {
- Iterator<PatternMatcher> it = mDataSchemeSpecificParts.iterator();
- while (it.hasNext()) {
- it.next().writeToProto(proto, IntentFilterProto.DATA_SCHEME_SPECS);
- }
- }
- if (mDataAuthorities != null) {
- Iterator<AuthorityEntry> it = mDataAuthorities.iterator();
- while (it.hasNext()) {
- it.next().writeToProto(proto, IntentFilterProto.DATA_AUTHORITIES);
- }
- }
- if (mDataPaths != null) {
- Iterator<PatternMatcher> it = mDataPaths.iterator();
- while (it.hasNext()) {
- it.next().writeToProto(proto, IntentFilterProto.DATA_PATHS);
- }
- }
- if (mDataTypes != null) {
- Iterator<String> it = mDataTypes.iterator();
- while (it.hasNext()) {
- proto.write(IntentFilterProto.DATA_TYPES, it.next());
- }
- }
- if (mPriority != 0 || mHasPartialTypes) {
- proto.write(IntentFilterProto.PRIORITY, mPriority);
- proto.write(IntentFilterProto.HAS_PARTIAL_TYPES, mHasPartialTypes);
- }
- proto.write(IntentFilterProto.GET_AUTO_VERIFY, getAutoVerify());
- proto.end(token);
- }
-
public void dump(Printer du, String prefix) {
StringBuilder sb = new StringBuilder(256);
if (mActions.size() > 0) {