Searched refs:events (Results 1 - 25 of 67) sorted by last modified time

123

/frameworks/wilhelm/src/android/
H A DAudioPlayer_to_android.cpp650 * from a URI or FD, for prepare, prefetch, and play events
680 SLuint32 events; local
693 // indicate a prefetch error, so we signal it by sending simultaneously two events:
704 events = SL_PREFETCHEVENT_FILLLEVELCHANGE | SL_PREFETCHEVENT_STATUSCHANGE;
713 (*callback)(&ap->mPrefetchStatus.mItf, callbackPContext, events);
H A DMediaPlayer_to_android.cpp62 XAuint32 events; local
75 // indicate a prefetch error, so we signal it by sending simultaneously two events:
86 events = SL_PREFETCHEVENT_FILLLEVELCHANGE | SL_PREFETCHEVENT_STATUSCHANGE;
95 (*callback)(&mp->mPrefetchStatus.mItf, callbackPContext, events);
127 // callback is unconditional; there is no bitmask of enabled events
/frameworks/rs/
H A DrsFifoSocket.cpp94 p.events = POLLIN;
H A DrsThreadIO.cpp114 p[0].events = POLLIN;
117 p[1].events = POLLIN;
178 // We want to finish processing fifo events before processing the vsync.
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp611 event.events = EPOLLIN;
675 event.events = EPOLLIN;
748 epoll_event events[count]; local
749 count = epoll_wait(mGroup->mEventQueue, events, count, deadline);
755 ((AudioStream *)events[i].data.ptr)->decode(tick);
/frameworks/opt/net/wifi/service/tools/halutil/
H A Dhalutil.cpp236 /* commands and events */
268 printf("Too many events in the cache\n");
459 int events = 0; local
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DRecurrenceProcessor.java188 * Filter out the ones for events whose BYxxx rule is for
211 // BYWEEK -- this is just a guess. I wonder how many events
241 // only is meaningful when creating more events.
522 // This isn't ideal, but we'll generate a month's worth of events
712 * Run the recurrence algorithm. Processes events defined in the local
717 * If you want all of the events, pass Long.MAX_VALUE for rangeEndDateValue. If you pass
729 * @param out the TreeSet you'd like to fill with the events
868 events: {
984 // sometimes events get generated (BYDAY, BYHOUR, etc.) that
1024 break events;
[all...]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DTimePickerDialog.java484 * For keyboard mode, processes key events.
784 KeyEvent[] events = kcm.getEvents(new char[]{amChar, pmChar});
785 // There should be 4 events: a down and up for both AM and PM.
786 if (events != null && events.length == 4) {
787 mAmKeyCode = events[0].getKeyCode();
788 mPmKeyCode = events[2].getKeyCode();
/frameworks/native/include/android/
H A Dlooper.h33 * and waiting for "events" means (internally) polling on all of these file
107 * Flags for file descriptor events that a looper can monitor.
109 * These flag bits can be combined to monitor multiple events at once.
153 * a bitmask of the poll events that were triggered (typically ALOOPER_EVENT_INPUT),
159 typedef int (*ALooper_callbackFunc)(int fd, int events, void* data);
162 * Waits for events to be available, with optional timeout in milliseconds.
182 * events and data associated with the fd, otherwise they will be set to NULL.
211 * "events" are the poll events to wake up on. Typically this is ALOOPER_EVENT_INPUT.
218 * data on the file descriptor. It should execute any events i
[all...]
H A Dsensor.h38 * Structures and functions to receive and process sensor events in
249 * Sets the delivery rate of events in microseconds for the given sensor.
258 * Returns true if there are one or more events available in the
259 * sensor queue. Returns 1 if the queue has events; 0 if
260 * it does not have events; and a negative value if there is an error.
265 * Returns the next available events from the queue. Returns a negative
266 * value if no events are available or an error has occurred, otherwise
267 * the number of events returned.
278 ASensorEvent* events, size_t count);
304 * Returns the minimum delay allowed between events i
[all...]
/frameworks/native/include/gui/
H A DBitTube.h57 T const* events, size_t count) {
58 return sendObjects(tube, events, count, sizeof(T));
65 T* events, size_t count) {
66 return recvObjects(tube, events, count, sizeof(T));
86 void const* events, size_t count, size_t objSize);
89 void* events, size_t count, size_t objSize);
56 sendObjects(const sp<BitTube>& tube, T const* events, size_t count) argument
64 recvObjects(const sp<BitTube>& tube, T* events, size_t count) argument
H A DDisplayEventReceiver.h73 * SurfaceFlinger. VSync events are disabled by default. Call setVSyncRate
75 * Other events start being delivered immediately.
80 * ~DisplayEventReceiver severs the connection with SurfaceFlinger, new events
82 * some events pending. These will be delivered.
92 * getFd returns the file descriptor to use to receive events.
99 * getEvents reads events from the queue and returns how many events were
100 * read. Returns 0 if there are no more events or a negative error code.
104 ssize_t getEvents(Event* events, size_t count);
106 Event* events, size_
[all...]
H A DSensorEventQueue.h62 ASensorEvent const* events, size_t numEvents);
64 ssize_t read(ASensorEvent* events, size_t numEvents);
79 void sendAck(const ASensorEvent* events, int count);
/frameworks/native/libs/gui/
H A DBitTube.cpp146 void const* events, size_t count, size_t objSize)
148 const char* vaddr = reinterpret_cast<const char*>(events);
153 "BitTube::sendObjects(count=%zu, size=%zu), res=%zd (partial events were sent!)",
156 //ALOGE_IF(size<0, "error %d sending %d events", size, count);
161 void* events, size_t count, size_t objSize)
163 char* vaddr = reinterpret_cast<char*>(events);
168 "BitTube::recvObjects(count=%zu, size=%zu), res=%zd (partial events were received!)",
171 //ALOGE_IF(size<0, "error %d receiving %d events", size, count);
160 recvObjects(const sp<BitTube>& tube, void* events, size_t count, size_t objSize) argument
H A DDisplayEventReceiver.cpp80 ssize_t DisplayEventReceiver::getEvents(DisplayEventReceiver::Event* events, argument
82 return DisplayEventReceiver::getEvents(mDataChannel, events, count);
86 Event* events, size_t count)
88 return BitTube::recvObjects(dataChannel, events, count);
92 Event const* events, size_t count)
94 return BitTube::sendObjects(dataChannel, events, count);
85 getEvents(const sp<BitTube>& dataChannel, Event* events, size_t count) argument
91 sendEvents(const sp<BitTube>& dataChannel, Event const* events, size_t count) argument
H A DSensorEventQueue.cpp60 ASensorEvent const* events, size_t numEvents) {
61 return BitTube::sendObjects(tube, events, numEvents);
64 ssize_t SensorEventQueue::read(ASensorEvent* events, size_t numEvents) { argument
75 memcpy(events, mRecBuffer + mConsumed, count*sizeof(ASensorEvent));
96 int events; local
99 result = looper->pollOnce(-1, NULL, &events, NULL);
105 if (events & ALOOPER_EVENT_HANGUP) {
149 void SensorEventQueue::sendAck(const ASensorEvent* events, int count) { argument
151 if (events[i].flags & WAKE_UP_SENSOR_EVENT_NEEDS_ACK) {
155 // Send mNumAcksToSend to acknowledge for the wake up sensor events receive
59 write(const sp<BitTube>& tube, ASensorEvent const* events, size_t numEvents) argument
[all...]
/frameworks/native/services/inputflinger/
H A DEventHub.cpp195 eventItem.events = EPOLLIN;
777 if (eventItem.events & EPOLLIN) {
780 ALOGW("Received unexpected epoll event 0x%08x for INotify.", eventItem.events);
786 if (eventItem.events & EPOLLIN) {
796 eventItem.events);
804 eventItem.events, eventItem.data.u32);
809 if (eventItem.events & EPOLLIN) {
838 // which simply timestamps all events on entry to evdev.
882 // it has a default clock source of CLOCK_REALTIME. Any input events
929 } else if (eventItem.events
[all...]
H A DInputDispatcher.cpp43 // Log debug messages about hover events.
70 // Amount of time to allow for all pending events to be processed when an app switch
71 // key is on the way. This is used to preempt input dispatch and drop input events
79 // Amount of time to allow touch events to be streamed out to a connection before requiring
82 // queue of waiting unfinished events, then ANRs will similarly be delayed by one second.
88 // Number of recent events to keep for debugging purposes.
261 // If dispatching is frozen, do not process timeouts or try to deliver any new events.
271 // been pressed. When it expires, we preempt dispatch and drop all other pending events.
319 // All events are eventually dequeued and processed this way, even if we intend to drop them.
411 // If the application takes too long to catch up then we drop all events precedin
2091 handleReceiveCallback(int fd, int events, void* data) argument
[all...]
H A DInputDispatcher.h71 /* Waits for previous events to be dispatched so that the input dispatcher can determine
120 * previous hover events, signifying the end of the current hover sequence for that
158 // The subset of pointer ids to include in motion events dispatched to this input target
216 * A filter can also transform and inject events later by passing POLICY_FLAG_FILTERED
248 /* Notifies the policy about switch events.
256 /* Checks whether a given application pid/uid has permission to inject input events
267 /* Notifies the system about input events generated by the input reader.
321 * When enabled, incoming input events are sent to the policy's filterInputEvent
323 * injectInputEvent to inject the events it would like to have dispatched.
336 /* Registers or unregister input channels that may be used as targets for input events
[all...]
/frameworks/native/services/sensorservice/
H A DSensorService.cpp281 result.appendFormat("FifoMax=%d events | ",
341 result.appendFormat("Socket Buffer size = %d events\n",
399 // Reset sensors_event_t.flags to zero for all events in the buffer.
405 // course of this loop (especially when one-shot sensor events are present in the
413 // Poll has returned. Hold a wakelock if one of the events is from a wake up sensor. The
415 // sending events to clients (incrementing SensorEventConnection::mWakeLockRefCount) should
446 ALOGE("buffer too small to hold all events: "
496 // Send our events to clients. Check the state of wake lock for each client and release the
783 // event before sending events on this connection. Ignore one-shot sensors which don't
1072 result.appendFormat("\t %s 0x%08x | status: %s | pending flush events
1516 handleEvent(int fd, int events, void* ) argument
[all...]
H A DSensorService.h43 // Max size is 100 KB which is enough to accept a batch of about 1000 events.
86 // Count the number of flush complete events which are about to be dropped in the buffer.
87 // Increment mPendingFlushEventsToSend in mSensorInfo. These flush complete events will be
88 // sent separately before the next batch of events.
91 // Check if there are any wake up events in the buffer. If yes, return the index of the
98 // Send pending flush_complete events. There may have been flush_complete_events that are
99 // dropped which need to be sent separately before other events. On older HALs (1_0) this
103 // Writes events from mEventCache to the socket.
112 // size, reallocate memory and copy over events from the older cache.
116 // app that it has read events fro
[all...]
/frameworks/native/services/sensorservice/tests/
H A Dsensorservicetest.cpp28 int receiver(int fd, int events, void* data) argument
56 printf("error reading events (%s)\n", strerror(-n));
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWComposer.cpp286 // There have been reports of HWCs that signal several vsync events
288 // is a bug in the HWC implementation, but filter the extra events
528 const int32_t oldValue = mDisplayData[disp].events & eventBit;
533 int32_t& events(mDisplayData[disp].events);
534 events = (events & ~eventBit) | newValue;
1278 events(0)
H A DHWComposer.h346 int32_t events; member in struct:android::HWComposer::DisplayData
/frameworks/native/services/surfaceflinger/
H A DMessageQueue.cpp177 int MessageQueue::cb_eventReceiver(int fd, int events, void* data) { argument
179 return queue->eventReceiver(fd, events);
182 int MessageQueue::eventReceiver(int /*fd*/, int /*events*/) {

Completed in 159 milliseconds

123