Home
last modified time | relevance | path

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

12345678910>>...14

/packages/modules/StatsD/statsd/benchmark/
Dduration_metric_benchmark.cpp140 std::vector<std::unique_ptr<LogEvent>> events; in BM_DurationMetricNoLink() local
142 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 11, in BM_DurationMetricNoLink()
144 events.push_back( in BM_DurationMetricNoLink()
147 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 102, in BM_DurationMetricNoLink()
149 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 450, in BM_DurationMetricNoLink()
152 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + 650, in BM_DurationMetricNoLink()
154 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 100, in BM_DurationMetricNoLink()
157 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 640, in BM_DurationMetricNoLink()
159 events.push_back(CreateScreenStateChangedEvent(bucketStartTimeNs + bucketSizeNs + 650, in BM_DurationMetricNoLink()
164 events.push_back(CreateStartScheduledJobEvent(bucketStartTimeNs + 2, attributionUids1, in BM_DurationMetricNoLink()
[all …]
/packages/modules/StatsD/statsd/tests/e2e/
DMetricConditionLink_e2e_test.cpp171 std::vector<std::unique_ptr<LogEvent>> events; in TEST() local
172 events.push_back(std::move(crashEvent1)); in TEST()
173 events.push_back(std::move(crashEvent2)); in TEST()
174 events.push_back(std::move(crashEvent3)); in TEST()
175 events.push_back(std::move(crashEvent4)); in TEST()
176 events.push_back(std::move(crashEvent5)); in TEST()
177 events.push_back(std::move(crashEvent6)); in TEST()
178 events.push_back(std::move(crashEvent7)); in TEST()
179 events.push_back(std::move(crashEvent8)); in TEST()
180 events.push_back(std::move(crashEvent9)); in TEST()
[all …]
DCountMetric_e2e_test.cpp180 std::vector<std::unique_ptr<LogEvent>> events; in TEST() local
181 events.push_back(CreateScreenStateChangedEvent( in TEST()
184 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 75 * NS_PER_SEC, attributionUids1, in TEST()
186 events.push_back(CreateScreenStateChangedEvent( in TEST()
189 events.push_back(CreateScreenStateChangedEvent( in TEST()
192 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 250 * NS_PER_SEC, attributionUids1, in TEST()
196 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 350 * NS_PER_SEC, attributionUids1, in TEST()
198 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 400 * NS_PER_SEC, attributionUids1, in TEST()
200 events.push_back(CreateScreenStateChangedEvent( in TEST()
203 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 475 * NS_PER_SEC, attributionUids1, in TEST()
[all …]
DAttribution_e2e_test.cpp115 std::vector<std::unique_ptr<LogEvent>> events; in TEST() local
117 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 2, attributionUids1, in TEST()
119 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 200, attributionUids2, in TEST()
121 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + bucketSizeNs - 1, in TEST()
123 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + bucketSizeNs, attributionUids4, in TEST()
127 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 2 * bucketSizeNs + 1, in TEST()
129 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 2 * bucketSizeNs + 100, in TEST()
131 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 3 * bucketSizeNs - 2, in TEST()
133 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 3 * bucketSizeNs, in TEST()
135 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 3 * bucketSizeNs + 1, in TEST()
[all …]
DWakelockDuration_e2e_test.cpp98 std::vector<std::unique_ptr<LogEvent>> events; in FeedEvents() local
100 events.push_back(std::move(screenTurnedOnEvent)); in FeedEvents()
101 events.push_back(std::move(screenTurnedOffEvent)); in FeedEvents()
102 events.push_back(std::move(screenTurnedOnEvent2)); in FeedEvents()
103 events.push_back(std::move(acquireEvent1)); in FeedEvents()
104 events.push_back(std::move(acquireEvent2)); in FeedEvents()
105 events.push_back(std::move(releaseEvent1)); in FeedEvents()
106 events.push_back(std::move(releaseEvent2)); in FeedEvents()
108 sortLogEventsByTimestamp(&events); in FeedEvents()
110 for (const auto& event : events) { in FeedEvents()
[all …]
DConfigUpdate_e2e_test.cpp112 std::vector<std::unique_ptr<LogEvent>> events; in TEST_F() local
113 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 5 * NS_PER_SEC, in TEST_F()
116 events.push_back(CreateScreenStateChangedEvent( in TEST_F()
119 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 15 * NS_PER_SEC, attributionUids1, in TEST_F()
122 events.push_back(CreateBatteryStateChangedEvent( in TEST_F()
125 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 25 * NS_PER_SEC, in TEST_F()
128 events.push_back(CreateScreenStateChangedEvent( in TEST_F()
131 events.push_back(CreateSyncStartEvent(bucketStartTimeNs + 35 * NS_PER_SEC, attributionUids1, in TEST_F()
134 events.push_back(CreateAcquireWakelockEvent(bucketStartTimeNs + 40 * NS_PER_SEC, in TEST_F()
139 for (auto& event : events) { in TEST_F()
[all …]
DGaugeMetric_e2e_push_test.cpp90 std::vector<std::unique_ptr<LogEvent>> events; in TEST() local
91 events.push_back(CreateMoveToBackgroundEvent(bucketStartTimeNs + 15, appUid1)); in TEST()
92 events.push_back( in TEST()
94 events.push_back( in TEST()
96 events.push_back( in TEST()
99 events.push_back(CreateAppStartOccurredEvent( in TEST()
102 events.push_back(CreateAppStartOccurredEvent( in TEST()
105 events.push_back(CreateAppStartOccurredEvent( in TEST()
108 events.push_back(CreateAppStartOccurredEvent( in TEST()
112 events.push_back(CreateAppStartOccurredEvent( in TEST()
[all …]
DDurationMetric_e2e_test.cpp781 std::vector<std::unique_ptr<LogEvent>> events; in TEST() local
782 events.push_back(CreateScreenStateChangedEvent( in TEST()
785 events.push_back(CreateBatterySaverOnEvent(bucketStartTimeNs + 20 * NS_PER_SEC)); // 0:30 in TEST()
786 events.push_back(CreateScreenStateChangedEvent( in TEST()
789 events.push_back(CreateScreenStateChangedEvent( in TEST()
792 events.push_back(CreateScreenStateChangedEvent( in TEST()
795 events.push_back(CreateBatterySaverOffEvent(bucketStartTimeNs + 200 * NS_PER_SEC)); // 3:30 in TEST()
796 events.push_back(CreateScreenStateChangedEvent( in TEST()
799 events.push_back(CreateBatterySaverOnEvent(bucketStartTimeNs + 280 * NS_PER_SEC)); // 4:50 in TEST()
802 events.push_back(CreateScreenStateChangedEvent( in TEST()
[all …]
/packages/modules/adb/fdevent/
Dfdevent_epoll.cpp64 result.events = 0; in calculate_epoll_event()
66 result.events |= EPOLLIN; in calculate_epoll_event()
69 result.events |= EPOLLOUT; in calculate_epoll_event()
72 result.events |= EPOLLERR; in calculate_epoll_event()
74 result.events |= EPOLLRDHUP; in calculate_epoll_event()
92 void fdevent_context_epoll::Set(fdevent* fde, unsigned events) { in Set() argument
94 fde->state = events; in Set()
97 if ((previous_state & ~FDE_TIMEOUT) == (events & ~FDE_TIMEOUT)) { in Set()
140 unsigned events = 0; in Loop() local
141 if (epoll_events[i].events & EPOLLIN) { in Loop()
[all …]
Dfdevent_poll.cpp82 void fdevent_context_poll::Set(fdevent* fde, unsigned events) { in Set() argument
84 fde->state = events; in Set()
85 D("fdevent_set: %s, events = %u", dump_fde(fde).c_str(), events); in Set()
92 if (pollfd.events & POLLIN) { in dump_pollfds()
95 if (pollfd.events & POLLOUT) { in dump_pollfds()
119 pfd.events = 0; in Loop()
121 pfd.events |= POLLIN; in Loop()
124 pfd.events |= POLLOUT; in Loop()
127 pfd.events |= POLLERR; in Loop()
130 pfd.events |= POLLRDHUP; in Loop()
[all …]
Dfdevent_test.cpp54 static void FdEventCallback(int fd, unsigned events, void* userdata) { in FdEventCallback() argument
56 ASSERT_EQ(0u, (events & ~(FDE_READ | FDE_WRITE))) << "unexpected events: " << events; in FdEventCallback()
57 if (events & FDE_READ) { in FdEventCallback()
64 if (events & FDE_WRITE) { in FdEventCallback()
76 static void FdEventNewCallback(fdevent* fde, unsigned events, void* userdata) { in FdEventNewCallback() argument
79 ASSERT_EQ(0u, (events & ~(FDE_READ | FDE_WRITE))) << "unexpected events: " << events; in FdEventNewCallback()
80 if (events & FDE_READ) { in FdEventNewCallback()
87 if (events & FDE_WRITE) { in FdEventNewCallback()
237 std::vector<std::pair<TimeoutEvent, std::chrono::steady_clock::time_point>> events; in TEST_F() member
246 test.fde = fdevent_create(fds[0], [](fdevent* fde, unsigned events, void* arg) { in TEST_F() argument
[all …]
Dfdevent.cpp38 void invoke_fde(struct fdevent* fde, unsigned events) { in invoke_fde() argument
40 (*f)(fde->fd.get(), events, fde->arg); in invoke_fde()
42 (*f)(fde, events, fde->arg); in invoke_fde()
105 void fdevent_context::Add(fdevent* fde, unsigned events) { in Add() argument
106 CHECK(!(events & FDE_TIMEOUT)); in Add()
107 Set(fde, fde->state | events); in Add()
110 void fdevent_context::Del(fdevent* fde, unsigned events) { in Del() argument
111 CHECK(!(events & FDE_TIMEOUT)); in Del()
112 Set(fde, fde->state & ~events); in Del()
147 void fdevent_context::HandleEvents(const std::vector<fdevent_event>& events) { in HandleEvents() argument
[all …]
Dfdevent.h44 typedef void (*fd_func)(int fd, unsigned events, void *userdata);
45 typedef void (*fd_func2)(struct fdevent* fde, unsigned events, void* userdata);
47 void invoke_fde(struct fdevent* fde, unsigned events);
52 unsigned events; member
87 virtual void Set(fdevent* fde, unsigned events) = 0;
88 void Add(fdevent* fde, unsigned events);
89 void Del(fdevent* fde, unsigned events);
99 void HandleEvents(const std::vector<fdevent_event>& events);
145 void fdevent_set(fdevent *fde, unsigned events);
146 void fdevent_add(fdevent *fde, unsigned events);
[all …]
/packages/modules/Wifi/service/
Dwifi.rc42 # Enable cfg80211 events for connection and key management events.
46 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/cfg80211_gtk_rekey_notify/enable 1
47 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_add_key/enable 1
48 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_assoc/enable 1
49 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_auth/enable 1
50 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_connect/enable 1
51 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_set_default_key/enable 1
52 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_set_default_mgmt_key/enable 1
53 write /sys/kernel/debug/tracing/instances/wifi/events/cfg80211/rdev_set_rekey_data/enable 1
55 write /sys/kernel/tracing/instances/wifi/events/cfg80211/cfg80211_gtk_rekey_notify/enable 1
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputLogicTestsDeadKeys.java54 final EventList events = new EventList() in testDeadCircumflexSimple() local
58 for (final Event event : events) { in testDeadCircumflexSimple()
67 final EventList events = new EventList() in testDeadCircumflexBackspace() local
72 for (final Event event : events) { in testDeadCircumflexBackspace()
81 final EventList events = new EventList() in testDeadCircumflexFeedback() local
84 for (final Event event : events) { in testDeadCircumflexFeedback()
94 final EventList events = new EventList() in testDeadDiaeresisSpace() local
102 for (final Event event : events) { in testDeadDiaeresisSpace()
113 final EventList events = new EventList() in testDeadAcuteLetterBackspace() local
117 for (final Event event : events) { in testDeadAcuteLetterBackspace()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/
DBlockingUserLifecycleListenerTest.java111 List<UserLifecycleEvent> events = listener.waitForEvents(); in testForSpecificEvents_receivedOnlyExpected() local
112 assertEvents(events, 10, in testForSpecificEvents_receivedOnlyExpected()
117 assertThat(allReceivedEvents).containsAtLeastElementsIn(events).inOrder(); in testForSpecificEvents_receivedOnlyExpected()
133 List<UserLifecycleEvent> events = listener.waitForEvents(); in testForSpecificEvents_receivedExtraEvents() local
134 assertEvents(events, 10, in testForSpecificEvents_receivedExtraEvents()
162 List<UserLifecycleEvent> events = listener.waitForEvents(); in testForSpecificEvents_filterByUser() local
163 assertThat(events).containsExactly(right1, right2).inOrder(); in testForSpecificEvents_filterByUser()
190 List<UserLifecycleEvent> events = listener.waitForEvents(); in testForSpecificEvents_filterByUserDuplicatedEventTypes() local
191 assertThat(events).containsExactly(right1, right2, right3).inOrder(); in testForSpecificEvents_filterByUserDuplicatedEventTypes()
221 List<UserLifecycleEvent> events = listener.waitForEvents(); in testForSpecificEvents_filterByPreviousUser() local
[all …]
/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanEventListenerTest.java71 private List<Integer> events; field in IwlanEventListenerTest
117 events = new ArrayList<Integer>(); in testWifiApChanged()
118 events.add(IwlanEventListener.WIFI_AP_CHANGED_EVENT); in testWifiApChanged()
119 mIwlanEventListener.addEventListener(events, mMockHandler); in testWifiApChanged()
136 events = new ArrayList<Integer>(); in testCrossSimCallingSettingEnableChanged()
137 events.add(IwlanEventListener.CROSS_SIM_CALLING_ENABLE_EVENT); in testCrossSimCallingSettingEnableChanged()
138 mIwlanEventListener.addEventListener(events, mMockHandler); in testCrossSimCallingSettingEnableChanged()
157 events = new ArrayList<Integer>(); in testCrossSimCallingSettingDisableChanged()
158 events.add(IwlanEventListener.CROSS_SIM_CALLING_DISABLE_EVENT); in testCrossSimCallingSettingDisableChanged()
159 mIwlanEventListener.addEventListener(events, mMockHandler); in testCrossSimCallingSettingDisableChanged()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/codeinspection/
DLifecycleObserverCodeInspector.java24 import com.android.settingslib.core.lifecycle.events.OnAttach;
25 import com.android.settingslib.core.lifecycle.events.OnCreate;
26 import com.android.settingslib.core.lifecycle.events.OnCreateOptionsMenu;
27 import com.android.settingslib.core.lifecycle.events.OnDestroy;
28 import com.android.settingslib.core.lifecycle.events.OnOptionsItemSelected;
29 import com.android.settingslib.core.lifecycle.events.OnPause;
30 import com.android.settingslib.core.lifecycle.events.OnPrepareOptionsMenu;
31 import com.android.settingslib.core.lifecycle.events.OnResume;
32 import com.android.settingslib.core.lifecycle.events.OnSaveInstanceState;
33 import com.android.settingslib.core.lifecycle.events.OnStart;
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/core/codeinspection/
DLifecycleObserverCodeInspector.java24 import com.android.settingslib.core.lifecycle.events.OnAttach;
25 import com.android.settingslib.core.lifecycle.events.OnCreate;
26 import com.android.settingslib.core.lifecycle.events.OnCreateOptionsMenu;
27 import com.android.settingslib.core.lifecycle.events.OnDestroy;
28 import com.android.settingslib.core.lifecycle.events.OnOptionsItemSelected;
29 import com.android.settingslib.core.lifecycle.events.OnPause;
30 import com.android.settingslib.core.lifecycle.events.OnPrepareOptionsMenu;
31 import com.android.settingslib.core.lifecycle.events.OnResume;
32 import com.android.settingslib.core.lifecycle.events.OnSaveInstanceState;
33 import com.android.settingslib.core.lifecycle.events.OnStart;
[all …]
/packages/modules/adb/libs/adbconnection/
Dadbconnection_server.cpp67 std::array<epoll_event, 16> events; in adbconnection_listen() local
69 events[0].events = EPOLLIN; in adbconnection_listen()
70 events[0].data.fd = -1; in adbconnection_listen()
71 if (epoll_ctl(epfd.get(), EPOLL_CTL_ADD, s.get(), &events[0]) != 0) { in adbconnection_listen()
76 int epoll_rc = TEMP_FAILURE_RETRY(epoll_wait(epfd.get(), events.data(), events.size(), -1)); in adbconnection_listen()
82 const epoll_event& event = events[i]; in adbconnection_listen()
93 register_event.events = EPOLLIN; in adbconnection_listen()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java193 List<KeyEvent> events = new ArrayList<>(); in dispatchesInputEvent_multiple_toListener_mainDisplay() local
196 events.add(event.copy()); in dispatchesInputEvent_multiple_toListener_mainDisplay()
205 assertThat(events.get(0).getKeyCode()).isEqualTo(KeyEvent.KEYCODE_ENTER); in dispatchesInputEvent_multiple_toListener_mainDisplay()
206 assertThat(events.get(1).getKeyCode()).isEqualTo(KeyEvent.KEYCODE_MENU); in dispatchesInputEvent_multiple_toListener_mainDisplay()
208 events.forEach(KeyEvent::recycle); in dispatchesInputEvent_multiple_toListener_mainDisplay()
217 List<KeyEvent> events = new ArrayList<>(); in dispatchesInputEvent_multiple_toListener_clusterDisplay() local
220 events.add(event.copy()); in dispatchesInputEvent_multiple_toListener_clusterDisplay()
232 assertThat(events.get(0).getKeyCode()).isEqualTo(KeyEvent.KEYCODE_ENTER); in dispatchesInputEvent_multiple_toListener_clusterDisplay()
233 assertThat(events.get(1).getKeyCode()).isEqualTo(KeyEvent.KEYCODE_MENU); in dispatchesInputEvent_multiple_toListener_clusterDisplay()
235 events.forEach(KeyEvent::recycle); in dispatchesInputEvent_multiple_toListener_clusterDisplay()
[all …]
DEvsHalServiceTest.java94 List<Integer> events = new ArrayList<>(); in requestToStartRearviewViaEvsServiceRequest() local
96 events.add(invocation.getArgument(0)); in requestToStartRearviewViaEvsServiceRequest()
97 events.add(invocation.getArgument(1) ? TRUE : FALSE); in requestToStartRearviewViaEvsServiceRequest()
103 assertThat(events.get(0)).isEqualTo(CarEvsManager.SERVICE_TYPE_REARVIEW); in requestToStartRearviewViaEvsServiceRequest()
104 assertThat(events.get(1)).isEqualTo(TRUE); in requestToStartRearviewViaEvsServiceRequest()
111 List<Integer> events = new ArrayList<>(); in requestToStopRearviewViaEvsServiceRequest() local
113 events.add(invocation.getArgument(0)); in requestToStopRearviewViaEvsServiceRequest()
114 events.add(invocation.getArgument(1) ? TRUE : FALSE); in requestToStopRearviewViaEvsServiceRequest()
120 assertThat(events.get(0)).isEqualTo(CarEvsManager.SERVICE_TYPE_REARVIEW); in requestToStopRearviewViaEvsServiceRequest()
121 assertThat(events.get(1)).isEqualTo(FALSE); in requestToStopRearviewViaEvsServiceRequest()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java118 private UsageEvents getUsageEvents(List<Event> events) { in getUsageEvents() argument
119 UsageEvents usageEvents = new UsageEvents(events, new String[] {PKG1, PKG2}); in getUsageEvents()
137 List<Event> events = new ArrayList<>(); in testGetAggregatedUsageEvents_onlyNotificationEvents() local
142 events.add(good); in testGetAggregatedUsageEvents_onlyNotificationEvents()
147 events.add(bad); in testGetAggregatedUsageEvents_onlyNotificationEvents()
149 UsageEvents usageEvents = getUsageEvents(events); in testGetAggregatedUsageEvents_onlyNotificationEvents()
159 List<Event> events = new ArrayList<>(); in testGetAggregatedUsageEvents_multipleEventsAgg() local
164 events.add(good); in testGetAggregatedUsageEvents_multipleEventsAgg()
169 events.add(good1); in testGetAggregatedUsageEvents_multipleEventsAgg()
171 UsageEvents usageEvents = getUsageEvents(events); in testGetAggregatedUsageEvents_multipleEventsAgg()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DRecentNotificationsAppsPreferenceControllerTest.java123 List<UsageEvents.Event> events = new ArrayList<>(); in areEvents_showValidRecents() local
130 events.add(app1); in areEvents_showValidRecents()
131 events.add(app2); in areEvents_showValidRecents()
132 events.add(app3); in areEvents_showValidRecents()
147 events); in areEvents_showValidRecents()
164 List<UsageEvents.Event> events = new ArrayList<>(); in areEvents_showMaximumRecents() local
173 events.add(app1); in areEvents_showMaximumRecents()
174 events.add(app2); in areEvents_showMaximumRecents()
175 events.add(app3); in areEvents_showMaximumRecents()
176 events.add(app4); in areEvents_showMaximumRecents()
[all …]
/packages/modules/adb/
Dsysdeps_test.cpp98 pfd[0].events = POLLRDNORM; in TEST_F()
100 pfd[1].events = POLLWRNORM; in TEST_F()
124 pfd.events = POLLRDNORM; in TEST_F()
138 pfd[0].events = POLLRDNORM; in TEST_F()
141 pfd[1].events = POLLRDNORM; in TEST_F()
144 pfd[2].events = POLLWRNORM; in TEST_F()
160 pfd[0].events = POLLRDNORM; in TEST_F()
163 pfd[1].events = POLLRDNORM; in TEST_F()
173 pfd[0].events = POLLRDNORM; in TEST_F()
190 pfd.events = POLLIN; in TEST_F()
[all …]

12345678910>>...14