Home
last modified time | relevance | path

Searched refs:PolicyFlags (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/cmds/idmap2/tests/
DPoliciesTests.cpp24 using android::idmap2::PolicyFlags;
31 ASSERT_EQ(*bitmask1, PolicyFlags::POLICY_SYSTEM_PARTITION); in TEST()
35 ASSERT_EQ(*bitmask2, PolicyFlags::POLICY_SYSTEM_PARTITION | PolicyFlags::POLICY_VENDOR_PARTITION); in TEST()
39 ASSERT_EQ(*bitmask3, PolicyFlags::POLICY_SYSTEM_PARTITION | PolicyFlags::POLICY_VENDOR_PARTITION); in TEST()
43 ASSERT_EQ(*bitmask4, PolicyFlags::POLICY_ODM_PARTITION | PolicyFlags::POLICY_OEM_PARTITION | in TEST()
44 PolicyFlags::POLICY_PUBLIC | PolicyFlags::POLICY_PRODUCT_PARTITION | in TEST()
45 PolicyFlags::POLICY_SYSTEM_PARTITION | in TEST()
46 PolicyFlags::POLICY_VENDOR_PARTITION); in TEST()
50 ASSERT_EQ(*bitmask5, PolicyFlags::POLICY_SYSTEM_PARTITION); in TEST()
69 const auto policies1 = BitmaskToPolicies(PolicyFlags::POLICY_PUBLIC); in TEST()
[all …]
DIdmapTests.cpp191 CreateIdmap(target_apk_path, overlay_apk_path, PolicyFlags::POLICY_PUBLIC, in TEST()
236 PolicyFlags::POLICY_SYSTEM_PARTITION | PolicyFlags::POLICY_PUBLIC, in TEST()
266 PolicyFlags::POLICY_PUBLIC | PolicyFlags::POLICY_SIGNATURE, in TEST()
295 PolicyFlags::POLICY_SYSTEM_PARTITION | PolicyFlags::POLICY_PUBLIC, in TEST()
327 PolicyFlags::POLICY_SYSTEM_PARTITION | PolicyFlags::POLICY_PUBLIC, in TEST()
362 CreateIdmap(target_apk_path, overlay_apk_path, PolicyFlags::POLICY_PUBLIC, in TEST()
399 CreateIdmap(target_apk_path, overlay_apk_path, PolicyFlags::POLICY_PUBLIC, in TEST()
438 CreateIdmap(target_apk_path, overlay_apk_path, PolicyFlags::POLICY_SIGNATURE, in TEST()
443 CreateIdmap(target_apk_path, overlay_apk_path, PolicyFlags::POLICY_PRODUCT_PARTITION, in TEST()
448 CreateIdmap(target_apk_path, overlay_apk_path, PolicyFlags::POLICY_SYSTEM_PARTITION, in TEST()
[all …]
DPrettyPrintVisitorTests.cpp48 PolicyFlags::POLICY_PUBLIC, /* enforce_overlayable */ true); in TEST()
DRawPrintVisitorTests.cpp43 PolicyFlags::POLICY_PUBLIC, /* enforce_overlayable */ true); in TEST()
DBinaryStreamVisitorTests.cpp80 PolicyFlags::POLICY_PUBLIC, /* enforce_overlayable */ true); in TEST()
/frameworks/base/cmds/idmap2/libidmap2/
DPolicies.cpp31 static const std::unordered_map<android::StringPiece, PolicyFlags> kStringToFlag = { in PoliciesToBitmask()
32 {kPolicyOdm, PolicyFlags::POLICY_ODM_PARTITION}, in PoliciesToBitmask()
33 {kPolicyOem, PolicyFlags::POLICY_OEM_PARTITION}, in PoliciesToBitmask()
34 {kPolicyPublic, PolicyFlags::POLICY_PUBLIC}, in PoliciesToBitmask()
35 {kPolicyProduct, PolicyFlags::POLICY_PRODUCT_PARTITION}, in PoliciesToBitmask()
36 {kPolicySignature, PolicyFlags::POLICY_SIGNATURE}, in PoliciesToBitmask()
37 {kPolicySystem, PolicyFlags::POLICY_SYSTEM_PARTITION}, in PoliciesToBitmask()
38 {kPolicyVendor, PolicyFlags::POLICY_VENDOR_PARTITION}, in PoliciesToBitmask()
57 if ((bitmask & PolicyFlags::POLICY_ODM_PARTITION) != 0) { in BitmaskToPolicies()
61 if ((bitmask & PolicyFlags::POLICY_OEM_PARTITION) != 0) { in BitmaskToPolicies()
[all …]
DIdmap.cpp285 PolicyFlags::POLICY_ODM_PARTITION | PolicyFlags::POLICY_OEM_PARTITION | in CheckOverlayable()
286 PolicyFlags::POLICY_SYSTEM_PARTITION | PolicyFlags::POLICY_VENDOR_PARTITION | in CheckOverlayable()
287 PolicyFlags::POLICY_PRODUCT_PARTITION | PolicyFlags::POLICY_SIGNATURE; in CheckOverlayable()
/frameworks/base/cmds/idmap2/include/idmap2/
DPolicies.h37 using PolicyFlags = ResTable_overlayable_policy_header::PolicyFlags; variable
/frameworks/base/cmds/idmap2/idmap2/
DCreate.cpp41 using android::idmap2::PolicyFlags;
89 fulfilled_policies |= PolicyFlags::POLICY_PUBLIC; in Create()
DScan.cpp49 using android::idmap2::PolicyFlags;
/frameworks/base/tools/aapt2/
DResourceTable.h80 typedef uint32_t PolicyFlags; typedef
107 PolicyFlags policies = Policy::kNone;
DResourceParser.cpp1068 OverlayableItem::PolicyFlags current_policies = OverlayableItem::Policy::kNone; in ParseOverlayable()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp458 OverlayableItem::PolicyFlags policies = OverlayableItem::Policy::kNone; in ParseOverlayable()
DTableFlattener.cpp224 std::map<OverlayableItem::PolicyFlags, std::set<ResourceId>> policy_ids;
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h1635 enum PolicyFlags : uint32_t { enum