Searched defs:events (Results 1 - 17 of 17) sorted by relevance

/device/google/cuttlefish_common/guest/commands/vsoc_input_service/
H A Dvsoc_input_service.cpp43 InputEvent events[InputEventsRegionView::kMaxEventsPerPacket]; local
44 int count = next_events(events, InputEventsRegionView::kMaxEventsPerPacket);
46 SLOGE("Error getting events from the queue: Maybe check packet size");
50 device->EmitEvent(events[i].type, events[i].code, events[i].value);
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
H A Dltm.c52 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { argument
53 const TValue *tm = luaH_getstr(events, ename);
56 events->flags |= cast_byte(1u<<event); /* cache this fact */
/device/linaro/bootloader/edk2/StdLib/Include/sys/
H A Dpoll.h59 short events; /* events to look for */ member in struct:pollfd
60 short revents; /* events returned */
64 * Testable events (may be specified in events field).
75 * Non-testable events (ignored in events field, valid in return only).
/device/google/cuttlefish_common/common/vsoc/lib/
H A Dinput_events_region_view.cpp40 InputEvent events[4]; local
41 // Make sure to modify kMaxEventPerPacket if more events are sent.
42 InitInputEvent(&events[0], EV_ABS, ABS_X, x);
43 InitInputEvent(&events[1], EV_ABS, ABS_Y, y);
44 InitInputEvent(&events[2], EV_KEY, BTN_TOUCH, down);
45 InitInputEvent(&events[3], EV_SYN, 0, 0);
48 this, reinterpret_cast<char*>(&events[0]), sizeof(events), true);
52 InputEvent events[2]; local
53 InitInputEvent(&events[
61 InputEvent events[2]; local
[all...]
/device/google/cuttlefish_common/guest/hals/gps/
H A Dgps_thread.cpp124 struct epoll_event events[2]; local
127 nevents = epoll_wait(epoll_fd, events, 2, 500);
128 D("Thread received %d events", nevents);
141 if ((events[event_index].events & (EPOLLERR | EPOLLHUP)) != 0) {
146 if ((events[event_index].events & EPOLLIN) != 0) {
147 int fd = events[event_index].data.fd;
/device/google/marlin/camera/QCamera2/util/
H A DQCameraDisplay.cpp57 * @events : events
63 __unused int events, void* data) {
62 vsyncEventReceiverCamera(__unused int fd, __unused int events, void* data) argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/WebServer/
H A DWebServer.c116 pFdListNew[ Index ].events = 0;
192 pFdList[ pWebServer->Entries ].events = POLLRDNORM
282 pFdList[ Index ].events = 0;
308 @param [in] events everts is a bitmask of the work to be done
320 IN INTN events,
340 // Handle input events
342 if ( 0 != ( events & POLLRDNORM )) {
350 // Accepts arrive as read events
463 if ( 0 != ( events & POLLHUP )) {
317 PortWork( IN DT_WEB_SERVER * pWebServer, IN int SocketFD, IN INTN events, IN WSDT_PORT * pPort ) argument
/device/google/marlin/usb/
H A DUsb.cpp585 ev.events = EPOLLIN;
600 struct epoll_event events[64]; local
602 nevents = epoll_wait(epoll_fd, events, 64, -1);
610 if (events[n].data.ptr)
611 (*(void (*)(int, struct data *payload))events[n].data.ptr)(
612 events[n].events, &payload);
/device/google/wahoo/usb/
H A DUsbGadget.cpp96 struct epoll_event events[EPOLL_EVENTS]; local
115 int nrEvents = epoll_wait(usbGadget->mEpollFd, events, EPOLL_EVENTS, -1);
122 ALOGI("event=%u on fd=%d\n", events[i].events, events[i].data.fd);
124 if (events[i].data.fd == usbGadget->mInotifyFd) {
125 // Process all of the events in buffer returned by read().
206 event.events = EPOLLIN;
H A DUsb.cpp643 ev.events = EPOLLIN;
658 struct epoll_event events[64]; local
660 nevents = epoll_wait(epoll_fd, events, 64, -1);
668 if (events[n].data.ptr)
669 (*(void (*)(int, struct data *payload))events[n].data.ptr)(
670 events[n].events, &payload);
771 * function to consume USB device plugin events (on receiving a
/device/generic/goldfish/sensors/
H A Dsensors_qemu.c174 * new sensor events after the activate() call in 2).
215 * pending events, return -EINVAL.
263 /* Block until new sensor events are reported by the emulator, or if a
282 // Accumulate pending events into |events| and |new_sensors| mask
286 sensors_event_t* events = dev->sensors; local
332 if (events[ID_ACCELERATION].type == SENSOR_TYPE_META_DATA) continue;
333 events[ID_ACCELERATION].acceleration.x = params[0];
334 events[ID_ACCELERATION].acceleration.y = params[1];
335 events[ID_ACCELERATIO
[all...]
/device/google/cuttlefish_common/common/libs/fs/
H A Dshared_fd.h241 int EpollWait(struct epoll_event* events, int maxevents, int timeout) { argument
243 int rval = TEMP_FAILURE_RETRY(epoll_wait(fd_, events, maxevents, timeout));
/device/generic/goldfish/gps/
H A Dgps_qemu.c659 ev.events = EPOLLIN;
713 struct epoll_event events[2]; local
720 nevents = epoll_wait( epoll_fd, events, 2, timeout );
730 D("gps thread received %d events", nevents);
732 if ((events[ne].events & (EPOLLERR|EPOLLHUP)) != 0) {
736 if ((events[ne].events & EPOLLIN) != 0) {
737 int fd = events[ne].data.fd;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
H A Dselectmodule.c357 self->ufds[i].events = (short)PyInt_AsLong(value);
369 events -- an optional bitmask describing the type of events to check for");
375 int fd, events = POLLIN | POLLPRI | POLLOUT; local
378 if (!PyArg_ParseTuple(args, "O|i:register", &o, &events)) {
390 value = PyInt_FromLong(events);
412 events -- an optional bitmask describing the type of events to check for");
418 int fd, events; local
421 if (!PyArg_ParseTuple(args, "Oi:modify", &o, &events)) {
849 pyepoll_internal_ctl(int epfd, int op, PyObject *pfd, unsigned int events) argument
901 unsigned int events = EPOLLIN | EPOLLOUT | EPOLLPRI; local
926 unsigned int events; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
H A Dselectmodule.c360 self->ufds[i].events = (short)(unsigned short)PyInt_AsLong(value);
391 events -- an optional bitmask describing the type of events to check for");
398 unsigned short events = POLLIN | POLLPRI | POLLOUT; local
401 if (!PyArg_ParseTuple(args, "O|O&:register", &o, ushort_converter, &events))
412 value = PyInt_FromLong(events);
434 events -- an optional bitmask describing the type of events to check for");
441 unsigned short events; local
444 if (!PyArg_ParseTuple(args, "OO&:modify", &o, ushort_converter, &events))
883 pyepoll_internal_ctl(int epfd, int op, PyObject *pfd, unsigned int events) argument
935 unsigned int events = EPOLLIN | EPOLLOUT | EPOLLPRI; local
960 unsigned int events; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
H A D_elementtree.c25 * 2005-03-27 fl event optimizations; complain about bogus events
1617 PyObject* events; /* list of events, or NULL if not collecting */ member in struct:__anon3319
1654 self->events = NULL;
1679 Py_XDECREF(self->events);
1769 PyList_Append(self->events, res);
1864 PyList_Append(self->events, res);
1882 if (!self->events)
1907 PyList_Append(self->events, res);
2715 PyObject* events; /* even local
[all...]
H A Dselectmodule.c357 self->ufds[i].events = (short)PyInt_AsLong(value);
369 events -- an optional bitmask describing the type of events to check for");
375 int fd, events = POLLIN | POLLPRI | POLLOUT; local
378 if (!PyArg_ParseTuple(args, "O|i:register", &o, &events)) {
390 value = PyInt_FromLong(events);
412 events -- an optional bitmask describing the type of events to check for");
418 int fd, events; local
421 if (!PyArg_ParseTuple(args, "Oi:modify", &o, &events)) {
849 pyepoll_internal_ctl(int epfd, int op, PyObject *pfd, unsigned int events) argument
901 unsigned int events = EPOLLIN | EPOLLOUT | EPOLLPRI; local
926 unsigned int events; local
[all...]

Completed in 329 milliseconds