/ohos5.0/foundation/multimodalinput/input/frameworks/napi/pointer/src/ |
H A D | js_pointer_context.cpp | 226 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "color", "number"); in SetPointerColor() 231 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "color", "number"); in SetPointerColor() 279 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "color", "number"); in SetPointerColorSync() 284 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "color", "number"); in SetPointerColorSync() 312 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "speed", "number"); in SetPointerSpeed() 317 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "speed", "number"); in SetPointerSpeed() 408 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "rows", "number"); in SetMouseScrollRows() 413 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "rows", "number"); in SetMouseScrollRows() 466 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "x", "number"); in SetPointerLocation() 471 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "x", "number"); in SetPointerLocation() [all …]
|
/ohos5.0/foundation/multimodalinput/input/frameworks/napi/infrared_emitter/src/ |
H A D | js_register_module.cpp | 59 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "element of pattern", "Number"); in ParseInt64() 64 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "element of pattern", "Int64"); in ParseInt64() 75 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "pattern", "Array"); in ParsePatternArray() 88 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "element of pattern", "Int64"); in ParsePatternArray() 92 … THROWERR_API9(env, COMMON_PARAMETER_ERROR, "value for element of pattern", "must be positive"); in ParsePatternArray() 113 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "infraredFrequency", "number"); in ParseTransmitInfraredJSParam() 118 …THROWERR_API9(env, COMMON_PARAMETER_ERROR, "value of infraredFrequency", "must be greater than 0"); in ParseTransmitInfraredJSParam() 126 … THROWERR_API9(env, COMMON_PARAMETER_ERROR, "size of pattern", "must be less than or equal 50"); in ParseTransmitInfraredJSParam() 140 …THROWERR_API9(env, COMMON_PERMISSION_CHECK_ERROR, "Infrared", "ohos.permission.MANAGE_INPUT_INFRAR… in ThrowError() 142 … THROWERR_API9(env, COMMON_USE_SYSAPI_ERROR, "Infrared", "Non system applications use system API"); in ThrowError() [all …]
|
/ohos5.0/foundation/multimodalinput/input/frameworks/napi/input_device/src/ |
H A D | js_input_device_context.cpp | 152 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "type", "string"); in On() 167 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "listener", "function"); in On() 191 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "type", "string"); in Off() 288 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "deviceId", "number"); in SupportKeys() 296 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "keys", "array"); in SupportKeys() 349 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "deviceId", "number"); in SupportKeysSync() 357 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "keys", "array"); in SupportKeysSync() 402 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "deviceId", "number"); in GetKeyboardType() 437 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "deviceId", "number"); in GetKeyboardTypeSync() 544 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "delay", "number"); in SetKeyboardRepeatDelay() [all …]
|
/ohos5.0/foundation/multimodalinput/input/frameworks/napi/input_event_client/src/ |
H A D | js_register_module.cpp | 98 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "KeyEvent", "object"); in InjectEvent() 111 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "KeyEvent", "object"); in InjectEvent() 137 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "keyEvent", "object"); in InjectKeyEvent() 150 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "keyEvent", "object"); in InjectKeyEvent() 266 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "mouseEvent", "object"); in InjectMouseEvent() 279 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "mouseEvent", "object"); in InjectMouseEvent() 339 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "touch", "object"); in HandleTouchProperty() 416 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "touchEvent", "object"); in InjectTouchEvent() 429 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "touchEvent", "object"); in InjectTouchEvent() 458 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "type", "boolean"); in PermitInjection()
|
H A D | js_register_util.cpp | 43 THROWERR_API9(env, COMMON_PARAMETER_ERROR, name.c_str(), "bool"); in GetNamedPropertyBool() 103 THROWERR_API9(env, COMMON_PARAMETER_ERROR, name.c_str(), "int"); in GetNamedPropertyInt64() 132 THROWERR_API9(env, COMMON_PARAMETER_ERROR, name.c_str(), "double"); in GetNamedPropertyDouble()
|
/ohos5.0/foundation/multimodalinput/input/frameworks/napi/input_consumer/src/ |
H A D | js_register_module.cpp | 60 …THROWERR_API9(env, COMMON_PERMISSION_CHECK_ERROR, "shiled API", "ohos.permission.INPUT_CONTROL_DIS… in ThrowError() 77 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "type", "string"); in GetEventInfoAPI9() 82 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "keyOptions", "object"); in GetEventInfoAPI9() 167 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "callback", "function"); in GetEventInfoAPI9() 354 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "shieldMode", "number"); in SetShieldStatus() 359 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "shieldMode", "number"); in SetShieldStatus() 372 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "isShield", "boolean"); in SetShieldStatus() 396 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "shieldMode", "number"); in GetShieldStatus() 401 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "shieldMode", "number"); in GetShieldStatus()
|
H A D | js_register_util.cpp | 57 THROWERR_API9(env, COMMON_PARAMETER_ERROR, name.c_str(), "bool"); in GetNamedPropertyBool() 76 THROWERR_API9(env, COMMON_PARAMETER_ERROR, name.c_str(), "number"); in GetNamedPropertyInt32()
|
/ohos5.0/foundation/multimodalinput/input/frameworks/napi/short_key/src/ |
H A D | js_short_key_context.cpp | 139 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "businessId", "string"); in SetKeyDownDuration() 144 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "businessId", "string"); in SetKeyDownDuration() 166 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "delay", "number"); in SetKeyDownDuration() 177 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "callback", "function"); in SetKeyDownDuration()
|
/ohos5.0/foundation/multimodalinput/input/frameworks/napi/input_monitor/src/ |
H A D | js_input_monitor_module.cpp | 55 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "EventType", "string"); in JsOnApi9() 119 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "EventType", "string"); in AddMonitor() 186 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "EventType", "string"); in JsOffApi9() 228 THROWERR_API9(env, COMMON_PARAMETER_ERROR, "EventType", "string"); in RemoveMonitor()
|
H A D | js_input_monitor_manager.cpp | 297 … THROWERR_API9(env, COMMON_PERMISSION_CHECK_ERROR, "monitor", "ohos.permission.INPUT_MONITORING"); in ThrowError()
|
/ohos5.0/foundation/multimodalinput/input/util/napi/include/ |
H A D | util_napi_error.h | 64 #define THROWERR_API9(env, code, param1, param2) \ macro
|