Home
last modified time | relevance | path

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

12345678910>>...88

/external/perfetto/src/traced/probes/ftrace/
Dftrace_config_muxer.cc59 const std::vector<const Event*>* events = table->GetEventsByGroup(group); in AddEventGroup() local
60 if (!events) in AddEventGroup()
62 for (const Event* event : *events) in AddEventGroup()
71 std::set<GroupAndName> events; in ReadEventsInGroupFromFs() local
73 events.insert(GroupAndName(group, name)); in ReadEventsInGroupFromFs()
74 return events; in ReadEventsInGroupFromFs()
121 std::set<GroupAndName> events; in GetFtraceEvents() local
128 events.insert(event); in GetFtraceEvents()
140 events.insert(GroupAndName(e->group, e->name)); in GetFtraceEvents()
142 events.insert(GroupAndName(group, name)); in GetFtraceEvents()
[all …]
/external/python/cpython3/Lib/unittest/test/
Dtest_async_case.py25 self.assertEqual(events, [])
26 events.append('setUp')
29 self.assertEqual(events, ['setUp'])
30 events.append('asyncSetUp')
34 self.assertEqual(events, ['setUp',
36 events.append('test')
40 self.assertEqual(events, ['setUp',
43 events.append('asyncTearDown')
46 self.assertEqual(events, ['setUp',
50 events.append('tearDown')
[all …]
Dtest_skipping.py11 return LoggingResult(events)
14 events = []
15 result = LoggingResult(events)
18 self.assertEqual(events, ['startTest', 'addSkip', 'stopTest'])
21 events = []
23 self.assertEqual(events, ['startTestRun', 'startTest', 'addSkip',
31 return LoggingResult(events)
35 events = []
36 result = LoggingResult(events)
39 self.assertEqual(events, ['startTest', 'addSkip', 'stopTest'])
[all …]
Dtest_functiontestcase.py23 events = []
24 result = LoggingResult(events)
27 events.append('setUp')
31 events.append('test')
34 events.append('tearDown')
38 self.assertEqual(events, expected)
48 events = []
49 result = LoggingResult(events)
52 events.append('setUp')
55 events.append('test')
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowEventLogTest.java39 ArrayList<EventLog.Event> events = new ArrayList<>(); in testAddEvent_testStringLog() local
40 EventLog.readEvents(new int[] {TEST_TAG}, events); in testAddEvent_testStringLog()
41 assertThat(events).hasSize(1); in testAddEvent_testStringLog()
42 assertThat(events.get(0).getTag()).isEqualTo(TEST_TAG); in testAddEvent_testStringLog()
43 assertThat(events.get(0).getProcessId()).isEqualTo(TEST_PROCESS_ID); in testAddEvent_testStringLog()
44 assertThat(events.get(0).getThreadId()).isEqualTo(TEST_THREAD_ID); in testAddEvent_testStringLog()
45 assertThat(events.get(0).getTimeNanos()).isEqualTo(TEST_TIME_NANOS); in testAddEvent_testStringLog()
46 assertThat((String) events.get(0).getData()).isEqualTo(TEST_STRING1); in testAddEvent_testStringLog()
59 ArrayList<EventLog.Event> events = new ArrayList<>(); in testAddEvent_testIntLog() local
60 EventLog.readEvents(new int[] {TEST_TAG}, events); in testAddEvent_testIntLog()
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/
Dcount_stcx_fail.c29 static int do_count_loop(struct event *events, u64 instructions, in do_count_loop() argument
43 event_read(&events[0]); in do_count_loop()
44 event_read(&events[1]); in do_count_loop()
45 event_read(&events[2]); in do_count_loop()
47 expected = instructions + overhead + (events[2].result.value * 10); in do_count_loop()
48 difference = events[0].result.value - expected; in do_count_loop()
49 percentage = (double)difference / events[0].result.value * 100; in do_count_loop()
53 event_report(&events[0]); in do_count_loop()
54 event_report(&events[1]); in do_count_loop()
55 event_report(&events[2]); in do_count_loop()
[all …]
Dcount_instructions.c29 static int do_count_loop(struct event *events, u64 instructions, in do_count_loop() argument
42 event_read(&events[0]); in do_count_loop()
43 event_read(&events[1]); in do_count_loop()
46 difference = events[0].result.value - expected; in do_count_loop()
47 percentage = (double)difference / events[0].result.value * 100; in do_count_loop()
50 event_report(&events[0]); in do_count_loop()
51 event_report(&events[1]); in do_count_loop()
55 printf("Actual %llu\n", events[0].result.value); in do_count_loop()
59 event_reset(&events[0]); in do_count_loop()
60 event_reset(&events[1]); in do_count_loop()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowEventLogTest.java37 ArrayList<EventLog.Event> events = new ArrayList<>(); in testAddEvent_testStringLog() local
38 EventLog.readEvents(new int[] {TEST_TAG}, events); in testAddEvent_testStringLog()
39 assertThat(events).hasSize(1); in testAddEvent_testStringLog()
40 assertThat(events.get(0).getTag()).isEqualTo(TEST_TAG); in testAddEvent_testStringLog()
41 assertThat(events.get(0).getProcessId()).isEqualTo(TEST_PROCESS_ID); in testAddEvent_testStringLog()
42 assertThat(events.get(0).getTimeNanos()).isEqualTo(TEST_TIME_NANOS); in testAddEvent_testStringLog()
43 assertThat((String) events.get(0).getData()).isEqualTo(TEST_STRING1); in testAddEvent_testStringLog()
55 ArrayList<EventLog.Event> events = new ArrayList<>(); in testAddEvent_testIntLog() local
56 EventLog.readEvents(new int[] {TEST_TAG}, events); in testAddEvent_testIntLog()
57 assertThat(events).hasSize(1); in testAddEvent_testIntLog()
[all …]
/external/libpalmrejection/
Dcopy.bara.sky10 "ui/events/event_constants.h",
11 "ui/events/ozone/features.cc",
12 "ui/events/ozone/features.h",
13 "ui/events/ozone/evdev/touch_evdev_types.cc",
14 "ui/events/ozone/evdev/touch_evdev_types.h",
15 "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc",
16 "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h",
17 "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.cc",
18 "ui/events/ozone/evdev/touch_filter/palm_detection_filter.h",
19 "ui/events/ozone/evdev/touch_filter/palm_detection_filter.cc",
[all …]
/external/wpa_supplicant_8/src/drivers/
Dndis_events.c115 static int ndis_events_get_adapter(struct ndis_events_data *events,
119 static int ndis_events_constructor(struct ndis_events_data *events) in ndis_events_constructor() argument
121 events->ref = 1; in ndis_events_constructor()
123 if (!CreatePipe(&events->read_pipe, &events->write_pipe, NULL, 512)) { in ndis_events_constructor()
128 events->event_avail = CreateEvent(NULL, TRUE, FALSE, NULL); in ndis_events_constructor()
129 if (events->event_avail == NULL) { in ndis_events_constructor()
132 CloseHandle(events->read_pipe); in ndis_events_constructor()
133 CloseHandle(events->write_pipe); in ndis_events_constructor()
141 static void ndis_events_destructor(struct ndis_events_data *events) in ndis_events_destructor() argument
143 CloseHandle(events->read_pipe); in ndis_events_destructor()
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/security/
Dspectre_v2.c25 static int do_count_loop(struct event *events, bool is_p9, s64 *miss_percent) in do_count_loop() argument
38 event_read(&events[0]); in do_count_loop()
39 event_read(&events[1]); in do_count_loop()
43 FAIL_IF(events[0].result.running != events[0].result.enabled); in do_count_loop()
44 FAIL_IF(events[1].result.running != events[1].result.enabled); in do_count_loop()
46 pred = events[0].result.value; in do_count_loop()
47 mpred = events[1].result.value; in do_count_loop()
50 event_read(&events[2]); in do_count_loop()
51 event_read(&events[3]); in do_count_loop()
52 FAIL_IF(events[2].result.running != events[2].result.enabled); in do_count_loop()
[all …]
/external/f2fs-tools/scripts/
Dtracepoint.sh9 echo 0 > $TRACE/events/mmc/enable
13 echo 0 > $TRACE/events/block/block_rq_complete/enable
14 echo 0 > $TRACE/events/block/block_bio_complete/enable
18 echo $G > $TRACE/events/f2fs/f2fs_get_victim/enable
22 echo $A > $TRACE/events/f2fs/f2fs_reserve_new_block/enable
26 echo $T > $TRACE/events/f2fs/f2fs_truncate/enable
27 echo $T > $TRACE/events/f2fs/f2fs_truncate_inode_blocks_enter/enable
28 echo $T > $TRACE/events/f2fs/f2fs_truncate_inode_blocks_exit/enable
29 echo $T > $TRACE/events/f2fs/f2fs_truncate_blocks_enter/enable
30 echo $T > $TRACE/events/f2fs/f2fs_truncate_blocks_exit/enable
[all …]
/external/libchrome/base/trace_event/
Dblame_context_unittest.cc75 trace_analyzer::TraceEventVector events; in TEST_F() local
78 analyzer->FindEvents(q, &events); in TEST_F()
80 EXPECT_EQ(2u, events.size()); in TEST_F()
81 EXPECT_EQ(TRACE_EVENT_PHASE_ENTER_CONTEXT, events[0]->phase); in TEST_F()
82 EXPECT_EQ(kTestBlameContextCategory, events[0]->category); in TEST_F()
83 EXPECT_EQ(kTestBlameContextName, events[0]->name); in TEST_F()
84 EXPECT_EQ("0x1234", events[0]->id); in TEST_F()
85 EXPECT_EQ(TRACE_EVENT_PHASE_LEAVE_CONTEXT, events[1]->phase); in TEST_F()
86 EXPECT_EQ(kTestBlameContextCategory, events[1]->category); in TEST_F()
87 EXPECT_EQ(kTestBlameContextName, events[1]->name); in TEST_F()
[all …]
/external/python/cpython2/Lib/unittest/test/
Dtest_functiontestcase.py23 events = []
24 result = LoggingResult(events)
27 events.append('setUp')
31 events.append('test')
34 events.append('tearDown')
38 self.assertEqual(events, expected)
48 events = []
49 result = LoggingResult(events)
52 events.append('setUp')
55 events.append('test')
[all …]
/external/python/cpython3/Lib/test/
Dtest_audit.py33 events = []
80 returncode, events, stderr = self.run_python("test_excepthook")
85 [("sys.excepthook", " ", "RuntimeError('fatal-error')")], events
89 returncode, events, stderr = self.run_python("test_unraisablehook")
93 self.assertEqual(events[0][0], "sys.unraisablehook")
95 events[0][2],
101 returncode, events, stderr = self.run_python("test_winreg")
105 self.assertEqual(events[0][0], "winreg.OpenKey")
106 self.assertEqual(events[1][0], "winreg.OpenKey/result")
107 expected = events[1][2]
[all …]
/external/ltp/testcases/kernel/syscalls/epoll_ctl/
Depoll_ctl01.c28 static struct epoll_event events[3] = { variable
29 {.events = EPOLLIN},
30 {.events = EPOLLOUT},
31 {.events = EPOLLIN}
42 events[0].data.fd = fd[0]; in setup()
43 events[1].data.fd = fd[1]; in setup()
44 events[2].data.fd = fd[1]; in setup()
60 int fd, unsigned int events) in has_event() argument
65 if ((epvs[i].data.fd == fd) && (epvs[i].events == events)) in has_event()
75 unsigned int events; in check_epoll_ctl() local
[all …]
/external/libevent/
Depoll.c87 struct epoll_event *events; member
113 short old, short events, void *p);
115 short old, short events, void *p);
169 epollop->events = mm_calloc(INITIAL_NEVENT, sizeof(struct epoll_event)); in epoll_init()
170 if (epollop->events == NULL) { in epoll_init()
199 epev.events = EPOLLIN; in epoll_init()
249 #define PRINT_CHANGES(op, events, ch, status) \ argument
256 events, \
272 int op, events = 0; in epoll_apply_one_change() local
277 events = epoll_op_table[idx].events; in epoll_apply_one_change()
[all …]
/external/python/cpython3/Lib/
Dselectors.py56 SelectorKey.events.__doc__ = 'Events that must be waited for on this file object.'
97 def register(self, fileobj, events, data=None): argument
138 def modify(self, fileobj, events, data=None): argument
153 return self.register(fileobj, events, data)
235 def register(self, fileobj, events, data=None): argument
236 if (not events) or (events & ~(EVENT_READ | EVENT_WRITE)):
237 raise ValueError("Invalid events: {!r}".format(events))
239 key = SelectorKey(fileobj, self._fileobj_lookup(fileobj), events, data)
255 def modify(self, fileobj, events, data=None): argument
260 if events != key.events:
[all …]
/external/rust/crates/nix/test/sys/
Dtest_inotify.rs15 let events = instance.read_events(); in test_inotify() localVariable
16 assert_eq!(events.unwrap_err(), Errno::EAGAIN); in test_inotify()
20 let events = instance.read_events().unwrap(); in test_inotify() localVariable
21 assert_eq!(events[0].name, Some(OsString::from("test"))); in test_inotify()
33 let events = instance.read_events(); in test_inotify_multi_events() localVariable
34 assert_eq!(events.unwrap_err(), Errno::EAGAIN); in test_inotify_multi_events()
46 let events = instance.read_events().unwrap(); in test_inotify_multi_events() localVariable
47 assert_eq!(events.len(), 5); in test_inotify_multi_events()
49 assert_eq!(events[0].mask, AddWatchFlags::IN_CREATE); in test_inotify_multi_events()
50 assert_eq!(events[0].name, Some(OsString::from("test"))); in test_inotify_multi_events()
[all …]
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dparsed_trace_events.py9 def __init__(self, events = None, trace_filename = None): argument
17 if trace_filename and events:
19 if not trace_filename and events == None:
42 events = json.loads(t)
46 if 'traceEvents' in events:
47 events = events['traceEvents']
49 if not hasattr(events, '__iter__'):
51 self.events = events
56 return len(self.events)
59 return self.events[i]
[all …]
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/trigger/
Dtrigger-filter.tc14 echo 'traceoff if child_pid == 0' > events/sched/sched_process_fork/trigger
23 ! echo 'traceoff if a' > events/sched/sched_process_fork/trigger
24 ! echo 'traceoff if common_pid=0' > events/sched/sched_process_fork/trigger
25 ! echo 'traceoff if common_pid==b' > events/sched/sched_process_fork/trigger
26 echo 'traceoff if common_pid == 0' > events/sched/sched_process_fork/trigger
27 echo '!traceoff' > events/sched/sched_process_fork/trigger
28 ! echo 'traceoff if common_pid == child_pid' > events/sched/sched_process_fork/trigger
29 echo 'traceoff if common_pid <= 0' > events/sched/sched_process_fork/trigger
30 echo '!traceoff' > events/sched/sched_process_fork/trigger
31 echo 'traceoff if common_pid >= 0' > events/sched/sched_process_fork/trigger
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/
Dmulti_counter_test.c18 struct event events[6]; in multi_counter() local
23 event_init_named(&events[0], 0x1001C, "PM_CMPLU_STALL_THRD"); in multi_counter()
24 event_init_named(&events[1], 0x2D016, "PM_CMPLU_STALL_FXU"); in multi_counter()
25 event_init_named(&events[2], 0x30006, "PM_CMPLU_STALL_OTHER_CMPL"); in multi_counter()
26 event_init_named(&events[3], 0x4000A, "PM_CMPLU_STALL"); in multi_counter()
27 event_init_named(&events[4], 0x600f4, "PM_RUN_CYC"); in multi_counter()
28 event_init_named(&events[5], 0x500fa, "PM_RUN_INST_CMPL"); in multi_counter()
30 event_leader_ebb_init(&events[0]); in multi_counter()
32 event_ebb_init(&events[i]); in multi_counter()
36 events[i].attr.exclude_kernel = 1; in multi_counter()
[all …]
/external/cronet/third_party/libevent/
Depoll.c67 struct epoll_event *events; member
134 epollop->events = malloc(INITIAL_NEVENTS * sizeof(struct epoll_event)); in epoll_init()
135 if (epollop->events == NULL) { in epoll_init()
143 free(epollop->events); in epoll_init()
185 struct epoll_event *events = epollop->events; in epoll_dispatch() local
198 res = epoll_wait(epollop->epfd, events, epollop->nevents, timeout); in epoll_dispatch()
215 int what = events[i].events; in epoll_dispatch()
217 int fd = events[i].data.fd; in epoll_dispatch()
251 new_events = realloc(epollop->events, in epoll_dispatch()
254 epollop->events = new_events; in epoll_dispatch()
[all …]
/external/snakeyaml/src/test/java/org/pyyaml/
DCanonicalParser.java21 import org.yaml.snakeyaml.events.AliasEvent;
22 import org.yaml.snakeyaml.events.DocumentEndEvent;
23 import org.yaml.snakeyaml.events.DocumentStartEvent;
24 import org.yaml.snakeyaml.events.Event;
25 import org.yaml.snakeyaml.events.ImplicitTuple;
26 import org.yaml.snakeyaml.events.MappingEndEvent;
27 import org.yaml.snakeyaml.events.MappingStartEvent;
28 import org.yaml.snakeyaml.events.ScalarEvent;
29 import org.yaml.snakeyaml.events.SequenceEndEvent;
30 import org.yaml.snakeyaml.events.SequenceStartEvent;
[all …]
/external/webrtc/logging/
DBUILD.gn38 "rtc_event_log/events/fixed_length_encoding_parameters_v3.cc",
39 "rtc_event_log/events/fixed_length_encoding_parameters_v3.h",
40 "rtc_event_log/events/rtc_event_definition.h",
41 "rtc_event_log/events/rtc_event_field_encoding.cc",
42 "rtc_event_log/events/rtc_event_field_encoding.h",
43 "rtc_event_log/events/rtc_event_field_encoding_parser.cc",
44 "rtc_event_log/events/rtc_event_field_encoding_parser.h",
45 "rtc_event_log/events/rtc_event_field_extraction.cc",
46 "rtc_event_log/events/rtc_event_field_extraction.h",
79 "rtc_event_log/events/rtc_event_alr_state.cc",
[all …]

12345678910>>...88