Home
last modified time | relevance | path

Searched refs:PRINT_ASSERT_BASE (Results 1 – 5 of 5) sorted by relevance

/base/print/print_fwk/interfaces/kits/napi/src/
Dnapi_print_ext.cpp30PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in AddPrinters()
33 PRINT_ASSERT_BASE(env, isArray, " is not array!", napi_array_expected); in AddPrinters()
81PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in RemovePrinters()
85 PRINT_ASSERT_BASE(env, isArray, " is not array!", napi_array_expected); in RemovePrinters()
128PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in UpdatePrinters()
131 PRINT_ASSERT_BASE(env, isArray, " is not array!", napi_array_expected); in UpdatePrinters()
177PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_TWO, " should 2 parameter!", napi_invalid_arg); in UpdatePrinterState()
180PRINT_ASSERT_BASE(env, valuetype == napi_string, "printerId is not a string", napi_string_expected… in UpdatePrinterState()
183PRINT_ASSERT_BASE(env, valuetype == napi_number, "printerStateis not a number", napi_number_expect… in UpdatePrinterState()
225PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_THREE, " should 3 parameter!", napi_invalid_ar… in UpdatePrintJobState()
[all …]
Dnapi_inner_print.cpp36PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ZERO, " should 0 parameter!", napi_invalid_arg… in QueryExtensionInfo()
71PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in StartDiscovery()
74 PRINT_ASSERT_BASE(env, isArray, " is not array!", napi_array_expected); in StartDiscovery()
113PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ZERO, " should 0 parameter!", napi_invalid_arg… in StopDiscovery()
139PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in ConnectPrinter()
142PRINT_ASSERT_BASE(env, valuetype == napi_string, "printerId is not a string", napi_string_expected… in ConnectPrinter()
171PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in DisconnectPrinter()
174PRINT_ASSERT_BASE(env, valuetype == napi_string, "printerId is not a string", napi_string_expected… in DisconnectPrinter()
203PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in StartPrintJob()
237PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in CancelPrintJob()
[all …]
Dprint_task.cpp146PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, "need 1 parameter!", napi_invalid_arg); in Off()
149PRINT_ASSERT_BASE(env, valuetype == napi_string, "type is not a string", napi_string_expected); in Off()
Dnapi_print_task.cpp38 PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE || argc == NapiPrintUtils::ARGC_TWO, in Print()
201 PRINT_ASSERT_BASE(env, isFileArray == true, "parameter type isn't list", napi_invalid_arg); in VerifyParameters()
/base/print/print_fwk/utils/include/
Dprint_constant.h28 #define PRINT_ASSERT_BASE(env, assertion, message, retVal) \ macro
36 #define PRINT_ASSERT(env, assertion, message) PRINT_ASSERT_BASE(env, assertion, message, nullptr)
38 #define PRINT_ASSERT_RETURN_VOID(env, assertion, message) PRINT_ASSERT_BASE(env, assertion, message…