Home
last modified time | relevance | path

Searched refs:events (Results 1 – 25 of 259) sorted by relevance

1234567891011

/frameworks/native/libs/gui/
DSensorEventQueue.cpp60 ASensorEvent const* events, size_t numEvents) { in write() argument
61 return BitTube::sendObjects(tube, events, numEvents); in write()
64 ssize_t SensorEventQueue::read(ASensorEvent* events, size_t numEvents) { in read() argument
75 memcpy(events, mRecBuffer + mConsumed, count*sizeof(ASensorEvent)); in read()
96 int events; in waitForEvent() local
99 result = looper->pollOnce(-1, NULL, &events, NULL); in waitForEvent()
105 if (events & ALOOPER_EVENT_HANGUP) { in waitForEvent()
149 void SensorEventQueue::sendAck(const ASensorEvent* events, int count) { in sendAck() argument
151 if (events[i].flags & WAKE_UP_SENSOR_EVENT_NEEDS_ACK) { in sendAck()
DDisplayEventReceiver.cpp80 ssize_t DisplayEventReceiver::getEvents(DisplayEventReceiver::Event* events, in getEvents() argument
82 return DisplayEventReceiver::getEvents(mDataChannel, events, count); in getEvents()
86 Event* events, size_t count) in getEvents() argument
88 return BitTube::recvObjects(dataChannel, events, count); in getEvents()
92 Event const* events, size_t count) in sendEvents() argument
94 return BitTube::sendObjects(dataChannel, events, count); in sendEvents()
DBitTube.cpp146 void const* events, size_t count, size_t objSize) in sendObjects() argument
148 const char* vaddr = reinterpret_cast<const char*>(events); in sendObjects()
161 void* events, size_t count, size_t objSize) in recvObjects() argument
163 char* vaddr = reinterpret_cast<char*>(events); in recvObjects()
/frameworks/native/include/gui/
DBitTube.h57 T const* events, size_t count) { in sendObjects() argument
58 return sendObjects(tube, events, count, sizeof(T)); in sendObjects()
65 T* events, size_t count) { in recvObjects() argument
66 return recvObjects(tube, events, count, sizeof(T)); in recvObjects()
86 void const* events, size_t count, size_t objSize);
89 void* events, size_t count, size_t objSize);
DDisplayEventReceiver.h104 ssize_t getEvents(Event* events, size_t count);
106 Event* events, size_t count);
113 Event const* events, size_t count);
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/base/docs/html/tools/help/
Dmonkey.jd8 streams of user events such as clicks, touches, or gestures, as well as a number of system-level
9 events. You can use the Monkey to stress-test applications that you are developing, in a random
17 user events into the system, which acts as a stress test on the application software you are
24 <li>Basic configuration options, such as setting the number of events to attempt.</li>
30 <p>When the Monkey runs, it generates events and sends them to the system. It also <i>watches</i>
43 of the Monkey and the events being generated.</p>
57 events to any (and all) packages installed on your target. Here is a more typical command line,
58 which will launch your application and send 500 pseudo-random events to it:</p>
85 Level 1 provides more details about the test as it runs, such as individual events being sent to
95 value, it will generate the same sequence of events.</td>
[all …]
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.cpp79 void setFdEvents(int events);
85 virtual int handleEvent(int receiveFd, int events, void* data);
145 void NativeInputEventReceiver::setFdEvents(int events) { in setFdEvents() argument
146 if (mFdEvents != events) { in setFdEvents()
147 mFdEvents = events; in setFdEvents()
149 if (events) { in setFdEvents()
150 mMessageQueue->getLooper()->addFd(fd, 0, events, this, NULL); in setFdEvents()
157 int NativeInputEventReceiver::handleEvent(int receiveFd, int events, void* data) { in handleEvent() argument
158 if (events & (ALOOPER_EVENT_ERROR | ALOOPER_EVENT_HANGUP)) { in handleEvent()
164 "events=0x%x", getInputChannelName(), events); in handleEvent()
[all …]
Dandroid_view_DisplayEventReceiver.cpp64 virtual int handleEvent(int receiveFd, int events, void* data);
127 int NativeDisplayEventReceiver::handleEvent(int receiveFd, int events, void* data) { in handleEvent() argument
128 if (events & (Looper::EVENT_ERROR | Looper::EVENT_HANGUP)) { in handleEvent()
130 "events=0x%x", events); in handleEvent()
134 if (!(events & Looper::EVENT_INPUT)) { in handleEvent()
136 "events=0x%x", events); in handleEvent()
Dandroid_view_InputEventSender.cpp74 virtual int handleEvent(int receiveFd, int events, void* data);
154 int NativeInputEventSender::handleEvent(int receiveFd, int events, void* data) { in handleEvent() argument
155 if (events & (ALOOPER_EVENT_ERROR | ALOOPER_EVENT_HANGUP)) { in handleEvent()
161 "events=0x%x", getInputChannelName(), events); in handleEvent()
166 if (!(events & ALOOPER_EVENT_INPUT)) { in handleEvent()
168 "events=0x%x", getInputChannelName(), events); in handleEvent()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java96 int events; field in TelephonyRegistry.Record
102 boolean matchPhoneStateListenerEvent(int events) { in matchPhoneStateListenerEvent() argument
103 return (callback != null) && ((events & this.events) != 0); in matchPhoneStateListenerEvent()
116 + " events=" + Integer.toHexString(events) + "}"; in toString()
375 r.events = 0; in addOnSubscriptionsChangedListener()
435 public void listen(String pkgForDebug, IPhoneStateListener callback, int events, in listen() argument
438 events, notifyNow); in listen()
443 int events, boolean notifyNow) { in listenForSubscriber() argument
444 listen(pkgForDebug, callback, events, notifyNow, subId); in listenForSubscriber()
447 private void listen(String pkgForDebug, IPhoneStateListener callback, int events, in listen() argument
[all …]
DNativeDaemonConnector.java332 final NativeDaemonEvent[] events = executeForList(cmd, args); in execute() local
333 if (events.length != 1) { in execute()
335 "Expected exactly one response, but received " + events.length); in execute()
337 return events[0]; in execute()
386 final ArrayList<NativeDaemonEvent> events = Lists.newArrayList(); in execute() local
419 events.add(event); in execute()
434 return events.toArray(new NativeDaemonEvent[events.size()]); in execute()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java100 EventCollectingPredicate(int mask, List<AccessibilityEvent> events) { in EventCollectingPredicate() argument
102 mEventsList = events; in EventCollectingPredicate()
362 ArrayList<AccessibilityEvent> events = new ArrayList<AccessibilityEvent>();
364 new EventCollectingPredicate(AccessibilityEvent.TYPE_VIEW_SCROLLED, events),
367 AccessibilityEvent event = getLastMatchingEvent(events,
372 recycleAccessibilityEvents(events);
396 recycleAccessibilityEvents(events);
400 private AccessibilityEvent getLastMatchingEvent(List<AccessibilityEvent> events, int type) {
401 for (int x = events.size(); x > 0; x--) {
402 AccessibilityEvent event = events.get(x - 1);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DAnimationFilter.java94 public void applyCombination(ArrayList<NotificationStackScrollLayout.AnimationEvent> events) { in applyCombination() argument
96 int size = events.size(); in applyCombination()
98 NotificationStackScrollLayout.AnimationEvent ev = events.get(i); in applyCombination()
99 combineFilter(events.get(i).filter); in applyCombination()
/frameworks/base/libs/common_time/
Ddiag_thread.cpp162 struct local_time_debug_event events[kMaxEvents]; in resetLogIDs() local
163 while(local_clock_->getDebugLog(events, kMaxEvents) > 0) in resetLogIDs()
214 poll_fds[0].events = POLLIN; in threadLoop()
217 poll_fds[0].events = POLLRDHUP | POLLIN; in threadLoop()
263 struct local_time_debug_event events[kMaxEvents]; in threadLoop() local
264 int amt = local_clock_->getDebugLog(events, kMaxEvents); in threadLoop()
268 struct local_time_debug_event& e = events[i]; in threadLoop()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsXmlV1.java115 if (statsOut.events == null) { in loadEvent()
116 statsOut.events = new TimeSparseArray<>(); in loadEvent()
118 statsOut.events.put(event.mTimeStamp, event); in loadEvent()
190 if (statsOut.events != null) { in read()
191 statsOut.events.clear(); in read()
249 final int eventCount = stats.events != null ? stats.events.size() : 0; in write()
251 writeEvent(xml, stats, stats.events.valueAt(i)); in write()
DUserUsageStatsService.java161 if (currentDailyStats.events == null) { in reportEvent()
162 currentDailyStats.events = new TimeSparseArray<>(); in reportEvent()
164 currentDailyStats.events.put(event.mTimeStamp, event); in reportEvent()
297 if (stats.events == null) { in queryEvents()
301 final int startIndex = stats.events.closestIndexOnOrAfter(beginTime); in queryEvents()
306 final int size = stats.events.size(); in queryEvents()
308 if (stats.events.keyAt(i) >= endTime) { in queryEvents()
312 final UsageEvents.Event event = stats.events.valueAt(i); in queryEvents()
525 final TimeSparseArray<UsageEvents.Event> events = stats.events; in printIntervalStats() local
526 final int eventCount = events != null ? events.size() : 0; in printIntervalStats()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DFileObserverTest.java37 public List<Map> events = Lists.newArrayList(); field in FileObserverTest.Observer
52 events.add(map); in onEvent()
110 Iterator<Map> it = mObserver.events.iterator(); in waitForEvent()
117 mObserver.events.clear(); in waitForEvent()
/frameworks/base/core/java/android/hardware/location/
DActivityRecognitionHardware.java136 private void onActivityChanged(Event[] events) { in onActivityChanged() argument
137 if (events == null || events.length == 0) { in onActivityChanged()
142 int eventsLength = events.length; in onActivityChanged()
146 Event event = events[i]; in onActivityChanged()
/frameworks/native/services/surfaceflinger/
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/native/android/
Dsensor.cpp122 pfd.events = POLLIN; in ASensorEventQueue_hasEvents()
137 ASensorEvent* events, size_t count) in ASensorEventQueue_getEvents() argument
139 ssize_t actual = static_cast<SensorEventQueue*>(queue)->read(events, count); in ASensorEventQueue_getEvents()
141 static_cast<SensorEventQueue*>(queue)->sendAck(events, actual); in ASensorEventQueue_getEvents()
/frameworks/base/tools/preload/
Dsorttable.js381 if (!element.events) element.events = {};
383 var handlers = element.events[type];
385 handlers = element.events[type] = {};
405 if (element.events && element.events[type]) {
406 delete element.events[type][handler.$$guid];
416 var handlers = this.events[event.type];
/frameworks/base/docs/html/training/gestures/
Dviewgroup.jd26 …<li><a href="http://developer.android.com/guide/topics/ui/ui-events.html">Input Events</a> API Gui…
46 <p>Handling touch events in a {@link android.view.ViewGroup} takes special care,
48 are targets for different touch events than the {@link android.view.ViewGroup}
49 itself. To make sure that each view correctly receives the touch events intended
67 the child view that was previously handling touch events
68 receives an {@link android.view.MotionEvent#ACTION_CANCEL}, and the events from that
72 return {@code false} and simply spy on events as they travel down the view hierarchy
73 to their usual targets, which will handle the events with their own
80 a child view horizontally, the child view should no longer get touch events, and
81 {@code MyViewGroup} should handle touch events by scrolling its contents. However,
[all …]
Ddetector.jd25 …<li><a href="http://developer.android.com/guide/topics/ui/ui-events.html">Input Events</a> API Gui…
50 <li>Gathering data about touch events.</li>
72 on the View that received the touch events.
73 For each sequence of touch events (position, pressure, size, addition of another finger, etc.)
85 <h3>Capturing touch events for an Activity or View</h3>
87 <p><p>To intercept touch events in an Activity or View, override
127 <p>You can then do your own processing on these events to determine if a
134 gestures without processing the individual touch events yourself. This is
137 <h3>Capturing touch events for a single view</h3>
143 events without subclassing an existing {@link android.view.View}. For
[all …]
/frameworks/native/include/android/
Dlooper.h159 typedef int (*ALooper_callbackFunc)(int fd, int events, void* data);
230 int ALooper_addFd(ALooper* looper, int fd, int ident, int events,

1234567891011