Home
last modified time | relevance | path

Searched refs:printAttributes (Results 1 - 25 of 26) sorted by relevance

12

/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
H A Dprint_attributes_test.cpp47 OHOS::Print::PrintAttributes printAttributes; in GetDefaultPrintAttributes() local
48 printAttributes.SetCopyNumber(1); in GetDefaultPrintAttributes()
51 printAttributes.SetPageRange(range); in GetDefaultPrintAttributes()
52 printAttributes.SetIsSequential(true); in GetDefaultPrintAttributes()
55 printAttributes.SetPageSize(pageSize); in GetDefaultPrintAttributes()
56 printAttributes.SetIsLandscape(true); in GetDefaultPrintAttributes()
57 printAttributes.SetDirectionMode(1); in GetDefaultPrintAttributes()
58 printAttributes.SetColorMode(1); in GetDefaultPrintAttributes()
59 printAttributes.SetDuplexMode(1); in GetDefaultPrintAttributes()
62 printAttributes in GetDefaultPrintAttributes()
113 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
127 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
141 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
158 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
172 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
189 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
203 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
217 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
231 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
245 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
262 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
276 OHOS::Print::PrintAttributes printAttributes = GetDefaultPrintAttributes(); HWTEST_F() local
291 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
307 OHOS::Print::PrintAttributes printAttributes; HWTEST_F() local
[all...]
H A Dprint_utils_test.cpp326 adapterParam->printAttributes.SetCopyNumber(1); in HWTEST_F()
328 EXPECT_EQ(adapterParam->printAttributes.hasCopyNumber_, true); in HWTEST_F()
329 EXPECT_EQ(adapterParam->printAttributes.copyNumber_, 1); in HWTEST_F()
331 adapterParam->printAttributes.SetIsSequential(true); in HWTEST_F()
333 EXPECT_EQ(adapterParam->printAttributes.hasSequential_, true); in HWTEST_F()
334 EXPECT_EQ(adapterParam->printAttributes.isSequential_, true); in HWTEST_F()
336 adapterParam->printAttributes.SetIsLandscape(false); in HWTEST_F()
338 EXPECT_EQ(adapterParam->printAttributes.hasLandscape_, true); in HWTEST_F()
339 EXPECT_EQ(adapterParam->printAttributes.isLandscape_, false); in HWTEST_F()
341 adapterParam->printAttributes in HWTEST_F()
[all...]
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_print_manager_adapter_impl.cpp38 const ArkWebRefPtr<ArkPrintDocumentAdapterAdapter> listener, const ArkPrintAttributesAdapter& printAttributes) in Print()
43 return real_.Print(str, nullptr, printAttributes); in Print()
46 return real_.Print(str, std::make_shared<ArkPrintDocumentAdapterAdapterWrapper>(listener), printAttributes); in Print()
50 const ArkWebRefPtr<ArkPrintDocumentAdapterAdapter> listener, const ArkPrintAttributesAdapter& printAttributes, in Print()
56 return real_.Print(str, nullptr, printAttributes, contextToken); in Print()
60 str, std::make_shared<ArkPrintDocumentAdapterAdapterWrapper>(listener), printAttributes, contextToken); in Print()
37 Print(const ArkWebString& printJobName, const ArkWebRefPtr<ArkPrintDocumentAdapterAdapter> listener, const ArkPrintAttributesAdapter& printAttributes) Print() argument
49 Print(const ArkWebString& printJobName, const ArkWebRefPtr<ArkPrintDocumentAdapterAdapter> listener, const ArkPrintAttributesAdapter& printAttributes, void* contextToken) Print() argument
H A Dark_print_manager_adapter_impl.h32 const ArkPrintAttributesAdapter& printAttributes) override;
35 const ArkPrintAttributesAdapter& printAttributes, void* contextToken) override;
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_print_manager_adapter_wrapper.cpp45 const NWeb::PrintAttributesAdapter& printAttributes) in Print()
54 result = ctocpp_->Print(str, nullptr, printAttributes); in Print()
56 result = ctocpp_->Print(str, new ArkPrintDocumentAdapterAdapterImpl(listener), printAttributes); in Print()
65 const NWeb::PrintAttributesAdapter& printAttributes, void* contextToken) in Print()
75 result = ctocpp_->Print(str, nullptr, printAttributes, contextToken); in Print()
77 result = ctocpp_->Print(str, new ArkPrintDocumentAdapterAdapterImpl(listener), printAttributes, contextToken); in Print()
43 Print(const std::string& printJobName, const std::shared_ptr<NWeb::PrintDocumentAdapterAdapter> listener, const NWeb::PrintAttributesAdapter& printAttributes) Print() argument
63 Print(const std::string& printJobName, const std::shared_ptr<NWeb::PrintDocumentAdapterAdapter> listener, const NWeb::PrintAttributesAdapter& printAttributes, void* contextToken) Print() argument
H A Dark_print_manager_adapter_wrapper.h31 const NWeb::PrintAttributesAdapter& printAttributes) override;
33 const NWeb::PrintAttributesAdapter& printAttributes, void* contextToken) override;
/base/web/webview/test/fuzztest/ohos_adapter/printmanager_fuzzer/
H A Dprintmanager_adapter_fuzz.cpp52 PrintAttributesAdapter printAttributes; in PrintFuzzTest() local
54 adapter.Print(printJobName, listener, printAttributes); in PrintFuzzTest()
62 PrintAttributesAdapter printAttributes; in PrintWithContextFuzzTest() local
65 adapter.Print(printJobName, listener, printAttributes, contextToken); in PrintWithContextFuzzTest()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/
H A Dark_print_manager_adapter.h55 const ArkPrintAttributesAdapter& printAttributes) = 0;
59 const ArkPrintAttributesAdapter& printAttributes, void* contextToken) = 0;
/base/print/print_fwk/frameworks/innerkitsimpl/print_impl/include/
H A Dprint_manager_client.h91 const std::shared_ptr<PrintAttributes> &printAttributes);
93 const std::shared_ptr<PrintAttributes> &printAttributes, void* contextToken);
95 const PrintAttributes &printAttributes);
97 const PrintAttributes &printAttributes, void* contextToken);
99 const PrintAttributes &printAttributes, std::string &taskId);
101 const PrintAttributes &printAttributes, std::string &taskId, void* contextToken);
102 int32_t StartGetPrintFile(const std::string &jobId, const PrintAttributes &printAttributes,
H A Diprint_service.h68 virtual int32_t PrintByAdapter(const std::string jobName, const PrintAttributes &printAttributes,
70 virtual int32_t StartGetPrintFile(const std::string &jobId, const PrintAttributes &printAttributes,
H A Dprint_service_proxy.h61 int32_t PrintByAdapter(const std::string printJobName, const PrintAttributes &printAttributes,
63 int32_t StartGetPrintFile(const std::string &jobId, const PrintAttributes &printAttributes,
/base/web/webview/ohos_interface/include/ohos_adapter/
H A Dprint_manager_adapter.h86 const PrintAttributesAdapter& printAttributes) = 0;
89 const PrintAttributesAdapter& printAttributes, void* contextToken) = 0;
/base/web/webview/ohos_adapter/print_manager_adapter/include/
H A Dprint_manager_adapter_impl.h67 const PrintAttributesAdapter& printAttributes) override;
70 const PrintAttributesAdapter& printAttributes, void* contextToken) override;
/base/print/print_fwk/frameworks/innerkitsimpl/print_impl/src/
H A Dprint_manager_client.cpp540 const std::shared_ptr<PrintAttributes> &printAttributes) in Print()
543 return Print(printJobName, listener, *printAttributes, taskId, nullptr); in Print()
547 const std::shared_ptr<PrintAttributes> &printAttributes, void* contextToken) in Print()
550 return Print(printJobName, listener, *printAttributes, taskId, contextToken); in Print()
554 const PrintAttributes &printAttributes) in Print()
557 return Print(printJobName, listener, printAttributes, taskId, nullptr); in Print()
561 const PrintAttributes &printAttributes, void* contextToken) in Print()
564 return Print(printJobName, listener, printAttributes, taskId, contextToken); in Print()
568 const PrintAttributes &printAttributes, std::string &taskId) in Print()
570 return Print(printJobName, listener, printAttributes, taskI in Print()
539 Print(const std::string &printJobName, const sptr<IPrintCallback> &listener, const std::shared_ptr<PrintAttributes> &printAttributes) Print() argument
546 Print(const std::string &printJobName, const sptr<IPrintCallback> &listener, const std::shared_ptr<PrintAttributes> &printAttributes, void* contextToken) Print() argument
553 Print(const std::string &printJobName, const sptr<IPrintCallback> &listener, const PrintAttributes &printAttributes) Print() argument
560 Print(const std::string &printJobName, const sptr<IPrintCallback> &listener, const PrintAttributes &printAttributes, void* contextToken) Print() argument
567 Print(const std::string &printJobName, const sptr<IPrintCallback> &listener, const PrintAttributes &printAttributes, std::string &taskId) Print() argument
573 Print(const std::string &printJobName, const sptr<IPrintCallback> &listener, const PrintAttributes &printAttributes, std::string &taskId, void* uiContent) Print() argument
641 StartGetPrintFile(const std::string &jobId, const PrintAttributes &printAttributes, const uint32_t fd) StartGetPrintFile() argument
[all...]
H A Dprint_service_proxy.cpp873 int32_t PrintServiceProxy::PrintByAdapter(const std::string printJobName, const PrintAttributes &printAttributes, in PrintByAdapter() argument
882 printAttributes.Marshalling(data); in PrintByAdapter()
901 int32_t PrintServiceProxy::StartGetPrintFile(const std::string &jobId, const PrintAttributes &printAttributes, in StartGetPrintFile() argument
909 printAttributes.Marshalling(data); in StartGetPrintFile()
/base/web/webview/ohos_adapter/print_manager_adapter/src/
H A Dprint_manager_adapter_impl.cpp44 const std::shared_ptr<PrintDocumentAdapterAdapter> listener, const PrintAttributesAdapter& printAttributes) in Print()
74 const std::shared_ptr<PrintDocumentAdapterAdapter> listener, const PrintAttributesAdapter& printAttributes, in Print()
43 Print(const std::string& printJobName, const std::shared_ptr<PrintDocumentAdapterAdapter> listener, const PrintAttributesAdapter& printAttributes) Print() argument
73 Print(const std::string& printJobName, const std::shared_ptr<PrintDocumentAdapterAdapter> listener, const PrintAttributesAdapter& printAttributes, void* contextToken) Print() argument
/base/print/print_fwk/interfaces/kits/napi/print_napi/src/
H A Dnapi_print_task.cpp143 std::shared_ptr<PrintAttributes> printAttributes = in ParsePrintAdapterParameter() local
145 if (printAttributes == nullptr) { in ParsePrintAdapterParameter()
165 auto task = new (std::nothrow) PrintTask(printJobName, callback, printAttributes, callerToken); in ParsePrintAdapterParameter()
H A Dnapi_inner_print.cpp624 auto printAttributes = PrintAttributesHelper::BuildFromJs(env, argv[1]); in StartGetPrintFile() local
625 if (printAttributes == nullptr) { in StartGetPrintFile()
626 PRINT_HILOGE("printAttributes is nullptr"); in StartGetPrintFile()
631 int32_t ret = PrintManagerClient::GetInstance()->StartGetPrintFile(jobId, *printAttributes, fd); in StartGetPrintFile()
H A Dprint_task.cpp141 adapterParam->printAttributes = *printAttributes_; in StartPrintAdapter()
/base/print/print_fwk/test/unittest/service_test/mock/
H A Dmock_print_service.h134 int32_t PrintByAdapter(const std::string jobName, const PrintAttributes &printAttributes,
139 int32_t StartGetPrintFile(const std::string &jobId, const PrintAttributes &printAttributes,
/base/print/print_fwk/frameworks/models/print_models/include/
H A Dprint_utils.h33 PrintAttributes printAttributes; member
/base/print/print_fwk/test/unittest/fwk_print_service_ability_test/
H A Dprint_service_ability_test.cpp315 PrintAttributes printAttributes; in HWTEST_F() local
316 EXPECT_EQ(service->PrintByAdapter(jobName, printAttributes, taskId), E_PRINT_NO_PERMISSION); in HWTEST_F()
318 EXPECT_EQ(service->StartGetPrintFile(printJobId, printAttributes, fd), E_PRINT_NO_PERMISSION); in HWTEST_F()
564 PrintAttributes printAttributes; in HWTEST_F() local
566 EXPECT_EQ(service->PrintByAdapter(jobName, printAttributes, taskId), E_PRINT_NONE); in HWTEST_F()
575 PrintAttributes printAttributes; in HWTEST_F() local
579 EXPECT_EQ(service->StartGetPrintFile(jobId, printAttributes, fd), E_PRINT_NONE); in HWTEST_F()
582 EXPECT_EQ(service->StartGetPrintFile(jobId, printAttributes, fd), E_PRINT_NONE); in HWTEST_F()
583 service->printAttributesList_[jobId] = printAttributes; in HWTEST_F()
584 EXPECT_EQ(service->StartGetPrintFile(jobId, printAttributes, f in HWTEST_F()
1748 PrintAttributes printAttributes; HWTEST_F() local
1767 PrintAttributes printAttributes; HWTEST_F() local
[all...]
/base/print/print_fwk/services/print_service/include/
H A Dprint_service_ability.h87 int32_t PrintByAdapter(const std::string jobName, const PrintAttributes &printAttributes,
89 int32_t StartGetPrintFile(const std::string &jobId, const PrintAttributes &printAttributes,
/base/print/print_fwk/frameworks/models/print_models/src/
H A Dprint_utils.cpp34 static const std::string LAUNCH_PARAMETER_PRINT_ATTRIBUTE = "printAttributes";
206 PrintAttributes attrParam = adapterParam->printAttributes; in BuildPrintAttributesParam()
230 PRINT_HILOGD("CallSpooler set printAttributes: %{public}s", attrJson.dump().c_str()); in BuildPrintAttributesParam()
/base/print/print_fwk/test/fuzztest/printserviceability_fuzzer/
H A Dprintserviceability_fuzzer.cpp316 PrintAttributes printAttributes; in TestPrintByAdapter() local
318 PrintServiceAbility::GetInstance()->PrintByAdapter(jobName, printAttributes, taskId); in TestPrintByAdapter()
324 PrintAttributes printAttributes; in TestStartGetPrintFile() local
326 PrintServiceAbility::GetInstance()->StartGetPrintFile(jobId, printAttributes, fd); in TestStartGetPrintFile()

Completed in 23 milliseconds

12