Home
last modified time | relevance | path

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

1234

/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); in BitmaskToPolicies()
60 return policies; in BitmaskToPolicies()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java59 final NetworkPolicy[] policies = mPolicyManager.getNetworkPolicies(); in read() local
63 for (NetworkPolicy policy : policies) { in read()
83 final NetworkPolicy[] policies = mPolicies.toArray(new NetworkPolicy[mPolicies.size()]); in writeAsync() local
87 write(policies); in writeAsync()
93 public void write(NetworkPolicy[] policies) { in write() argument
94 mPolicyManager.setNetworkPolicies(policies); in write()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DPolicyVersionUpgraderTest.java301 Document policies = readPolicies(ownerUser); in assertAdminSuspendedPackages() local
303 (Element) policies.getDocumentElement().getElementsByTagName("admin").item(0); in assertAdminSuspendedPackages()
327 Document policies = readPolicies(userId); in testEffectiveKeepProfilesRunningSetToFalse4To5() local
328 Element keepProfilesRunning = (Element) policies.getDocumentElement() in testEffectiveKeepProfilesRunningSetToFalse4To5()
346 Document policies = readPolicies(userId); in testEffectiveKeepProfilesRunningIsToFalse4To6() local
347 Element keepProfilesRunning = (Element) policies.getDocumentElement() in testEffectiveKeepProfilesRunningIsToFalse4To6()
369 Document policies = readPolicies(userId); in testEffectiveKeepProfilesRunningIsToFalse3To6() local
370 Element keepProfilesRunning = (Element) policies.getDocumentElement() in testEffectiveKeepProfilesRunningIsToFalse3To6()
389 Document policies = readPolicies(userId); in testEffectiveKeepProfilesRunningMissingInV5() local
390 Element keepProfilesRunning = (Element) policies.getDocumentElement() in testEffectiveKeepProfilesRunningMissingInV5()
[all …]
/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/tools/aapt2/format/binary/
DTableFlattener_test.cpp810 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
811 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F()
812 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F()
829 EXPECT_EQ(result_overlayable_item.policies, PolicyFlags::SYSTEM_PARTITION in TEST_F()
838 overlayable_item_zero.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
839 overlayable_item_zero.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F()
843 overlayable_item_one.policies |= PolicyFlags::PUBLIC; in TEST_F()
847 overlayable_item_two.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
848 overlayable_item_two.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F()
849 overlayable_item_two.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DCpuPowerStatsProcessor.java82 int[] policies = scalingPolicies.getPolicies(); in CpuPowerStatsProcessor() local
83 mCpuClusterCount = policies.length; in CpuPowerStatsProcessor()
86 int policy = policies[cluster]; in CpuPowerStatsProcessor()
219 int[] policies = mCpuScalingPolicies.getPolicies(); in initEnergyConsumerToPowerBracketMaps() local
220 if (energyConsumerCount == policies.length) { in initEnergyConsumerToPowerBracketMaps()
222 ArraySet<Integer>[] clusterToBrackets = new ArraySet[policies.length]; in initEnergyConsumerToPowerBracketMaps()
224 for (int cluster = 0; cluster < policies.length; cluster++) { in initEnergyConsumerToPowerBracketMaps()
225 int[] freqs = mCpuScalingPolicies.getFrequencies(policies[cluster]); in initEnergyConsumerToPowerBracketMaps()
232 ArraySet<Integer>[] combinedEnergyConsumers = new ArraySet[policies.length]; in initEnergyConsumerToPowerBracketMaps()
DCpuPowerCalculator.java67 int[] policies = mCpuScalingPolicies.getPolicies(); in CpuPowerCalculator() local
68 mNumCpuClusters = policies.length; in CpuPowerCalculator()
73 mPerClusterPowerEstimators = new UsageBasedPowerEstimator[policies.length]; in CpuPowerCalculator()
74 for (int i = 0; i < policies.length; i++) { in CpuPowerCalculator()
76 profile.getAveragePowerForCpuScalingPolicy(policies[i])); in CpuPowerCalculator()
83 for (int cluster = 0; cluster < policies.length; cluster++) { in CpuPowerCalculator()
84 int policy = policies[cluster]; in CpuPowerCalculator()
DCpuPowerStatsCollector.java194 int[] policies = mCpuScalingPolicies.getPolicies(); in initPowerBracketsByCluster() local
195 for (int policy : policies) { in initPowerBracketsByCluster()
222 int[] policies = mCpuScalingPolicies.getPolicies(); in initDefaultPowerBrackets() local
223 for (int policy : policies) { in initDefaultPowerBrackets()
298 int[] policies = mCpuScalingPolicies.getPolicies(); in getCpuPowerBracketDescription() local
299 for (int policy : policies) { in getCpuPowerBracketDescription()
310 if (policies.length > 1) { in getCpuPowerBracketDescription()
DSystemServicePowerCalculator.java50 int[] policies = cpuScalingPolicies.getPolicies(); in SystemServicePowerCalculator() local
51 for (int policy : policies) { in SystemServicePowerCalculator()
/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/services/core/java/com/android/server/media/
DMediaSession2Record.java66 int policies) { in MediaSession2Record() argument
77 mPolicies = policies; in MediaSession2Record()
190 public void setSessionPolicies(int policies) { in setSessionPolicies() argument
192 mPolicies = policies; in setSessionPolicies()
/frameworks/base/tools/aapt2/link/
DTableMerger_test.cpp464 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
465 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST_F()
491 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PRODUCT_PARTITION in TEST_F()
504 overlayable_item.policies |= PolicyFlags::PUBLIC; in TEST_F()
505 overlayable_item.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST_F()
525 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PUBLIC in TEST_F()
533 overlayable_item_first.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
542 overlayable_item_second.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
560 overlayable_item_first.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
569 overlayable_item_second.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DIdmapDaemon.java131 @Nullable String overlayName, int policies, boolean enforce, int userId) in createIdmap() argument
137 + "\", \"" + overlayPath + "\", \"" + overlayName + "\", " + policies + ", " in createIdmap()
143 policies, enforce, userId); in createIdmap()
161 @Nullable String overlayName, int policies, boolean enforce, int userId) in verifyIdmap() argument
167 + "\", \"" + overlayPath + "\", \"" + overlayName + "\", " + policies + ", " in verifyIdmap()
173 policies, enforce, userId); in verifyIdmap()
DIdmapManager.java112 int policies = calculateFulfilledPolicies(targetPackage, overlayPackageState, in createIdmap() local
115 if (mIdmapDaemon.verifyIdmap(targetPath, overlayBasePath, overlayName, policies, in createIdmap()
120 overlayName, policies, enforce, userId) != null; in createIdmap()
/frameworks/base/core/java/android/app/admin/
DPolicyState.java78 LinkedHashMap<EnforcingAdmin, V> policies = new LinkedHashMap<>(); in getPoliciesSetByAdmins() local
80 policies.put(admin, mPoliciesSetByAdmins.get(admin).getValue()); in getPoliciesSetByAdmins()
82 return policies; in getPoliciesSetByAdmins()
DDevicePolicyState.java42 public DevicePolicyState(Map<UserHandle, Map<PolicyKey, PolicyState<?>>> policies) { in DevicePolicyState() argument
43 mPolicies = Objects.requireNonNull(policies); in DevicePolicyState()
/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/tools/aapt2/
DResourceTable_test.cpp270 overlayable_item.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST()
271 overlayable_item.policies |= PolicyFlags::VENDOR_PARTITION; in TEST()
288 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PRODUCT_PARTITION in TEST()
301 overlayable.policies = PolicyFlags::PRODUCT_PARTITION; in TEST()
307 overlayable2.policies = PolicyFlags::PRODUCT_PARTITION; in TEST()
313 overlayable3.policies = PolicyFlags::VENDOR_PARTITION; in TEST()
323 overlayable_item.policies = PolicyFlags::PRODUCT_PARTITION; in TEST()
329 overlayable_item2.policies = PolicyFlags::PRODUCT_PARTITION; in TEST()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTestsBase.java483 int policies, boolean enforce, int userId) { in createIdmap() argument
485 getCrc(overlayPath), targetPath, overlayName, policies, enforce)); in createIdmap()
495 boolean verifyIdmap(String targetPath, String overlayPath, String overlayName, int policies, in verifyIdmap() argument
501 return idmap.isUpToDate(getCrc(targetPath), getCrc(overlayPath), targetPath, policies, in verifyIdmap()
542 final int policies; field in OverlayManagerServiceImplTestsBase.FakeIdmapDaemon.IdmapHeader
546 String overlayName, int policies, boolean enforceOverlayable) { in IdmapHeader() argument
551 this.policies = policies; in IdmapHeader()
559 && expectedTargetPath.equals(targetPath) && expectedPolicies == policies in isUpToDate()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java159 final NetworkPolicy[] policies = mPolicyManager.getNetworkPolicies(); in findNetworkPolicy()
160 if (policies == null) return null; in findNetworkPolicy()
161 for (final NetworkPolicy policy : policies) { in findNetworkPolicy()
/frameworks/base/cmds/idmap2/include/idmap2/
DPolicyUtils.h33 Result<PolicyBitmask> PoliciesToBitmaskResult(const std::vector<std::string>& policies);
/frameworks/base/cmds/idmap2/tests/
DIdmapTests.cpp473 const PolicyBitmask policies = kIdmapRawDataPolicies; in TEST() local
491 kIdmapRawDataTargetCrc, overlay_crc, policies, in TEST()
528 target_crc, overlay_crc, policies, in TEST()
543 target_crc, overlay_crc, policies, in TEST()
558 target_crc, overlay_crc, policies, in TEST()
570 target_crc, overlay_crc, policies, in TEST()
582 target_crc, overlay_crc, policies, in TEST()
594 target_crc, overlay_crc, policies, in TEST()
606 target_crc, overlay_crc, policies, in TEST()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp247 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::NONE)); in TEST()
597 overlayable_item_foo.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST()
598 overlayable_item_foo.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST()
602 overlayable_item_bar.policies |= PolicyFlags::PUBLIC; in TEST()
603 overlayable_item_bar.policies |= PolicyFlags::VENDOR_PARTITION; in TEST()
607 overlayable_item_baz.policies |= PolicyFlags::PUBLIC; in TEST()
611 overlayable_item_boz.policies |= PolicyFlags::SIGNATURE; in TEST()
612 overlayable_item_boz.policies |= PolicyFlags::ODM_PARTITION; in TEST()
613 overlayable_item_boz.policies |= PolicyFlags::OEM_PARTITION; in TEST()
617 overlayable_item_actor_config.policies |= PolicyFlags::SIGNATURE; in TEST()
[all …]
/frameworks/base/ravenwood/
DAndroid.bp20 name: "ravenwood-services-policies",
22 "texts/ravenwood-services-policies.txt",
28 name: "ravenwood-framework-policies",
30 "texts/ravenwood-framework-policies.txt",

1234