Home
last modified time | relevance | path

Searched refs:OnCallback (Results 1 – 20 of 20) sorted by relevance

/base/print/print_fwk/test/unittest/fwk_inner_napi_test/mock/
Dmock_print_callback_stub.h25 bool OnCallback() override in OnCallback() function
29 bool OnCallback(uint32_t state, const PrinterInfo &info) override in OnCallback() function
33 bool OnCallback(uint32_t state, const PrintJob &info) override in OnCallback() function
37 bool OnCallback(const std::string &extensionId, const std::string &info) override in OnCallback() function
59 MOCK_METHOD0(OnCallback, bool());
60 MOCK_METHOD2(OnCallback, bool(uint32_t, const PrinterInfo&));
61 MOCK_METHOD2(OnCallback, bool(uint32_t, const PrintJob&));
62 MOCK_METHOD2(OnCallback, bool(const std::string&, const std::string&));
/base/print/print_fwk/test/unittest/service_test/mock/
Dmock_print_extension_callback_proxy.h27 MOCK_METHOD0(OnCallback, bool());
28 MOCK_METHOD1(OnCallback, bool(const std::string&));
29 MOCK_METHOD1(OnCallback, bool(const PrintJob&));
30 MOCK_METHOD2(OnCallback, bool(const std::string&, PrinterCapability&));
Dmock_print_callback_proxy.h27 MOCK_METHOD0(OnCallback, bool());
28 MOCK_METHOD2(OnCallback, bool(uint32_t, const PrinterInfo&));
29 MOCK_METHOD2(OnCallback, bool(uint32_t, const PrintJob&));
30 MOCK_METHOD2(OnCallback, bool(const std::string&, const std::string&));
/base/print/print_fwk/services/print_service/include/
Dprint_extension_callback_proxy.h27 bool OnCallback() override;
28 bool OnCallback(const std::string &printerId) override;
29 bool OnCallback(const PrintJob &job) override;
30 bool OnCallback(const std::string &printerId, PrinterCapability &cap) override;
Dprint_callback_proxy.h27 bool OnCallback() override;
28 bool OnCallback(uint32_t state, const PrinterInfo &info) override;
29 bool OnCallback(uint32_t state, const PrintJob &info) override;
30 bool OnCallback(const std::string &extensionId, const std::string &info) override;
/base/print/print_fwk/frameworks/innerkitsimpl/print_impl/include/
Diprint_extension_callback.h28 virtual bool OnCallback() = 0;
29 virtual bool OnCallback(const std::string &printerId) = 0;
30 virtual bool OnCallback(const PrintJob &job) = 0;
31 virtual bool OnCallback(const std::string &printerId, PrinterCapability &cap) = 0;
Diprint_callback.h28 virtual bool OnCallback() = 0;
29 virtual bool OnCallback(uint32_t state, const PrinterInfo &info) = 0;
30 virtual bool OnCallback(uint32_t state, const PrintJob &info) = 0;
31 virtual bool OnCallback(const std::string &extensionId, const std::string &info) = 0;
Dprint_extension_callback_stub.h37 bool OnCallback() override;
38 bool OnCallback(const std::string &printerId) override;
39 bool OnCallback(const PrintJob &job) override;
40 bool OnCallback(const std::string &printerId, PrinterCapability &cap) override;
Dprint_callback.h55 bool OnCallback() override;
56 bool OnCallback(uint32_t state, const PrinterInfo &info) override;
57 bool OnCallback(uint32_t state, const PrintJob &info) override;
58 bool OnCallback(const std::string &extensionId, const std::string &info) override;
/base/print/print_fwk/frameworks/innerkitsimpl/print_impl/src/
Dprint_extension_callback_stub.cpp53 bool PrintExtensionCallbackStub::OnCallback() in OnCallback() function in OHOS::Print::PrintExtensionCallbackStub
61 bool PrintExtensionCallbackStub::OnCallback(const std::string &printerId) in OnCallback() function in OHOS::Print::PrintExtensionCallbackStub
69 bool PrintExtensionCallbackStub::OnCallback(const PrintJob &job) in OnCallback() function in OHOS::Print::PrintExtensionCallbackStub
77 bool PrintExtensionCallbackStub::OnCallback(const std::string &printerId, PrinterCapability &cap) in OnCallback() function in OHOS::Print::PrintExtensionCallbackStub
109 bool result = OnCallback(); in HandleExtCallback()
118 bool result = OnCallback(printerId); in HandlePrinterCallback()
129 result = OnCallback(*printJobPtr); in HandlePrintJobCallback()
140 bool result = OnCallback(printerId, cap); in HandleCapabilityCallback()
Dprint_callback_stub.cpp56 bool result = OnCallback(); in HandlePrintTaskEvent()
67 result = OnCallback(state, *info); in HandlePrinterEvent()
79 result = OnCallback(state, *info); in HandlePrintJobEvent()
89 bool result = OnCallback(extensionId, info); in HandleExtEvent()
Dprint_callback.cpp359 bool PrintCallback::OnCallback() in OnCallback() function in OHOS::Print::PrintCallback
365 bool PrintCallback::OnCallback(uint32_t state, const PrinterInfo &info) in OnCallback() function in OHOS::Print::PrintCallback
375 bool PrintCallback::OnCallback(uint32_t state, const PrintJob &info) in OnCallback() function in OHOS::Print::PrintCallback
385 bool PrintCallback::OnCallback(const std::string &extensionId, const std::string &info) in OnCallback() function in OHOS::Print::PrintCallback
/base/print/print_fwk/test/unittest/service_test/
Dprint_callback_proxy_test.cpp61 EXPECT_CALL(*service, OnCallback()).Times(Exactly(1)).WillOnce(Return(true));
68 EXPECT_TRUE(proxy->OnCallback());
85 EXPECT_CALL(*service, OnCallback()).Times(Exactly(1)).WillOnce(Return(false));
92 EXPECT_FALSE(proxy->OnCallback());
127 EXPECT_CALL(*service, OnCallback(testState,
135 EXPECT_TRUE(proxy->OnCallback(testState, testInfo));
158 EXPECT_CALL(*service, OnCallback(testState,
166 EXPECT_FALSE(proxy->OnCallback(testState, testInfo));
189 EXPECT_CALL(*service, OnCallback(testState,
197 EXPECT_TRUE(proxy->OnCallback(testState, testJob));
[all …]
Dprint_extension_callback_proxy_test.cpp63 EXPECT_FALSE(proxy->OnCallback());
86 EXPECT_FALSE(proxy->OnCallback());
112 EXPECT_FALSE(proxy->OnCallback(testPrinterId));
138 EXPECT_FALSE(proxy->OnCallback(testPrinterId));
166 EXPECT_FALSE(proxy->OnCallback(testJob));
194 EXPECT_FALSE(proxy->OnCallback(testJob));
221 EXPECT_FALSE(proxy->OnCallback(testPrinterId, testCap));
248 EXPECT_FALSE(proxy->OnCallback(testPrinterId, testCap));
Dprint_service_ability_test.cpp273 EXPECT_CALL(*listener, OnCallback()).WillRepeatedly(Return(hasCb)); in CreateExtCallback()
275 EXPECT_CALL(*listener, OnCallback(testPrinterId)).WillRepeatedly(Return(hasPrinterCb)); in CreateExtCallback()
279 EXPECT_CALL(*listener, OnCallback(Matcher<const PrintJob&>(PrintJobMatcher(testJob)))) in CreateExtCallback()
281 EXPECT_CALL(*listener, OnCallback(_, _)).WillRepeatedly(Return(hasCapCb)); in CreateExtCallback()
290 EXPECT_CALL(*listener, OnCallback()).WillRepeatedly(Return(hasCb)); in CreateCallback()
294 EXPECT_CALL(*listener, OnCallback(_, in CreateCallback()
299 EXPECT_CALL(*listener, OnCallback(_, in CreateCallback()
301 …EXPECT_CALL(*listener, OnCallback(GetExtensionId(TYPE_DEFAULT), _)).WillRepeatedly(Return(hasExtCb… in CreateCallback()
/base/print/print_fwk/services/print_service/src/
Dprint_extension_callback_proxy.cpp25 bool PrintExtensionCallbackProxy::OnCallback() in OnCallback() function in OHOS::Print::PrintExtensionCallbackProxy
43 bool PrintExtensionCallbackProxy::OnCallback(const std::string &printerId) in OnCallback() function in OHOS::Print::PrintExtensionCallbackProxy
62 bool PrintExtensionCallbackProxy::OnCallback(const PrintJob &job) in OnCallback() function in OHOS::Print::PrintExtensionCallbackProxy
80 bool PrintExtensionCallbackProxy::OnCallback(const std::string &printerId, PrinterCapability &cap) in OnCallback() function in OHOS::Print::PrintExtensionCallbackProxy
Dprint_callback_proxy.cpp23 bool PrintCallbackProxy::OnCallback() in OnCallback() function in OHOS::Print::PrintCallbackProxy
40 bool PrintCallbackProxy::OnCallback(uint32_t state, const PrinterInfo &info) in OnCallback() function in OHOS::Print::PrintCallbackProxy
61 bool PrintCallbackProxy::OnCallback(uint32_t state, const PrintJob &info) in OnCallback() function in OHOS::Print::PrintCallbackProxy
82 bool PrintCallbackProxy::OnCallback(const std::string &extensionId, const std::string &info) in OnCallback() function in OHOS::Print::PrintCallbackProxy
Dprint_service_ability.cpp379 cbFunc->OnCallback(printerId); in ConnectPrinter()
416 cbFunc->OnCallback(printerId); in DisconnectPrinter()
495 if (extCallbackMap_[cid]->OnCallback()) { in DelayStartDiscovery()
525 cbFunc->OnCallback(); in StopDiscoverPrinter()
680 cbFunc->OnCallback(*printJob); in StartPrintJob()
741 if (cbFunc != nullptr && cbFunc->OnCallback(*tmpPrintJob) == false) { in CancelPrintJob()
792 if (cbFunc != nullptr && cbFunc->OnCallback(*printJob)) { in SendQueuePrintJob()
1130 cbFunc->OnCallback(); in DestroyExtension()
1201 auto callback = [=]() { cbFunc->OnCallback(*printJobList_[jobId]); }; in RequestPreview()
1229 cbFunc->OnCallback(printerId); in QueryPrinterCapability()
[all …]
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
Dprint_callback_stub_test.cpp97 EXPECT_CALL(*callback, OnCallback()).Times(1);
136 EXPECT_CALL(*callback, OnCallback(testState,
165 EXPECT_CALL(*callback, OnCallback(testState,
191 EXPECT_CALL(*callback, OnCallback(extensionId, extInfo)).Times(1).WillOnce(Return(true));
/base/telephony/state_registry/frameworks/js/napi/src/
Dnapi_state_registry.cpp102 static void OnCallback(napi_env env, void *data) in OnCallback() function
173 OnCallback(env, observerContext); in On()