/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/ |
H A D | bundle_install_plugin_test.cpp | 57 for (int32_t policyType = static_cast<int32_t>(AppExecFwk::AppInstallControlRuleType::DISALLOWED_UNINSTALL); in HWTEST_F() 58 policyType <= static_cast<int32_t>(AppExecFwk::AppInstallControlRuleType::DISALLOWED_INSTALL); policyType++) { in HWTEST_F() 59 plugin.SetAppInstallControlRuleType(static_cast<AppExecFwk::AppInstallControlRuleType>(policyType)); in HWTEST_F() 75 for (int32_t policyType = static_cast<int32_t>(AppExecFwk::AppInstallControlRuleType::DISALLOWED_UNINSTALL); in HWTEST_F() 76 policyType <= static_cast<int32_t>(AppExecFwk::AppInstallControlRuleType::DISALLOWED_INSTALL); policyType++) { in HWTEST_F() 77 plugin.SetAppInstallControlRuleType(static_cast<AppExecFwk::AppInstallControlRuleType>(policyType)); in HWTEST_F() 94 for (int32_t policyType = static_cast<int32_t>(AppExecFwk::AppInstallControlRuleType::DISALLOWED_UNINSTALL); in HWTEST_F() 95 policyType < in HWTEST_F() [all...] |
/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/ |
H A D | bundle_manager_proxy_test.cpp | 83 for (int32_t policyType = static_cast<int32_t>(PolicyType::ALLOW_INSTALL); in HWTEST_F() 84 policyType <= static_cast<int32_t>(PolicyType::DISALLOW_UNINSTALL); policyType++) { in HWTEST_F() 88 ErrCode ret = bundleManagerProxy->AddBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, policyType); in HWTEST_F() 103 for (int32_t policyType = static_cast<int32_t>(PolicyType::ALLOW_INSTALL); in HWTEST_F() 104 policyType <= static_cast<int32_t>(PolicyType::DISALLOW_UNINSTALL); policyType++) { in HWTEST_F() 105 ErrCode ret = bundleManagerProxy->AddBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, policyType); in HWTEST_F() 119 for (int32_t policyType = static_cast<int32_t>(PolicyType::ALLOW_INSTALL); in HWTEST_F() 120 policyType < in HWTEST_F() 232 int32_t policyType = static_cast<int32_t>(PolicyType::INVALID_TYPE); HWTEST_F() local [all...] |
/base/security/access_token/services/privacymanager/include/sensitive/camera_manager/ |
H A D | camera_manager_privacy_proxy.h | 31 virtual int32_t MuteCameraPersist(PolicyType policyType, bool muteMode) = 0; 41 int32_t MuteCameraPersist(PolicyType policyType, bool muteMode) override;
|
H A D | camera_manager_privacy_client.h | 35 int32_t MuteCameraPersist(PolicyType policyType, bool muteMode);
|
/base/customization/enterprise_device_management/interfaces/inner_api/bundle_manager/include/ |
H A D | bundle_manager_proxy.h | 29 int32_t policyType); 31 int32_t policyType); 33 int32_t policyType);
|
/base/customization/enterprise_device_management/interfaces/inner_api/bundle_manager/src/ |
H A D | bundle_manager_proxy.cpp | 93 int32_t userId, int32_t policyType) in AddBundlesByPolicyType() 95 EDMLOGD("BundleManagerProxy::AddBundlesByPolicyType policyType =%{public}d", policyType); in AddBundlesByPolicyType() 99 if (policyTypeMap_.count(policyType) > 0) { in AddBundlesByPolicyType() 100 funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, policyTypeMap_[policyType]); in AddBundlesByPolicyType() 115 int32_t userId, int32_t policyType) in RemoveBundlesByPolicyType() 117 EDMLOGD("BundleManagerProxy::RemoveBundlesByPolicyType policyType =%{public}d", policyType); in RemoveBundlesByPolicyType() 121 if (policyTypeMap_.count(policyType) > 0) { in RemoveBundlesByPolicyType() 122 funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::REMOVE, policyTypeMap_[policyType]); in RemoveBundlesByPolicyType() 92 AddBundlesByPolicyType(AppExecFwk::ElementName &admin, std::vector<std::string> &bundles, int32_t userId, int32_t policyType) AddBundlesByPolicyType() argument 114 RemoveBundlesByPolicyType(AppExecFwk::ElementName &admin, std::vector<std::string> &bundles, int32_t userId, int32_t policyType) RemoveBundlesByPolicyType() argument 136 GetBundlesByPolicyType(AppExecFwk::ElementName &admin, int32_t userId, std::vector<std::string> &bundles, int32_t policyType) GetBundlesByPolicyType() argument [all...] |
/base/customization/enterprise_device_management/interfaces/kits/bundle_manager/src/ |
H A D | bundle_manager_addon.cpp | 365 EDMLOGI("GetInstallBundles::%{public}s policyType = %{public}d", workName.c_str(), asyncCallbackInfo->policyType); in GetAllowedOrDisallowedInstallBundles() 376 callbackInfo->policyType = iter->second; in InitCallbackInfoPolicyType() 379 callbackInfo->policyType = static_cast<int32_t>(PolicyType::INVALID_TYPE); in InitCallbackInfoPolicyType() 398 asyncCallbackInfo->arrayStringRet, asyncCallbackInfo->policyType); in NativeGetBundlesByPolicyType() 505 EDMLOGI("AddOrRemoveInstallBundles::%{public}s policyType = %{public}d", workName.c_str(), in AddOrRemoveInstallBundles() 506 asyncCallbackInfo->policyType); in AddOrRemoveInstallBundles() 526 asyncCallbackInfo->bundles, asyncCallbackInfo->userId, asyncCallbackInfo->policyType); in NativeRemoveBundlesByPolicyType() 543 asyncCallbackInfo->bundles, asyncCallbackInfo->userId, asyncCallbackInfo->policyType); in NativeAddBundlesByPolicyType() 615 int32_t policyType in AddOrRemoveInstallBundlesSync() local 636 InitPolicyType(const std::string &workName, int32_t &policyType) InitPolicyType() argument 692 int32_t policyType = 0; GetAllowedOrDisallowedInstallBundlesSync() local [all...] |
/base/security/access_token/frameworks/common/src/ |
H A D | data_validator.cpp | 153 PolicyType policyType = static_cast<PolicyType>(type); in IsPolicyTypeValid() local 154 if ((policyType != EDM) && (policyType != PRIVACY) && (policyType != TEMPORARY)) { in IsPolicyTypeValid()
|
/base/security/access_token/services/privacymanager/src/sensitive/camera_manager/ |
H A D | camera_manager_privacy_client.cpp | 52 int32_t CameraManagerPrivacyClient::MuteCameraPersist(PolicyType policyType, bool muteMode) in MuteCameraPersist() argument 59 return proxy->MuteCameraPersist(policyType, muteMode); in MuteCameraPersist()
|
H A D | camera_manager_privacy_proxy.cpp | 27 int32_t CameraManagerPrivacyProxy::MuteCameraPersist(PolicyType policyType, bool muteMode) in MuteCameraPersist() argument 36 if (!data.WriteInt32(static_cast<int32_t>(policyType))) { in MuteCameraPersist()
|
/base/security/access_token/test/fuzztest/services/privacy/setmutepolicystub_fuzzer/ |
H A D | setmutepolicystub_fuzzer.cpp | 71 uint32_t policyType = fuzzData.GetData<uint32_t>(); in SetMutePolicyStubFuzzTest() local 77 if (!datas.WriteUint32(policyType)) { in SetMutePolicyStubFuzzTest()
|
/base/customization/enterprise_device_management/interfaces/kits/bundle_manager/include/ |
H A D | bundle_manager_addon.h | 34 int32_t policyType = 0; member 104 static void InitPolicyType(const std::string &workName, int32_t &policyType);
|
/base/security/access_token/frameworks/inner_api/privacy/src/ |
H A D | privacy_kit.cpp | 226 int32_t PrivacyKit::SetMutePolicy(uint32_t policyType, uint32_t callerType, bool isMute) in SetMutePolicy() argument 228 if (!DataValidator::IsPolicyTypeValid(policyType) && !DataValidator::IsCallerTypeValid(callerType)) { in SetMutePolicy() 231 return PrivacyManagerClient::GetInstance().SetMutePolicy(policyType, callerType, isMute); in SetMutePolicy()
|
H A D | privacy_manager_client.h | 67 int32_t SetMutePolicy(uint32_t policyType, uint32_t callerType, bool isMute);
|
H A D | privacy_manager_proxy.h | 55 int32_t SetMutePolicy(uint32_t policyType, uint32_t callerType, bool isMute) override;
|
H A D | privacy_manager_proxy.cpp | 469 int32_t PrivacyManagerProxy::SetMutePolicy(uint32_t policyType, uint32_t callerType, bool isMute) in SetMutePolicy() argument 478 if (!data.WriteUint32(policyType)) { in SetMutePolicy() 479 ACCESSTOKEN_LOG_ERROR(LABEL, "Failed to WriteUint32(%{public}d)", policyType); in SetMutePolicy()
|
H A D | privacy_manager_client.cpp | 363 int32_t PrivacyManagerClient::SetMutePolicy(uint32_t policyType, uint32_t callerType, bool isMute) in SetMutePolicy() argument 370 return proxy->SetMutePolicy(policyType, callerType, isMute); in SetMutePolicy()
|
/base/security/access_token/frameworks/privacy/include/ |
H A D | i_privacy_manager.h | 60 virtual int32_t SetMutePolicy(uint32_t policyType, uint32_t callerType, bool isMute) = 0;
|
/base/security/access_token/interfaces/inner_api/privacy/include/ |
H A D | privacy_kit.h | 187 * @param policyType policy type, see privacy_param.h 192 static int32_t SetMutePolicy(uint32_t policyType, uint32_t callerType, bool isMute);
|
/base/customization/enterprise_device_management/interfaces/kits/system_manager/src/ |
H A D | system_manager_addon.cpp | 342 int32_t policyType = -1; in JsObjToUpdatePolicy() local 343 if (!JsObjectToInt(env, object, "policyType", true, policyType) || in JsObjToUpdatePolicy() 344 !UpdatePolicyUtils::ProcessUpdatePolicyType(policyType, updatePolicy.type)) { in JsObjToUpdatePolicy() 345 errorMsg = "the property 'policyType' in type 'OtaUpdatePolicy' is necessary"; in JsObjToUpdatePolicy() 384 napi_value policyType = nullptr; in ConvertUpdatePolicyToJs() local 385 NAPI_CALL(env, napi_create_int32(env, static_cast<int32_t>(updatePolicy.type), &policyType)); in ConvertUpdatePolicyToJs() 386 NAPI_CALL(env, napi_set_named_property(env, otaUpdatePolicy, "policyType", policyType)); in ConvertUpdatePolicyToJs()
|
/base/security/access_token/services/privacymanager/include/service/ |
H A D | privacy_manager_service.h | 66 int32_t SetMutePolicy(uint32_t policyType, uint32_t callerType, bool isMute) override;
|
/base/security/access_token/services/privacymanager/src/service/ |
H A D | privacy_manager_stub.cpp | 431 uint32_t policyType; in SetMutePolicyInner() local 432 if (!data.ReadUint32(policyType)) { in SetMutePolicyInner() 433 ACCESSTOKEN_LOG_ERROR(LABEL, "Failed to read policyType."); in SetMutePolicyInner() 450 int32_t result = this->SetMutePolicy(policyType, callerType, isMute); in SetMutePolicyInner()
|
H A D | privacy_manager_service.cpp | 285 int32_t PrivacyManagerService::SetMutePolicy(uint32_t policyType, uint32_t callerType, bool isMute) in SetMutePolicy() argument 288 policyType, callerType, isMute); in SetMutePolicy() 290 static_cast<PolicyType>(policyType), static_cast<CallerType>(callerType), isMute); in SetMutePolicy()
|
/base/security/access_token/services/privacymanager/include/record/ |
H A D | permission_record_manager.h | 91 int32_t SetMutePolicy(const PolicyType& policyType, const CallerType& callerType, bool isMute);
|
/base/security/access_token/services/privacymanager/src/record/ |
H A D | permission_record_manager.cpp | 1285 int32_t PermissionRecordManager::SetMutePolicy(const PolicyType& policyType, const CallerType& callerType, bool isMute) in SetMutePolicy() argument 1296 if (policyType == EDM) { in SetMutePolicy() 1300 if (policyType == PRIVACY) { in SetMutePolicy() 1304 if (policyType == TEMPORARY) { in SetMutePolicy()
|