/ohos5.0/base/print/print_fwk/frameworks/helper/print_helper/src/ |
H A D | printer_capability_helper.cpp | 91 PRINT_CALL_BASE(env, napi_create_array(env, &jsPageSizes), false); in CreatePageSizeList() 100 PRINT_CALL_BASE( in CreatePageSizeList() 110 PRINT_CALL_BASE(env, napi_create_array(env, &jsResolutionList), false); in CreateResolutionList() 119 PRINT_CALL_BASE(env, in CreateResolutionList() 128 PRINT_CALL_BASE(env, napi_create_array(env, &jsSupportedColorModeList), false); in CreateSupportedColorModeList() 136 PRINT_CALL_BASE( in CreateSupportedColorModeList() 155 PRINT_CALL_BASE( in CreateSupportedDuplexModeList() 166 PRINT_CALL_BASE(env, napi_create_array(env, &jsSupportedMediaTypeList), false); in CreateSupportedMediaTypeList() 174 PRINT_CALL_BASE( in CreateSupportedMediaTypeList() 193 PRINT_CALL_BASE( in CreateSupportedQualityList() [all …]
|
H A D | print_job_helper.cpp | 203 PRINT_CALL_BASE(env, napi_create_array(env, &arrFiles), false); in CreateFdList() 210 PRINT_CALL_BASE(env, napi_create_uint32(env, fdList[i], &value), false); in CreateFdList() 211 PRINT_CALL_BASE(env, napi_set_element(env, arrFiles, i, value), false); in CreateFdList() 213 … PRINT_CALL_BASE(env, napi_set_named_property(env, jsPrintJob, PARAM_JOB_FDLIST, arrFiles), false); in CreateFdList() 222 …PRINT_CALL_BASE(env, napi_set_named_property(env, jsPrintJob, PARAM_JOB_PAGERANGE, jsPageRange), f… in CreatePageRange() 231 …PRINT_CALL_BASE(env, napi_set_named_property(env, jsPrintJob, PARAM_JOB_PAGESIZE, jsPageSize), fal… in CreatePageSize() 240 … PRINT_CALL_BASE(env, napi_set_named_property(env, jsPrintJob, PARAM_JOB_MARGIN, jsMargin), false); in CreateMargin() 249 …PRINT_CALL_BASE(env, napi_set_named_property(env, jsPrintJob, PARAM_JOB_PREVIEW, jsPreview), false… in CreatePreview()
|
H A D | napi_print_utils.cpp | 35 PRINT_CALL_BASE(env, napi_typeof(env, value, &valueType), napi_undefined); in GetValueType() 43 …PRINT_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), fal… in HasNamedProperty() 68 PRINT_CALL_BASE(env, napi_get_property_names(env, object, &names), ret); in GetPropertyNames() 70 PRINT_CALL_BASE(env, napi_get_array_length(env, names, &length), ret); in GetPropertyNames() 97 PRINT_CALL_BASE(env, napi_get_value_uint32(env, value, &ret), 0); in GetUint32FromValue() 133 PRINT_CALL_BASE(env, napi_get_value_int32(env, value, &ret), 0); in GetInt32FromValue() 171 …PRINT_CALL_BASE(env, napi_get_value_string_utf8(env, value, &str[0], MAX_STRING_LENGTH, &length), … in GetStringFromValueUtf8() 209 PRINT_CALL_BASE(env, napi_is_arraybuffer(env, value, &isArrayBuffer), false); in ValueIsArrayBuffer() 285 PRINT_CALL_BASE(env, napi_get_value_bool(env, value, &ret), false); in GetBooleanProperty()
|
H A D | print_attributes_helper.cpp | 169 …PRINT_CALL_BASE(env, napi_set_named_property(env, jsPrintAttributes, PARAM_JOB_PAGERANGE, jsPageRa… in CreatePageRange() 179 …PRINT_CALL_BASE(env, napi_set_named_property(env, jsPrintAttributes, PARAM_JOB_PAGESIZE, jsPageSiz… in CreatePageSize() 189 …PRINT_CALL_BASE(env, napi_set_named_property(env, jsPrintAttributes, PARAM_JOB_MARGIN, jsMargin), … in CreateMargin()
|
/ohos5.0/base/print/print_fwk/interfaces/kits/napi/print_napi/src/ |
H A D | napi_print_ext.cpp | 193 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in UpdatePrinterState() 196 PRINT_CALL_BASE(env, napi_typeof(env, argv[1], &valuetype), napi_invalid_arg); in UpdatePrinterState() 247 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in UpdatePrintJobStateOnlyForSystemApp() 249 PRINT_CALL_BASE(env, napi_typeof(env, argv[1], &valuetype), napi_invalid_arg); in UpdatePrintJobStateOnlyForSystemApp() 251 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_TWO], &valuetype), napi_invalid_a… in UpdatePrintJobStateOnlyForSystemApp() 301 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in UpdateExtensionInfo() 348 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in AddPrinterToCups() 351 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ONE], &valuetype), napi_invalid_a… in AddPrinterToCups() 362 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_TWO], &valuetype), napi_invalid_a… in AddPrinterToCups() 402 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in QueryPrinterCapabilityByUri() [all …]
|
H A D | print_task.cpp | 182 PRINT_CALL_BASE(env, napi_get_undefined(env, &result), E_PRINT_INVALID_PARAMETER); in CallSpooler() 183 …PRINT_CALL_BASE(env, napi_get_cb_info(env, info, &argc, argv, &thisArg, &data), E_PRINT_INVALID_PA… in CallSpooler() 200 PRINT_CALL_BASE(env, napi_typeof(env, argv[callBackIndex], &valueType), napi_undefined); in CallSpooler() 202 … PRINT_CALL_BASE(env, napi_create_reference(env, argv[callBackIndex], 1, &asyncContext->callback), in CallSpooler() 207 …PRINT_CALL_BASE(env, napi_create_promise(env, &asyncContext->deferred, &result), E_PRINT_INVALID_P… in CallSpooler() 428 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in Off() 432 … PRINT_CALL_BASE(env, napi_unwrap(env, self, reinterpret_cast<void **>(&task)), napi_invalid_arg); in Off()
|
H A D | napi_inner_print.cpp | 175 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in ConnectPrinter() 215 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in DisconnectPrinter() 297 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in CancelPrintJob() 385 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in QueryCapability() 465 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in QueryPrintJobById() 509 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in GetPrinterPreference() 550 PRINT_CALL_BASE(env, napi_typeof(env, argv[0], &valuetype), napi_invalid_arg); in SetPrinterPreference() 552 PRINT_CALL_BASE(env, napi_typeof(env, argv[1], &valuetype), napi_invalid_arg); in SetPrinterPreference() 740 PRINT_CALL_BASE(env, napi_typeof(env, argv[0], &valuetype), napi_invalid_arg); in NotifyPrintService() 742 PRINT_CALL_BASE(env, napi_typeof(env, argv[1], &valuetype), napi_invalid_arg); in NotifyPrintService() [all …]
|
H A D | napi_print_task.cpp | 68 … PRINT_CALL_BASE(env, napi_unwrap(env, proxy, reinterpret_cast<void **>(&task)), napi_invalid_arg); in CreatePrintTask() 116 … PRINT_CALL_BASE(env, napi_unwrap(env, proxy, reinterpret_cast<void **>(&task)), napi_invalid_arg); in PrintByAdapter() 326 PRINT_CALL_BASE(env, napi_get_array_length(env, argv[0], &len), napi_invalid_arg); in VerifyParameters()
|
/ohos5.0/base/print/print_fwk/utils/include/ |
H A D | print_constant.h | 41 #define PRINT_CALL_BASE(env, theCall, retVal) \ macro 48 #define PRINT_CALL(env, theCall) PRINT_CALL_BASE(env, theCall, nullptr) 50 #define PRINT_CALL_RETURN_VOID(env, theCall) PRINT_CALL_BASE(env, theCall, PRINT_RET_NONE)
|