Home
last modified time | relevance | path

Searched refs:constraint (Results 1 – 25 of 27) sorted by relevance

12

/base/account/os_account/test/fuzztest/osaccount_stub/isosaccountconstraintenablestub_fuzzer/
Disosaccountconstraintenablestub_fuzzer.cpp44 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/
Dqueryosaccountconstraintsourcetypesstub_fuzzer.cpp43 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/
Dcheckosaccountconstraintenabledstub_fuzzer.cpp44 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/
Daccount_command.cpp274 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/
Dos_account_manager.cpp52 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/
Dios_account_control.h52 …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;
Dos_account_manager_service.h42 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…
Dos_account_control_file_manager.h65 …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;
Diinner_os_account.h39 const int id, const std::string &constraint, bool &isOsAccountConstraintEnable) = 0;
77 …const std::string &constraint, std::vector<ConstraintSourceTypeInfo> &constraintSourceTypeInfos) =…
Diinner_os_account_manager.h42 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/
Dos_account_manager_service.cpp215 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()
Dos_account_stub.cpp809 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()
Dinner_os_account_manager.cpp530 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()
Dos_account_control_file_manager.cpp843 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/
Dos_account_proxy.h37 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…
Dos_account.h35 …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,
Dios_account.h43 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/
Dos_account_manager.h103 …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/
Dmock_os_account_control_file_manager.h48 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/
Dos_account.cpp148 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()
Dos_account_proxy.cpp133 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/
Dfuzz_test_manager.cpp119 std::string constraint = GetStringParam(); in RegisterOsAccountManager() local
120 … OsAccountManager::IsOsAccountConstraintEnable(GetIntParam(), constraint, isConstraintEnable); in RegisterOsAccountManager()
/base/account/os_account/interfaces/kits/napi/osaccount/include/
Dnapi_os_account.h110 std::string constraint; member
153 std::string constraint; member
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account_common.cpp262 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/
Dos_account_inner_account_mgr_mock.cpp969 const std::string constraint; variable
975 …ErrCode ret = innerMgrService_->QueryOsAccountConstraintSourceTypes(id, constraint, constraintSour…
990 const std::string constraint; variable

12