Home
last modified time | relevance | path

Searched refs:PrintUtil (Results 1 - 8 of 8) sorted by relevance

/base/print/print_fwk/utils/include/
H A Dprint_util.h32 class PrintUtil { class
53 inline std::vector<uint32_t> PrintUtil::Str2Vec(std::string str) in Str2Vec()
69 inline void PrintUtil::Str2VecStr(std::string& str, std::vector<std::string>& vec) in Str2VecStr()
82 inline std::string PrintUtil::ParseListToString(const std::vector<std::string> &list) in ParseListToString()
99 inline std::string PrintUtil::SplitStr(const std::string& str, char delimiter, int index) in SplitStr()
115 inline std::string PrintUtil::ToUpper(const std::string& val) in ToUpper()
124 inline bool PrintUtil::CheckContains(const std::string& str, const std::string& content) in CheckContains()
133 inline std::string PrintUtil::StandardizePrinterName(std::string printerName) in StandardizePrinterName()
143 inline std::string PrintUtil::RemoveUnderlineFromPrinterName(std::string printerName) in RemoveUnderlineFromPrinterName()
153 inline bool PrintUtil
[all...]
H A Dprint_security_guard_util.h36 std::string upper = PrintUtil::ToUpper(des); in GetPrinterType()
44 if (PrintUtil::CheckContains(upper, key)) { in GetPrinterType()
/base/print/print_fwk/services/print_service/src/
H A Dprint_security_guard_info.cpp26 objectInfo_ = PrintUtil::ParseListToString(fileList); in PrintSecurityGuardInfo()
42 printTypeInfo_.ip = PrintUtil::SplitStr(description, '&', SPLIT_INDEX); in setPrintTypeInfo()
43 printTypeInfo_.mac = PrintUtil::SplitStr(printerId, '/', SPLIT_INDEX); in setPrintTypeInfo()
H A Dprint_system_data.cpp226 std::string stardardizeName = PrintUtil::StandardizePrinterName(printerName); in QueryPrinterIdByStandardizeName()
228 return PrintUtil::StandardizePrinterName(cupsPrinter.name) == stardardizeName; in QueryPrinterIdByStandardizeName()
252 printerInfo.SetPrinterName(PrintUtil::RemoveUnderlineFromPrinterName(cupsPrinter.name)); in QueryPrinterInfoById()
813 std::string name = PrintUtil::StandardizePrinterName(printerName);
819 if (PrintUtil::StandardizePrinterName(printerInfoPtr->GetPrinterName()) != name) {
H A Dprint_cups_client.cpp490 std::string standardName = PrintUtil::StandardizePrinterName(printerName); in AddPrinterToCups()
536 std::string standardName = PrintUtil::StandardizePrinterName(printerName); in AddPrinterToCupsWithPpd()
696 std::string standardName = PrintUtil::StandardizePrinterName(printerName); in QueryPrinterCapabilityFromPPD()
1443 bool isCustomizedExtension = !(PrintUtil::startsWith(printerId, SPOOLER_BUNDLE_NAME) || in CheckPrinterOnline()
1444 PrintUtil::startsWith(printerId, VENDOR_MANAGER_PREFIX)); in CheckPrinterOnline()
1560 params->printerName = PrintUtil::StandardizePrinterName(optionJson["printerName"]); in BuildJobParameters()
H A Dprint_service_ability.cpp627 info.SetPrinterName(PrintUtil::RemoveUnderlineFromPrinterName(cupsPrinter.name)); in QueryPrinterInfoByPrinterId()
821 PrintUtil::Str2VecStr(supportedOpts, optAttrs); in BuildPrinterPreferenceByOption()
1229 printerInfo->SetPrinterName(PrintUtil::RemoveUnderlineFromPrinterName(printerInfo->GetPrinterName())); in UpdateQueuedJobList()
1541 if (!PrintUtil::startsWith(printerId, SPOOLER_BUNDLE_NAME)) { in UpdatePrinterCapability()
2794 std::string standardName = PrintUtil::StandardizePrinterName(printerName); in DeletePrinterFromCups()
2841 if (!PrintUtil::startsWith(extensionId, PRINT_EXTENSION_BUNDLE_NAME)) { in UpdatePrinterInDiscovery()
3235 std::string standardName = PrintUtil::StandardizePrinterName(cupsPrinter.name); in RemoveVendorPrinterFromCups()
/base/print/print_fwk/frameworks/ohprint/src/
H A Dprint_helper.cpp345 std::vector<uint32_t> orientationVector = PrintUtil::Str2Vec(orientationArray); in ParsePrinterOpt()
/base/print/print_fwk/test/unittest/fwk_print_cups_client_test/
H A Dprint_cups_client_test.cpp1377 EXPECT_EQ(jobParams->printerName, PrintUtil::StandardizePrinterName(optionJson["printerName"])); in HWTEST_F()

Completed in 22 milliseconds