/frameworks/base/cmds/idmap2/libidmap2/ |
D | PolicyUtils.cpp | 30 Result<PolicyBitmask> PoliciesToBitmaskResult(const std::vector<std::string>& policies) { in PoliciesToBitmaskResult() argument 33 for (const std::string& policy : policies) { in PoliciesToBitmaskResult() 52 std::vector<std::string> policies; in BitmaskToPolicies() local 56 policies.emplace_back(policy.first.to_string()); in BitmaskToPolicies() 60 return policies; in BitmaskToPolicies()
|
D | ResourceMapping.cpp | 39 std::string ConcatPolicies(const std::vector<std::string>& policies) { in ConcatPolicies() argument 41 for (const std::string& policy : policies) { in ConcatPolicies()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener_test.cpp | 667 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 668 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F() 669 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F() 686 EXPECT_EQ(result_overlayable_item.policies, PolicyFlags::SYSTEM_PARTITION in TEST_F() 695 overlayable_item_zero.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 696 overlayable_item_zero.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F() 700 overlayable_item_one.policies |= PolicyFlags::PUBLIC; in TEST_F() 704 overlayable_item_two.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 705 overlayable_item_two.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F() 706 overlayable_item_two.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 61 final NetworkPolicy[] policies = mPolicyManager.getNetworkPolicies(); in read() local 65 for (NetworkPolicy policy : policies) { in read() 85 final NetworkPolicy[] policies = mPolicies.toArray(new NetworkPolicy[mPolicies.size()]); in writeAsync() local 89 write(policies); in writeAsync() 95 public void write(NetworkPolicy[] policies) { in write() argument 96 mPolicyManager.setNetworkPolicies(policies); in write()
|
/frameworks/base/cmds/idmap2/libidmap2_policies/include/idmap2/ |
D | Policies.h | 58 inline static std::string PoliciesToDebugString(PolicyBitmask policies) { in PoliciesToDebugString() argument 60 uint32_t remaining = policies; in PoliciesToDebugString() 62 if ((policies & policy.second) != policy.second) { in PoliciesToDebugString()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSession2Record.java | 58 Looper handlerLooper, int policies) { in MediaSession2Record() argument 68 mPolicies = policies; in MediaSession2Record() 162 public void setSessionPolicies(int policies) { in setSessionPolicies() argument 164 mPolicies = policies; in setSessionPolicies()
|
D | MediaSessionRecordImpl.java | 150 void setSessionPolicies(@SessionPolicy int policies); in setSessionPolicies() argument
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Create.cpp | 55 std::vector<std::string> policies; in Create() local 72 &policies) in Create() 86 auto conv_result = PoliciesToBitmaskResult(policies); in Create()
|
D | CreateMultiple.cpp | 56 std::vector<std::string> policies; in CreateMultiple() local 75 &policies) in CreateMultiple() 84 auto conv_result = PoliciesToBitmaskResult(policies); in CreateMultiple()
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger_test.cpp | 465 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 466 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F() 492 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PRODUCT_PARTITION in TEST_F() 505 overlayable_item.policies |= PolicyFlags::PUBLIC; in TEST_F() 506 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F() 526 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PUBLIC in TEST_F() 534 overlayable_item_first.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 543 overlayable_item_second.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 561 overlayable_item_first.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() 570 overlayable_item_second.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F() [all …]
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_om_OverlayConfig.cpp | 33 jobjectArray overlayPath, jobjectArray policies, in createIdmap() argument 57 for (size_t i = 0, count = env->GetArrayLength(policies); i < count; ++i) { in createIdmap() 58 jstring element = (jstring)env->GetObjectArrayElement(policies, i); in createIdmap()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | IdmapDaemon.java | 115 @Nullable String overlayName, int policies, boolean enforce, int userId) in createIdmap() argument 119 policies, enforce, userId); in createIdmap() 130 @Nullable String overlayName, int policies, boolean enforce, int userId) in verifyIdmap() argument 134 policies, enforce, userId); in verifyIdmap()
|
D | IdmapManager.java | 89 int policies = calculateFulfilledPolicies(targetPackage, overlayPackage, userId); in createIdmap() local 91 if (mIdmapDaemon.verifyIdmap(targetPath, overlayBasePath, overlayName, policies, in createIdmap() 95 return mIdmapDaemon.createIdmap(targetPath, overlayBasePath, overlayName, policies, in createIdmap()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTestsBase.java | 447 int policies, boolean enforce, int userId) { in createIdmap() argument 449 getCrc(overlayPath), targetPath, overlayName, policies, enforce)); in createIdmap() 459 boolean verifyIdmap(String targetPath, String overlayPath, String overlayName, int policies, in verifyIdmap() argument 465 return idmap.isUpToDate(getCrc(targetPath), getCrc(overlayPath), targetPath, policies, in verifyIdmap() 506 final int policies; field in OverlayManagerServiceImplTestsBase.FakeIdmapDaemon.IdmapHeader 510 String overlayName, int policies, boolean enforceOverlayable) { in IdmapHeader() argument 515 this.policies = policies; in IdmapHeader() 523 && expectedTargetPath.equals(targetPath) && expectedPolicies == policies in isUpToDate()
|
D | OverlayManagerServiceImplTests.java | 252 assertEquals(CONFIG_SIGNATURE, CONFIG_SIGNATURE & idmap.policies); in testConfigSignaturePolicyOk() 272 assertEquals(0, CONFIG_SIGNATURE & idmap.policies); in testConfigSignaturePolicyCertNok() 289 assertEquals(0, CONFIG_SIGNATURE & idmap.policies); in testConfigSignaturePolicyNoConfig() 305 assertEquals(0, CONFIG_SIGNATURE & idmap.policies); in testConfigSignaturePolicyNoRefPkg() 325 assertEquals(0, CONFIG_SIGNATURE & idmap.policies); in testConfigSignaturePolicyRefPkgNotSystem()
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable_test.cpp | 269 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST() 270 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST() 287 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PRODUCT_PARTITION in TEST() 300 overlayable.policies = PolicyFlags::PRODUCT_PARTITION; in TEST() 306 overlayable2.policies = PolicyFlags::PRODUCT_PARTITION; in TEST() 312 overlayable3.policies = PolicyFlags::VENDOR_PARTITION; in TEST() 322 overlayable_item.policies = PolicyFlags::PRODUCT_PARTITION; in TEST() 328 overlayable_item2.policies = PolicyFlags::PRODUCT_PARTITION; in TEST()
|
D | ResourceParser_test.cpp | 1061 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SIGNATURE)); in TEST_F() 1070 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SIGNATURE)); in TEST_F() 1119 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PRODUCT_PARTITION)); in TEST_F() 1127 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SYSTEM_PARTITION)); in TEST_F() 1135 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::VENDOR_PARTITION)); in TEST_F() 1143 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PUBLIC)); in TEST_F() 1151 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SIGNATURE)); in TEST_F() 1159 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::ODM_PARTITION)); in TEST_F() 1167 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::OEM_PARTITION)); in TEST_F() 1175 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::ACTOR_SIGNATURE)); in TEST_F() [all …]
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize_test.cpp | 247 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::NONE)); in TEST() 592 overlayable_item_foo.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST() 593 overlayable_item_foo.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST() 597 overlayable_item_bar.policies |= PolicyFlags::PUBLIC; in TEST() 598 overlayable_item_bar.policies |= PolicyFlags::VENDOR_PARTITION; in TEST() 602 overlayable_item_baz.policies |= PolicyFlags::PUBLIC; in TEST() 606 overlayable_item_boz.policies |= PolicyFlags::SIGNATURE; in TEST() 607 overlayable_item_boz.policies |= PolicyFlags::ODM_PARTITION; in TEST() 608 overlayable_item_boz.policies |= PolicyFlags::OEM_PARTITION; in TEST() 612 overlayable_item_actor_config.policies |= PolicyFlags::SIGNATURE; in TEST() [all …]
|
D | ProtoSerialize.cpp | 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() 328 if (overlayable_item.policies & PolicyFlags::CONFIG_SIGNATURE) { in SerializeOverlayableItemToPb()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 183 final NetworkPolicy[] policies = mPolicyManager.getNetworkPolicies(); in findNetworkPolicy() 184 if (policies == null) return null; in findNetworkPolicy() 185 final int N = policies.length; in findNetworkPolicy() 187 final NetworkPolicy policy = policies[i]; in findNetworkPolicy()
|
/frameworks/base/cmds/idmap2/tests/ |
D | IdmapTests.cpp | 454 const PolicyBitmask policies = kIdmapRawDataPolicies; in TEST() local 472 kIdmapRawDataTargetCrc, overlay_crc, policies, in TEST() 509 target_crc, overlay_crc, policies, in TEST() 524 target_crc, overlay_crc, policies, in TEST() 539 target_crc, overlay_crc, policies, in TEST() 551 target_crc, overlay_crc, policies, in TEST() 563 target_crc, overlay_crc, policies, in TEST() 575 target_crc, overlay_crc, policies, in TEST() 587 target_crc, overlay_crc, policies, in TEST()
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | PolicyUtils.h | 33 Result<PolicyBitmask> PoliciesToBitmaskResult(const std::vector<std::string>& policies);
|
/frameworks/av/services/mediaresourcemanager/fuzzer/ |
D | mediaresourcemanager_fuzzer.cpp | 215 vector<MediaResourcePolicyParcel> policies; in setConfig() local 216 policies.push_back(MediaResourcePolicy(kPolicyType[policyTypeIndex], policyValue)); in setConfig() 217 mService->config(policies); in setConfig()
|
/frameworks/av/services/mediaresourcemanager/aidl/android/media/ |
D | IResourceManagerService.aidl | 42 void config(in MediaResourcePolicyParcel[] policies); in config() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SELinuxMMAC.java | 167 List<Policy> policies = new ArrayList<>(); in readInstallPolicy() local 190 policies.add(readSignerOrThrow(parser)); in readInstallPolicy() 216 Collections.sort(policies, policySort); in readInstallPolicy() 224 sPolicies.addAll(policies); in readInstallPolicy()
|