/base/account/os_account/test/fuzztest/osaccount_stub/isosaccountconstraintenablestub_fuzzer/ |
D | isosaccountconstraintenablestub_fuzzer.cpp | 44 std::string constraint(reinterpret_cast<const char *>(data), size); in IsOsAccountConstraintEnableStubFuzzTest() 45 if (!datas.WriteString(constraint)) { in IsOsAccountConstraintEnableStubFuzzTest()
|
/base/account/os_account/test/fuzztest/osaccount_stub/queryosaccountconstraintsourcetypesstub_fuzzer/ |
D | queryosaccountconstraintsourcetypesstub_fuzzer.cpp | 43 std::string constraint(reinterpret_cast<const char*>(data), size); in QueryOsAccountConstraintSourceTypesStubFuzzTest() 44 if (!datas.WriteString(constraint)) { in QueryOsAccountConstraintSourceTypesStubFuzzTest()
|
/base/account/os_account/test/fuzztest/osaccount_stub/checkosaccountconstraintenabledstub_fuzzer/ |
D | checkosaccountconstraintenabledstub_fuzzer.cpp | 44 std::string constraint(reinterpret_cast<const char *>(data), size); in CheckOsAccountConstraintEnabledStubFuzzTest() 45 if (!datas.WriteString(constraint)) { in CheckOsAccountConstraintEnabledStubFuzzTest()
|
/base/account/os_account/tools/acm/src/ |
D | account_command.cpp | 274 for (auto constraint : constraints) { in RunAsSetCommand() local 275 ACCOUNT_LOGD("constraint = %{public}s", constraint.c_str()); in RunAsSetCommand() 635 std::string constraint = ""; in AnalyzeConstraintArgument() local 641 constraint = constraintsByUser.substr(last, next - last); in AnalyzeConstraintArgument() 642 ACCOUNT_LOGD("constraint = %{public}s", constraint.c_str()); in AnalyzeConstraintArgument() 644 constraints.emplace_back(constraint); in AnalyzeConstraintArgument() 647 constraint = constraintsByUser.substr(last); in AnalyzeConstraintArgument() 648 ACCOUNT_LOGD("constraint = %{public}s", constraint.c_str()); in AnalyzeConstraintArgument() 649 constraints.emplace_back(constraint); in AnalyzeConstraintArgument()
|
/base/account/os_account/frameworks/osaccount/native/src/ |
D | os_account_manager.cpp | 52 const int id, const std::string &constraint, bool &isConstraintEnable) in IsOsAccountConstraintEnable() argument 54 return OsAccount::GetInstance().IsOsAccountConstraintEnable(id, constraint, isConstraintEnable); in IsOsAccountConstraintEnable() 58 const int id, const std::string &constraint, bool &isEnabled) in CheckOsAccountConstraintEnabled() argument 60 return OsAccount::GetInstance().CheckOsAccountConstraintEnabled(id, constraint, isEnabled); in CheckOsAccountConstraintEnabled() 267 …AccountManager::QueryOsAccountConstraintSourceTypes(const int32_t id, const std::string constraint, in QueryOsAccountConstraintSourceTypes() argument 271 QueryOsAccountConstraintSourceTypes(id, constraint, constraintSourceTypeInfos); in QueryOsAccountConstraintSourceTypes()
|
/base/account/os_account/services/accountmgr/include/osaccount/ |
D | ios_account_control.h | 52 …virtual ErrCode IsFromBaseOAConstraintsList(const int32_t id, const std::string constraint, bool &… 54 const std::string constraint, std::vector<ConstraintSourceTypeInfo> &globalSourceList) = 0; 56 … const std::string constraint, std::vector<ConstraintSourceTypeInfo> &specificSourceList) = 0;
|
D | os_account_manager_service.h | 42 const int id, const std::string &constraint, bool &isConstraintEnable) override; 44 const int id, const std::string &constraint, bool &isEnabled) override; 104 …const std::string &constraint, std::vector<ConstraintSourceTypeInfo> &constraintSourceTypeInfos) o…
|
D | os_account_control_file_manager.h | 65 …ErrCode IsFromBaseOAConstraintsList(const int32_t id, const std::string constraint, bool &isExits)… 67 … const std::string constraint, std::vector<ConstraintSourceTypeInfo> &globalSourceList) override; 69 … const std::string constraint, std::vector<ConstraintSourceTypeInfo> &specificSourceList) override;
|
D | iinner_os_account.h | 39 const int id, const std::string &constraint, bool &isOsAccountConstraintEnable) = 0; 77 …const std::string &constraint, std::vector<ConstraintSourceTypeInfo> &constraintSourceTypeInfos) =…
|
D | iinner_os_account_manager.h | 42 const int id, const std::string &constraint, bool &isOsAccountConstraintEnable) override; 80 …const std::string &constraint, std::vector<ConstraintSourceTypeInfo> &constraintSourceTypeInfos) o…
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
D | os_account_manager_service.cpp | 215 const int id, const std::string &constraint, bool &isConstraintEnable) in IsOsAccountConstraintEnable() argument 227 return innerManager_.IsOsAccountConstraintEnable(id, constraint, isConstraintEnable); in IsOsAccountConstraintEnable() 231 const int id, const std::string &constraint, bool &isEnabled) in CheckOsAccountConstraintEnabled() argument 243 return innerManager_.IsOsAccountConstraintEnable(id, constraint, isEnabled); in CheckOsAccountConstraintEnabled() 717 [](auto constraint) {return DUMP_TAB_CHARACTER + DUMP_TAB_CHARACTER + constraint; }); in DumpStateByAccounts() argument 740 const std::string &constraint, std::vector<ConstraintSourceTypeInfo> &constraintSourceTypeInfos) in QueryOsAccountConstraintSourceTypes() argument 747 if (constraint.empty() || constraint.size() > Constants::CONSTRAINT_MAX_SIZE) { in QueryOsAccountConstraintSourceTypes() 748 ACCOUNT_LOGE("constraint length is invalid. length %{public}zu.", constraint.size()); in QueryOsAccountConstraintSourceTypes() 758 …return innerManager_.QueryOsAccountConstraintSourceTypes(id, constraint, constraintSourceTypeInfos… in QueryOsAccountConstraintSourceTypes()
|
D | os_account_stub.cpp | 809 std::string constraint = data.ReadString(); in ProcCheckOsAccountConstraintEnabled() local 810 if (constraint.empty() || constraint.size() > Constants::CONSTRAINT_MAX_SIZE) { in ProcCheckOsAccountConstraintEnabled() 811 … ACCOUNT_LOGE("failed to read string for constraint. length %{public}zu.", constraint.size()); in ProcCheckOsAccountConstraintEnabled() 819 result = IsOsAccountConstraintEnable(localId, constraint, isEnabled); in ProcCheckOsAccountConstraintEnabled() 821 result = CheckOsAccountConstraintEnabled(localId, constraint, isEnabled); in ProcCheckOsAccountConstraintEnabled() 1184 std::string constraint; in ProcQueryOsAccountConstraintSourceTypes() local 1185 if (!data.ReadString(constraint)) { in ProcQueryOsAccountConstraintSourceTypes() 1191 …ErrCode result = QueryOsAccountConstraintSourceTypes(localId, constraint, constraintSourceTypeInfo… in ProcQueryOsAccountConstraintSourceTypes()
|
D | inner_os_account_manager.cpp | 530 const int id, const std::string &constraint, bool &isOsAccountConstraintEnable) in IsOsAccountConstraintEnable() argument 541 if (std::find(constraints.begin(), constraints.end(), constraint) != constraints.end()) { in IsOsAccountConstraintEnable() 547 if (std::find(constraints.begin(), constraints.end(), constraint) != constraints.end()) { in IsOsAccountConstraintEnable() 554 if (std::find(constraints.begin(), constraints.end(), constraint) != constraints.end()) { in IsOsAccountConstraintEnable() 631 const std::string &constraint, std::vector<ConstraintSourceTypeInfo> &constraintSourceTypeInfos) in QueryOsAccountConstraintSourceTypes() argument 635 ErrCode errCode = IsOsAccountConstraintEnable(id, constraint, isOsAccountConstraintEnable); in QueryOsAccountConstraintSourceTypes() 650 if (osAccountControl_->IsFromBaseOAConstraintsList(id, constraint, isExits) == ERR_OK) { in QueryOsAccountConstraintSourceTypes() 660 …errCode = osAccountControl_->IsFromGlobalOAConstraintsList(id, deviceOwnerId_, constraint, globalS… in QueryOsAccountConstraintSourceTypes() 667 …errCode = osAccountControl_->IsFromSpecificOAConstraintsList(id, deviceOwnerId_, constraint, speci… in QueryOsAccountConstraintSourceTypes()
|
D | os_account_control_file_manager.cpp | 843 const int32_t id, const std::string constraint, bool &isExist) in IsFromBaseOAConstraintsList() argument 853 …if (std::find(constraintsList.begin(), constraintsList.end(), constraint) != constraintsList.end()… in IsFromBaseOAConstraintsList() 861 const std::string constraint, std::vector<ConstraintSourceTypeInfo> &globalSourceList) in IsFromGlobalOAConstraintsList() argument 873 …if (std::find(constraintsList.begin(), constraintsList.end(), constraint) != constraintsList.end()… in IsFromGlobalOAConstraintsList() 884 constraint, in IsFromGlobalOAConstraintsList() 904 const std::string constraint, std::vector<ConstraintSourceTypeInfo> &specificSourceList) in IsFromSpecificOAConstraintsList() argument 914 …if (std::find(constraintsList.begin(), constraintsList.end(), constraint) != constraintsList.end()… in IsFromSpecificOAConstraintsList() 926 specificOAConstraintsInfo.end(), constraint, in IsFromSpecificOAConstraintsList()
|
/base/account/os_account/frameworks/osaccount/core/include/ |
D | os_account_proxy.h | 37 const int id, const std::string &constraint, bool &isConstraintEnable) override; 39 const int id, const std::string &constraint, bool &isEnabled) override; 83 …const std::string &constraint, std::vector<ConstraintSourceTypeInfo> &constraintSourceTypeInfos) o… 98 …OsAccountInterfaceCode code, const int id, const std::string &constraint, bool &isConstraintEnable…
|
D | os_account.h | 35 …ErrCode IsOsAccountConstraintEnable(const int id, const std::string &constraint, bool &isConstrain… 36 …ErrCode CheckOsAccountConstraintEnabled(const int id, const std::string &constraint, bool &isEnabl… 77 ErrCode QueryOsAccountConstraintSourceTypes(const int32_t id, const std::string &constraint,
|
D | ios_account.h | 43 const int id, const std::string &constraint, bool &isConstraintEnable) = 0; 45 const int id, const std::string &constraint, bool &isEnabled) = 0; 89 …const std::string &constraint, std::vector<ConstraintSourceTypeInfo> &constraintSourceTypeInfos) =…
|
/base/account/os_account/interfaces/innerkits/osaccount/native/include/ |
D | os_account_manager.h | 103 …static ErrCode IsOsAccountConstraintEnable(const int id, const std::string &constraint, bool &isCo… 113 const int id, const std::string &constraint, bool &isEnabled); 439 … static ErrCode QueryOsAccountConstraintSourceTypes(const int32_t id, const std::string constraint,
|
/base/account/os_account/services/accountmgr/test/unittest/os_account/mock/ |
D | mock_os_account_control_file_manager.h | 48 const std::string constraint, std::vector<ConstraintSourceTypeInfo> &globalSourceList)); 50 const std::string constraint, std::vector<ConstraintSourceTypeInfo> &specificSourceList));
|
/base/account/os_account/frameworks/osaccount/core/src/ |
D | os_account.cpp | 148 ErrCode OsAccount::IsOsAccountConstraintEnable(const int id, const std::string &constraint, bool &i… in IsOsAccountConstraintEnable() argument 161 return osAccountProxy_->IsOsAccountConstraintEnable(id, constraint, isConstraintEnable); in IsOsAccountConstraintEnable() 164 ErrCode OsAccount::CheckOsAccountConstraintEnabled(const int id, const std::string &constraint, boo… in CheckOsAccountConstraintEnabled() argument 176 return osAccountProxy_->CheckOsAccountConstraintEnabled(id, constraint, isEnabled); in CheckOsAccountConstraintEnabled() 793 …ode OsAccount::QueryOsAccountConstraintSourceTypes(const int32_t id, const std::string &constraint, in QueryOsAccountConstraintSourceTypes() argument 802 …return osAccountProxy_->QueryOsAccountConstraintSourceTypes(id, constraint, constraintSourceTypeIn… in QueryOsAccountConstraintSourceTypes()
|
D | os_account_proxy.cpp | 133 OsAccountInterfaceCode code, const int id, const std::string &constraint, bool &isEnabled) in CheckOsAccountConstraintEnabled() argument 144 if (!data.WriteString(constraint)) { in CheckOsAccountConstraintEnabled() 170 const int id, const std::string &constraint, bool &isConstraintEnable) in IsOsAccountConstraintEnable() argument 173 … OsAccountInterfaceCode::IS_OS_ACCOUNT_CONSTRAINT_ENABLE, id, constraint, isConstraintEnable); in IsOsAccountConstraintEnable() 177 const int id, const std::string &constraint, bool &isEnabled) in CheckOsAccountConstraintEnabled() argument 180 OsAccountInterfaceCode::CHECK_OS_ACCOUNT_CONSTRAINT_ENABLED, id, constraint, isEnabled); in CheckOsAccountConstraintEnabled() 1068 const std::string &constraint, std::vector<ConstraintSourceTypeInfo> &constraintSourceTypeInfos) in QueryOsAccountConstraintSourceTypes() argument 1080 if (!data.WriteString(constraint)) { in QueryOsAccountConstraintSourceTypes()
|
/base/account/os_account/test/systemtest/common/resource/fuzzTest/src/ |
D | fuzz_test_manager.cpp | 119 std::string constraint = GetStringParam(); in RegisterOsAccountManager() local 120 … OsAccountManager::IsOsAccountConstraintEnable(GetIntParam(), constraint, isConstraintEnable); in RegisterOsAccountManager()
|
/base/account/os_account/interfaces/kits/napi/osaccount/include/ |
D | napi_os_account.h | 110 std::string constraint; member 153 std::string constraint; member
|
/base/account/os_account/interfaces/kits/napi/osaccount/src/ |
D | napi_os_account_common.cpp | 262 napi_value constraint = nullptr; in MakeArrayToJs() local 263 napi_create_string_utf8(env, item.c_str(), NAPI_AUTO_LENGTH, &constraint); in MakeArrayToJs() 264 napi_set_element(env, jsArray, index, constraint); in MakeArrayToJs() 808 if (!GetStringProperty(env, argv[PARAMONE], asyncContext->constraint)) { in ParseQueryOAConstraintSrcTypes() 822 asyncContext->constraint, asyncContext->constraintSourceTypeInfos); in QueryOAContSrcTypeExecuteCB() 1277 if (!GetStringProperty(env, argv[PARAMONE], asyncContext->constraint)) { in ParseParaIsEnable() 1291 asyncContext->constraint, asyncContext->isConsEnable); in IsEnableExecuteCB() 1294 asyncContext->constraint, asyncContext->isConsEnable); in IsEnableExecuteCB()
|
/base/account/os_account/services/accountmgr/test/unittest/os_account/ |
D | os_account_inner_account_mgr_mock.cpp | 969 const std::string constraint; variable 975 …ErrCode ret = innerMgrService_->QueryOsAccountConstraintSourceTypes(id, constraint, constraintSour… 990 const std::string constraint; variable
|