/base/update/updater/services/ui/driver/ |
D | keys_input_device.cpp | 79 void KeysInputDevice::PowerDownPress(const input_event &ev) in PowerDownPress() argument 81 if (ev.code != KEY_POWER) { in PowerDownPress() 84 bool down = ev.value == EVENT_KEY_DOWN_VALUE; in PowerDownPress() 85 LOG(INFO) << "power down " << ev.code; in PowerDownPress() 93 void KeysInputDevice::PowerVolumeDownPress(const input_event &ev) in PowerVolumeDownPress() argument 97 bool down = ev.value == EVENT_KEY_DOWN_VALUE; in PowerVolumeDownPress() 98 if (ev.code == KEY_POWER) { in PowerVolumeDownPress() 100 } else if (ev.code == KEY_VOLUMEDOWN) { in PowerVolumeDownPress() 105 } else if (!down && (ev.code == KEY_POWER || ev.code == KEY_VOLUMEDOWN)) { in PowerVolumeDownPress() 110 int KeysInputDevice::HandleKeyEvent(const input_event &ev, uint32_t type) in HandleKeyEvent() argument [all …]
|
D | pointers_input_device.cpp | 27 void HandlePointersEvent(const input_event &ev, uint32_t type) in HandlePointersEvent() argument 29 PointersInputDevice::GetInstance().HandlePointEvent(ev, type); in HandlePointersEvent() 64 void PointersInputDevice::HandleEvAbsMt(const input_event &ev) in HandleEvAbsMt() argument 82 if (auto it = evMap.find(ev.code); it != evMap.end()) { in HandleEvAbsMt() 83 it->second(ev.value); in HandleEvAbsMt() 87 int PointersInputDevice::HandlePointEvent(const input_event &ev, uint32_t type) in HandlePointEvent() argument 89 if (ev.type == EV_ABS) { in HandlePointEvent() 90 HandleEvAbsMt(ev); in HandlePointEvent() 93 if (ev.type == EV_KEY && ev.code == BTN_TOUCH) { in HandlePointEvent() 94 SetFingerDown(ev.value == 1); in HandlePointEvent()
|
D | input_event.cpp | 50 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()
|
D | pointers_input_device.h | 25 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);
|
D | keys_input_device.h | 35 int HandleKeyEvent(const input_event &ev, uint32_t type); 38 void PowerVolumeDownPress(const input_event &ev); 39 void PowerDownPress(const input_event &ev);
|
/base/msdp/device_status/intention/common/epoll/src/ |
D | epoll_manager.cpp | 60 struct epoll_event ev {}; in Add() struct 61 ev.events = source.GetEvents(); in Add() 62 ev.data.ptr = &source; in Add() 64 int32_t ret = ::epoll_ctl(epollFd_, EPOLL_CTL_ADD, source.GetFd(), &ev); in Add() 84 struct epoll_event ev {}; in Update() struct 85 ev.events = source.GetEvents(); in Update() 86 ev.data.ptr = &source; in Update() 88 int32_t ret = ::epoll_ctl(epollFd_, EPOLL_CTL_MOD, source.GetFd(), &ev); in Update() 112 void EpollManager::Dispatch(const struct epoll_event &ev) in Dispatch() argument 115 if ((ev.events & EPOLLIN) == EPOLLIN) { in Dispatch() [all …]
|
/base/msdp/device_status/intention/services/test/unittest/src/ |
D | monitor_test.cpp | 83 struct epoll_event ev; variable 84 ev.events = EPOLLIN; 85 ASSERT_NO_FATAL_FAILURE(monitor.Dispatch(ev)); 86 ev.events = EPOLLHUP; 87 ASSERT_NO_FATAL_FAILURE(monitor.Dispatch(ev)); 88 ev.events = EPOLLERR; 89 ASSERT_NO_FATAL_FAILURE(monitor.Dispatch(ev));
|
/base/msdp/device_status/services/native/src/ |
D | stream_server.cpp | 183 void StreamServer::ReleaseSession(int32_t fd, epoll_event &ev) in ReleaseSession() argument 190 if (ev.data.ptr) { in ReleaseSession() 191 free(ev.data.ptr); in ReleaseSession() 192 ev.data.ptr = nullptr; in ReleaseSession() 211 void StreamServer::OnEpollRecv(int32_t fd, epoll_event &ev) in OnEpollRecv() argument 236 ReleaseSession(fd, ev); in OnEpollRecv() 245 void StreamServer::OnEpollEvent(epoll_event &ev) in OnEpollEvent() argument 247 CHKPV(ev.data.ptr); in OnEpollEvent() 248 int32_t fd = *static_cast<int32_t*>(ev.data.ptr); in OnEpollEvent() 253 if ((ev.events & EPOLLERR) || (ev.events & EPOLLHUP)) { in OnEpollEvent() [all …]
|
D | devicestatus_service.cpp | 411 struct epoll_event ev {}; in OnStart() struct 412 ev.events = EPOLLIN; in OnStart() 413 ev.data.ptr = eventData; in OnStart() 414 if (EpollCtl(fd, EPOLL_CTL_ADD, ev) != RET_OK) { in OnStart() 417 ev.data.ptr = nullptr; in OnStart() 434 struct epoll_event ev {}; in OnStart() struct 435 if (EpollCtl(fd, EPOLL_CTL_DEL, ev) != RET_OK) { in OnStart() 500 struct epoll_event ev[MAX_EVENT_SIZE] {}; in OnStart() struct 501 int32_t count = EpollWait(MAX_EVENT_SIZE, -1, ev[0]); in OnStart() 503 auto epollEvent = reinterpret_cast<device_status_epoll_event*>(ev[i].data.ptr); in OnStart() [all …]
|
/base/powermgr/battery_manager/charger/src/ |
D | charger_thread.cpp | 70 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()
|
D | battery_thread.cpp | 70 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()
|
/base/powermgr/thermal_manager/application/protector/src/ |
D | thermal_protector_timer.cpp | 73 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()
|
D | thermal_sensor_provider.cpp | 180 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/msdp/device_status/test/unittest/intention/scheduler/src/ |
D | timer_manager_test.cpp | 207 struct epoll_event ev {}; in AddEpoll() struct 208 ev.events = EPOLLIN; in AddEpoll() 209 ev.data.ptr = eventData; in AddEpoll() 210 if (EpollCtl(fd, EPOLL_CTL_ADD, ev) != RET_OK) { in AddEpoll() 213 ev.data.ptr = nullptr; in AddEpoll() 231 struct epoll_event ev {}; in DelEpoll() struct 232 if (EpollCtl(fd, EPOLL_CTL_DEL, ev) != RET_OK) { in DelEpoll() 277 void ContextService::OnTimeout(const struct epoll_event &ev) in OnTimeout() argument 280 if ((ev.events & EPOLLIN) == EPOLLIN) { in OnTimeout() 287 } else if ((ev.events & (EPOLLHUP | EPOLLERR)) != 0) { in OnTimeout() [all …]
|
/base/msdp/device_status/test/unittest/intention/common/src/ |
D | epoll_manager_test.cpp | 67 void MonitorEvent::Dispatch(const struct epoll_event &ev) in Dispatch() argument 74 if ((ev.events & EPOLLIN) == EPOLLIN) { in Dispatch() 82 } else if ((ev.events & (EPOLLHUP | EPOLLERR)) != 0) { in Dispatch() 642 struct epoll_event ev {}; struct 643 ev.events = EPOLLIN; 644 ev.data.ptr = &epollMgr; 645 epollMgr.Dispatch(ev); 670 struct epoll_event ev {}; struct 671 ev.events = EPOLLERR; 672 ev.data.ptr = &epollMgr; [all …]
|
/base/msdp/device_status/libs/src/ |
D | devicestatus_msdp_mock.cpp | 213 struct epoll_event ev; in RegisterTimerCallback() local 214 ev.events = EPOLLIN; in RegisterTimerCallback() 216 ev.events |= EPOLLWAKEUP; in RegisterTimerCallback() 219 ev.data.ptr = reinterpret_cast<void*>(this); in RegisterTimerCallback() 220 ev.data.fd = fd; in RegisterTimerCallback() 221 if (epoll_ctl(epFd_, EPOLL_CTL_ADD, fd, &ev) == -1) { in RegisterTimerCallback()
|
/base/sensors/sensor/vibration_convert/core/native/src/ |
D | generate_vibration_json_file.cpp | 52 Json::Value ev; in GenerateJsonFile() local 53 ev["Event"] = eventValue; in GenerateJsonFile() 54 pattern.append(ev); in GenerateJsonFile()
|
/base/msdp/device_status/intention/common/epoll/include/ |
D | epoll_manager.h | 46 void Dispatch(const struct epoll_event &ev) override; 49 void DispatchOne(const struct epoll_event &ev);
|
/base/msdp/device_status/intention/ipc/socket/src/ |
D | socket_session.cpp | 113 void SocketSession::Dispatch(const struct epoll_event &ev) in Dispatch() argument 115 if ((ev.events & EPOLLIN) == EPOLLIN) { in Dispatch() 117 } else if ((ev.events & (EPOLLHUP | EPOLLERR)) != 0) { in Dispatch()
|
/base/update/updater/test/unittest/script/ |
D | script_interpreter_unittest.cpp | 89 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/native/include/ |
D | stream_server.h | 71 void ReleaseSession(int32_t fd, epoll_event &ev); 73 void OnEpollRecv(int32_t fd, epoll_event &ev); 74 void OnEpollEvent(epoll_event &ev);
|
/base/msdp/device_status/intention/services/device_manager/src/ |
D | monitor.cpp | 41 void Monitor::Dispatch(const struct epoll_event &ev) in Dispatch() argument 43 if ((ev.events & EPOLLIN) == EPOLLIN) { in Dispatch() 45 } else if ((ev.events & (EPOLLHUP | EPOLLERR)) != 0) { in Dispatch()
|
/base/msdp/device_status/test/unittest/intentiontest/src/ |
D | socket_session_test.cpp | 500 struct epoll_event ev {}; struct 501 ev.events = 0; 502 ev.events |= EPOLLIN; 503 g_session->Dispatch(ev); 504 g_socketSessionManager->Dispatch(ev); 506 ev.events = 0; 507 ev.events |= EPOLLHUP; 508 g_session->Dispatch(ev); 509 g_socketSessionManager->Dispatch(ev);
|
/base/msdp/device_status/tools/vdev/include/ |
D | virtual_device.h | 43 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()
|
/base/msdp/device_status/intention/prototype/include/ |
D | i_epoll_event_source.h | 31 virtual void Dispatch(const struct epoll_event &ev) = 0;
|