Home
last modified time | relevance | path

Searched refs:JsUtil (Results 1 - 7 of 7) sorted by relevance

/foundation/multimodalinput/input/frameworks/napi/input_device/include/
H A Djs_event_target.h36 static void EmitJsIds(sptr<JsUtil::CallbackInfo> cb, std::vector<int32_t> &ids);
37 static void EmitJsDev(sptr<JsUtil::CallbackInfo> cb, std::shared_ptr<InputDevice> device);
38 static void EmitSupportKeys(sptr<JsUtil::CallbackInfo> cb, std::vector<bool> &keystrokeAbility);
39 static void EmitJsKeyboardType(sptr<JsUtil::CallbackInfo> cb, int32_t keyboardType);
40 static void EmitJsKeyboardRepeatDelay(sptr<JsUtil::CallbackInfo> cb, int32_t delay);
41 static void EmitJsKeyboardRepeatRate(sptr<JsUtil::CallbackInfo> cb, int32_t rate);
42 static void EmitJsSetKeyboardRepeatDelay(sptr<JsUtil::CallbackInfo> cb, int32_t errCode);
43 static void EmitJsSetKeyboardRepeatRate(sptr<JsUtil::CallbackInfo> cb, int32_t errCode);
44 static void EmitJsGetIntervalSinceLastInput(sptr<JsUtil::CallbackInfo> cb, int64_t timeInterval);
47 napi_value CreateCallbackInfo(napi_env, napi_value handle, sptr<JsUtil
[all...]
H A Djs_util.h29 class JsUtil { class
H A Djs_input_device_manager.h45 static void GetDeviceInfoSyncCallback(napi_env env, napi_value* result, sptr<JsUtil::CallbackInfo> cb,
/foundation/multimodalinput/input/frameworks/napi/input_device/src/
H A Djs_event_target.cpp45 auto ret = devListener_.insert({ CHANGED_TYPE, std::vector<std::unique_ptr<JsUtil::CallbackInfo>>() }); in JsEventTarget()
49 void JsEventTarget::EmitAddedDeviceEvent(sptr<JsUtil::ReportData> reportData) in EmitAddedDeviceEvent()
92 void JsEventTarget::EmitRemoveDeviceEvent(sptr<JsUtil::ReportData> reportData) in EmitRemoveDeviceEvent()
148 sptr<JsUtil::ReportData> reportData = new (std::nothrow) JsUtil::ReportData; in OnDeviceAdded()
177 sptr<JsUtil::ReportData> reportData = new (std::nothrow) JsUtil::ReportData; in OnDeviceRemoved()
199 JsUtil::DeletePtr<uv_work_t *>(work); in CallIdsAsyncWork()
203 sptr<JsUtil::CallbackInfo> cb(static_cast<JsUtil in CallIdsAsyncWork()
[all...]
H A Djs_input_device_context.cpp159 if (!JsUtil::TypeOf(env, argv[0], napi_string)) { in On()
174 if (!JsUtil::TypeOf(env, argv[1], napi_function)) { in On()
198 if (!JsUtil::TypeOf(env, argv[0], napi_string)) { in Off()
221 if (!JsUtil::TypeOf(env, argv[1], napi_function)) { in Off()
247 if (!JsUtil::TypeOf(env, argv[0], napi_function)) { in GetDeviceIds()
264 if (!JsUtil::TypeOf(env, argv[0], napi_number)) { in GetDevice()
276 if (!JsUtil::TypeOf(env, argv[1], napi_function)) { in GetDevice()
295 if (!JsUtil::TypeOf(env, argv[0], napi_number)) { in SupportKeys()
303 if (!JsUtil::TypeOf(env, argv[1], napi_object)) { in SupportKeys()
321 if (!JsUtil in SupportKeys()
[all...]
H A Djs_input_device_manager.cpp42 sptr<JsUtil::CallbackInfo> cb = new (std::nothrow) JsUtil::CallbackInfo(); in GetDeviceIds()
53 sptr<JsUtil::CallbackInfo> cb = new (std::nothrow) JsUtil::CallbackInfo(); in GetDevice()
65 sptr<JsUtil::CallbackInfo> cb = new (std::nothrow) JsUtil::CallbackInfo(); in SupportKeys()
104 sptr<JsUtil::CallbackInfo> cb = new (std::nothrow) JsUtil::CallbackInfo(); in GetKeyboardType()
141 sptr<JsUtil::CallbackInfo> cb = new (std::nothrow) JsUtil in GetDeviceList()
[all...]
H A Djs_util.cpp28 #define MMI_LOG_TAG "JsUtil"
48 JsUtil::DeviceType g_deviceType[] = {
57 bool JsUtil::IsSameHandle(napi_env env, napi_value handle, napi_ref ref) in IsSameHandle()
77 napi_value JsUtil::GetDeviceInfo(sptr<CallbackInfo> cb) in GetDeviceInfo()
123 bool JsUtil::GetDeviceAxisInfo(sptr<CallbackInfo> cb, napi_value &object) in GetDeviceAxisInfo()
180 bool JsUtil::GetDeviceSourceType(sptr<CallbackInfo> cb, napi_value &object) in GetDeviceSourceType()
204 bool JsUtil::TypeOf(napi_env env, napi_value value, napi_valuetype type) in TypeOf()
214 void JsUtil::DeleteCallbackInfo(std::unique_ptr<CallbackInfo> callback) in DeleteCallbackInfo()
223 bool JsUtil::CheckType(napi_env env, napi_value value, napi_valuetype type) in CheckType()
230 bool JsUtil
[all...]

Completed in 8 milliseconds