Home
last modified time | relevance | path

Searched refs:printerId (Results 1 – 25 of 80) sorted by relevance

1234

/ohos5.0/base/print/print_fwk/services/print_service/src/
H A Dvendor_wlan_group.cpp57 RemovePrinterVendorGroupById(printerId); in OnQueryCapability()
59 if (IsBsunidriverSupport(printerId)) { in OnQueryCapability()
68 RemovePrinterVendorGroupById(printerId); in OnQueryCapability()
76 RemovePrinterVendorGroupById(printerId); in OnQueryCapability()
131 RemovePrinterVendorGroupById(printerId); in OnPrinterRemoved()
144 QueryBsUniPrinterIdByUuidPrinterId(printerId); in IsConnectingPrinter()
145 printerId = GetGlobalPrinterId(printerId); in IsConnectingPrinter()
157 printerId = GetGlobalPrinterId(printerId); in SetConnectingPrinter()
168 std::string id(printerId); in OnPrinterPpdQueried()
187 printerId = VendorManager::ExtractPrinterId(printerId); in ConvertGroupDriver()
[all …]
H A Dvendor_ppd_driver.cpp25 bool VendorPpdDriver::OnQueryCapability(const std::string &printerId, int timeout) in OnQueryCapability() argument
28 PRINT_HILOGD("OnQueryCapability printerId=%{public}s", printerId.c_str()); in OnQueryCapability()
30 if (!QueryPpdByPrinterId(printerId, ppds)) { in OnQueryCapability()
34 if (!AddPrinterToCups(printerId, ppds[0])) { in OnQueryCapability()
38 std::shared_ptr<PrinterInfo> printerInfo = QueryPrinterCapabilityFromPpd(printerId, ppds[0]); in OnQueryCapability()
43 printerInfo->SetPrinterId(printerId); in OnQueryCapability()
64 printerId.c_str(), propertyKeys[0].c_str()); in OnQueryProperties()
68 auto iter = privatePrinterPpdMap.find(printerId); in OnQueryProperties()
72 privatePrinterPpdMap.insert(std::make_pair(printerId, std::vector(ppds))); in OnQueryProperties()
84 auto iter = privatePrinterPpdMap.find(printerId); in QueryPpdByPrinterId()
[all …]
H A Dvendor_driver_base.cpp53 bool VendorDriverBase::OnQueryCapability(const std::string &printerId, int timeout) in OnQueryCapability() argument
101 bool VendorDriverBase::MonitorPrinterStatus(const std::string &printerId, bool on) in MonitorPrinterStatus() argument
104 auto iter = vendorStatusMap.find(printerId); in MonitorPrinterStatus()
107 vendorStatusMap[printerId] = std::make_shared<PrinterVendorStatus>(); in MonitorPrinterStatus()
108 PRINT_HILOGD("monitor on: %{public}s", printerId.c_str()); in MonitorPrinterStatus()
114 PRINT_HILOGD("monitor off: %{public}s", printerId.c_str()); in MonitorPrinterStatus()
124 auto iter = vendorStatusMap.find(printerId); in GetMonitorVendorStatus()
136 std::string VendorDriverBase::GetGlobalPrinterId(const std::string &printerId) in GetGlobalPrinterId() argument
138 return VendorManager::GetGlobalPrinterId(GetGlobalVendorName(), printerId); in GetGlobalPrinterId()
148 auto vendorStatus = GetMonitorVendorStatus(printerId); in OnPrinterStateQueried()
[all …]
H A Dvendor_manager.cpp50 return globalVendorName + GLOBAL_ID_DELIMITER + printerId; in GetGlobalPrinterId()
170 std::string printerId = ExtractPrinterId(globalPrinterId); in ConnectPrinter() local
171 if (printerId.empty()) { in ConnectPrinter()
181 return vendorDriver->OnQueryCapability(printerId, 0); in ConnectPrinter()
201 std::string printerId = ExtractPrinterId(globalPrinterId); in QueryPrinterInfo() local
202 if (printerId.empty()) { in QueryPrinterInfo()
212 vendorDriver->OnQueryCapability(printerId, timeout); in QueryPrinterInfo()
479 std::string printerId = ExtractPrinterId(globalPrinterId); in MonitorPrinterStatus() local
480 if (globalVendorName.empty() || printerId.empty()) { in MonitorPrinterStatus()
494 return vendorDriver->MonitorPrinterStatus(printerId, on); in MonitorPrinterStatus()
[all …]
H A Dprint_system_data.cpp134 auto info = addedPrinterMap_.Find(printerId); in InsertCupsPrinter()
152 [&printerId]( in InsertCupsPrinter()
165 if (!printerId.empty()) { in DeleteCupsPrinter()
167 addedPrinterMap_.Remove(printerId); in DeleteCupsPrinter()
234 auto info = addedPrinterMap_.Find(printerId); in QueryCupsPrinterInfoByPrinterId()
251 printerInfo.SetPrinterId(printerId); in QueryPrinterInfoById()
269 auto info = addedPrinterMap_.Find(printerId); in UpdatePrinterStatus()
278 auto info = addedPrinterMap_.Find(printerId); in UpdatePrinterAlias()
333 auto info = addedPrinterMap_.Find(printerId); in IsPrinterAdded()
728 if (id != printerId) { in CheckPrinterInfoJson()
[all …]
H A Dprint_ipp_over_usb_manager.cpp58 bool PrintIppOverUsbManager::ConnectPrinter(const std::string printerId, int32_t &port) in ConnectPrinter() argument
60 PRINT_HILOGD("ConnectPrinter printerId = %{public}s", printerId.c_str()); in ConnectPrinter()
62 auto posColon = printerId.find_first_of(SPLIT_VALUE_COLON); in ConnectPrinter()
67 std::string extensionId = printerId.substr(0, posColon); in ConnectPrinter()
73 std::string tmp = printerId.substr(posColon + INDEX_1); in ConnectPrinter()
91 void PrintIppOverUsbManager::DisConnectPrinter(const std::string printerId) in DisConnectPrinter() argument
93 PRINT_HILOGD("DisConnectPrinter printerId = %{public}s", printerId.c_str()); in DisConnectPrinter()
94 auto posColon = printerId.find_first_of(SPLIT_VALUE_COLON); in DisConnectPrinter()
99 std::string extensionId = printerId.substr(0, posColon); in DisConnectPrinter()
105 std::string tmp = printerId.substr(posColon + INDEX_1); in DisConnectPrinter()
H A Dprint_service_ability.cpp344 ConnectIppOverUsbPrinter(printerId); in HandleExtensionConnectPrinter()
607 if (printerId.empty()) { in QueryAddedPrinter()
623 info.SetPrinterId(printerId); in QueryPrinterInfoByPrinterId()
1258 SetLastUsedPrinter(printerId); in UpdateQueuedJobList()
1588 output.SetPrinterId(printerId); in UpdatePrinterCapability()
1592 SetLastUsedPrinter(printerId); in UpdatePrinterCapability()
1752 SendQueuePrintJob(printerId); in CheckAndSendQueuePrintJob()
1801 if (isEprint(printerId)) { in ReportHisysEvent()
2862 NotifyAppDeletePrinter(printerId); in DeletePrinterFromCups()
3248 const std::string &printerId) in RemoveVendorPrinterFromDiscovery() argument
[all …]
H A Dvendor_bsuni_driver.cpp109 if (printerId == nullptr) { in RemovePrinterFromDiscovery()
113 std::string vendorPrinterId(printerId); in RemovePrinterFromDiscovery()
157 if (printerId == nullptr) { in RemovePrinterFromCups()
161 std::string vendorPrinterId(printerId); in RemovePrinterFromCups()
190 if (printerId == nullptr) { in OnPropertiesQueried()
195 std::string vendorPrinterId(printerId); in OnPropertiesQueried()
386 vendorExtension->onConnectPrinter(printerId.c_str()); in OnPrinterPropertiesQueried()
404 OnPrinterStateQueried(printerId, state); in OnPrinterPropertiesQueried()
434 std::string printerId = printerInfo->GetPrinterId(); in OnPrinterCapabilityQueried() local
435 std::string globalPrinterId = GetGlobalPrinterId(printerId); in OnPrinterCapabilityQueried()
[all …]
/ohos5.0/base/print/print_fwk/test/unittest/service_test/
H A Dprint_ipp_over_usb_manager_test.cpp57 printIppOverUsbManager.ConnectPrinter(printerId, port);
69 std::string printerId = "com.ohos.spoolerUSB-PixLab V1-0159"; variable
71 printIppOverUsbManager.ConnectPrinter(printerId, port);
83 std::string printerId = "com.ohos.test:USB-PixLab V1-0159"; variable
85 printIppOverUsbManager.ConnectPrinter(printerId, port);
99 printIppOverUsbManager.ConnectPrinter(printerId, port);
112 printIppOverUsbManager.DisConnectPrinter(printerId);
125 printIppOverUsbManager.DisConnectPrinter(printerId);
137 std::string printerId = "com.ohos.test:USB-PixLab V1-0159"; variable
138 printIppOverUsbManager.DisConnectPrinter(printerId);
[all …]
H A Dprint_system_data_test.cpp72 std::string printerId = "1234"; variable
109 std::string printerId = "1234"; variable
116 re = printerId;
124 std::string printerId = "1234"; variable
142 std::string printerId = "1234"; variable
154 std::string printerId = "1234"; variable
237 std::string printerId = "1234"; variable
1013 std::string printerId; variable
1040 std::string printerId; variable
1061 std::string printerId; variable
[all …]
/ohos5.0/base/print/print_fwk/test/unittest/fwk_vendor_manager_test/
H A Dvendor_ppd_driver_test.cpp57 std::string printerId = "test.printer.id"; variable
65 EXPECT_FALSE(vendorDriver.OnQueryProperties(printerId, propertyKeys));
66 EXPECT_TRUE(vendorDriver.OnQueryProperties(printerId, propertyKeys));
74 std::string printerId = "test.printer.id"; variable
87 EXPECT_TRUE(vendorDriver.OnQueryCapability(printerId, defaultTimeout));
92 std::string printerId = "test.printer.id"; variable
105 EXPECT_TRUE(vendorDriver.OnQueryCapability(printerId, defaultTimeout));
110 std::string printerId = "test.printer.id"; variable
128 std::string printerId = "test.printer.id"; variable
146 std::string printerId = "test.printer.id"; variable
[all …]
/ohos5.0/base/print/print_fwk/services/print_service/include/
H A Dprint_service_ability.h57 int32_t ConnectPrinter(const std::string &printerId) override;
135 bool SendQueuePrintJob(const std::string &printerId);
137 bool isEprint(const std::string &printerId);
139 void ReportCompletedPrint(const std::string &printerId);
176 bool CheckIsDefaultPrinter(const std::string &printerId);
177 bool CheckIsLastUsedPrinter(const std::string &printerId);
178 void SetLastUsedPrinter(const std::string &printerId);
180 void DeletePrinterFromUserData(const std::string &printerId);
183 void NotifyAppDeletePrinter(const std::string &printerId);
193 bool RemoveSinglePrinterInfo(const std::string &printerId);
[all …]
H A Dprint_system_data.h49 void InsertPrinterInfo(const std::string &printerId, const PrinterInfo &printerInfo);
50 std::shared_ptr<PrinterInfo> QueryPrinterInfoByPrinterId(const std::string &printerId);
51 bool IsPrinterAdded(const std::string &printerId);
54 void DeleteCupsPrinter(const std::string &printerId);
56 void UpdatePrinterStatus(const std::string &printerId, PrinterStatus printerStatus);
57 bool UpdatePrinterAlias(const std::string& printerId, const std::string& printerAlias);
59 void QueryPrinterInfoById(const std::string &printerId, PrinterInfo &printerInfo);
60 bool CheckPrinterBusy(const std::string &printerId);
64 std::shared_ptr<PrinterInfo> QueryDiscoveredPrinterInfoById(const std::string &printerId);
67 void RemovePrinterFromDiscovery(const std::string &printerId);
[all …]
H A Dvendor_driver_base.h50 …irtual int32_t AddPrinterToCupsWithPpd(const std::string &vendorName, const std::string &printerId,
52 …ual int32_t RemovePrinterFromCups(const std::string &vendorName, const std::string &printerId) = 0;
53 virtual bool OnPrinterStatusChanged(const std::string &vendorName, const std::string &printerId,
55 virtual bool OnPrinterPpdQueried(const std::string &vendorName, const std::string &printerId,
63 const std::string &printerId) = 0;
64 …al int32_t QueryPrinterInfoByPrinterId(const std::string &vendorName, const std::string &printerId,
79 virtual bool OnQueryCapability(const std::string &printerId, int timeout);
86 bool MonitorPrinterStatus(const std::string &printerId, bool on);
87 std::shared_ptr<PrinterVendorStatus> GetMonitorVendorStatus(const std::string &printerId);
89 std::string GetGlobalPrinterId(const std::string &printerId);
[all …]
H A Dvendor_manager.h34 const std::string &printerId) = 0;
38 … const std::string &printerId, const std::string &ppdData) = 0;
40 …irtual bool OnVendorStatusUpdate(const std::string &globalVendorName, const std::string &printerId,
44 …tual std::shared_ptr<PrinterInfo> QueryDiscoveredPrinterInfoById(const std::string &printerId) = 0;
45 … virtual int32_t QueryPrinterInfoByPrinterId(const std::string &printerId, PrinterInfo &info) = 0;
70 int32_t AddPrinterToCupsWithPpd(const std::string &vendorName, const std::string &printerId,
72 …int32_t RemovePrinterFromCups(const std::string &vendorName, const std::string &printerId) overrid…
73 bool OnPrinterStatusChanged(const std::string &vendorName, const std::string &printerId,
75 bool OnPrinterPpdQueried(const std::string &vendorName, const std::string &printerId,
86 const std::string &printerId) override;
[all …]
H A Dvendor_wlan_group.h29 bool OnQueryCapability(const std::string &printerId, int timeout) override;
32 int32_t OnPrinterRemoved(const std::string &vendorName, const std::string &printerId) override;
34 bool ConvertGroupDriver(std::string &printerId, std::string &vendorName) override;
39 bool OnPrinterPpdQueried(const std::string &vendorName, const std::string &printerId,
43 bool IsBsunidriverSupport(const std::string &printerId);
44 void RemovePrinterVendorGroupById(const std::string &printerId);
47 void UpdateMappedPrinterId(const std::string &bsUniPrinterId, const std::string printerId);
/ohos5.0/base/print/print_fwk/test/unittest/fwk_print_service_ability_test/
H A Dprint_service_ability_test.cpp259 std::string printerId = "1234"; variable
387 std::string printerId ="1234"; variable
409 std::string printerId ="1234"; variable
927 std::string printerId ="1234"; variable
1078 printerId = "ePrintID";
1542 std::string printerId = ""; variable
2060 info.SetPrinterId(printerId);
2074 info.SetPrinterId(printerId);
2094 info.SetPrinterId(printerId);
2133 info.SetPrinterId(printerId);
[all …]
/ohos5.0/base/print/print_fwk/test/unittest/others/
H A Dprint_ipp_over_usb_manager_other_test.cpp66 std::string printerId = "validPrinterId"; in TEST_F() local
67 printIppOverUsbManager->DisConnectPrinter(printerId); in TEST_F()
68 EXPECT_NO_THROW(printIppOverUsbManager->DisConnectPrinter(printerId)); in TEST_F()
74 std::string printerId = "invalidPrinterId"; in TEST_F() local
76 EXPECT_THROW(printIppOverUsbManager->DisConnectPrinter(printerId), std::exception); in TEST_F()
82 std::string printerId = ""; in TEST_F() local
84 EXPECT_THROW(printIppOverUsbManager->DisConnectPrinter(printerId), std::exception); in TEST_F()
90 std::string printerId = nullptr; in TEST_F() local
92 EXPECT_THROW(printIppOverUsbManager->DisConnectPrinter(printerId), std::exception); in TEST_F()
H A Dprint_service_ability_other_test.cpp464 std::string printerId = ""; variable
1131 std::string printerId = "testId"; in TEST_F() local
1223 std::string printerId; member in OHOS::Print::PrintServiceAbilityTest
1237 printerId = "testPrinter";
1247 printerId = "testPrinter";
1257 printerId = "testPrinter";
1275 std::string printerId = "printer1"; variable
1284 std::string printerId = "printer1"; variable
1357 std::string printerId = ""; variable
1425 std::string printerId; member in OHOS::Print::PrintServiceAbilityTest
[all …]
/ohos5.0/base/print/print_fwk/frameworks/ohprint/include/
H A Dvendor_extension.h62 char *printerId; member
88 int32_t (*removePrinterFromDiscovery)(const char *printerId);
91 int32_t (*removePrinterFromCups)(const char *printerId);
94 int32_t (*onPropertiesQueried)(const char *printerId, const Print_PropertyList *propertyList);
102 int32_t (*onConnectPrinter)(const char *printerId);
103 int32_t (*onDisconnectPrinter)(const char *printerId);
104 int32_t (*onQueryCapability)(const char *printerId);
106 int32_t (*onQueryProperties)(const char *printerId, const Print_StringList *propertyKeyList);
/ohos5.0/base/print/print_fwk/frameworks/innerkitsimpl/print_impl/src/
H A Dprint_extension_callback_stub.cpp62 bool PrintExtensionCallbackStub::OnCallback(const std::string &printerId) in OnCallback() argument
65 return cb_(printerId); in OnCallback()
78 bool PrintExtensionCallbackStub::OnCallback(const std::string &printerId, PrinterCapability &cap) in OnCallback() argument
81 if (capability_(printerId, cap)) { in OnCallback()
118 std::string printerId = data.ReadString(); in HandlePrinterCallback() local
119 bool result = OnCallback(printerId); in HandlePrinterCallback()
139 std::string printerId = data.ReadString(); in HandleCapabilityCallback() local
141 bool result = OnCallback(printerId, cap); in HandleCapabilityCallback()
/ohos5.0/base/print/print_fwk/frameworks/innerkitsimpl/print_impl/include/
H A Diprint_service.h38 virtual int32_t ConnectPrinter(const std::string &printerId) = 0;
39 virtual int32_t DisconnectPrinter(const std::string &printerId) = 0;
48 virtual int32_t UpdatePrinterState(const std::string &printerId, uint32_t state) = 0;
55 virtual int32_t QueryPrinterCapability(const std::string &printerId) = 0;
68 …al int32_t QueryPrinterCapabilityByUri(const std::string &printerUri, const std::string &printerId,
75 … virtual int32_t QueryPrinterInfoByPrinterId(const std::string &printerId, PrinterInfo &info) = 0;
77 …virtual int32_t QueryPrinterProperties(const std::string &printerId, const std::vector<std::string…
81 …virtual int32_t GetPrinterPreference(const std::string &printerId, std::string &printerPreference)…
82 …virtual int32_t SetPrinterPreference(const std::string &printerId, const std::string &printerPrefe…
83 virtual int32_t SetDefaultPrinter(const std::string &printerId, uint32_t type) = 0;
[all …]
H A Dprint_service_proxy.h32 int32_t ConnectPrinter(const std::string &printerId) override;
33 int32_t DisconnectPrinter(const std::string &printerId) override;
42 int32_t UpdatePrinterState(const std::string &printerId, uint32_t state) override;
47 int32_t QueryPrinterCapability(const std::string &printerId) override;
60 int32_t QueryPrinterCapabilityByUri(const std::string &printerUri, const std::string &printerId,
69 int32_t RemovePrinterFromDiscovery(const std::string &printerId) override;
72 int32_t QueryPrinterInfoByPrinterId(const std::string &printerId, PrinterInfo &info) override;
74 …int32_t QueryPrinterProperties(const std::string &printerId, const std::vector<std::string> &keyLi…
78 …int32_t GetPrinterPreference(const std::string &printerId, std::string &printerPreference) overrid…
79 …int32_t SetPrinterPreference(const std::string &printerId, const std::string &printerPreference) o…
[all …]
/ohos5.0/base/print/print_fwk/interfaces/kits/jsnapi/print_extension/
H A Dprint_extension.js29 onConnectPrinter(printerId) { argument
30 console.log('onConnectPrinter:' + printerId);
33 onDisconnectPrinter(printerId) { argument
45 onRequestPrinterCapability(printerId) { argument
46 console.log('onRequestPrinterCapability:' + printerId);
/ohos5.0/base/print/print_fwk/test/fuzztest/printserviceability_fuzzer/
H A Dprintserviceability_fuzzer.cpp67 printerInfo.SetPrinterId(printerId); in TestConnectPrinter()
73 PrintServiceAbility::GetInstance()->ConnectPrinter(printerId); in TestConnectPrinter()
74 PrintServiceAbility::GetInstance()->DisconnectPrinter(printerId); in TestConnectPrinter()
80 PrintServiceAbility::GetInstance()->DisconnectPrinter(printerId); in TestDisconnectPrinter()
152 printerIds.push_back(printerId); in TestRemovePrinters()
207 PrintServiceAbility::GetInstance()->QueryPrinterCapability(printerId); in TestQueryPrinterCapability()
392 PrintServiceAbility::GetInstance()->SetDefaultPrinter(printerId, type); in TestSetDefaultPrinter()
525 PrintServiceAbility::GetInstance()->isEprint(printerId); in TestisEprint()
591 PrintServiceAbility::GetInstance()->CheckIsDefaultPrinter(printerId); in TestCheckIsDefaultPrinter()
603 PrintServiceAbility::GetInstance()->SetLastUsedPrinter(printerId); in TestSetLastUsedPrinter()
[all …]

1234