Searched refs:PRINT_ASSERT_BASE (Results 1 – 5 of 5) sorted by relevance
/base/print/print_fwk/interfaces/kits/napi/src/ |
D | napi_print_ext.cpp | 30 …PRINT_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() 81 …PRINT_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() 128 …PRINT_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() 177 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_TWO, " should 2 parameter!", napi_invalid_arg); in UpdatePrinterState() 180 …PRINT_ASSERT_BASE(env, valuetype == napi_string, "printerId is not a string", napi_string_expected… in UpdatePrinterState() 183 …PRINT_ASSERT_BASE(env, valuetype == napi_number, "printerStateis not a number", napi_number_expect… in UpdatePrinterState() 225 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_THREE, " should 3 parameter!", napi_invalid_ar… in UpdatePrintJobState() [all …]
|
D | napi_inner_print.cpp | 36 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ZERO, " should 0 parameter!", napi_invalid_arg… in QueryExtensionInfo() 71 …PRINT_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() 113 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ZERO, " should 0 parameter!", napi_invalid_arg… in StopDiscovery() 139 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in ConnectPrinter() 142 …PRINT_ASSERT_BASE(env, valuetype == napi_string, "printerId is not a string", napi_string_expected… in ConnectPrinter() 171 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in DisconnectPrinter() 174 …PRINT_ASSERT_BASE(env, valuetype == napi_string, "printerId is not a string", napi_string_expected… in DisconnectPrinter() 203 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in StartPrintJob() 237 …PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, " should 1 parameter!", napi_invalid_arg); in CancelPrintJob() [all …]
|
D | print_task.cpp | 146 … PRINT_ASSERT_BASE(env, argc == NapiPrintUtils::ARGC_ONE, "need 1 parameter!", napi_invalid_arg); in Off() 149 … PRINT_ASSERT_BASE(env, valuetype == napi_string, "type is not a string", napi_string_expected); in Off()
|
D | napi_print_task.cpp | 38 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/ |
D | print_constant.h | 28 #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…
|