| /foundation/multimodalinput/input/tools/event_inject/test/ |
| D | device_base_test.cpp | 67 EXPECT_GT(inputEventArray.events.size(), 0); 68 if (inputEventArray.events.size() <= 0) { 71 EXPECT_EQ(inputEventArray.events[0].event.type, EV_SYN); 72 EXPECT_EQ(inputEventArray.events[0].event.code, SYN_REPORT); 73 EXPECT_EQ(inputEventArray.events[0].event.value, SYN_CONFIG); 74 EXPECT_EQ(inputEventArray.events[0].blockTime, blockTime); 90 EXPECT_GT(inputEventArray.events.size(), 0); 91 if (inputEventArray.events.size() <= 0) { 94 EXPECT_EQ(inputEventArray.events[0].event.type, EV_KEY); 95 EXPECT_EQ(inputEventArray.events[0].event.code, static_cast<uint16_t>(code)); [all …]
|
| /foundation/arkui/ace_engine/frameworks/core/event/ |
| D | event_convertor.cpp | 20 …EventType(AceActionData::ActionType actionType, TouchEvent& point, std::vector<TouchEvent>& events) in SetTouchEventType() argument 25 events.push_back(point); in SetTouchEventType() 33 events.push_back(point); in SetTouchEventType() 37 events.push_back(point); in SetTouchEventType() 41 events.push_back(point); in SetTouchEventType() 49 void UpdateTouchEvent(std::vector<TouchEvent>& events) in UpdateTouchEvent() argument 51 if (events.empty()) { in UpdateTouchEvent() 54 for (auto& event : events) { in UpdateTouchEvent() 69 void ConvertMouseEvent(const std::vector<uint8_t>& data, MouseEvent& events) in ConvertMouseEvent() argument 77 events.x = mouseActionData->physicalX; in ConvertMouseEvent() [all …]
|
| /foundation/arkui/ace_engine/test/unittest/core/event/ |
| D | BUILD.gn | 18 module_output = "events" 33 module_output = "events" 40 module_output = "events" 49 module_output = "events" 55 module_output = "events" 65 module_output = "events" 74 module_output = "events" 82 module_output = "events" 89 module_output = "events" 95 module_output = "events" [all …]
|
| /foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/evloop/src/ |
| D | event_impl.cpp | 47 EventImpl::EventImpl(const EventFd &fd, EventsMask events, EventTime timeout) in EventImpl() argument 49 events_(events), in EventImpl() 56 if (!(events & ET_TIMEOUT) || (timeout_ < 0)) { in EventImpl() 101 int EventImpl::AddEvents(EventsMask events) in AddEvents() argument 103 if (!IsValidArg(events)) { in AddEvents() 108 if ((genericEvents & events) && !IsValidFd()) { in AddEvents() 109 LOGE("ev add events failed, fd is invalid."); in AddEvents() 117 events_ |= events; in AddEvents() 124 int errCode = loop->Modify(this, true, events); in AddEvents() 127 LOGE("ev add events failed, err: '%d'.", errCode); in AddEvents() [all …]
|
| D | event_loop_epoll.cpp | 63 event.events = EPOLLIN; in Initialize() 111 EventsMask revents = CalEventsMask(revent->events); in Poll() 171 uint32_t EventLoopEpoll::CalEpollEvents(EventsMask events) const in CalEpollEvents() 174 if (events & IEvent::ET_READ) { // LCOV_EXCL_BR_LINE in CalEpollEvents() 177 if (events & IEvent::ET_WRITE) { // LCOV_EXCL_BR_LINE in CalEpollEvents() 180 if (events & IEvent::ET_ERROR) { // LCOV_EXCL_BR_LINE in CalEpollEvents() 188 EventsMask events = 0; in CalEventsMask() local 190 events |= IEvent::ET_READ; in CalEventsMask() 193 events |= IEvent::ET_WRITE; in CalEventsMask() 196 events |= IEvent::ET_ERROR; in CalEventsMask() [all …]
|
| D | event_impl.h | 29 EventImpl(const EventFd &fd, EventsMask events, EventTime timeout); 33 int AddEvents(EventsMask events) override; 34 int RemoveEvents(EventsMask events) override; 47 void SetEvents(bool isAdd, EventsMask events); 48 void SetRevents(EventsMask events); 54 bool IsValidArg(EventsMask events) const;
|
| /foundation/multimodalinput/input/tools/event_inject/src/ |
| D | device_base.cpp | 45 inputEventArray.events.push_back(injectEvent); in SetSynConfigReport() 56 inputEventArray.events.push_back(injectEvent); in SetKeyLongPressEvent() 67 inputEventArray.events.push_back(injectEvent); in SetSynReport() 78 inputEventArray.events.push_back(injectEvent); in SetKeyPressEvent() 89 inputEventArray.events.push_back(injectEvent); in SetKeyReleaseEvent() 100 inputEventArray.events.push_back(injectEvent); in SetMtSlot() 112 inputEventArray.events.push_back(injectEvent); in SetTrackingId() 123 inputEventArray.events.push_back(injectEvent); in SetPositionX() 134 inputEventArray.events.push_back(injectEvent); in SetPositionY() 145 inputEventArray.events.push_back(injectEvent); in SetMtTouchMajor() [all …]
|
| D | input_parse.cpp | 153 bool ParseData(cJSON* events, std::vector<DeviceEvent>& eventData) in ParseData() argument 155 if (!cJSON_IsArray(events)) { in ParseData() 156 MMI_HILOGE("The events is not array"); in ParseData() 159 int32_t eventsSize = cJSON_GetArraySize(events); in ParseData() 161 cJSON* eventInfo = cJSON_GetArrayItem(events, i); in ParseData() 165 MMI_HILOGE("Failed to parse events"); in ParseData() 171 MMI_HILOGE("Events is error"); in ParseData() 224 << ",events:["; in ToString() 225 for (const auto &item : events) { in ToString() 257 cJSON *events = nullptr; in DataInit() local [all …]
|
| /foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/ |
| D | sys_epoll.c | 23 int32_t RefreshEpollTask(EpollTask *task, uint32_t events) in RefreshEpollTask() argument 30 event.events = events; in RefreshEpollTask() 40 int32_t RegisterEpollTask(EpollTask *task, uint32_t events) in RegisterEpollTask() argument 47 event.events = events; in RegisterEpollTask() 77 struct epoll_event events[MAX_EPOLL_SIZE]; in EpollLoop() local 79 nfds = epoll_wait(epollfd, events, MAX_EPOLL_SIZE, timeout); in EpollLoop() 90 task = events[i].data.ptr; in EpollLoop() 95 if (events[i].events & EPOLLIN) { in EpollLoop() 101 if (events[i].events & EPOLLOUT) { in EpollLoop()
|
| /foundation/graphic/graphic_2d/rosen/modules/platform/eventhandler/ |
| D | event_queue.h | 37 // Priority for the events 58 * The events will be sorted by handle time. 68 * Remove events if its owner is invalid. 73 * Remove events with specified requirements. 80 * Remove events with specified requirements. 83 * @param innerEventId Remove events by event id. 88 * Remove events with specified requirements. 91 * @param innerEventId Remove events by event id. 92 * @param param Remove events by value of param. 97 * Remove events with specified requirements. [all …]
|
| /foundation/multimodalinput/input/tools/event_inject/jsonFiles/ |
| D | Test_GetDeviceObjectTest.json | 4 "events":[ array 10 "events":[ array 16 "events":[ array 22 "events":[ array 28 "events":[ array 34 "events":[ array 41 "events":[ array
|
| /foundation/communication/bluetooth_service/services/bluetooth/service/src/sock/ |
| D | socket_listener.cpp | 43 event.events = EPOLLIN; in Initialize() 96 event.events = EPOLLRDHUP | EPOLLERR | EPOLLIN | EPOLLOUT | EPOLLONESHOT; in AddSocket() 100 event.events = EPOLLRDHUP | EPOLLERR | EPOLLIN; in AddSocket() 115 struct epoll_event events[MAX_EPOLL]; in OnListenEvents() local 119 CHECK_EXCEPT_INTR(nfds = epoll_wait(epollFd_, events, MAX_EPOLL, -1)); in OnListenEvents() 125 if (events[i].data.ptr == nullptr) { in OnListenEvents() 131 Socket &sock = *(Socket *)events[i].data.ptr; in OnListenEvents() 132 if (events[i].events & EPOLLIN) { in OnListenEvents() 137 if (events[i].events & EPOLLOUT) { in OnListenEvents() 142 event.events = EPOLLRDHUP | EPOLLERR | EPOLLIN; in OnListenEvents() [all …]
|
| /foundation/communication/netstack/utils/napi_utils/src/ |
| D | module_template.cpp | 35 …gerWrapper(napi_env env, napi_callback_info info, const std::initializer_list<std::string> &events, in OnManagerWrapper() argument 51 if (std::find(events.begin(), events.end(), event) == events.end()) { in OnManagerWrapper() 77 …gerWrapper(napi_env env, napi_callback_info info, const std::initializer_list<std::string> &events, in OnceManagerWrapper() argument 92 if (std::find(events.begin(), events.end(), event) == events.end()) { in OnceManagerWrapper() 114 …gerWrapper(napi_env env, napi_callback_info info, const std::initializer_list<std::string> &events) in OffManagerWrapper() argument 135 if (std::find(events.begin(), events.end(), event) == events.end()) { in OffManagerWrapper() 165 …redManager(napi_env env, napi_callback_info info, const std::initializer_list<std::string> &events, in OnSharedManager() argument 181 if (std::find(events.begin(), events.end(), event) == events.end()) { in OnSharedManager() 207 …redManager(napi_env env, napi_callback_info info, const std::initializer_list<std::string> &events, in OnceSharedManager() argument 222 if (std::find(events.begin(), events.end(), event) == events.end()) { in OnceSharedManager() [all …]
|
| /foundation/communication/wifi/wifi/relation_services/wifi_hal_service/ |
| D | wifi_hal_crpc_common.c | 41 int *events = ReadIntArray(context, num); in RpcRegisterEventCallback() local 42 if (events == NULL) { in RpcRegisterEventCallback() 46 RegisterCallback(server, events[i], context); in RpcRegisterEventCallback() 51 free(events); in RpcRegisterEventCallback() 52 events = NULL; in RpcRegisterEventCallback() 68 int *events = ReadIntArray(context, num); in RpcUnRegisterEventCallback() local 69 if (events == NULL) { in RpcUnRegisterEventCallback() 73 UnRegisterCallback(server, events[i], context); in RpcUnRegisterEventCallback() 78 free(events); in RpcUnRegisterEventCallback() 79 events = NULL; in RpcUnRegisterEventCallback()
|
| /foundation/arkui/ace_engine/adapter/ohos/entrance/ |
| D | mmi_event_convertor.cpp | 244 void GetMouseEventAction(int32_t action, MouseEvent& events, bool isScenceBoardWindow) in GetMouseEventAction() argument 248 events.action = MouseAction::PRESS; in GetMouseEventAction() 251 events.action = MouseAction::RELEASE; in GetMouseEventAction() 254 events.action = MouseAction::WINDOW_ENTER; in GetMouseEventAction() 257 events.action = MouseAction::WINDOW_LEAVE; in GetMouseEventAction() 260 events.action = MouseAction::MOVE; in GetMouseEventAction() 263 events.action = MouseAction::PRESS; in GetMouseEventAction() 264 events.pullAction = MouseAction::PULL_DOWN; in GetMouseEventAction() 267 events.action = MouseAction::MOVE; in GetMouseEventAction() 268 events.pullAction = MouseAction::PULL_MOVE; in GetMouseEventAction() [all …]
|
| /foundation/arkui/ui_lite/test/unittest/ |
| D | BUILD.gn | 91 "events/cancel_event_unit_test.cpp", 92 "events/click_event_unit_test.cpp", 93 "events/drag_event_unit_test.cpp", 94 "events/event_bubble_unit_test.cpp", 95 "events/event_unit_test.cpp", 96 "events/key_event_unit_test.cpp", 97 "events/long_press_event_unit_test.cpp", 98 "events/press_event_unit_test.cpp", 99 "events/release_event_unit_test.cpp", 100 "events/virtual_device_event_unit_test.cpp",
|
| /foundation/resourceschedule/memmgr/services/memmgrservice/src/event/ |
| D | kswapd_observer.cpp | 46 epollfd_ = epoll_create(6); // 6 : max epoll events in Init() 77 epollEvent.events = EPOLLPRI; in RegisterKswapdListener() 96 struct epoll_event events[1]; in MainLoop() local 98 int nevents = epoll_wait(epollfd_, events, 1, -1); in MainLoop() 99 HILOGD("receive events, num=%{public}d!", nevents); in MainLoop() 108 for (i = 0, curEpollEvent = &events[0]; i < nevents; ++i, curEpollEvent++) { in MainLoop() 109 if (curEpollEvent->events & EPOLLHUP) { in MainLoop() 110 HILOGE("EPOLLHUP in events[%{public}d]", i); in MainLoop() 114 if (curEpollEvent->events & EPOLLERR) { in MainLoop() 115 HILOGE("epoll err in events[%{public}d]", i); in MainLoop() [all …]
|
| /foundation/multimodalinput/input/intention/common/epoll/src/ |
| D | epoll_manager.cpp | 64 ev.events = source.GetEvents(); in Add() 88 ev.events = source.GetEvents(); in Update() 99 int32_t EpollManager::Wait(struct epoll_event *events, int32_t maxevents) in Wait() argument 101 return WaitTimeout(events, maxevents, -1); in Wait() 104 int32_t EpollManager::WaitTimeout(struct epoll_event *events, int32_t maxevents, int32_t timeout) in WaitTimeout() argument 106 int32_t ret = ::epoll_wait(epollFd_, events, maxevents, timeout); in WaitTimeout() 118 if ((ev.events & EPOLLIN) == EPOLLIN) { in Dispatch() 120 } else if ((ev.events & (EPOLLHUP | EPOLLERR)) != 0) { in Dispatch() 133 if ((evs[index].events & EPOLLIN) == EPOLLIN) { in DispatchOne() 135 } else if ((evs[index].events & (EPOLLHUP | EPOLLERR)) != 0) { in DispatchOne()
|
| /foundation/window/window_manager/window_scene/intention_event/service/event_stage/src/ |
| D | event_stage.cpp | 62 WLOGFD("Current events have no event for persistentId:%{public}d", persistentId); in GetTimerIds() 75 WLOGFD("Delete events, persistentId:%{public}d, eventId:%{public}d", persistentId, eventId); in DelEvents() 77 WLOGFD("Current events have no event persistentId:%{public}d", persistentId); in DelEvents() 80 auto &events = events_[persistentId]; in DelEvents() local 81 auto fistMatchIter = find_if(events.begin(), events.end(), [eventId](const auto& item) { in DelEvents() 85 for (auto iter = events.begin(); iter != fistMatchIter; iter++) { in DelEvents() 88 events.erase(events.begin(), fistMatchIter); in DelEvents()
|
| /foundation/graphic/graphic_2d/rosen/modules/platform/eventhandler_impl/ |
| D | event_queue.cpp | 30 // Help to insert events into the event queue sorted by handle time. 31 inline void InsertEventsLocked(std::list<InnerEvent::Pointer> &events, InnerEvent::Pointer &event) in InsertEventsLocked() argument 39 auto it = std::upper_bound(events.begin(), events.end(), event, f); in InsertEventsLocked() 40 events.insert(it, std::move(event)); in InsertEventsLocked() 62 inline bool CheckEventInListLocked(const std::list<InnerEvent::Pointer> &events, const InnerEvent::… in CheckEventInListLocked() argument 65 if (!events.empty()) { in CheckEventInListLocked() 66 const auto &handleTime = events.front()->GetHandleTime(); in CheckEventInListLocked() 76 inline InnerEvent::Pointer PopFrontEventFromListLocked(std::list<InnerEvent::Pointer> &events) in PopFrontEventFromListLocked() argument 78 InnerEvent::Pointer event = std::move(events.front()); in PopFrontEventFromListLocked() 79 events.pop_front(); in PopFrontEventFromListLocked() [all …]
|
| /foundation/multimodalinput/input/util/socket/test/ |
| D | uds_socket_test.cpp | 98 struct epoll_event events[MAX_EVENT_SIZE] = {}; variable 102 int32_t retResult = socObj.EpollWait(*events, MAX_EVENT_SIZE, timeout); 108 struct epoll_event events[MAX_EVENT_SIZE] = {}; variable 112 int32_t retResult = socObj.EpollWait(*events, MAX_EVENT_SIZE, timeout); 118 struct epoll_event events[MAX_EVENT_SIZE] = {}; variable 122 int32_t retResult = socObj.EpollWait(*events, MAX_EVENT_SIZE, timeout); 128 struct epoll_event events[MAX_EVENT_SIZE] = {}; variable 132 int32_t retResult = socObj.EpollWait(*events, MAX_EVENT_SIZE, timeout);
|
| /foundation/communication/netmanager_base/utils/napi_utils/src/ |
| D | module_template.cpp | 28 …i_value On(napi_env env, napi_callback_info info, const std::initializer_list<std::string> &events, in On() argument 43 if (std::find(events.begin(), events.end(), event) == events.end()) { in On() 56 …value Once(napi_env env, napi_callback_info info, const std::initializer_list<std::string> &events, in Once() argument 71 if (std::find(events.begin(), events.end(), event) == events.end()) { in Once() 84 …_value Off(napi_env env, napi_callback_info info, const std::initializer_list<std::string> &events) in Off() argument 103 if (std::find(events.begin(), events.end(), event) == events.end()) { in Off()
|
| /foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/ |
| D | sys_epoll.c | 68 typedef void (*EpollEventCtrlFunc)(EpollSet *epollSetPtr, uint32_t events, EpollTask *task); 79 static void EpollFdEventAdd(EpollSet *epollSetPtr, uint32_t events, EpollTask *task); 80 static void EpollFdEventDel(EpollSet *epollSetPtr, uint32_t events, EpollTask *task); 81 static void EpollFdEventMod(EpollSet *epollSetPtr, uint32_t events, EpollTask *task); 83 static int32_t CtlEpollDesc(EpollTask *task, int op, uint32_t events) in CtlEpollDesc() argument 97 event.events = events; in CtlEpollDesc() 111 static int32_t CtlEpollDescSync(EpollTask *task, EpollEventCtrlFunc func, uint32_t events) in CtlEpollDescSync() argument 124 func(epollSetPtr, events, task); in CtlEpollDescSync() 132 int32_t RunEpollTask(void *task, uint32_t events) in RunEpollTask() argument 134 return CtlEpollDesc((EpollTask *)task, EPOLL_CTL_RUN, events); in RunEpollTask() [all …]
|
| /foundation/window/window_manager_lite/services/ims/ |
| D | input_event_distributer.h | 24 * @brief Distributer distribute all input events to specific window. 32 * @brief Distribute input events. 34 * @param [in] events events waiting for distribution. 35 * @param [in] size total size of events. 38 void Distribute(const RawEvent* events, int32_t size);
|
| /foundation/multimodalinput/input/util/socket/src/ |
| D | uds_session.cpp | 170 MMI_HILOGE("Current events have no event type:%{public}d", type); in GetTimerIds() 185 MMI_HILOGD("Delete events, anr type:%{public}d, id:%{public}d, pid:%{public}d", type, id, pid_); in DelEvents() 188 MMI_HILOGE("Current events have no event type:%{public}d pid:%{public}d", type, pid_); in DelEvents() 191 auto &events = iter->second; in DelEvents() local 194 for (auto &item : events) { in DelEvents() 206 events.erase(events.begin(), events.begin() + canDelEventCount); in DelEvents() 208 if (events.empty()) { in DelEvents() 213 type, events.begin()->id, events.begin()->timerId, pid_); in DelEvents() 215 if (!AddInt64(events.begin()->eventTime, INPUT_UI_TIMEOUT_TIME, endTime)) { in DelEvents() 232 MMI_HILOGD("Current events is empty"); in GetEarliestEventTime()
|