/frameworks/native/libs/ui/tests/ |
D | BufferHubEventFd_test.cpp | 52 epoll_event e = {.events = EPOLLIN | EPOLLET, .data = {.u32 = 0}}; in TEST_F() 55 std::array<epoll_event, 1> events; in TEST_F() local 56 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F() 59 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F() 62 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F() 66 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F() 67 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F() 73 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F() 74 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 0); in TEST_F() 76 EXPECT_EQ(epoll_wait(epollFd.get(), events.data(), events.size(), 0), 1); in TEST_F() [all …]
|
/frameworks/native/cmds/atrace/ |
D | atrace.rc | 26 chmod 0666 /sys/kernel/debug/tracing/events/sched/sched_switch/enable 27 chmod 0666 /sys/kernel/tracing/events/sched/sched_switch/enable 28 chmod 0666 /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable 29 chmod 0666 /sys/kernel/tracing/events/sched/sched_wakeup/enable 30 chmod 0666 /sys/kernel/debug/tracing/events/sched/sched_blocked_reason/enable 31 chmod 0666 /sys/kernel/tracing/events/sched/sched_blocked_reason/enable 32 chmod 0666 /sys/kernel/debug/tracing/events/sched/sched_cpu_hotplug/enable 33 chmod 0666 /sys/kernel/tracing/events/sched/sched_cpu_hotplug/enable 34 chmod 0666 /sys/kernel/debug/tracing/events/sched/sched_pi_setprio/enable 35 chmod 0666 /sys/kernel/tracing/events/sched/sched_pi_setprio/enable [all …]
|
D | atrace_userdebug.rc | 10 # echo sched/foo > set_event == echo 1 > events/sched/foo/enable. 14 chmod 0666 /sys/kernel/tracing/events/workqueue/enable 15 chmod 0666 /sys/kernel/debug/tracing/events/workqueue/enable 16 chmod 0666 /sys/kernel/tracing/events/regulator/enable 17 chmod 0666 /sys/kernel/debug/tracing/events/regulator/enable 18 chmod 0666 /sys/kernel/tracing/events/filemap/enable 19 chmod 0666 /sys/kernel/debug/tracing/events/filemap/enable 22 chmod 0666 /sys/kernel/tracing/events/irq/enable 23 chmod 0666 /sys/kernel/debug/tracing/events/irq/enable 24 chmod 0666 /sys/kernel/tracing/events/ipi/enable [all …]
|
/frameworks/base/cmds/statsd/benchmark/ |
D | duration_metric_benchmark.cpp | 149 std::vector<std::unique_ptr<LogEvent>> events; in BM_DurationMetricNoLink() local 151 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_OFF, in BM_DurationMetricNoLink() 153 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_ON, in BM_DurationMetricNoLink() 156 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_OFF, in BM_DurationMetricNoLink() 158 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_ON, in BM_DurationMetricNoLink() 161 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_OFF, in BM_DurationMetricNoLink() 163 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_ON, in BM_DurationMetricNoLink() 166 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_OFF, in BM_DurationMetricNoLink() 168 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_ON, in BM_DurationMetricNoLink() 171 events.push_back(CreateStartScheduledJobEvent( in BM_DurationMetricNoLink() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | TelephonyMetricsTest.java | 158 assertEquals(1000, log.events.length); in testEventDropped() 162 assertEquals(1, log.events[0].dataStallAction); in testEventDropped() 172 assertEquals(1, log.events.length); in testWriteDataStallEvent() 175 assertEquals(mPhone.getPhoneId(), log.events[0].phoneId); in testWriteDataStallEvent() 176 assertEquals(3, log.events[0].dataStallAction); in testWriteDataStallEvent() 186 assertEquals(1, log.events.length); in testModemRestartEvent() 190 assertEquals(mPhone.getPhoneId(), log.events[0].phoneId); in testModemRestartEvent() 191 assertEquals("Test", log.events[0].modemRestart.reason); in testModemRestartEvent() 217 assertEquals(1, log.events.length); in testWriteCarrierIdMatchingEventWithInvalidMatchingScore() 221 assertEquals(mPhone.getPhoneId(), log.events[0].phoneId); in testWriteCarrierIdMatchingEventWithInvalidMatchingScore() [all …]
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | MetricConditionLink_e2e_test.cpp | 173 std::vector<std::unique_ptr<LogEvent>> events; in TEST() local 174 events.push_back(std::move(crashEvent1)); in TEST() 175 events.push_back(std::move(crashEvent2)); in TEST() 176 events.push_back(std::move(crashEvent3)); in TEST() 177 events.push_back(std::move(crashEvent4)); in TEST() 178 events.push_back(std::move(crashEvent5)); in TEST() 179 events.push_back(std::move(crashEvent6)); in TEST() 180 events.push_back(std::move(crashEvent7)); in TEST() 181 events.push_back(std::move(crashEvent8)); in TEST() 182 events.push_back(std::move(crashEvent9)); in TEST() [all …]
|
D | DimensionInCondition_e2e_combination_AND_cond_test.cpp | 138 std::vector<std::unique_ptr<LogEvent>> events; in TEST() local 140 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_OFF, in TEST() 142 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_ON, in TEST() 145 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_OFF, in TEST() 147 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_ON, in TEST() 150 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_OFF, in TEST() 152 events.push_back(CreateScreenStateChangedEvent( in TEST() 156 events.push_back(CreateScreenStateChangedEvent( in TEST() 159 events.push_back(CreateScreenStateChangedEvent( in TEST() 163 events.push_back(CreateStartScheduledJobEvent( in TEST() [all …]
|
D | DimensionInCondition_e2e_combination_OR_cond_test.cpp | 90 std::vector<std::unique_ptr<LogEvent>> events; in TEST() local 91 events.push_back( in TEST() 93 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_OFF, in TEST() 95 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_ON, in TEST() 97 events.push_back(CreateScreenStateChangedEvent(android::view::DISPLAY_STATE_OFF, in TEST() 100 events.push_back(CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + 200)); in TEST() 101 events.push_back( in TEST() 104 events.push_back(CreateAcquireWakelockEvent(attributions2, "wl2", in TEST() 106 events.push_back(CreateReleaseWakelockEvent(attributions2, "wl2", in TEST() 109 events.push_back(CreateScreenBrightnessChangedEvent(123, bucketStartTimeNs + 11)); in TEST() [all …]
|
D | DimensionInCondition_e2e_simple_cond_test.cpp | 95 std::vector<std::unique_ptr<LogEvent>> events; in TEST() local 97 events.push_back(CreateStartScheduledJobEvent( in TEST() 99 events.push_back(CreateFinishScheduledJobEvent( in TEST() 102 events.push_back(CreateStartScheduledJobEvent( in TEST() 104 events.push_back(CreateFinishScheduledJobEvent( in TEST() 107 events.push_back(CreateStartScheduledJobEvent( in TEST() 109 events.push_back(CreateFinishScheduledJobEvent( in TEST() 112 events.push_back(CreateStartScheduledJobEvent( in TEST() 114 events.push_back(CreateFinishScheduledJobEvent( in TEST() 117 events.push_back(CreateSyncStartEvent(attributions1, "ReadEmail", in TEST() [all …]
|
D | Attribution_e2e_test.cpp | 113 std::vector<std::unique_ptr<LogEvent>> events; in TEST() local 115 events.push_back(CreateAcquireWakelockEvent( in TEST() 117 events.push_back(CreateAcquireWakelockEvent( in TEST() 119 events.push_back(CreateAcquireWakelockEvent( in TEST() 121 events.push_back(CreateAcquireWakelockEvent( in TEST() 125 events.push_back(CreateAcquireWakelockEvent( in TEST() 127 events.push_back(CreateAcquireWakelockEvent( in TEST() 129 events.push_back(CreateAcquireWakelockEvent( in TEST() 131 events.push_back(CreateAcquireWakelockEvent( in TEST() 133 events.push_back(CreateAcquireWakelockEvent( in TEST() [all …]
|
D | WakelockDuration_e2e_test.cpp | 99 std::vector<std::unique_ptr<LogEvent>> events; in FeedEvents() local 101 events.push_back(std::move(screenTurnedOnEvent)); in FeedEvents() 102 events.push_back(std::move(screenTurnedOffEvent)); in FeedEvents() 103 events.push_back(std::move(screenTurnedOnEvent2)); in FeedEvents() 104 events.push_back(std::move(acquireEvent1)); in FeedEvents() 105 events.push_back(std::move(acquireEvent2)); in FeedEvents() 106 events.push_back(std::move(releaseEvent1)); in FeedEvents() 107 events.push_back(std::move(releaseEvent2)); in FeedEvents() 109 sortLogEventsByTimestamp(&events); in FeedEvents() 111 for (const auto& event : events) { in FeedEvents() [all …]
|
/frameworks/native/libs/sensor/tests/ |
D | SensorEventQueue_test.cpp | 46 ASensorEvent* events = new ASensorEvent[types.size()]; in filterEvents() local 48 events[i].type = types[i]; in filterEvents() 52 ssize_t filteredCount = mQueue->filterEvents(events, types.size()); in filterEvents() 57 result.push_back(events[i].type); in filterEvents() 59 delete[] events; in filterEvents() 64 Events getExpectedEvents(const Events &events) const { in getExpectedEvents() 66 for (size_t i = 0; i != events.size(); i++) { in getExpectedEvents() 68 if (events[i] != SENSOR_TYPE_ADDITIONAL_INFO || mQueue->requestAdditionalInfo) { in getExpectedEvents() 69 output.push_back(events[i]); in getExpectedEvents() 75 void runFilterTest(const Events& events) { in runFilterTest() argument [all …]
|
/frameworks/opt/net/wifi/service/ |
D | wifi-events.rc | 34 # Enable cfg80211 events for connection and key management events. 38 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/cfg80211_gtk_rekey_notify/enable 1 39 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_add_key/enable 1 40 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_assoc/enable 1 41 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_auth/enable 1 42 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_connect/enable 1 43 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_set_default_key/enable 1 44 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_set_default_mgmt_key/enable 1 45 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_set_rekey_data/enable 1 47 write /sys/kernel/tracing/instances/wifi/events/cfg80211/cfg80211_gtk_rekey_notify/enable 1 [all …]
|
/frameworks/native/libs/vr/libvrflinger/ |
D | epoll_event_dispatcher.cpp | 29 epoll_event event = {.events = EPOLLIN, .data = {.ptr = this}}; in EpollEventDispatcher() 50 event.events = event_mask; in AddEventHandler() 97 epoll_event events[kMaxNumEvents]; in EventThread() local 100 const int num_events = epoll_wait(epoll_fd_.Get(), events, kMaxNumEvents, -1); in EventThread() 111 i, events[i].data.ptr, events[i].events); in EventThread() 113 if (events[i].data.ptr == this) { in EventThread() 120 auto handler = reinterpret_cast<Handler*>(events[i].data.ptr); in EventThread() 122 (*handler)(events[i].events); in EventThread()
|
/frameworks/base/core/jni/ |
D | android_os_MessageQueue.cpp | 50 void setFileDescriptorEvents(int fd, int events); 52 virtual int handleEvent(int fd, int events, void* data); 125 void NativeMessageQueue::setFileDescriptorEvents(int fd, int events) { in setFileDescriptorEvents() argument 126 if (events) { in setFileDescriptorEvents() 128 if (events & CALLBACK_EVENT_INPUT) { in setFileDescriptorEvents() 131 if (events & CALLBACK_EVENT_OUTPUT) { in setFileDescriptorEvents() 135 reinterpret_cast<void*>(events)); in setFileDescriptorEvents() 142 int events = 0; in handleEvent() local 144 events |= CALLBACK_EVENT_INPUT; in handleEvent() 147 events |= CALLBACK_EVENT_OUTPUT; in handleEvent() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MotionEventInjectorTest.java | 226 List<GestureStep> events = Arrays.asList( in testInjectEvents_gestureWithTooManyPoints_shouldNotCrash() local 230 injectEventsSync(events, mServiceInterface, CLICK_SEQUENCE); in testInjectEvents_gestureWithTooManyPoints_shouldNotCrash() 411 List<MotionEvent> events = mCaptor1.getAllValues(); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() local 412 long downTime = events.get(0).getDownTime(); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 413 assertThat(events.get(0), allOf(isAtPoint(CONTINUED_LINE_START), IS_ACTION_DOWN, in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 415 assertThat(events, everyItem(hasDownTime(downTime))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 416 assertThat(events.get(1), allOf(isAtPoint(CONTINUED_LINE_MID1), IS_ACTION_MOVE, in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 419 long secondSequenceStart = events.get(2).getEventTime(); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 420 assertTrue(secondSequenceStart >= events.get(1).getEventTime()); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 421 assertThat(events.get(2), allOf(isAtPoint(CONTINUED_LINE_MID2), IS_ACTION_MOVE)); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() [all …]
|
D | KeyboardInterceptorTest.java | 134 KeyEvent[] events = {new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0), in whenSomeEventsGetDelayed_allEventsStillInOrder() local 141 argThat(matchesKeyEvent(events[1])), eq(0))).thenReturn(150L); in whenSomeEventsGetDelayed_allEventsStillInOrder() 143 argThat(matchesKeyEvent(events[3])), eq(0))).thenReturn(75L); in whenSomeEventsGetDelayed_allEventsStillInOrder() 145 for (KeyEvent event : events) { in whenSomeEventsGetDelayed_allEventsStillInOrder() 150 argThat(matchesKeyEvent(events[1])), eq(0))).thenReturn(0L); in whenSomeEventsGetDelayed_allEventsStillInOrder() 152 argThat(matchesKeyEvent(events[3])), eq(0))).thenReturn(0L); in whenSomeEventsGetDelayed_allEventsStillInOrder() 157 for (KeyEvent event : events) { in whenSomeEventsGetDelayed_allEventsStillInOrder() 164 KeyEvent[] events = {new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_0), in whenSomeEventsGetDropped_otherEventsStillInOrder() local 171 argThat(matchesKeyEvent(events[1])), eq(0))).thenReturn(150L); in whenSomeEventsGetDropped_otherEventsStillInOrder() 173 argThat(matchesKeyEvent(events[3])), eq(0))).thenReturn(75L); in whenSomeEventsGetDropped_otherEventsStillInOrder() [all …]
|
/frameworks/native/libs/sensor/ |
D | SensorEventQueue.cpp | 62 ASensorEvent const* events, size_t numEvents) { in write() argument 63 return BitTube::sendObjects(tube, events, numEvents); in write() 66 ssize_t SensorEventQueue::read(ASensorEvent* events, size_t numEvents) { in read() argument 77 memcpy(events, mRecBuffer + mConsumed, count * sizeof(ASensorEvent)); in read() 98 int events; in waitForEvent() local 101 result = looper->pollOnce(-1, nullptr, &events, nullptr); in waitForEvent() 107 if (events & ALOOPER_EVENT_HANGUP) { in waitForEvent() 173 void SensorEventQueue::sendAck(const ASensorEvent* events, int count) { in sendAck() argument 175 if (events[i].flags & WAKE_UP_SENSOR_EVENT_NEEDS_ACK) { in sendAck() 192 ssize_t SensorEventQueue::filterEvents(ASensorEvent* events, size_t count) const { in filterEvents() argument [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 261 List<BrightnessChangeEvent> events = mTracker.getEvents(0, true).getList(); in testBrightnessEvent() local 264 assertEquals(1, events.size()); in testBrightnessEvent() 265 BrightnessChangeEvent event = events.get(0); in testBrightnessEvent() 296 List<BrightnessChangeEvent> events = mTracker.getEvents(0, true).getList(); in testBrightnessFullPopulatedEvent() local 299 assertEquals(1, events.size()); in testBrightnessFullPopulatedEvent() 300 BrightnessChangeEvent event = events.get(0); in testBrightnessFullPopulatedEvent() 332 List<BrightnessChangeEvent> events = mTracker.getEvents(0, true).getList(); in testIgnoreAutomaticBrightnessChange() local 334 assertEquals(0, events.size()); in testIgnoreAutomaticBrightnessChange() 343 events = mTracker.getEvents(0, true).getList(); in testIgnoreAutomaticBrightnessChange() 345 assertEquals(2, events.size()); in testIgnoreAutomaticBrightnessChange() [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | service_dispatcher.cpp | 41 event.events = EPOLLIN; in ServiceDispatcher() 75 event.events = EPOLLIN; in AddService() 115 epoll_event events[kMaxEventsPerLoop]; in ReceiveAndDispatch() local 117 int count = epoll_wait(epoll_fd_.Get(), events, kMaxEventsPerLoop, timeout); in ReceiveAndDispatch() 126 if (events[i].data.ptr == this) { in ReceiveAndDispatch() 130 Service* service = static_cast<Service*>(events[i].data.ptr); in ReceiveAndDispatch() 147 epoll_event events[kMaxEventsPerLoop]; in EnterDispatchLoop() local 150 int count = epoll_wait(epoll_fd_.Get(), events, kMaxEventsPerLoop, -1); in EnterDispatchLoop() 158 if (events[i].data.ptr == this) { in EnterDispatchLoop() 162 Service* service = static_cast<Service*>(events[i].data.ptr); in EnterDispatchLoop()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_am_LowMemDetector.cpp | 95 struct epoll_event events[PRESSURE_LEVEL_COUNT]; in android_server_am_LowMemDetector_waitForPressure() local 106 nevents = epoll_wait(psi_epollfd, events, PRESSURE_LEVEL_COUNT, -1); in android_server_am_LowMemDetector_waitForPressure() 113 nevents = epoll_wait(psi_epollfd, events, PRESSURE_LEVEL_COUNT, 1000); in android_server_am_LowMemDetector_waitForPressure() 130 if (events[i].events & (EPOLLERR | EPOLLHUP)) { in android_server_am_LowMemDetector_waitForPressure() 136 if (events[i].data.u32 > pressure_level) { in android_server_am_LowMemDetector_waitForPressure() 137 pressure_level = events[i].data.u32; in android_server_am_LowMemDetector_waitForPressure()
|
/frameworks/native/libs/sensor/include/sensor/ |
D | BitTube.h | 54 T const* events, size_t count) { in sendObjects() argument 55 return sendObjects(tube, events, count, sizeof(T)); in sendObjects() 62 T* events, size_t count) { in recvObjects() argument 63 return recvObjects(tube, events, count, sizeof(T)); in recvObjects() 83 void const* events, size_t count, size_t objSize); 86 void* events, size_t count, size_t objSize);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | InProgressCallSession.java | 36 public final Deque<TelephonyCallSession.Event> events; field in InProgressCallSession 63 events = new ArrayDeque<>(); in InProgressCallSession() 86 if (events.size() >= MAX_EVENTS) { in addEvent() 87 events.removeFirst(); in addEvent() 94 events.add(builder.build()); in addEvent() 103 for (TelephonyCallSession.Event event : events) { in containsCsCalls()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/ |
D | RecentsActivity.java | 55 import com.android.systemui.recents.events.EventBus; 56 import com.android.systemui.recents.events.activity.CancelEnterRecentsWindowAnimationEvent; 57 import com.android.systemui.recents.events.activity.ConfigurationChangedEvent; 58 import com.android.systemui.recents.events.activity.DismissRecentsToHomeAnimationStarted; 59 import com.android.systemui.recents.events.activity.DockedFirstAnimationFrameEvent; 60 import com.android.systemui.recents.events.activity.DockedTopTaskEvent; 61 import com.android.systemui.recents.events.activity.EnterRecentsWindowAnimationCompletedEvent; 62 import com.android.systemui.recents.events.activity.EnterRecentsWindowLastAnimationFrameEvent; 63 import com.android.systemui.recents.events.activity.ExitRecentsWindowFirstAnimationFrameEvent; 64 import com.android.systemui.recents.events.activity.HideRecentsEvent; [all …]
|
/frameworks/native/libs/gui/ |
D | DisplayEventReceiver.cpp | 83 ssize_t DisplayEventReceiver::getEvents(DisplayEventReceiver::Event* events, in getEvents() argument 85 return DisplayEventReceiver::getEvents(mDataChannel.get(), events, count); in getEvents() 89 Event* events, size_t count) in getEvents() argument 91 return gui::BitTube::recvObjects(dataChannel, events, count); in getEvents() 95 Event const* events, size_t count) in sendEvents() argument 97 return gui::BitTube::sendObjects(dataChannel, events, count); in sendEvents()
|