/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); in BitmaskToPolicies() 60 return policies; in BitmaskToPolicies()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 59 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/ |
D | PolicyVersionUpgraderTest.java | 301 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/ |
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/tools/aapt2/format/binary/ |
D | TableFlattener_test.cpp | 810 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/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/services/core/java/com/android/server/om/ |
D | IdmapDaemon.java | 124 @Nullable String overlayName, int policies, boolean enforce, int userId) in createIdmap() argument 130 + "\", \"" + overlayPath + "\", \"" + overlayName + "\", " + policies + ", " in createIdmap() 136 policies, enforce, userId); in createIdmap() 154 @Nullable String overlayName, int policies, boolean enforce, int userId) in verifyIdmap() argument 160 + "\", \"" + overlayPath + "\", \"" + overlayName + "\", " + policies + ", " in verifyIdmap() 166 policies, enforce, userId); in verifyIdmap()
|
D | IdmapManager.java | 112 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/tools/aapt2/link/ |
D | TableMerger_test.cpp | 464 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/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/core/java/android/app/admin/ |
D | PolicyState.java | 78 LinkedHashMap<EnforcingAdmin, V> policies = new LinkedHashMap<>(); in getPoliciesSetByAdmins() local 80 policies.put(admin, mPoliciesSetByAdmins.get(admin).getValue()); in getPoliciesSetByAdmins() 82 return policies; in getPoliciesSetByAdmins()
|
D | DevicePolicyState.java | 42 public DevicePolicyState(Map<UserHandle, Map<PolicyKey, PolicyState<?>>> policies) { in DevicePolicyState() argument 43 mPolicies = Objects.requireNonNull(policies); in DevicePolicyState()
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable_test.cpp | 270 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()
|
D | ResourceParser_test.cpp | 1063 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SIGNATURE)); in TEST_F() 1072 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SIGNATURE)); in TEST_F() 1121 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PRODUCT_PARTITION)); in TEST_F() 1129 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SYSTEM_PARTITION)); in TEST_F() 1137 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::VENDOR_PARTITION)); in TEST_F() 1145 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::PUBLIC)); in TEST_F() 1153 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::SIGNATURE)); in TEST_F() 1161 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::ODM_PARTITION)); in TEST_F() 1169 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::OEM_PARTITION)); in TEST_F() 1177 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::ACTOR_SIGNATURE)); in TEST_F() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTestsBase.java | 483 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/ |
D | DataUsageController.java | 171 final NetworkPolicy[] policies = mPolicyManager.getNetworkPolicies(); in findNetworkPolicy() 172 if (policies == null) return null; in findNetworkPolicy() 173 final int N = policies.length; in findNetworkPolicy() 175 final NetworkPolicy policy = policies[i]; in findNetworkPolicy()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyEngine.java | 804 Map<PolicyKey, PolicyState<?>> policies, in getUserRestrictionPolicyKeysForAdminLocked() argument 807 for (PolicyKey key : policies.keySet()) { in getUserRestrictionPolicyKeysForAdminLocked() 808 if (!policies.get(key).getPolicyDefinition().isUserRestrictionPolicy()) { in getUserRestrictionPolicyKeysForAdminLocked() 812 PolicyValue<Boolean> value = (PolicyValue<Boolean>) policies.get(key) in getUserRestrictionPolicyKeysForAdminLocked() 893 Map<PolicyKey, PolicyState<?>> policies, PolicyDefinition<V> policyDefinition) { in getPolicyStateLocked() argument 898 PolicyState<V> policyState = (PolicyState<V>) policies.get( in getPolicyStateLocked() 1144 LinkedHashMap<EnforcingAdmin, PolicyValue<ComponentName>> policies = in removePersistentPreferredActivityPoliciesForPackage() local 1149 for (EnforcingAdmin admin : policies.keySet()) { in removePersistentPreferredActivityPoliciesForPackage() 1150 if (policies.get(admin).getValue() != null in removePersistentPreferredActivityPoliciesForPackage() 1151 && policies.get(admin).getValue().getPackageName().equals(packageName)) { in removePersistentPreferredActivityPoliciesForPackage() [all …]
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | PolicyUtils.h | 33 Result<PolicyBitmask> PoliciesToBitmaskResult(const std::vector<std::string>& policies);
|
/frameworks/base/cmds/idmap2/tests/ |
D | IdmapTests.cpp | 473 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/ |
D | ProtoSerialize_test.cpp | 247 EXPECT_THAT(result_overlayable_item.policies, Eq(PolicyFlags::NONE)); in TEST() 596 overlayable_item_foo.policies |= PolicyFlags::SYSTEM_PARTITION; in TEST() 597 overlayable_item_foo.policies |= PolicyFlags::PRODUCT_PARTITION; in TEST() 601 overlayable_item_bar.policies |= PolicyFlags::PUBLIC; in TEST() 602 overlayable_item_bar.policies |= PolicyFlags::VENDOR_PARTITION; in TEST() 606 overlayable_item_baz.policies |= PolicyFlags::PUBLIC; in TEST() 610 overlayable_item_boz.policies |= PolicyFlags::SIGNATURE; in TEST() 611 overlayable_item_boz.policies |= PolicyFlags::ODM_PARTITION; in TEST() 612 overlayable_item_boz.policies |= PolicyFlags::OEM_PARTITION; in TEST() 616 overlayable_item_actor_config.policies |= PolicyFlags::SIGNATURE; in TEST() [all …]
|
D | ProtoSerialize.cpp | 311 if (overlayable_item.policies & PolicyFlags::PUBLIC) { in SerializeOverlayableItemToPb() 314 if (overlayable_item.policies & PolicyFlags::PRODUCT_PARTITION) { in SerializeOverlayableItemToPb() 317 if (overlayable_item.policies & PolicyFlags::SYSTEM_PARTITION) { in SerializeOverlayableItemToPb() 320 if (overlayable_item.policies & PolicyFlags::VENDOR_PARTITION) { in SerializeOverlayableItemToPb() 323 if (overlayable_item.policies & PolicyFlags::SIGNATURE) { in SerializeOverlayableItemToPb() 326 if (overlayable_item.policies & PolicyFlags::ODM_PARTITION) { in SerializeOverlayableItemToPb() 329 if (overlayable_item.policies & PolicyFlags::OEM_PARTITION) { in SerializeOverlayableItemToPb() 332 if (overlayable_item.policies & PolicyFlags::ACTOR_SIGNATURE) { in SerializeOverlayableItemToPb() 335 if (overlayable_item.policies & PolicyFlags::CONFIG_SIGNATURE) { in SerializeOverlayableItemToPb()
|
/frameworks/av/services/mediaresourcemanager/fuzzer/ |
D | mediaresourcemanager_fuzzer.cpp | 228 vector<MediaResourcePolicyParcel> policies; in setConfig() local 229 policies.push_back(MediaResourcePolicy(kPolicyType[policyTypeIndex], policyValue)); in setConfig() 230 mService->config(policies); in setConfig()
|