Searched refs:USB_ASSERT (Results 1 - 2 of 2) sorted by relevance
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
H A D | usb_info.cpp | 450 USB_ASSERT(env, (argc == PARAM_COUNT_0), SYSPARAM_INVALID_INPUT, "The function takes no arguments."); in CoreGetDevices() 480 USB_ASSERT(env, (argc >= PARAM_COUNT_1), SYSPARAM_INVALID_INPUT, "The function at least takes one argument."); in CoreConnectDevice() 485 USB_ASSERT(env, type == napi_object, SYSPARAM_INVALID_INPUT, "The type of device must be USBDevice."); in CoreConnectDevice() 508 USB_ASSERT(env, (argc >= PARAM_COUNT_2), SYSPARAM_INVALID_INPUT, "The function at least takes two argument."); in DeviceAddRight() 512 USB_ASSERT(env, type == napi_string, SYSPARAM_INVALID_INPUT, "The type of bundleName must be string."); in DeviceAddRight() 517 USB_ASSERT(env, type == napi_string, SYSPARAM_INVALID_INPUT, "The type of deviceName must be string."); in DeviceAddRight() 538 USB_ASSERT(env, (argc >= PARAM_COUNT_2), SYSPARAM_INVALID_INPUT, "The function at least takes two argument."); in DeviceAddAccessRight() 542 USB_ASSERT(env, type == napi_string, SYSPARAM_INVALID_INPUT, "The type of tokenId must be string."); in DeviceAddAccessRight() 547 USB_ASSERT(env, type == napi_string, SYSPARAM_INVALID_INPUT, "The type of deviceName must be string."); in DeviceAddAccessRight() 568 USB_ASSERT(en in DeviceRemoveRight() [all...] |
/base/usb/usb_manager/utils/native/include/ |
H A D | usb_napi_errors.h | 55 #define USB_ASSERT(env, assertion, errCode, errMsg) USB_ASSERT_BASE(env, assertion, errCode, errMsg, nullptr) macro
|
Completed in 3 milliseconds