/third_party/python/Lib/unittest/test/ |
D | test_async_case.py | 25 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 …]
|
D | test_skipping.py | 11 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 …]
|
D | test_functiontestcase.py | 23 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 …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | ndis_events.c | 115 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 …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | ndis_events.c | 115 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 …]
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | RefBaseTests.cpp | 65 RefTracker(Id id, Events* events) : mId(id), mEvents(events) { in RefTracker() 78 Events* events = mEvents ? mEvents : other.mEvents; in operator =() local 79 events->emplace_back(Event{Action::kAssign, mId, other.mId}); in operator =() 116 Events events; in TEST() local 117 RefTracker tracker1(1, &events); in TEST() 118 RefTracker tracker2(2, &events); in TEST() 121 events.clear(); in TEST() 123 EXPECT_THAT(events, testing::ElementsAre(Event{Action::kRelease, 1}, // release ref in TEST() 129 Events events; in TEST() local 130 RefTracker tracker(1, &events); in TEST() [all …]
|
/third_party/f2fs-tools/scripts/ |
D | tracepoint.sh | 9 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 …]
|
/third_party/typescript/tests/baselines/reference/ |
D | importDeclFromTypeNodeInJsSource.symbols | 3 /// <reference path="events.d.ts" /> 4 === /src/node_modules/@types/node/events.d.ts === 5 declare module "events" { 6 >"events" : Symbol("events", Decl(events.d.ts, 0, 0)) 9 >EventEmitter : Symbol(EventEmitter, Decl(events.d.ts, 0, 25)) 12 >EventEmitter : Symbol(EventEmitter, Decl(events.d.ts, 1, 28)) 18 >EventEmitter : Symbol(EventEmitter, Decl(events.d.ts, 0, 25)) 21 >"nestNamespaceModule" : Symbol("nestNamespaceModule", Decl(events.d.ts, 7, 1)) 24 >a1 : Symbol(a1, Decl(events.d.ts, 8, 38), Decl(events.d.ts, 11, 5)) 25 >a2 : Symbol(a2, Decl(events.d.ts, 9, 17), Decl(events.d.ts, 13, 17)) [all …]
|
/third_party/python/Lib/test/ |
D | test_audit.py | 33 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 …]
|
/third_party/ltp/testcases/kernel/syscalls/epoll_ctl/ |
D | epoll_ctl01.c | 28 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 …]
|
D | epoll_ctl02.c | 32 static struct epoll_event events[2] = { variable 33 {.events = EPOLLIN}, 34 {.events = EPOLLOUT}, 45 {&inv, EPOLL_CTL_ADD, &fd[1], &events[1], EBADF, "epfd is an invalid fd"}, 46 {&epfd, EPOLL_CTL_ADD, &unsupported_fd, &events[1], EPERM, "fd does not support epoll"}, 47 {&epfd, EPOLL_CTL_ADD, &inv, &events[1], EBADF, "fd is an invalid fd"}, 48 {&epfd, -1, &fd[1], &events[1], EINVAL, "op is not supported"}, 49 {&epfd, EPOLL_CTL_ADD, &epfd, &events[1], EINVAL, "fd is the same as epfd"}, 51 {&epfd, EPOLL_CTL_DEL, &fd[1], &events[1], ENOENT, "fd is not registered with EPOLL_CTL_DEL"}, 52 {&epfd, EPOLL_CTL_MOD, &fd[1], &events[1], ENOENT, "fd is not registered with EPOLL_CTL_MOD"}, [all …]
|
/third_party/python/Lib/ |
D | selectors.py | 56 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 …]
|
/third_party/rust/crates/nix/test/sys/ |
D | test_inotify.rs | 15 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 …]
|
/third_party/json/tests/src/ |
D | unit-deserialization.cpp | 29 events.emplace_back("null()"); in null() 35 events.emplace_back(val ? "boolean(true)" : "boolean(false)"); in boolean() 41 events.push_back("number_integer(" + std::to_string(val) + ")"); in number_integer() 47 events.push_back("number_unsigned(" + std::to_string(val) + ")"); in number_unsigned() 53 events.push_back("number_float(" + s + ")"); in number_float() 59 events.push_back("string(" + val + ")"); in string() 74 events.push_back(binary_contents); in binary() 82 events.emplace_back("start_object()"); in start_object() 86 events.push_back("start_object(" + std::to_string(elements) + ")"); in start_object() 93 events.push_back("key(" + val + ")"); in key() [all …]
|
/third_party/node/test/fixtures/wpt/webmessaging/broadcastchannel/ |
D | basics.any.js | 22 let events = []; variable 25 events.push(e); 29 assert_equals(events.length, 6); 30 assert_equals(events[0].target, c2, 'target for event 0'); 31 assert_equals(events[0].data, 'from c1'); 32 assert_equals(events[1].target, c3, 'target for event 1'); 33 assert_equals(events[1].data, 'from c1'); 34 assert_equals(events[2].target, c1, 'target for event 2'); 35 assert_equals(events[2].data, 'from c3'); 36 assert_equals(events[3].target, c2, 'target for event 3'); [all …]
|
/third_party/gstreamer/gstreamer/tests/check/elements/ |
D | capsfilter.c | 52 static GList *events = NULL; variable 57 events = g_list_append (events, event); in test_pad_eventfunc() 282 fail_unless (g_list_length (events) == 1); in GST_START_TEST() 283 event = events->data; in GST_START_TEST() 285 g_list_free_full (events, (GDestroyNotify) gst_event_unref); in GST_START_TEST() 286 events = NULL; in GST_START_TEST() 292 fail_unless (g_list_length (events) == 0); in GST_START_TEST() 299 fail_unless (g_list_length (events) == 1); in GST_START_TEST() 300 event = events->data; in GST_START_TEST() 302 g_list_free_full (events, (GDestroyNotify) gst_event_unref); in GST_START_TEST() [all …]
|
/third_party/libuv/src/unix/ |
D | kqueue.c | 113 struct kevent events[1024]; in uv__io_poll() local 153 if ((w->events & POLLIN) == 0 && (w->pevents & POLLIN) != 0) { in uv__io_poll() 165 EV_SET(events + nevents, w->fd, filter, op, fflags, 0, 0); in uv__io_poll() 167 if (++nevents == ARRAY_SIZE(events)) { in uv__io_poll() 168 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll() 174 if ((w->events & POLLOUT) == 0 && (w->pevents & POLLOUT) != 0) { in uv__io_poll() 175 EV_SET(events + nevents, w->fd, EVFILT_WRITE, EV_ADD, 0, 0, 0); in uv__io_poll() 177 if (++nevents == ARRAY_SIZE(events)) { in uv__io_poll() 178 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll() 184 if ((w->events & UV__POLLPRI) == 0 && (w->pevents & UV__POLLPRI) != 0) { in uv__io_poll() [all …]
|
/third_party/node/deps/uv/src/unix/ |
D | kqueue.c | 113 struct kevent events[1024]; in uv__io_poll() local 153 if ((w->events & POLLIN) == 0 && (w->pevents & POLLIN) != 0) { in uv__io_poll() 165 EV_SET(events + nevents, w->fd, filter, op, fflags, 0, 0); in uv__io_poll() 167 if (++nevents == ARRAY_SIZE(events)) { in uv__io_poll() 168 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll() 174 if ((w->events & POLLOUT) == 0 && (w->pevents & POLLOUT) != 0) { in uv__io_poll() 175 EV_SET(events + nevents, w->fd, EVFILT_WRITE, EV_ADD, 0, 0, 0); in uv__io_poll() 177 if (++nevents == ARRAY_SIZE(events)) { in uv__io_poll() 178 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll() 184 if ((w->events & UV__POLLPRI) == 0 && (w->pevents & UV__POLLPRI) != 0) { in uv__io_poll() [all …]
|
/third_party/node/deps/uv/src/win/ |
D | poll.c | 84 handle->submitted_events_1 = handle->events; in uv__fast_poll_submit_poll_req() 86 handle->mask_events_2 = handle->events; in uv__fast_poll_submit_poll_req() 90 handle->submitted_events_2 = handle->events; in uv__fast_poll_submit_poll_req() 91 handle->mask_events_1 = handle->events; in uv__fast_poll_submit_poll_req() 111 if (handle->events & UV_READABLE) { in uv__fast_poll_submit_poll_req() 115 if (handle->events & UV_DISCONNECT) { in uv__fast_poll_submit_poll_req() 119 if (handle->events & UV_WRITABLE) { in uv__fast_poll_submit_poll_req() 158 if (error != WSAEINTR && handle->events != 0) { in uv__fast_poll_process_poll_req() 159 handle->events = 0; /* Stop the watcher */ in uv__fast_poll_process_poll_req() 164 unsigned char events = 0; in uv__fast_poll_process_poll_req() local [all …]
|
/third_party/libuv/src/win/ |
D | poll.c | 86 handle->submitted_events_1 = handle->events; in uv__fast_poll_submit_poll_req() 88 handle->mask_events_2 = handle->events; in uv__fast_poll_submit_poll_req() 92 handle->submitted_events_2 = handle->events; in uv__fast_poll_submit_poll_req() 93 handle->mask_events_1 = handle->events; in uv__fast_poll_submit_poll_req() 113 if (handle->events & UV_READABLE) { in uv__fast_poll_submit_poll_req() 117 if (handle->events & UV_DISCONNECT) { in uv__fast_poll_submit_poll_req() 121 if (handle->events & UV_WRITABLE) { in uv__fast_poll_submit_poll_req() 160 if (error != WSAEINTR && handle->events != 0) { in uv__fast_poll_process_poll_req() 161 handle->events = 0; /* Stop the watcher */ in uv__fast_poll_process_poll_req() 166 unsigned char events = 0; in uv__fast_poll_process_poll_req() local [all …]
|
/third_party/json/docs/examples/ |
D | sax_parse__binary.cpp | 14 std::vector<std::string> events; member in sax_event_consumer 18 events.push_back("null()"); in null() 24 events.push_back("boolean(val=" + std::string(val ? "true" : "false") + ")"); in boolean() 30 events.push_back("number_integer(val=" + std::to_string(val) + ")"); in number_integer() 36 events.push_back("number_unsigned(val=" + std::to_string(val) + ")"); in number_unsigned() 42 events.push_back("number_float(val=" + std::to_string(val) + ", s=" + s + ")"); in number_float() 48 events.push_back("string(val=" + val + ")"); in string() 54 events.push_back("start_object(elements=" + std::to_string(elements) + ")"); in start_object() 60 events.push_back("end_object()"); in end_object() 66 events.push_back("start_array(elements=" + std::to_string(elements) + ")"); in start_array() [all …]
|
D | sax_parse.cpp | 14 std::vector<std::string> events; member in sax_event_consumer 18 events.push_back("null()"); in null() 24 events.push_back("boolean(val=" + std::string(val ? "true" : "false") + ")"); in boolean() 30 events.push_back("number_integer(val=" + std::to_string(val) + ")"); in number_integer() 36 events.push_back("number_unsigned(val=" + std::to_string(val) + ")"); in number_unsigned() 42 events.push_back("number_float(val=" + std::to_string(val) + ", s=" + s + ")"); in number_float() 48 events.push_back("string(val=" + val + ")"); in string() 54 events.push_back("start_object(elements=" + std::to_string(elements) + ")"); in start_object() 60 events.push_back("end_object()"); in end_object() 66 events.push_back("start_array(elements=" + std::to_string(elements) + ")"); in start_array() [all …]
|
/third_party/node/deps/npm/node_modules/events/ |
D | events.js | 125 var events = this._events; 126 if (events !== undefined) 127 doError = (doError && events.error === undefined); 147 var handler = events[type]; 166 var events; 171 events = target._events; 172 if (events === undefined) { 173 events = target._events = Object.create(null); 178 if (events.newListener !== undefined) { 184 events = target._events; [all …]
|
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/ |
D | epoll_wait01.c | 30 {.fd = fds[1], .events = POLLOUT}, in get_writesize() 54 {.events = EPOLLIN}, in setup() 55 {.events = EPOLLOUT}, in setup() 77 int fd, uint32_t events) in has_event() argument 82 if ((epevs[i].data.fd == fd) && (epevs[i].events == events)) in has_event() 95 i, epevs[i].data.fd, epevs[i].events); in dump_epevs() 101 struct epoll_event ret_evs = {.events = 0, .data.fd = 0}; in verify_epollout() 122 if (ret_evs.events != EPOLLOUT) { in verify_epollout() 124 ret_evs.events, EPOLLOUT); in verify_epollout() 135 struct epoll_event ret_evs = {.events = 0, .data.fd = 0}; in verify_epollin() [all …]
|
/third_party/vk-gl-cts/external/amber/src/src/amberscript/ |
D | parser_debug_test.cc | 26 std::stringstream& events; member in amber::amberscript::__anon91b921310111::ThreadEventRecorder 30 explicit ThreadEventRecorder(std::stringstream& ev) : events(ev) {} in ThreadEventRecorder() 32 void StepOver() override { events << indent << "STEP_OVER" << std::endl; } in StepOver() 33 void StepIn() override { events << indent << "STEP_IN" << std::endl; } in StepIn() 34 void StepOut() override { events << indent << "STEP_OUT" << std::endl; } in StepOut() 35 void Continue() override { events << indent << "CONTINUE" << std::endl; } in Continue() 38 events << indent << "EXPECT LOCATION \"" << location.file << "\" " in ExpectLocation() 41 events << " \"" << line << "\""; in ExpectLocation() 43 events << std::endl; in ExpectLocation() 47 events << indent << "EXPECT CALLSTACK"; in ExpectCallstack() [all …]
|