Searched refs:events (Results 1 - 25 of 67) sorted by relevance

123

/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 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...]
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
/frameworks/native/services/surfaceflinger/tests/vsync/
H A DAndroid.mk14 LOCAL_MODULE:= test-vsync-events
/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...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DAnimationFilter.java92 * @param events The animation events from the filters to combine.
94 public void applyCombination(ArrayList<NotificationStackScrollLayout.AnimationEvent> events) { argument
96 int size = events.size();
98 NotificationStackScrollLayout.AnimationEvent ev = events.get(i);
99 combineFilter(events.get(i).filter);
/frameworks/base/core/jni/
H A Dandroid_view_InputEventReceiver.cpp79 void setFdEvents(int events);
85 virtual int handleEvent(int receiveFd, int events, void* data);
145 void NativeInputEventReceiver::setFdEvents(int events) { argument
146 if (mFdEvents != events) {
147 mFdEvents = events;
149 if (events) {
150 mMessageQueue->getLooper()->addFd(fd, 0, events, this, NULL);
157 int NativeInputEventReceiver::handleEvent(int receiveFd, int events, void* data) { argument
158 if (events & (ALOOPER_EVENT_ERROR | ALOOPER_EVENT_HANGUP)) {
164 "events
[all...]
H A Dandroid_view_DisplayEventReceiver.cpp33 // Number of events to read at a time from the DisplayEventReceiver pipe.
64 virtual int handleEvent(int receiveFd, int events, void* data);
110 // Drain all pending events.
127 int NativeDisplayEventReceiver::handleEvent(int receiveFd, int events, void* data) { argument
128 if (events & (Looper::EVENT_ERROR | Looper::EVENT_HANGUP)) {
130 "events=0x%x", events);
134 if (!(events & Looper::EVENT_INPUT)) {
136 "events=0x%x", events);
[all...]
H A Dandroid_view_KeyCharacterMap.cpp177 Vector<KeyEvent> events; local
179 if (map->getMap()->getEvents(map->getDeviceId(), chars, size_t(numChars), events)) {
180 result = env->NewObjectArray(jsize(events.size()), gKeyEventClassInfo.clazz, NULL);
182 for (size_t i = 0; i < events.size(); i++) {
183 jobject keyEventObj = android_view_KeyEvent_fromNative(env, &events.itemAt(i));
H A Dandroid_view_InputEventSender.cpp74 virtual int handleEvent(int receiveFd, int events, void* data);
154 int NativeInputEventSender::handleEvent(int receiveFd, int events, void* data) { argument
155 if (events & (ALOOPER_EVENT_ERROR | ALOOPER_EVENT_HANGUP)) {
161 "events=0x%x", getInputChannelName(), events);
166 if (!(events & ALOOPER_EVENT_INPUT)) {
168 "events=0x%x", getInputChannelName(), events);
/frameworks/native/services/surfaceflinger/
H A DMessageQueue.h89 static int cb_eventReceiver(int fd, int events, void* data);
90 int eventReceiver(int fd, int events);
102 void setEventThread(const sp<EventThread>& events);
/frameworks/base/core/tests/coretests/src/android/os/
H A DFileObserverTest.java37 public List<Map> events = Lists.newArrayList(); field in class:FileObserverTest.Observer
52 events.add(map);
92 // Ensure that we have seen at least 3 events.
110 Iterator<Map> it = mObserver.events.iterator();
117 mObserver.events.clear();
/frameworks/base/core/java/android/hardware/location/
H A DActivityRecognitionHardware.java136 private void onActivityChanged(Event[] events) { argument
137 if (events == null || events.length == 0) {
138 Log.d(TAG, "No events to broadcast for onActivityChanged.");
142 int eventsLength = events.length;
146 Event event = events[i];
/frameworks/base/libs/common_time/
H A Ddiag_thread.cpp161 // Drain and discard all of the events from the kernel
162 struct local_time_debug_event events[kMaxEvents]; local
163 while(local_clock_->getDebugLog(events, kMaxEvents) > 0)
214 poll_fds[0].events = POLLIN;
217 poll_fds[0].events = POLLRDHUP | POLLIN;
222 ALOGE("Fatal error (%d,%d) while waiting on events",
263 struct local_time_debug_event events[kMaxEvents]; local
264 int amt = local_clock_->getDebugLog(events, kMaxEvents);
268 struct local_time_debug_event& e = events[i];
/frameworks/base/services/core/java/com/android/server/
H A DTelephonyRegistry.java96 int events; field in class:TelephonyRegistry.Record
102 boolean matchPhoneStateListenerEvent(int events) { argument
103 return (callback != null) && ((events & this.events) != 0);
116 + " events=" + Integer.toHexString(events) + "}";
375 r.events = 0;
435 public void listen(String pkgForDebug, IPhoneStateListener callback, int events, argument
438 events, notifyNow);
443 int events, boolea
442 listenForSubscriber(int subId, String pkgForDebug, IPhoneStateListener callback, int events, boolean notifyNow) argument
447 listen(String pkgForDebug, IPhoneStateListener callback, int events, boolean notifyNow, int subId) argument
1438 checkListenerPermission(int events) argument
1479 validateEventsAndUserLocked(Record r, int events) argument
[all...]
H A DNativeDaemonConnector.java332 final NativeDaemonEvent[] events = executeForList(cmd, args);
333 if (events.length != 1) {
335 "Expected exactly one response, but received " + events.length);
337 return events[0];
386 final ArrayList<NativeDaemonEvent> events = Lists.newArrayList();
419 events.add(event);
434 return events.toArray(new NativeDaemonEvent[events.size()]);
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DInteractionController.java42 * The InteractionProvider is responsible for injecting user events such as touch events
43 * (includes swipes) and text key events into the system. To do so, all it needs to know about
44 * are coordinates of the touch events and text for the text input events.
45 * The InteractionController performs no synchronization. It will fire touch and text input events
72 * Predicate for waiting for any of the events specified in the mask
92 * Predicate for waiting for all the events specified in the mask and populating
93 * a ctor passed list with matching events. User of this Predicate must recycle
94 * all populated events i
100 EventCollectingPredicate(int mask, List<AccessibilityEvent> events) argument
400 getLastMatchingEvent(List<AccessibilityEvent> events, int type) argument
409 recycleAccessibilityEvents(List<AccessibilityEvent> events) argument
[all...]
/frameworks/base/native/android/
H A Dsensor.cpp122 pfd.events = POLLIN;
137 ASensorEvent* events, size_t count)
139 ssize_t actual = static_cast<SensorEventQueue*>(queue)->read(events, count);
141 static_cast<SensorEventQueue*>(queue)->sendAck(events, actual);
136 ASensorEventQueue_getEvents(ASensorEventQueue* queue, ASensorEvent* events, size_t count) argument
H A Dlooper.cpp78 int ALooper_addFd(ALooper* looper, int fd, int ident, int events, argument
80 return ALooper_to_Looper(looper)->addFd(fd, ident, events, callback, data);
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsXmlV1.java115 if (statsOut.events == null) {
116 statsOut.events = new TimeSparseArray<>();
118 statsOut.events.put(event.mTimeStamp, event);
181 * @param parser The parser from which to read events.
190 if (statsOut.events != null) {
191 statsOut.events.clear();
249 final int eventCount = stats.events != null ? stats.events.size() : 0;
251 writeEvent(xml, stats, stats.events.valueAt(i));
H A DUserUsageStatsService.java115 // Now close off any events that were open at the time this was saved.
161 if (currentDailyStats.events == null) {
162 currentDailyStats.events = new TimeSparseArray<>();
164 currentDailyStats.events.put(event.mTimeStamp, event);
297 if (stats.events == null) {
301 final int startIndex = stats.events.closestIndexOnOrAfter(beginTime);
306 final int size = stats.events.size();
308 if (stats.events.keyAt(i) >= endTime) {
312 final UsageEvents.Event event = stats.events.valueAt(i);
349 // Finish any ongoing events wit
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DRenderThread.cpp37 // Number of events to read at a time from the DisplayEventReceiver pipe.
174 int RenderThread::displayEventReceiverCallback(int fd, int events, void* data) { argument
175 if (events & (Looper::EVENT_ERROR | Looper::EVENT_HANGUP)) {
177 "events=0x%x", events);
181 if (!(events & Looper::EVENT_INPUT)) {
183 "events=0x%x", events);
207 ALOGW("Failed to get events from display event receiver, status=%d", status_t(n));

Completed in 450 milliseconds

123