summaryrefslogtreecommitdiff
path: root/cmds/idmap2/libidmap2/PolicyUtils.cpp
AgeCommit message (Collapse)Author
2020-06-10idmap2: fix cpplint warningsMÃ¥rten Kongstad
Fix the following to make cpplint happy again: - Use C++ style casts - Rename a few header guards - Add missing includes of standard C++ headers - Add comments to the end of namespaces Also, for consistency, always use "..." instead of <...> for local include files, i.e. #include "idmap2/.*" Test: cmds/idmap2/static-checks.sh Change-Id: Ie735a36d562d1fc51b61f1f0f45aec0d160f602d
2020-02-26Refactor overlayable policyWinson
To make it easier to add the actor policy in a follow up CL, move most of the policy handling to a central location. The strings and transformation between strings and flags is now handled in libidmap2policies, with libandroidfw containing the single source of policy flags. This also extracts all the test resource IDs into an R.h so they can be swapped without having to edit a dozen files each time. Bug: 130563563 Test: m aapt2_tests idmapt2_tests and run from host test output Test: atest libandroidfw_tests Change-Id: Ie533c9cebf938215df7586f00c38763ae467e606