Trace Redaction - Create share-able packet filter

Right now, there is "filter by allow-list" which makes it easy
to remove whole packets based on an allow-list. However, there
are some conditional filters coming down the line.

This creates a transform that allows multiple filters to be
registered. By changing some primitives into filters, it cuts
down on the number of serialization operations.

Bug: 318576499
Change-Id: Ib6107dd9a8e0b2d7d606449dd9bbfbb0e1e9b8a3
diff --git a/Android.bp b/Android.bp
index 65a914b..9c18263 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12848,6 +12848,7 @@
     srcs: [
         "src/trace_redaction/build_timeline.cc",
         "src/trace_redaction/filter_ftrace_using_allowlist.cc",
+        "src/trace_redaction/filter_packet_using_allowlist.cc",
         "src/trace_redaction/filter_print_events.cc",
         "src/trace_redaction/filter_sched_waking_events.cc",
         "src/trace_redaction/filter_task_rename.cc",
@@ -12873,6 +12874,7 @@
     srcs: [
         "src/trace_redaction/build_timeline_unittest.cc",
         "src/trace_redaction/filter_ftrace_using_allowlist_unittest.cc",
+        "src/trace_redaction/filter_packet_using_allowlist_unittest.cc",
         "src/trace_redaction/filter_sched_waking_events_unittest.cc",
         "src/trace_redaction/filter_task_rename_unittest.cc",
         "src/trace_redaction/find_package_uid_unittest.cc",
@@ -12880,7 +12882,6 @@
         "src/trace_redaction/proto_util_unittest.cc",
         "src/trace_redaction/prune_package_list_unittest.cc",
         "src/trace_redaction/redact_sched_switch_unittest.cc",
-        "src/trace_redaction/scrub_trace_packet_unittest.cc",
     ],
 }