Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 25 of 29) sorted by relevance

12

/base/update/updater/services/ui/driver/
Dkeys_input_device.cpp70 void KeysInputDevice::PowerVolumeDownPress(const input_event &ev) in PowerVolumeDownPress() argument
74 bool down = ev.value == EVENT_KEY_DOWN_VALUE; in PowerVolumeDownPress()
75 if (ev.code == KEY_POWER) { in PowerVolumeDownPress()
77 } else if (ev.code == KEY_VOLUMEDOWN) { in PowerVolumeDownPress()
82 } else if (!down && (ev.code == KEY_POWER || ev.code == KEY_VOLUMEDOWN)) { in PowerVolumeDownPress()
87 int KeysInputDevice::HandleKeyEvent(const input_event &ev, uint32_t type) in HandleKeyEvent() argument
89 if (ev.type != EV_KEY || ev.code > KEY_MAX) { in HandleKeyEvent()
92 if (ev.code == BTN_TOUCH || ev.code == BTN_TOOL_FINGER) { in HandleKeyEvent()
95 …if (ev.code == BTN_MOUSE || ev.code == BTN_LEFT || ev.code == BTN_RIGHT || ev.code == BTN_MIDDLE) { in HandleKeyEvent()
100 if (ev.code == KEY_VOLUMEDOWN || ev.code == KEY_VOLUMEUP || ev.code == KEY_POWER) { in HandleKeyEvent()
[all …]
Dpointers_input_device.cpp26 void HandlePointersEvent(const input_event &ev, uint32_t type) in HandlePointersEvent() argument
28 PointersInputDevice::GetInstance().HandlePointEvent(ev, type); in HandlePointersEvent()
62 void PointersInputDevice::HandleEvAbsMt(const input_event &ev) in HandleEvAbsMt() argument
80 if (auto it = evMap.find(ev.code); it != evMap.end()) { in HandleEvAbsMt()
81 it->second(ev.value); in HandleEvAbsMt()
85 int PointersInputDevice::HandlePointEvent(const input_event &ev, uint32_t type) in HandlePointEvent() argument
87 if (ev.type == EV_ABS) { in HandlePointEvent()
88 HandleEvAbsMt(ev); in HandlePointEvent()
91 if (ev.type == EV_KEY && ev.code == BTN_TOUCH) { in HandlePointEvent()
92 SetFingerDown(ev.value == 1); in HandlePointEvent()
Dinput_event.cpp50 struct input_event ev {}; in HandleInputEvent() struct
51 ev.type = iev->type; in HandleInputEvent()
52 ev.code = iev->code; in HandleInputEvent()
53 ev.value = iev->value; in HandleInputEvent()
55 KeysInputDevice::GetInstance().HandleKeyEvent(ev, type); in HandleInputEvent()
56 handlePointersEventHelper_(ev, type); in HandleInputEvent()
76 struct input_event ev = { in ReportEventPkgCallback() local
83 InputEvent::GetInstance().HandleInputEvent(&ev, type); in ReportEventPkgCallback()
Dpointers_input_device.h25 void HandlePointersEvent(const input_event &ev, uint32_t type);
36 int HandlePointEvent(const input_event &ev, uint32_t type);
37 void HandleEvAbsMt(const input_event &ev);
Dkeys_input_device.h33 int HandleKeyEvent(const input_event &ev, uint32_t type);
36 void PowerVolumeDownPress(const input_event &ev);
Dinput_event.h27 using HandlePointersEventFunc = std::function<void(const input_event &ev, uint32_t type)>;
/base/msdp/device_status/services/native/src/
Dstream_server.cpp170 void StreamServer::ReleaseSession(int32_t fd, epoll_event& ev) in ReleaseSession() argument
177 if (ev.data.ptr) { in ReleaseSession()
178 free(ev.data.ptr); in ReleaseSession()
179 ev.data.ptr = nullptr; in ReleaseSession()
198 void StreamServer::OnEpollRecv(int32_t fd, epoll_event& ev) in OnEpollRecv() argument
223 ReleaseSession(fd, ev); in OnEpollRecv()
232 void StreamServer::OnEpollEvent(epoll_event& ev) in OnEpollEvent() argument
234 CHKPV(ev.data.ptr); in OnEpollEvent()
235 int32_t fd = *static_cast<int32_t*>(ev.data.ptr); in OnEpollEvent()
240 if ((ev.events & EPOLLERR) || (ev.events & EPOLLHUP)) { in OnEpollEvent()
[all …]
Ddevicestatus_service.cpp347 struct epoll_event ev {}; in AddEpoll() struct
348 ev.events = EPOLLIN; in AddEpoll()
349 ev.data.ptr = eventData; in AddEpoll()
350 if (EpollCtl(fd, EPOLL_CTL_ADD, ev, -1) < 0) { in AddEpoll()
353 ev.data.ptr = nullptr; in AddEpoll()
370 struct epoll_event ev {}; in DelEpoll() struct
371 if (EpollCtl(fd, EPOLL_CTL_DEL, ev, -1) < 0) { in DelEpoll()
423 epoll_event ev[MAX_EVENT_SIZE] {}; in OnThread() local
424 int32_t count = EpollWait(MAX_EVENT_SIZE, -1, ev[0]); in OnThread()
426 auto epollEvent = reinterpret_cast<device_status_epoll_event*>(ev[i].data.ptr); in OnThread()
[all …]
/base/powermgr/thermal_manager/application/protector/src/
Dthermal_protector_timer.cpp73 struct epoll_event ev; in RegisterCallback() local
75 ev.events = EPOLLIN; in RegisterCallback()
77 ev.events |= EPOLLWAKEUP; in RegisterCallback()
80 ev.data.ptr = reinterpret_cast<void*>(this); in RegisterCallback()
81 ev.data.fd = fd; in RegisterCallback()
82 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev) == -1) { in RegisterCallback()
Dthermal_sensor_provider.cpp180 struct epoll_event ev; in RegisterCallback() local
182 ev.events = EPOLLIN; in RegisterCallback()
184 ev.events |= EPOLLWAKEUP; in RegisterCallback()
187 ev.data.ptr = reinterpret_cast<void*>(this); in RegisterCallback()
188 ev.data.fd = fd; in RegisterCallback()
189 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev) == -1) { in RegisterCallback()
/base/powermgr/battery_manager/charger/src/
Dbattery_thread.cpp70 struct epoll_event ev = {0}; in RegisterCallback() local
72 ev.events = EPOLLIN; in RegisterCallback()
74 ev.events |= EPOLLWAKEUP; in RegisterCallback()
77 ev.data.ptr = reinterpret_cast<void*>(this); in RegisterCallback()
78 ev.data.fd = fd; in RegisterCallback()
79 if (epoll_ctl(epFd_, EPOLL_CTL_ADD, fd, &ev) == -1) { in RegisterCallback()
Dcharger_thread.cpp70 struct input_event ev = { in EventPkgCallback() local
75 HandleInputEvent(&ev); in EventPkgCallback()
109 input_event ev {}; in HandleInputEvent() local
110 ev.type = iev->type; in HandleInputEvent()
111 ev.code = iev->code; in HandleInputEvent()
112 ev.value = iev->value; in HandleInputEvent()
114 ev.type, ev.code, ev.value); in HandleInputEvent()
116 if (ev.type != EV_KEY) { in HandleInputEvent()
120 SetKeyState(ev.code, ev.value, GetCurrentTime()); in HandleInputEvent()
/base/msdp/device_status/libs/src/
Ddevicestatus_msdp_mock.cpp202 struct epoll_event ev; in RegisterTimerCallback() local
203 ev.events = EPOLLIN; in RegisterTimerCallback()
205 ev.events |= EPOLLWAKEUP; in RegisterTimerCallback()
208 ev.data.ptr = reinterpret_cast<void*>(this); in RegisterTimerCallback()
209 ev.data.fd = fd; in RegisterTimerCallback()
210 if (epoll_ctl(epFd_, EPOLL_CTL_ADD, fd, &ev) == -1) { in RegisterTimerCallback()
/base/msdp/device_status/services/native/include/
Dstream_server.h66 void ReleaseSession(int32_t fd, epoll_event& ev);
68 void OnEpollRecv(int32_t fd, epoll_event& ev);
69 void OnEpollEvent(epoll_event& ev);
Ddevicestatus_service.h99 void OnDelegateTask(const epoll_event &ev);
100 void OnTimeout(const epoll_event &ev);
101 void OnDeviceMgr(const epoll_event &ev);
/base/update/updater/test/unittest/script/
Dscript_interpreter_unittest.cpp89 std::unique_ptr<ErrorValue> ev = std::make_unique<ErrorValue>(retCode); in TestScriptInterpreterScriptValue() local
90 if (ev == nullptr) { in TestScriptInterpreterScriptValue()
93 ev->IsTrue(); in TestScriptInterpreterScriptValue()
94 ev->ToString(); in TestScriptInterpreterScriptValue()
95 ev->Computer(action, rightValue); in TestScriptInterpreterScriptValue()
96 ev.reset(); in TestScriptInterpreterScriptValue()
/base/msdp/device_status/services/device_manager/src/
Dmonitor.cpp42 void Monitor::Dispatch(const struct epoll_event &ev) in Dispatch() argument
44 if ((ev.events & EPOLLIN) == EPOLLIN) { in Dispatch()
46 } else if ((ev.events & (EPOLLHUP | EPOLLERR)) != 0) { in Dispatch()
Ddevice_manager.cpp284 struct epoll_event ev {}; in EpollAdd() struct
285 ev.events = EPOLLIN | EPOLLHUP | EPOLLERR; in EpollAdd()
286 ev.data.ptr = source; in EpollAdd()
287 int32_t ret = epoll_ctl(epollFd_, EPOLL_CTL_ADD, source->GetFd(), &ev); in EpollAdd()
316 void DeviceManager::Dispatch(const struct epoll_event &ev) in Dispatch() argument
319 if ((ev.events & EPOLLIN) == EPOLLIN) { in Dispatch()
326 } else if ((ev.events & (EPOLLHUP | EPOLLERR)) != 0) { in Dispatch()
/base/msdp/device_status/tools/vdev/include/
Dvirtual_device.h43 bool SupportEventType(size_t ev) const;
92 inline bool VirtualDevice::SupportEventType(size_t ev) const in SupportEventType() argument
94 return ((inputDev_ != nullptr) && inputDev_->SupportEventType(ev)); in SupportEventType()
Dv_input_device.h74 bool SupportEventType(size_t ev) const;
135 inline bool VInputDevice::SupportEventType(size_t ev) const in SupportEventType() argument
137 return TestBit(ev, evBitmask_); in SupportEventType()
/base/msdp/device_status/services/context/include/
Di_epoll_event_source.h30 virtual void Dispatch(const struct epoll_event &ev) = 0;
/base/security/certificate_manager/config/systemCertificates/
Dee64a828.023 l2D4kF501KKaU73yqWjgom7C12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3
/base/hiviewdfx/faultloggerd/services/
Dfault_logger_daemon.cpp541 epoll_event ev; in AddEvent() local
542 ev.events = event; in AddEvent()
543 ev.data.fd = addFd; in AddEvent()
544 int ret = epoll_ctl(epollFd, EPOLL_CTL_ADD, addFd, &ev); in AddEvent()
552 epoll_event ev; in DelEvent() local
553 ev.events = event; in DelEvent()
554 ev.data.fd = delFd; in DelEvent()
555 int ret = epoll_ctl(epollFd, EPOLL_CTL_DEL, delFd, &ev); in DelEvent()
/base/msdp/device_status/services/device_manager/include/
Dmonitor.h40 void Dispatch(const struct epoll_event &ev) override;
/base/msdp/device_status/tools/vdev/src/
Dvirtual_device_builder.cpp512 for (uint32_t ev = EV_SYN; ev < EV_MAX; ++ev) { in CopyEvents() local
513 if (vDev->SupportEventType(ev)) { in CopyEvents()
514 eventTypes_.push_back(ev); in CopyEvents()

12