Home
last modified time | relevance | path

Searched refs:event (Results 1401 - 1425 of 9730) sorted by relevance

1...<<51525354555657585960>>...390

/test/xts/acts/arkui/ace_ets_web_dev_webviewControllerError/entry/src/ohosTest/resources/rawfile/
H A Dindex.js18 window.addEventListener('message', function(event) {
19 if (event.data == 'init_web_messageport') {
20 if(event.ports[0] != null) {
21 h5Port = event.ports[0]; // 1. 保存从ets侧发送过来的端口
22 h5Port.onmessage = function(event) {
25 var result = event.data;
60 h5Port.onmessageerror = (event) => {
61 console.error(`hwd In html Error receiving message: ${event}`);
/third_party/node/lib/internal/streams/
H A Dlegacy.js69 // Remove all the event listeners that were added.
96 function prependListener(emitter, event, fn) {
98 // event emitter implementation with them.
100 return emitter.prependListener(event, fn);
106 if (!emitter._events || !emitter._events[event])
107 emitter.on(event, fn);
108 else if (ArrayIsArray(emitter._events[event]))
109 emitter._events[event].unshift(fn);
111 emitter._events[event] = [fn, emitter._events[event]];
[all...]
/third_party/skia/third_party/externals/imgui/examples/example_sdl_sdlrenderer/
H A Dmain.cpp91 SDL_Event event; in main() local
92 while (SDL_PollEvent(&event)) in main()
94 ImGui_ImplSDL2_ProcessEvent(&event); in main()
95 if (event.type == SDL_QUIT) in main()
97 if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) in main()
/third_party/skia/third_party/externals/imgui/examples/example_sdl_opengl2/
H A Dmain.cpp85 SDL_Event event; in main() local
86 while (SDL_PollEvent(&event)) in main()
88 ImGui_ImplSDL2_ProcessEvent(&event); in main()
89 if (event.type == SDL_QUIT) in main()
91 if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) in main()
/third_party/skia/third_party/externals/imgui/examples/example_sdl_opengl3/
H A Dmain.cpp107 SDL_Event event; in main() local
108 while (SDL_PollEvent(&event)) in main()
110 ImGui_ImplSDL2_ProcessEvent(&event); in main()
111 if (event.type == SDL_QUIT) in main()
113 if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_CLOSE && event.window.windowID == SDL_GetWindowID(window)) in main()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dalphabet_indexer_modifier.cpp590 ArkUINodeEvent event; in SetOnIndexerSelected()
591 event.kind = COMPONENT_ASYNC_EVENT; in SetOnIndexerSelected()
592 event.extraParam = reinterpret_cast<intptr_t>(extraParam); in SetOnIndexerSelected()
593 event.componentAsyncEvent.subKind = ON_ALPHABET_INDEXER_SELECTED; in SetOnIndexerSelected()
594 event.componentAsyncEvent.data[0].i32 = selected; in SetOnIndexerSelected()
595 SendArkUIAsyncEvent(&event); in SetOnIndexerSelected()
605 ArkUINodeEvent event; in SetOnIndexerRequestPopupData()
606 event.kind = COMPONENT_ASYNC_EVENT; in SetOnIndexerRequestPopupData()
607 event.extraParam = reinterpret_cast<intptr_t>(extraParam); in SetOnIndexerRequestPopupData()
608 event in SetOnIndexerRequestPopupData()
[all...]
/foundation/arkui/ace_engine/frameworks/core/event/
H A Dtouch_event.cpp16 #include "core/event/touch_event.h"
181 TouchEvent event; in CloneWith() local
182 event.id = pointId.has_value() ? pointId.value() : id; in CloneWith()
183 event.x = (x - offsetX) / scale; in CloneWith()
184 event.y = (y - offsetY) / scale; in CloneWith()
185 event.screenX = (screenX - offsetX) / scale; in CloneWith()
186 event.screenY = (screenY - offsetY) / scale; in CloneWith()
187 event.type = type; in CloneWith()
188 event.pullType = pullType; in CloneWith()
189 event in CloneWith()
329 TouchEvent event; UpdatePointers() local
[all...]
/foundation/communication/netstack/frameworks/js/napi/tls/src/
H A Dmonitor_server.cpp340 const std::string event = NapiUtils::GetStringFromValueUtf8(env, params[0]); in On() local
341 auto itor = monitors_.find(event); in On()
343 NETSTACK_LOGE("monitor is exits %{public}s", event.c_str()); in On()
346 manager_->AddListener(env, event, params[1], false, false); in On()
347 TLSServerRegEvent(event, tlsSocketServer, manager_); in On()
385 const std::string event = NapiUtils::GetStringFromValueUtf8(env, params[0]); in ConnectionOn() local
387 manager_->AddListener(env, event, params[1], false, false); in ConnectionOn()
388 TLSConnectionRegEvent(event, tlsSocketServer, clientid, manager_); in ConnectionOn()
423 const std::string event = NapiUtils::GetStringFromValueUtf8(env, params[0]); in Off() local
424 auto itor = monitors_.find(event); in Off()
482 const std::string event = NapiUtils::GetStringFromValueUtf8(env, params[0]); ConnectionOff() local
499 TLSServerRegEvent(std::string event, TLSSocketServer *tlsSocketServer, EventManager *ServerEventManager) TLSServerRegEvent() argument
522 TLSConnectionRegEvent(std::string event, TLSSocketServer *tlsSocketServer, int clientId, EventManager *eventManager) TLSConnectionRegEvent() argument
561 TLSConnectionUnRegEvent(std::string event, TLSSocketServer *tlsSocketServer, int clientId) TLSConnectionUnRegEvent() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_fence.c59 * struct vmw_event_fence_action - fence action that delivers a drm event.
61 * @e: A struct drm_pending_event that controls the event delivery.
65 * @dev: Pointer to a struct drm_device so we can access the event stuff.
76 struct drm_pending_event *event; member
904 * attached has passed. It queues the event on the submitter's event list.
912 struct drm_pending_event *event = eaction->event; in vmw_event_fence_action_seq_passed() local
914 if (unlikely(event == NULL)) in vmw_event_fence_action_seq_passed()
928 drm_send_event_locked(dev, eaction->event); in vmw_event_fence_action_seq_passed()
1015 vmw_event_fence_action_queue(struct drm_file *file_priv, struct vmw_fence_obj *fence, struct drm_pending_event *event, uint32_t *tv_sec, uint32_t *tv_usec, bool interruptible) vmw_event_fence_action_queue() argument
1047 struct drm_vmw_event_fence event; global() member
1056 struct vmw_event_fence_pending *event; vmw_event_fence_action_create() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_fence.c56 * struct vmw_event_fence_action - fence action that delivers a drm event.
59 * @event: A pointer to the pending event.
62 * @dev: Pointer to a struct drm_device so we can access the event stuff.
71 struct drm_pending_event *event; member
825 * attached has passed. It queues the event on the submitter's event list.
833 struct drm_pending_event *event = eaction->event; in vmw_event_fence_action_seq_passed() local
835 if (unlikely(event in vmw_event_fence_action_seq_passed()
940 vmw_event_fence_action_queue(struct drm_file *file_priv, struct vmw_fence_obj *fence, struct drm_pending_event *event, uint32_t *tv_sec, uint32_t *tv_usec, bool interruptible) vmw_event_fence_action_queue() argument
972 struct drm_vmw_event_fence event; global() member
981 struct vmw_event_fence_pending *event; vmw_event_fence_action_create() local
[all...]
/kernel/linux/linux-6.6/sound/core/seq/
H A Dseq_clientmgr.c69 struct snd_seq_event *event,
72 struct snd_seq_event *event,
414 * -EINVAL no enough user-space buffer to write the whole event
467 if (!event_is_compatible(client, &cell->event)) { in snd_seq_read()
472 if (snd_seq_ev_is_variable(&cell->event)) { in snd_seq_read()
475 memcpy(&tmpev, &cell->event, aligned_size); in snd_seq_read()
483 err = snd_seq_expand_var_event(&cell->event, count, in snd_seq_read()
492 if (copy_to_user(buf, &cell->event, aligned_size)) { in snd_seq_read()
530 static struct snd_seq_client *get_event_dest_client(struct snd_seq_event *event, in get_event_dest_client() argument
535 dest = snd_seq_client_use_ptr(event in get_event_dest_client()
564 bounce_error_event(struct snd_seq_client *client, struct snd_seq_event *event, int err, int atomic, int hop) bounce_error_event() argument
603 update_timestamp_of_queue(struct snd_seq_event *event, int queue, int real_time) update_timestamp_of_queue() argument
625 __snd_seq_deliver_single_event(struct snd_seq_client *dest, struct snd_seq_client_port *dest_port, struct snd_seq_event *event, int atomic, int hop) __snd_seq_deliver_single_event() argument
653 snd_seq_deliver_single_event(struct snd_seq_client *client, struct snd_seq_event *event, int filter, int atomic, int hop) snd_seq_deliver_single_event() argument
714 __deliver_to_subscribers(struct snd_seq_client *client, struct snd_seq_event *event, struct snd_seq_client_port *src_port, int atomic, int hop) __deliver_to_subscribers() argument
764 deliver_to_subscribers(struct snd_seq_client *client, struct snd_seq_event *event, int atomic, int hop) deliver_to_subscribers() argument
797 snd_seq_deliver_event(struct snd_seq_client *client, struct snd_seq_event *event, int atomic, int hop) snd_seq_deliver_event() argument
906 snd_seq_client_enqueue_event(struct snd_seq_client *client, struct snd_seq_event *event, struct file *file, int blocking, int atomic, int hop, struct mutex *mutexp) snd_seq_client_enqueue_event() argument
1467 struct snd_seq_event event; snd_seq_client_notify_subscription() local
[all...]
/foundation/ai/intelligent_voice_framework/frameworks/js/napi/
H A Denroll_intell_voice_engine_callback_napi.cpp122 void EnrollIntellVoiceEngineCallbackNapi::OnEvent(const IntellVoiceEngineCallBackEvent &event) in OnEvent() argument
125 event.msgId, event.result, event.info.c_str()); in OnEvent()
127 switch (event.msgId) { in OnEvent()
153 context->callbackInfo = {event.msgId, event.result, event.info}; in OnEvent()
154 if (event.result != 0) { in OnEvent()
155 if (event in OnEvent()
[all...]
/foundation/window/window_manager/dm/src/zidl/
H A Ddisplay_manager_agent_stub.cpp122 DisplayPowerEvent event = static_cast<DisplayPowerEvent>(data.ReadUint32()); in ProcNotifyDisplayPowerEvent() local
124 NotifyDisplayPowerEvent(event, status); in ProcNotifyDisplayPowerEvent()
157 uint32_t event; in ProcScreenChanged() local
158 if (!data.ReadUint32(event)) { in ProcScreenChanged()
162 OnScreenChange(screenInfo, static_cast<ScreenChangeEvent>(event)); in ProcScreenChanged()
178 uint32_t event; in ProcScreenGroupChanged() local
179 if (!data.ReadUint32(event)) { in ProcScreenGroupChanged()
183 OnScreenGroupChange(trigger, screenInfos, static_cast<ScreenGroupChangeEvent>(event)); in ProcScreenGroupChanged()
208 uint32_t event; in ProcDisplayChanged() local
209 if (!data.ReadUint32(event)) { in ProcDisplayChanged()
[all...]
/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/
H A Dpolicy_observer_wrapper.cpp53 const auto event = NapiUtils::GetStringFromValueUtf8(env, params[ARG_INDEX_0]); in On() local
54 if (std::find(events.begin(), events.end(), event) == events.end()) { in On()
55 NETMANAGER_BASE_LOGE("no find event"); in On()
68 manager_->AddListener(env, event, params[ARG_INDEX_1], false, asyncCallback); in On()
78 manager_->AddListener(env, event, params[ARG_INDEX_1], false, asyncCallback); in On()
105 std::string event = NapiUtils::GetStringFromValueUtf8(env, params[ARG_INDEX_0]); in Off() local
106 if (std::find(events.begin(), events.end(), event) == events.end()) { in Off()
119 DeleteListener(paramsCount, params, event); in Off()
130 DeleteListener(paramsCount, params, event); in Off()
137 void PolicyObserverWrapper::DeleteListener(size_t paramsCount, napi_value *params, std::string event) in DeleteListener() argument
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/linux/
H A Dreactor_linux.c79 struct epoll_event event = {0}; in ReactorCreate() local
80 event.data.ptr = NULL; in ReactorCreate()
81 event.events = EPOLLIN; in ReactorCreate()
83 if (epoll_ctl(epollFd, EPOLL_CTL_ADD, stopFd, &event) == -1) { in ReactorCreate()
199 struct epoll_event event = {0}; in ReactorRegister() local
200 event.data.ptr = item; in ReactorRegister()
202 event.events |= (EPOLLIN | EPOLLRDHUP); in ReactorRegister()
205 event.events |= EPOLLOUT; in ReactorRegister()
208 if (epoll_ctl(reactor->epollFd, EPOLL_CTL_ADD, item->fd, &event) == -1) { in ReactorRegister()
227 struct epoll_event event in ReactorUnregister() local
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dperf-time-to-tsc.c87 union perf_event *event; in test__perf_time_to_tsc() local
153 while ((event = perf_mmap__read_event(&md->core)) != NULL) { in test__perf_time_to_tsc()
156 if (event->header.type != PERF_RECORD_COMM || in test__perf_time_to_tsc()
157 (pid_t)event->comm.pid != getpid() || in test__perf_time_to_tsc()
158 (pid_t)event->comm.tid != getpid()) in test__perf_time_to_tsc()
161 if (strcmp(event->comm.comm, comm1) == 0) { in test__perf_time_to_tsc()
162 CHECK_NOT_NULL__(evsel = evlist__event2evsel(evlist, event)); in test__perf_time_to_tsc()
163 CHECK__(evsel__parse_sample(evsel, event, &sample)); in test__perf_time_to_tsc()
166 if (strcmp(event->comm.comm, comm2) == 0) { in test__perf_time_to_tsc()
167 CHECK_NOT_NULL__(evsel = evlist__event2evsel(evlist, event)); in test__perf_time_to_tsc()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/libsas/
H A Dsas_event.c28 static bool sas_queue_event(int event, struct sas_work *work, in sas_queue_event() argument
130 sas_port_event_fns[ev->event](work); in sas_port_event_worker()
141 sas_phy_event_fns[ev->event](work); in sas_phy_event_worker()
164 void sas_notify_port_event(struct asd_sas_phy *phy, enum port_event event, in sas_notify_port_event() argument
170 BUG_ON(event >= PORT_NUM_EVENTS); in sas_notify_port_event()
179 INIT_SAS_EVENT(ev, sas_port_event_worker, phy, event); in sas_notify_port_event()
184 if (!sas_queue_event(event, &ev->work, ha)) { in sas_notify_port_event()
191 void sas_notify_phy_event(struct asd_sas_phy *phy, enum phy_event event, in sas_notify_phy_event() argument
197 BUG_ON(event >= PHY_NUM_EVENTS); in sas_notify_phy_event()
206 INIT_SAS_EVENT(ev, sas_phy_event_worker, phy, event); in sas_notify_phy_event()
[all...]
/third_party/python/Lib/idlelib/
H A Dscrolledlist.py56 def click_event(self, event):
57 self.listbox.activate("@%d,%d" % (event.x, event.y))
63 def double_click_event(self, event):
71 def popup_event(self, event):
75 self.listbox.activate("@%d,%d" % (event.x, event.y))
78 menu.tk_popup(event.x_root, event.y_root)
86 def up_event(self, event)
[all...]
/third_party/opencl-headers/CL/
H A Dcl_icd.h427 cl_event event, cl_event_info param_name, size_t param_value_size,
430 typedef cl_int(CL_API_CALL *cl_api_clRetainEvent)(cl_event event)
433 typedef cl_int(CL_API_CALL *cl_api_clReleaseEvent)(cl_event event)
438 cl_event event, cl_profiling_info param_name, size_t param_value_size,
453 cl_event *event) CL_API_SUFFIX__VERSION_1_0;
463 cl_event *event) CL_API_SUFFIX__VERSION_1_1;
475 cl_event *event) CL_API_SUFFIX__VERSION_1_0;
485 cl_event *event) CL_API_SUFFIX__VERSION_1_1;
499 cl_event *event) CL_API_SUFFIX__VERSION_1_2;
511 cl_event *event) CL_API_SUFFIX__VERSION_1_
[all...]
/third_party/skia/third_party/externals/angle2/include/CL/
H A Dcl_icd.h427 cl_event event, cl_event_info param_name, size_t param_value_size,
430 typedef cl_int(CL_API_CALL *cl_api_clRetainEvent)(cl_event event)
433 typedef cl_int(CL_API_CALL *cl_api_clReleaseEvent)(cl_event event)
438 cl_event event, cl_profiling_info param_name, size_t param_value_size,
453 cl_event *event) CL_API_SUFFIX__VERSION_1_0;
463 cl_event *event) CL_API_SUFFIX__VERSION_1_1;
475 cl_event *event) CL_API_SUFFIX__VERSION_1_0;
485 cl_event *event) CL_API_SUFFIX__VERSION_1_1;
499 cl_event *event) CL_API_SUFFIX__VERSION_1_2;
511 cl_event *event) CL_API_SUFFIX__VERSION_1_
[all...]
/foundation/CastEngine/castengine_cast_framework/interfaces/kits/js/src/
H A Dnapi_stream_player_listener.cpp39 void NapiStreamPlayerListener::HandleEvent(int32_t event, NapiArgsGetter getter) in HandleEvent() argument
42 if (callbacks_[event].empty()) { in HandleEvent()
43 CLOGE("not register callback event=%{public}d", event); in HandleEvent()
46 for (auto ref = callbacks_[event].begin(); ref != callbacks_[event].end(); ++ref) { in HandleEvent()
230 napi_status NapiStreamPlayerListener::AddCallback(napi_env env, int32_t event, napi_value callback) in AddCallback() argument
232 CLOGI("Add callback %{public}d", event); in AddCallback()
235 if (GetRefByCallback(env, callbacks_[event], callback, ref) != napi_ok) { in AddCallback()
255 callbacks_[event] in AddCallback()
259 RemoveCallback(napi_env env, int32_t event, napi_value callback) RemoveCallback() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/touch_listener/
H A Drender_touch_listener.cpp80 auto event = AceAsyncEvent<void()>::Create(eventMarker, context_); in Update() local
81 rawRecognizer_->SetCatchEventCallback(event, EventStage::CAPTURE, EventType::TOUCH_UP); in Update()
82 rawRecognizer_->SetCatchEventCallback(event, EventStage::CAPTURE, EventType::TOUCH_MOVE); in Update()
142 auto event = std::make_shared<TouchEventInfo>("touchEvent"); in TriggerTouchCallBack() local
143 event->SetTimeStamp(changedPoint.time); in TriggerTouchCallBack()
159 event->AddChangedTouchLocationInfo(std::move(changedInfo)); in TriggerTouchCallBack()
182 event->AddTouchLocationInfo(std::move(info)); in TriggerTouchCallBack()
184 event->SetSourceDevice(changedPoint.sourceType); in TriggerTouchCallBack()
185 event->SetForce(changedPoint.force); in TriggerTouchCallBack()
187 event in TriggerTouchCallBack()
[all...]
/foundation/multimedia/media_lite/services/player_lite/impl/player_control/player/fsm/src/
H A Dmessage_looper.cpp213 MsgEvent event = *m_eventQueue.begin(); in QueueHandlr() local
224 m_msgHandlr->OnMessageReceived(*(event.msg)); in QueueHandlr()
228 if (event.msg->isNeedReply && event.msg->msgCallback) { in QueueHandlr()
229 event.msg->msgCallback(event.msg->privDate); in QueueHandlr()
232 m_msgPool->PutMsg(*(event.msg)); in QueueHandlr()
279 MsgEvent event{&msg, whenUs}; in InsertQueue()
282 m_eventQueue.push_back(event); in InsertQueue()
290 m_eventQueue.insert(it, event); in InsertQueue()
321 MsgEvent event = { nullptr, 0 }; RemoveMessage() local
[all...]
/kernel/linux/common_modules/xpm/core/
H A Dxpm_report.c39 unsigned int xpm_report_security_info(const event_info *event) in xpm_report_security_info() argument
41 xpm_log_error("%d: %s", event->event_id, event->content); in xpm_report_security_info()
44 return report_security_info(event); in xpm_report_security_info()
209 event_info *event = NULL; in xpm_report_event() local
213 xpm_log_error("xpm event type is NULL"); in xpm_report_event()
223 event = kzalloc(sizeof(event_info) + MAX_CONTENT_LEN, GFP_ATOMIC); in xpm_report_event()
224 if (!event) { in xpm_report_event()
225 xpm_log_error("alloc security guard event failed"); in xpm_report_event()
231 event in xpm_report_event()
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
H A Dmthca_mad.c112 struct ib_event event; in smp_snoop() local
127 event.device = ibdev; in smp_snoop()
128 event.element.port_num = port_num; in smp_snoop()
131 event.event = IB_EVENT_CLIENT_REREGISTER; in smp_snoop()
132 ib_dispatch_event(&event); in smp_snoop()
136 event.event = IB_EVENT_LID_CHANGE; in smp_snoop()
137 ib_dispatch_event(&event); in smp_snoop()
142 event in smp_snoop()
[all...]

Completed in 20 milliseconds

1...<<51525354555657585960>>...390