Home
last modified time | relevance | path

Searched refs:jsonArrObject (Results 1 - 4 of 4) sorted by relevance

/base/print/print_fwk/services/print_service/include/
H A Dprint_service_ability.h172 void BuildPrinterAttrComponentByJson(std::string& key, nlohmann::json& jsonArrObject,
/base/print/print_fwk/test/fuzztest/printserviceability_fuzzer/
H A Dprintserviceability_fuzzer.cpp585 nlohmann::json jsonArrObject = nlohmann::json::parse(arrObject); in TestBuildPrinterAttrComponentByJson() local
589 PrintServiceAbility::GetInstance()->BuildPrinterAttrComponentByJson(key, jsonArrObject, printerAttrs); in TestBuildPrinterAttrComponentByJson()
/base/print/print_fwk/services/print_service/src/
H A Dprint_service_ability.cpp868 void PrintServiceAbility::BuildPrinterAttrComponentByJson(std::string &key, nlohmann::json &jsonArrObject, in BuildPrinterAttrComponentByJson() argument
871 if (!jsonArrObject.is_array()) { in BuildPrinterAttrComponentByJson()
872 PRINT_HILOGW("can not PrinterAttrsComponent by jsonArrObject"); in BuildPrinterAttrComponentByJson()
875 for (auto &element : jsonArrObject.items()) { in BuildPrinterAttrComponentByJson()
/base/print/print_fwk/test/unittest/fwk_print_service_ability_test/
H A Dprint_service_ability_test.cpp1355 nlohmann::json jsonArrObject = nlohmann::json::object(); in HWTEST_F() local
1356 jsonArrObject["key"] = "value"; in HWTEST_F()
1358 service->BuildPrinterAttrComponentByJson(key, jsonArrObject, printerAttrs); in HWTEST_F()

Completed in 13 milliseconds