Merge "aconfig: add support for dump --filter='{fully_qualified_name}:...'" into main
diff --git a/tools/aconfig/src/dump.rs b/tools/aconfig/src/dump.rs
index 5ee751e..bcad064 100644
--- a/tools/aconfig/src/dump.rs
+++ b/tools/aconfig/src/dump.rs
@@ -197,6 +197,10 @@
Ok(Box::new(move |flag: &ProtoParsedFlag| flag.container() == expected))
}
// metadata: not supported yet
+ "fully_qualified_name" => {
+ let expected = arg.to_owned();
+ Ok(Box::new(move |flag: &ProtoParsedFlag| flag.fully_qualified_name() == expected))
+ }
_ => Err(anyhow!(error_msg)),
}
}
@@ -409,6 +413,12 @@
);
// metadata: not supported yet
+ // synthesized fields
+ assert_create_filter_predicate!(
+ "fully_qualified_name:com.android.aconfig.test.disabled_rw",
+ &["com.android.aconfig.test.disabled_rw"]
+ );
+
// multiple sub filters
assert_create_filter_predicate!(
"permission:READ_ONLY+state:ENABLED",