Home
last modified time | relevance | path

Searched refs:policies (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/cmds/idmap2/libidmap2/
DPolicyUtils.cpp30 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()
DResourceMapping.cpp39 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/
DTableFlattener_test.cpp667 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/
DNetworkPolicyEditor.java61 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/
DPolicies.h58 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/
DMediaSession2Record.java58 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()
DMediaSessionRecordImpl.java150 void setSessionPolicies(@SessionPolicy int policies); in setSessionPolicies() argument
/frameworks/base/cmds/idmap2/idmap2/
DCreate.cpp55 std::vector<std::string> policies; in Create() local
72 &policies) in Create()
86 auto conv_result = PoliciesToBitmaskResult(policies); in Create()
DCreateMultiple.cpp56 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/
DTableMerger_test.cpp465 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/
Dcom_android_internal_content_om_OverlayConfig.cpp33 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/
DIdmapDaemon.java115 @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()
DIdmapManager.java89 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/
DOverlayManagerServiceImplTestsBase.java447 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()
DOverlayManagerServiceImplTests.java252 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/
DResourceTable_test.cpp269 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()
DResourceParser_test.cpp1061 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/
DProtoSerialize_test.cpp247 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 …]
DProtoSerialize.cpp304 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/
DDataUsageController.java183 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/
DIdmapTests.cpp454 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/
DPolicyUtils.h33 Result<PolicyBitmask> PoliciesToBitmaskResult(const std::vector<std::string>& policies);
/frameworks/av/services/mediaresourcemanager/fuzzer/
Dmediaresourcemanager_fuzzer.cpp215 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/
DIResourceManagerService.aidl42 void config(in MediaResourcePolicyParcel[] policies); in config() argument
/frameworks/base/services/core/java/com/android/server/pm/
DSELinuxMMAC.java167 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()

12