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

12

/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
/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/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 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 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/surfaceflinger/tests/vsync/
H A Dvsync.cpp22 int receiver(int fd, int events, void* data) argument
44 printf("error reading events (%s)\n", strerror(-n));
/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/base/native/android/
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);
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
/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/services/usage/java/com/android/server/usage/
H A DIntervalStats.java33 public TimeSparseArray<UsageEvents.Event> events; field in class:IntervalStats
/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 DNativeDaemonEvent.java75 * additional subsequent events.
172 * {@link #getMessage()} for any events matching the requested code.
174 public static String[] filterMessageList(NativeDaemonEvent[] events, int matchCode) { argument
176 for (NativeDaemonEvent event : events) {
/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*/) {
/frameworks/base/core/java/android/app/usage/
H A DUsageEvents.java105 * certain events.
139 // Only used when creating the resulting events. Not used for reading/unparceling.
142 // Only used for reading/unparceling events.
186 public UsageEvents(List<Event> events, String[] stringPool) { argument
188 mEventCount = events.size();
189 mEventsToWrite = events;
193 * Returns whether or not there are more events to read using
196 * @return true if there are more events, false otherwise.
208 * @return true if an event was available, false if there are no more events.
293 // Extract the configuration for configuration change events
[all...]
/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/core/jni/
H A Dandroid_hardware_location_ActivityRecognitionHardware.cpp78 * Handle activity recognition events from HAL.
82 const activity_event_t* events,
89 if (events == NULL || count <= 0) {
90 ALOGE("Invalid activity_callback. Count: %d, Events: %p", count, events);
110 const activity_event_t* event = &events[i];
80 activity_callback( const activity_recognition_callback_procs_t* procs, const activity_event_t* events, int count) argument
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_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_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);
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));
/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));
/frameworks/base/services/core/jni/
H A Dcom_android_server_AlarmManagerService.cpp206 epoll_event events[N_ANDROID_TIMERFDS]; local
208 int nevents = epoll_wait(epollfd, events, N_ANDROID_TIMERFDS, -1);
215 uint32_t alarm_idx = events[i].data.u32;
315 event.events = EPOLLIN | EPOLLWAKEUP;
/frameworks/wilhelm/src/android/
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/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...]

Completed in 494 milliseconds

12