Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/sun/nio/ch/
DEPollPort.java66 final int events; field in EPollPort.Event
68 Event(PollableChannel channel, int events) { in Event() argument
70 this.events = events; in Event()
74 int events() { return events; } in events() method in EPollPort.Event
172 void startPoll(int fd, int events) { in startPoll() argument
174 int err = epollCtl(epfd, EPOLL_CTL_MOD, fd, (events | EPOLLONESHOT)); in startPoll()
176 err = epollCtl(epfd, EPOLL_CTL_ADD, fd, (events | EPOLLONESHOT)); in startPoll()
225 int events = getEvents(eventAddress); in poll() local
226 Event ev = new Event(channel, events); in poll()
293 ev.channel().onEvent(ev.events(), isPooledThread); in run()
DPort.java48 void onEvent(int events, boolean mayInvokeDirect); in onEvent() argument
114 abstract void startPoll(int fd, int events); in startPoll() argument
130 public void onEvent(int events, boolean mayInvokeDirect) { } in attachForeignChannel()
DUnixAsynchronousSocketChannelImpl.java153 int events = 0; in updateEvents() local
155 events |= Net.POLLIN; in updateEvents()
157 events |= Net.POLLOUT; in updateEvents()
158 if (events != 0) in updateEvents()
159 port.startPoll(fdVal, events); in updateEvents()
216 public void onEvent(int events, boolean mayInvokeDirect) { in onEvent() argument
217 boolean readable = (events & Net.POLLIN) > 0; in onEvent()
218 boolean writable = (events & Net.POLLOUT) > 0; in onEvent()
219 if ((events & (Net.POLLERR | Net.POLLHUP)) > 0) { in onEvent()
DEPoll.java110 static native int epollCtl(int epfd, int opcode, int fd, int events); in epollCtl() argument
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractWatchKey.java63 private List<WatchEvent<?>> events; field in AbstractWatchKey
73 this.events = new ArrayList<WatchEvent<?>>(); in AbstractWatchKey()
108 int size = events.size(); in signalEvent()
112 WatchEvent<?> prev = events.get(size-1); in signalEvent()
154 events.clear(); in signalEvent()
157 events.add(ev); in signalEvent()
165 List<WatchEvent<?>> result = events; in pollEvents()
166 events = new ArrayList<WatchEvent<?>>(); in pollEvents()
176 if (events.isEmpty()) { in reset()
DPollingWatchService.java72 WatchEvent.Kind<?>[] events, in register() argument
78 new HashSet<WatchEvent.Kind<?>>(events.length); in register()
79 for (WatchEvent.Kind<?> event: events) { in register()
142 Set<? extends WatchEvent.Kind<?>> events,
172 watchKey.enable(events, sensivity.sensitivityValueInSeconds());
232 private Set<? extends WatchEvent.Kind<?>> events;
282 void enable(Set<? extends WatchEvent.Kind<?>> events, long period) {
285 this.events = events;
356 if (events.contains(StandardWatchEventKinds.ENTRY_CREATE)) {
364 if (events.contains(StandardWatchEventKinds.ENTRY_MODIFY)) {
[all …]
DAbstractPoller.java79 Set<? extends WatchEvent.Kind<?>> events, in implRegister() argument
96 WatchEvent.Kind<?>[] events, in register() argument
103 Set<WatchEvent.Kind<?>> eventSet = new HashSet<>(events.length); in register()
104 for (WatchEvent.Kind<?> event: events) { in register()
256 Set<? extends WatchEvent.Kind<?>> events = in processRequests() local
260 req.release(implRegister(path, events, modifiers)); in processRequests()
DAbstractPath.java101 WatchEvent.Kind<?>... events) in register() argument
104 return register(watcher, events, new WatchEvent.Modifier[0]); in register()
DLinuxWatchService.java88 WatchEvent.Kind<?>[] events, in register() argument
93 return poller.register(dir, events, modifiers); in register()
218 Set<? extends WatchEvent.Kind<?>> events, in implRegister() argument
224 for (WatchEvent.Kind<?> event: events) { in implRegister()
/libcore/ojluni/src/main/native/
DEPoll.c48 return offsetof(struct epoll_event, events); in Java_sun_nio_ch_EPoll_eventsOffset()
74 jint opcode, jint fd, jint events) in Java_sun_nio_ch_EPoll_epollCtl() argument
79 event.events = events; in Java_sun_nio_ch_EPoll_epollCtl()
91 struct epoll_event *events = jlong_to_ptr(address); in Java_sun_nio_ch_EPoll_epollWait() local
94 RESTARTABLE(epoll_wait(epfd, events, numfds, -1), res); in Java_sun_nio_ch_EPoll_epollWait()
DLinuxWatchService.c146 ufds[0].events = POLLIN; in Java_sun_nio_fs_LinuxWatchService_poll()
148 ufds[1].events = POLLIN; in Java_sun_nio_fs_LinuxWatchService_poll()
/libcore/ojluni/src/main/java/java/nio/file/
DWatchable.java90 WatchEvent.Kind<?>[] events, in register() argument
125 WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) in register() argument
DPath.java662 WatchEvent.Kind<?>[] events, in register() argument
710 WatchEvent.Kind<?>... events) in register() argument
/libcore/luni/src/test/java/libcore/java/nio/file/
DLinuxPathTest.java367 WatchEvent.Kind<?>[] events = {ENTRY_CREATE, ENTRY_DELETE}; in test_register$WatchService$WatchEvent_Kind() local
372 WatchKey key = directory.register(watchService, events); in test_register$WatchService$WatchEvent_Kind()
402 WatchEvent.Kind<?>[] events = {ENTRY_CREATE, ENTRY_DELETE}; in test_register$WatchService$WatchEvent_Kind_NPE() local
406 directory.register(null, events); in test_register$WatchService$WatchEvent_Kind_NPE()
431 WatchEvent.Kind<?>[] events = {new NonStandardEvent<>()}; in test_register$WatchService$WatchEvent_Kind_Exception() local
433 directory.register(watchService, events); in test_register$WatchService$WatchEvent_Kind_Exception()
467 WatchEvent.Kind<?>[] events = {ENTRY_CREATE}; in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier() local
471 WatchKey key = dirRoot.register(watchService, events, in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier()
483 WatchEvent.Kind<?>[] events = {ENTRY_CREATE}; in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier_NPE() local
487 WatchKey key = dirRoot.register(null, events, in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier_NPE()
/libcore/luni/src/main/java/android/system/
DStructPollfd.java34 public short events; field in StructPollfd
/libcore/dom/src/test/java/
DREADME6 all additions under org.w3c.dom.* and org.w3c.dom.events.*
/libcore/dom/src/test/java/org/w3c/domts/level2/events/
DTestDefaultParserAltConfig.java14 package org.w3c.domts.level2.events;
DTestDefaultParser.java14 package org.w3c.domts.level2.events;
DTestDefaultLS.java12 package org.w3c.domts.level2.events;
DTestDefaultLSAltConfig.java12 package org.w3c.domts.level2.events;
DTestBatik.java14 package org.w3c.domts.level2.events;
DTestXercesAltConfig.java14 package org.w3c.domts.level2.events;
DTestOracle.java12 package org.w3c.domts.level2.events;
DTestXerces.java14 package org.w3c.domts.level2.events;
DTestOracleAltConfig.java12 package org.w3c.domts.level2.events;

12