/frameworks/base/cmds/idmap2/tests/ |
D | PoliciesTests.cpp | 28 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 35 ASSERT_EQ(*bitmask1, PolicyFlags::SYSTEM_PARTITION); in TEST() 39 ASSERT_EQ(*bitmask2, PolicyFlags::SYSTEM_PARTITION | PolicyFlags::VENDOR_PARTITION); in TEST() 43 ASSERT_EQ(*bitmask3, PolicyFlags::SYSTEM_PARTITION | PolicyFlags::VENDOR_PARTITION); in TEST() 48 ASSERT_EQ(*bitmask4, PolicyFlags::ODM_PARTITION | PolicyFlags::OEM_PARTITION | in TEST() 49 PolicyFlags::PUBLIC | PolicyFlags::PRODUCT_PARTITION | in TEST() 50 PolicyFlags::SYSTEM_PARTITION | PolicyFlags::VENDOR_PARTITION); in TEST() 54 ASSERT_EQ(*bitmask5, PolicyFlags::SYSTEM_PARTITION); in TEST() 73 ASSERT_EQ(*bitmask11, PolicyFlags::SIGNATURE); in TEST() 77 ASSERT_EQ(*bitmask12, PolicyFlags::ACTOR_SIGNATURE); in TEST() [all …]
|
D | ResourceMappingTests.cpp | 36 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 113 PolicyFlags::PUBLIC, in TEST() 135 PolicyFlags::PUBLIC, in TEST() 155 PolicyFlags::PUBLIC, in TEST() 174 PolicyFlags::PUBLIC, in TEST() 192 PolicyFlags::SYSTEM_PARTITION | PolicyFlags::PUBLIC, in TEST() 212 PolicyFlags::SYSTEM_PARTITION | PolicyFlags::PUBLIC, in TEST() 235 PolicyFlags::SYSTEM_PARTITION | PolicyFlags::PUBLIC, in TEST() 274 PolicyFlags::PUBLIC, in TEST() 294 "/overlay/overlay-no-name.apk", PolicyFlags::PUBLIC, in TEST() [all …]
|
D | IdmapTests.cpp | 41 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 179 auto idmap_result = Idmap::FromApkAssets(*target_apk, *overlay_apk, PolicyFlags::PUBLIC, in TEST() 190 ASSERT_EQ(idmap->GetHeader()->GetFulfilledPolicies(), PolicyFlags::PUBLIC); in TEST() 233 auto idmap_result = Idmap::FromApkAssets(*target_apk, *overlay_apk, PolicyFlags::PUBLIC, in TEST() 274 auto idmap_result = Idmap::FromApkAssets(*target_apk, *overlay_apk, PolicyFlags::PUBLIC, in TEST() 315 PolicyFlags::PUBLIC, in TEST() 339 PolicyFlags::PUBLIC, in TEST() 371 const auto result = Idmap::FromApkAssets(*target_apk, *overlay_apk, PolicyFlags::PUBLIC, in TEST() 387 auto result = Idmap::FromApkAssets(*target_apk, *overlay_apk, PolicyFlags::PUBLIC, in TEST() 399 PolicyFlags::PUBLIC, /* enforce_overlayable */ true)); in TEST() [all …]
|
D | PrettyPrintVisitorTests.cpp | 36 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 49 const auto idmap = Idmap::FromApkAssets(*target_apk, *overlay_apk, PolicyFlags::PUBLIC, in TEST()
|
D | RawPrintVisitorTests.cpp | 35 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 59 const auto idmap = Idmap::FromApkAssets(*target_apk, *overlay_apk, PolicyFlags::PUBLIC, in TEST()
|
/frameworks/base/cmds/idmap2/libidmap2_policies/include/idmap2/ |
D | Policies.h | 31 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; variable 44 inline static const std::array<std::pair<StringPiece, PolicyFlags>, 8> kPolicyStringToFlag = { 45 std::pair{kPolicyActor, PolicyFlags::ACTOR_SIGNATURE}, 46 {kPolicyOdm, PolicyFlags::ODM_PARTITION}, 47 {kPolicyOem, PolicyFlags::OEM_PARTITION}, 48 {kPolicyProduct, PolicyFlags::PRODUCT_PARTITION}, 49 {kPolicyPublic, PolicyFlags::PUBLIC}, 50 {kPolicySignature, PolicyFlags::SIGNATURE}, 51 {kPolicySystem, PolicyFlags::SYSTEM_PARTITION}, 52 {kPolicyVendor, PolicyFlags::VENDOR_PARTITION},
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener_test.cpp | 35 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 676 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 677 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F() 678 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F() 696 EXPECT_EQ(result_overlayable_item.policies, PolicyFlags::SYSTEM_PARTITION in TEST_F() 697 | PolicyFlags::VENDOR_PARTITION in TEST_F() 698 | PolicyFlags::PRODUCT_PARTITION); in TEST_F() 705 overlayable_item_zero.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 706 overlayable_item_zero.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F() 710 overlayable_item_one.policies |= PolicyFlags::PUBLIC; in TEST_F() [all …]
|
D | TableFlattener.cpp | 236 std::map<PolicyFlags, std::set<ResourceId>> policy_ids; 540 static_cast<PolicyFlags>(util::HostToDevice32(static_cast<uint32_t>(policy_ids.first))); in FlattenOverlayable()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize_test.cpp | 31 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 176 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::NONE)); in TEST() 521 overlayable_item_foo.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST() 522 overlayable_item_foo.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST() 526 overlayable_item_bar.policies |= PolicyFlags::PUBLIC; in TEST() 527 overlayable_item_bar.policies |= PolicyFlags::VENDOR_PARTITION; in TEST() 531 overlayable_item_baz.policies |= PolicyFlags::PUBLIC; in TEST() 535 overlayable_item_boz.policies |= PolicyFlags::SIGNATURE; in TEST() 536 overlayable_item_boz.policies |= PolicyFlags::ODM_PARTITION; in TEST() 537 overlayable_item_boz.policies |= PolicyFlags::OEM_PARTITION; in TEST() [all …]
|
D | ProtoSerialize.cpp | 24 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 304 if (overlayable_item.policies & PolicyFlags::PUBLIC) { in SerializeOverlayableItemToPb() 307 if (overlayable_item.policies & PolicyFlags::PRODUCT_PARTITION) { in SerializeOverlayableItemToPb() 310 if (overlayable_item.policies & PolicyFlags::SYSTEM_PARTITION) { in SerializeOverlayableItemToPb() 313 if (overlayable_item.policies & PolicyFlags::VENDOR_PARTITION) { in SerializeOverlayableItemToPb() 316 if (overlayable_item.policies & PolicyFlags::SIGNATURE) { in SerializeOverlayableItemToPb() 319 if (overlayable_item.policies & PolicyFlags::ODM_PARTITION) { in SerializeOverlayableItemToPb() 322 if (overlayable_item.policies & PolicyFlags::OEM_PARTITION) { in SerializeOverlayableItemToPb() 325 if (overlayable_item.policies & PolicyFlags::ACTOR_SIGNATURE) { in SerializeOverlayableItemToPb()
|
D | ProtoDeserialize.cpp | 33 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 384 out_overlayable->policies |= PolicyFlags::PUBLIC; in DeserializeOverlayableItemFromPb() 387 out_overlayable->policies |= PolicyFlags::SYSTEM_PARTITION; in DeserializeOverlayableItemFromPb() 390 out_overlayable->policies |= PolicyFlags::VENDOR_PARTITION; in DeserializeOverlayableItemFromPb() 393 out_overlayable->policies |= PolicyFlags::PRODUCT_PARTITION; in DeserializeOverlayableItemFromPb() 396 out_overlayable->policies |= PolicyFlags::SIGNATURE; in DeserializeOverlayableItemFromPb() 399 out_overlayable->policies |= PolicyFlags::ODM_PARTITION; in DeserializeOverlayableItemFromPb() 402 out_overlayable->policies |= PolicyFlags::OEM_PARTITION; in DeserializeOverlayableItemFromPb() 405 out_overlayable->policies |= PolicyFlags::ACTOR_SIGNATURE; in DeserializeOverlayableItemFromPb()
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger_test.cpp | 32 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 492 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 493 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F() 521 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PRODUCT_PARTITION in TEST_F() 522 | PolicyFlags::VENDOR_PARTITION)); in TEST_F() 535 overlayable_item.policies |= PolicyFlags::PUBLIC; in TEST_F() 536 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F() 557 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PUBLIC in TEST_F() 558 | PolicyFlags::SYSTEM_PARTITION)); in TEST_F() 565 overlayable_item_first.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() [all …]
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable_test.cpp | 33 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 252 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST() 253 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST() 269 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PRODUCT_PARTITION in TEST() 270 | PolicyFlags::VENDOR_PARTITION)); in TEST() 282 overlayable.policies = PolicyFlags::PRODUCT_PARTITION; in TEST() 287 overlayable2.policies = PolicyFlags::PRODUCT_PARTITION; in TEST() 292 overlayable3.policies = PolicyFlags::VENDOR_PARTITION; in TEST() 301 overlayable_item.policies = PolicyFlags::PRODUCT_PARTITION; in TEST() 306 overlayable_item2.policies = PolicyFlags::PRODUCT_PARTITION; in TEST()
|
D | ResourceTable.h | 39 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; variable 81 PolicyFlags policies = PolicyFlags::NONE;
|
D | ResourceParser_test.cpp | 44 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 964 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SIGNATURE)); in TEST_F() 973 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SIGNATURE)); in TEST_F() 1022 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PRODUCT_PARTITION)); in TEST_F() 1030 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SYSTEM_PARTITION)); in TEST_F() 1038 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::VENDOR_PARTITION)); in TEST_F() 1046 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PUBLIC)); in TEST_F() 1054 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SIGNATURE)); in TEST_F() 1062 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::ODM_PARTITION)); in TEST_F() 1070 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::OEM_PARTITION)); in TEST_F() [all …]
|
D | Debug.cpp | 43 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef
|
D | ResourceParser.cpp | 1070 PolicyFlags current_policies = PolicyFlags::NONE; in ParseOverlayable() 1080 current_policies = PolicyFlags::NONE; in ParseOverlayable() 1095 if (current_policies == PolicyFlags::NONE) { in ParseOverlayable() 1140 if (current_policies != PolicyFlags::NONE) { in ParseOverlayable()
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Create.cpp | 45 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 89 fulfilled_policies |= PolicyFlags::PUBLIC; in Create()
|
D | CreateMultiple.cpp | 90 fulfilled_policies |= PolicyFlags::PUBLIC; in CreateMultiple()
|
/frameworks/base/libs/androidfw/tests/ |
D | LoadedArsc_test.cpp | 44 using PolicyFlags = android::ResTable_overlayable_policy_header::PolicyFlags; typedef 245 EXPECT_THAT(info->policy_flags, Eq(PolicyFlags::PUBLIC)); in TEST() 252 Eq(PolicyFlags::SYSTEM_PARTITION in TEST() 253 | PolicyFlags::PRODUCT_PARTITION)); in TEST() 260 Eq(PolicyFlags::VENDOR_PARTITION in TEST() 261 | PolicyFlags::PRODUCT_PARTITION)); in TEST() 267 EXPECT_THAT(info->policy_flags, Eq(PolicyFlags::PUBLIC)); in TEST()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceTypes.h | 1686 enum PolicyFlags : uint32_t { enum 1726 PolicyFlags policy_flags; 1732 inline ResTable_overlayable_policy_header::PolicyFlags& operator |=( 1733 ResTable_overlayable_policy_header::PolicyFlags& first, 1734 ResTable_overlayable_policy_header::PolicyFlags second) { 1735 first = static_cast<ResTable_overlayable_policy_header::PolicyFlags>(first | second);
|