summaryrefslogtreecommitdiff
path: root/com/android/server/IntentResolver.java
diff options
context:
space:
mode:
Diffstat (limited to 'com/android/server/IntentResolver.java')
-rw-r--r--com/android/server/IntentResolver.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/com/android/server/IntentResolver.java b/com/android/server/IntentResolver.java
index 119c9df6..40499c96 100644
--- a/com/android/server/IntentResolver.java
+++ b/com/android/server/IntentResolver.java
@@ -38,8 +38,6 @@ import android.util.Printer;
import android.content.Intent;
import android.content.IntentFilter;
-import android.util.proto.ProtoOutputStream;
-
import com.android.internal.util.FastPrintWriter;
/**
@@ -281,31 +279,6 @@ public abstract class IntentResolver<F extends IntentFilter, R extends Object> {
return printedSomething;
}
- void writeProtoMap(ProtoOutputStream proto, long fieldId, ArrayMap<String, F[]> map) {
- int N = map.size();
- for (int mapi = 0; mapi < N; mapi++) {
- long token = proto.start(fieldId);
- proto.write(IntentResolverProto.ArrayMapEntry.KEY, map.keyAt(mapi));
- for (F f : map.valueAt(mapi)) {
- if (f != null) {
- proto.write(IntentResolverProto.ArrayMapEntry.VALUES, f.toString());
- }
- }
- proto.end(token);
- }
- }
-
- public void writeToProto(ProtoOutputStream proto, long fieldId) {
- long token = proto.start(fieldId);
- writeProtoMap(proto, IntentResolverProto.FULL_MIME_TYPES, mTypeToFilter);
- writeProtoMap(proto, IntentResolverProto.BASE_MIME_TYPES, mBaseTypeToFilter);
- writeProtoMap(proto, IntentResolverProto.WILD_MIME_TYPES, mWildTypeToFilter);
- writeProtoMap(proto, IntentResolverProto.SCHEMES, mSchemeToFilter);
- writeProtoMap(proto, IntentResolverProto.NON_DATA_ACTIONS, mActionToFilter);
- writeProtoMap(proto, IntentResolverProto.MIME_TYPED_ACTIONS, mTypedActionToFilter);
- proto.end(token);
- }
-
public boolean dump(PrintWriter out, String title, String prefix, String packageName,
boolean printFilter, boolean collapseDuplicates) {
String innerPrefix = prefix + " ";