Searched refs:globalPrinterId (Results 1 - 6 of 6) sorted by relevance
/base/print/print_fwk/services/print_service/src/ |
H A D | vendor_manager.cpp | 55 std::string VendorManager::ExtractGlobalVendorName(const std::string &globalPrinterId) in ExtractGlobalVendorName() argument 57 auto pos = globalPrinterId.find(GLOBAL_ID_DELIMITER); in ExtractGlobalVendorName() 61 return globalPrinterId.substr(0, pos); in ExtractGlobalVendorName() 64 std::string VendorManager::ExtractPrinterId(const std::string &globalPrinterId) in ExtractPrinterId() argument 66 auto pos = globalPrinterId.find(GLOBAL_ID_DELIMITER); in ExtractPrinterId() 67 if (pos == std::string::npos || globalPrinterId.length() <= pos + 1) { in ExtractPrinterId() 70 return globalPrinterId.substr(pos + 1); in ExtractPrinterId() 150 bool VendorManager::ConnectPrinter(const std::string &globalPrinterId) in ConnectPrinter() argument 153 std::string printerId = ExtractPrinterId(globalPrinterId); in ConnectPrinter() 158 auto vendorDriver = FindDriverByPrinterId(globalPrinterId); in ConnectPrinter() 189 QueryPrinterInfo(const std::string &globalPrinterId, int timeout) QueryPrinterInfo() argument 323 std::string globalPrinterId = GetGlobalPrinterId(globalVendorName, printerId); OnPrinterPpdQueried() local 347 FindDriverByPrinterId(const std::string &globalPrinterId) FindDriverByPrinterId() argument 433 MonitorPrinterStatus(const std::string &globalPrinterId, bool on) MonitorPrinterStatus() argument [all...] |
H A D | print_service_ability.cpp | 1482 std::string globalPrinterId = PrintUtils::GetGlobalId(extensionId, printerId); in RemovePrinters() local 1483 PRINT_HILOGD("RemovePrinters printerId = %{public}s", globalPrinterId.c_str()); in RemovePrinters() 1485 if (RemoveSinglePrinterInfo(globalPrinterId)) { in RemovePrinters() 3100 auto globalPrinterId = PrintUtils::GetGlobalId(globalVendorName, info.GetPrinterId()); in AddVendorPrinterToDiscovery() local 3101 auto printerInfo = printSystemData_.QueryDiscoveredPrinterInfoById(globalPrinterId); in AddVendorPrinterToDiscovery() 3110 if (printSystemData_.QueryCupsPrinterInfoByPrinterId(globalPrinterId, cupsPrinter)) { in AddVendorPrinterToDiscovery() 3113 printerInfo->SetPrinterId(globalPrinterId); in AddVendorPrinterToDiscovery() 3119 SendQueuePrintJob(globalPrinterId); in AddVendorPrinterToDiscovery() 3138 auto globalPrinterId = PrintUtils::GetGlobalId(globalVendorName, info.GetPrinterId()); in UpdateVendorPrinterToDiscovery() local 3139 auto printerInfo = printSystemData_.QueryDiscoveredPrinterInfoById(globalPrinterId); in UpdateVendorPrinterToDiscovery() 3168 auto globalPrinterId = PrintUtils::GetGlobalId(globalVendorName, printerId); RemoveVendorPrinterFromDiscovery() local 3175 auto globalPrinterId = PrintUtils::GetGlobalId(globalVendorName, printerId); AddVendorPrinterToCupsWithPpd() local 3228 auto globalPrinterId = PrintUtils::GetGlobalId(globalVendorName, printerId); RemoveVendorPrinterFromCups() local 3253 auto globalPrinterId = PrintUtils::GetGlobalId(globalVendorName, printerId); OnVendorStatusUpdate() local 3359 QueryVendorPrinterInfo(const std::string &globalPrinterId, PrinterInfo &info) QueryVendorPrinterInfo() argument [all...] |
H A D | vendor_bsuni_driver.cpp | 424 std::string globalPrinterId = GetGlobalPrinterId(printerId); in OnPrinterCapabilityQueried() local 425 bool connecting = vendorManager->IsConnectingPrinter(globalPrinterId, printerUri); in OnPrinterCapabilityQueried() 427 vendorManager->SetConnectingPrinter(ID_AUTO, globalPrinterId); in OnPrinterCapabilityQueried() 428 PRINT_HILOGD("connecting %{public}s, query propertis", globalPrinterId.c_str()); in OnPrinterCapabilityQueried()
|
/base/print/print_fwk/test/unittest/fwk_vendor_manager_test/ |
H A D | vendor_manager_test.cpp | 60 std::string globalPrinterId = VendorManager::GetGlobalPrinterId(globalVendorName, printerId); in HWTEST_F() local 62 EXPECT_STREQ(VendorManager::ExtractGlobalVendorName(globalPrinterId).c_str(), globalVendorName.c_str()); in HWTEST_F() 63 EXPECT_STREQ(VendorManager::ExtractPrinterId(globalPrinterId).c_str(), printerId.c_str()); in HWTEST_F() 125 std::string globalPrinterId = VendorManager::GetGlobalPrinterId(globalVendorName, printerId); in HWTEST_F() local 132 vendorManager.MonitorPrinterStatus(globalPrinterId, true); in HWTEST_F() 133 vendorManager.MonitorPrinterStatus(globalPrinterId, true); in HWTEST_F() 139 EXPECT_TRUE(vendorManager.ConnectPrinter(globalPrinterId)); in HWTEST_F() 140 EXPECT_TRUE(vendorManager.QueryPrinterInfo(globalPrinterId, 0)); in HWTEST_F() 142 vendorManager.MonitorPrinterStatus(globalPrinterId, false); in HWTEST_F() 143 vendorManager.MonitorPrinterStatus(globalPrinterId, fals in HWTEST_F() 162 std::string globalPrinterId = VendorManager::GetGlobalPrinterId(globalVendorName, printerId); HWTEST_F() local 210 std::string globalPrinterId = VendorManager::GetGlobalPrinterId(globalVendorName, printerId); HWTEST_F() local 246 std::string globalPrinterId = VendorManager::GetGlobalPrinterId(globalVendorName, printerId); HWTEST_F() local [all...] |
/base/print/print_fwk/services/print_service/include/ |
H A D | vendor_manager.h | 48 static std::string ExtractGlobalVendorName(const std::string &globalPrinterId); 49 static std::string ExtractPrinterId(const std::string &globalPrinterId); 58 bool ConnectPrinter(const std::string &globalPrinterId); 60 bool QueryPrinterInfo(const std::string &globalPrinterId, int timeout); 71 bool MonitorPrinterStatus(const std::string &globalPrinterId, bool on); 81 std::shared_ptr<VendorDriverBase> FindDriverByPrinterId(const std::string &globalPrinterId);
|
H A D | print_service_ability.h | 212 int32_t QueryVendorPrinterInfo(const std::string &globalPrinterId, PrinterInfo &info);
|
Completed in 9 milliseconds