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

12

/frameworks/av/services/soundtrigger/
H A DSoundTriggerHwService.cpp763 Vector< sp<IMemory> > events; local
807 events.add(eventMemory);
813 for (size_t i = 0; i < events.size(); i++) {
814 service->sendCallbackEvent_l(new CallbackEvent(CallbackEvent::TYPE_RECOGNITION, events[i],
/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/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_app_NativeActivity.cpp196 * Callback for handling native events on the application's main thread.
198 static int mainWorkCallback(int fd, int events, void* data) { argument
200 if ((events & POLLIN) == 0) {
H A Dandroid_hardware_SensorManager.cpp162 virtual int handleEvent(int fd, int events, void* data) { argument
215 // FIXME: error receiving events, what to do in this case?
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));
H A Dandroid_view_ThreadedRenderer.cpp70 InvokeAnimationListeners(std::vector<OnFinishedEvent>& events) { argument
71 mOnFinishedEvents.swap(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/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/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/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);
H A DNotificationStackScrollLayout.java1971 * The only time we want to intercept motion events is if we are in the
2653 * Combines the length of several animation events into a single value.
2655 * @param events The events of the lengths to combine.
2657 * all events or the length of a specific event.
2659 static long combineLength(ArrayList<AnimationEvent> events) { argument
2661 int size = events.size();
2663 AnimationEvent event = events.get(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) {
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...]
/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/base/services/usage/java/com/android/server/usage/
H A DIntervalStats.java33 public TimeSparseArray<UsageEvents.Event> events; field in class:IntervalStats
/frameworks/base/telephony/java/android/telephony/
H A DTelephonyManager.java2392 * the events argument.
2400 * events argument to
2405 * @param events The telephony state(s) of interest to the listener,
2409 public void listen(PhoneStateListener listener, int events) { argument
2413 sRegistry.listenForSubscriber(listener.mSubId, pkgForDebug, listener.callback, events, notifyNow);
/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

Completed in 8861 milliseconds

12