/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldFileHandlerTest.java | 47 FileHandler handler; field in OldFileHandlerTest 77 handler = new FileHandler(); in setUp() 82 if (null != handler) { in tearDown() 83 handler.close(); in tearDown() 97 "iso-8859-1", handler.getEncoding()); in testFileHandler() 98 assertNotNull("Filter is null", handler.getFilter()); in testFileHandler() 99 assertNotNull("Formatter is null", handler.getFormatter()); in testFileHandler() 100 assertEquals("is non equal to actual value", Level.FINE, handler in testFileHandler() 102 assertNotNull("ErrorManager is null", handler.getErrorManager()); in testFileHandler() 103 handler.publish(r); in testFileHandler() [all …]
|
D | OldMemoryHandlerTest.java | 38 MemoryHandler handler; field in OldMemoryHandlerTest 45 handler = new MemoryHandler(); in setUp() 70 assertTrue(handler.isLoggable(new LogRecord(Level.INFO, "1"))); in testIsLoggable() 71 assertTrue(handler.isLoggable(new LogRecord(Level.WARNING, "2"))); in testIsLoggable() 72 assertTrue(handler.isLoggable(new LogRecord(Level.SEVERE, "3"))); in testIsLoggable() 76 assertNotNull("Filter should not be null", handler.getFilter()); in testMemoryHandler() 77 assertNotNull("Formatter should not be null", handler.getFormatter()); in testMemoryHandler() 78 assertNull("character encoding should be null", handler.getEncoding()); in testMemoryHandler() 79 assertNotNull("ErrorManager should not be null", handler.getErrorManager()); in testMemoryHandler() 80 assertEquals("Level should be FINE", Level.FINE, handler.getLevel()); in testMemoryHandler() [all …]
|
D | OldXMLFormatterTest.java | 30 MockHandler handler = null; field in OldXMLFormatterTest 36 handler = new MockHandler(); in setUp() 41 handler.setEncoding("UTF-8"); in testXMLFormatter() 43 String result = formatter.getHead(handler); in testXMLFormatter() 56 .getTail(handler).indexOf("/log>") > 0); in testXMLFormatter() 63 formatter.getTail(handler).trim()); in testGetTail() 64 handler.publish(lr); in testGetTail() 66 "</log>", formatter.getTail(handler).trim()); in testGetTail()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Invoker.java | 120 static <V,A> void invokeUnchecked(CompletionHandler<V,? super A> handler, in invokeUnchecked() argument 126 handler.completed(value, attachment); in invokeUnchecked() 128 handler.failed(exc, attachment); in invokeUnchecked() 154 CompletionHandler<V,? super A> handler, in invokeDirect() argument 160 Invoker.invokeUnchecked(handler, attachment, result, exc); in invokeDirect() 169 CompletionHandler<V,? super A> handler, in invoke() argument 188 invokeDirect(thisGroupAndInvokeCount, handler, attachment, result, exc); in invoke() 191 invokeIndirectly(channel, handler, attachment, result, exc); in invoke() 197 handler, attachment, result, exc); in invoke() 209 final CompletionHandler<V,? super A> handler, in invokeIndirectly() argument [all …]
|
D | UnixAsynchronousSocketChannelImpl.java | 295 CompletionHandler<Void,Object> handler = connectHandler; in finishConnect() local 298 if (handler == null) { in finishConnect() 302 Invoker.invokeUnchecked(handler, att, null, e); in finishConnect() 304 Invoker.invokeIndirectly(this, handler, att, null, e); in finishConnect() 313 CompletionHandler<Void,? super A> handler) in implConnect() argument 317 if (handler == null) { in implConnect() 320 Invoker.invoke(this, handler, attachment, null, e); in implConnect() 355 if (handler == null) { in implConnect() 359 this.connectHandler = (CompletionHandler<Void,Object>)handler; in implConnect() 384 if (handler == null) { in implConnect() [all …]
|
D | AsynchronousSocketChannelImpl.java | 195 CompletionHandler<Void,? super A> handler); in implConnect() argument 205 CompletionHandler<Void,? super A> handler) in connect() argument 207 if (handler == null) in connect() 209 implConnect(remote, attachment, handler); in connect() 221 CompletionHandler<V,? super A> handler); in implRead() argument 230 CompletionHandler<V,? super A> handler) in read() argument 234 if (handler == null) in read() 236 Invoker.invoke(this, handler, att, null, e); in read() 270 if (handler == null) in read() 272 Invoker.invoke(this, handler, att, (V)result, null); in read() [all …]
|
D | AsynchronousFileChannelImpl.java | 110 CompletionHandler<FileLock,? super A> handler); in implLock() argument 126 CompletionHandler<FileLock,? super A> handler) in lock() argument 128 if (handler == null) in lock() 130 implLock(position, size, shared, attachment, handler); in lock() 214 CompletionHandler<Integer,? super A> handler); in implRead() argument 225 CompletionHandler<Integer,? super A> handler) in read() argument 227 if (handler == null) in read() 229 implRead(dst, position, attachment, handler); in read() 235 CompletionHandler<Integer,? super A> handler); in implWrite() argument 247 CompletionHandler<Integer,? super A> handler) in write() argument [all …]
|
D | SimpleAsynchronousFileChannelImpl.java | 177 final CompletionHandler<FileLock,? super A> handler) in implLock() argument 188 if (handler == null) in implLock() 190 Invoker.invokeIndirectly(handler, attachment, null, exc, executor); in implLock() 194 final PendingFuture<FileLock,A> result = (handler == null) ? in implLock() 222 if (handler == null) { in implLock() 225 Invoker.invokeUnchecked(handler, attachment, fli, exc); in implLock() 291 final CompletionHandler<Integer,? super A> handler) in implRead() argument 303 if (handler == null) in implRead() 305 Invoker.invokeIndirectly(handler, attachment, 0, exc, executor); in implRead() 309 final PendingFuture<Integer,A> result = (handler == null) ? in implRead() [all …]
|
D | PendingFuture.java | 42 private final CompletionHandler<V,? super A> handler; field in PendingFuture 60 CompletionHandler<V,? super A> handler, in PendingFuture() argument 65 this.handler = handler; in PendingFuture() 71 CompletionHandler<V,? super A> handler, in PendingFuture() argument 75 this.handler = handler; in PendingFuture() 91 CompletionHandler<V,? super A> handler() { in handler() method in PendingFuture 92 return handler; in handler()
|
D | UnixAsynchronousServerSocketChannelImpl.java | 109 CompletionHandler<AsynchronousSocketChannel,Object> handler; in implClose() local 116 handler = acceptHandler; in implClose() 125 if (handler == null) { in implClose() 129 Invoker.invokeIndirectly(this, handler, att, null, x); in implClose() 199 CompletionHandler<AsynchronousSocketChannel,Object> handler = acceptHandler; in onEvent() local 206 if (handler == null) { in onEvent() 216 Invoker.invoke(this, handler, att, child, exc); in onEvent() 272 CompletionHandler<AsynchronousSocketChannel,Object> handler) in implAccept() argument 277 if (handler == null) { in implAccept() 280 Invoker.invoke(this, handler, att, null, e); in implAccept() [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | ExpatSaxParserTest.java | 107 TestHandler handler = new TestHandler(); in testSax() local 108 parse(SNIPPET, handler); in testSax() 109 validate(handler); in testSax() 112 handler = new TestHandler(); in testSax() 113 parse(new StringReader(SNIPPET), handler); in testSax() 114 validate(handler); in testSax() 117 handler = new TestHandler(); in testSax() 119 Encoding.UTF_8, handler); in testSax() 120 validate(handler); in testSax() 128 static void validate(TestHandler handler) { in validate() argument [all …]
|
/libcore/luni/src/main/java/javax/xml/transform/sax/ |
D | SAXResult.java | 52 public SAXResult(ContentHandler handler) { in SAXResult() argument 53 setHandler(handler); in SAXResult() 61 public void setHandler(ContentHandler handler) { in setHandler() argument 62 this.handler = handler; in setHandler() 71 return handler; in getHandler() 85 public void setLexicalHandler(LexicalHandler handler) { in setLexicalHandler() argument 86 this.lexhandler = handler; in setLexicalHandler() 125 private ContentHandler handler; field in SAXResult
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldURLStreamHandlerTest.java | 32 MockURLStreamHandler handler = null; field in OldURLStreamHandlerTest 40 assertFalse(handler.equals(url1,url2)); in test_equalsLjava_net_URLLjava_net_URL() 43 assertFalse(handler.equals(null, url1)); in test_equalsLjava_net_URLLjava_net_URL() 51 assertEquals(-1, handler.getDefaultPort()); in test_getDefaultPort() 56 assertNull(handler.getHostAddress(url1)); in test_getHostAddress() 59 assertNull(handler.getHostAddress(url2)); in test_getHostAddress() 62 assertEquals(InetAddress.getByName("localhost"), handler.getHostAddress(url3)); in test_getHostAddress() 68 assertTrue(handler.hashCode(url1) != handler.hashCode(url2)); in test_hashCodeLjava_net_URL() 71 assertFalse(handler.equals(url1,url2)); in test_hashCodeLjava_net_URL() 74 handler.hashCode(null); in test_hashCodeLjava_net_URL() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | AsynchronousFileChannelTest.java | 289 RecordingHandler handler = new RecordingHandler(); in testRead_CompletionListener() local 292 afc.read(buf, 0, attachment, handler); in testRead_CompletionListener() 301 afc.read(buf, 0, attachment, handler); in testRead_CompletionListener() 302 assertTrue(handler.awaitCompletion()); in testRead_CompletionListener() 303 assertEquals(4, handler.result); in testRead_CompletionListener() 304 assertSame(attachment, handler.attachment); in testRead_CompletionListener() 312 handler = new RecordingHandler(); in testRead_CompletionListener() 314 afc.read(buf, 6, attachment, handler); in testRead_CompletionListener() 315 assertTrue(handler.awaitCompletion()); in testRead_CompletionListener() 316 assertEquals(2, handler.result); in testRead_CompletionListener() [all …]
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
D | DdmServer.java | 56 public static void registerHandler(int type, ChunkHandler handler) { in registerHandler() argument 57 if (handler == null) { in registerHandler() 65 mHandlerMap.put(type, handler); in registerHandler() 122 ChunkHandler handler = (ChunkHandler) iter.next(); in broadcast() local 125 handler.connected(); in broadcast() 128 handler.disconnected(); in broadcast() 150 ChunkHandler handler; in dispatch() local 171 handler = mHandlerMap.get(type); in dispatch() 175 if (handler == null) { in dispatch() 180 return handler.handleChunk(chunk); in dispatch()
|
/libcore/ojluni/src/main/java/java/net/ |
D | URL.java | 226 transient URLStreamHandler handler; field in URL 382 URLStreamHandler handler) throws MalformedURLException { in URL() argument 383 if (handler != null) { in URL() 427 if (handler == null && in URL() 428 (handler = getURLStreamHandler(protocol)) == null) { in URL() 431 this.handler = handler; in URL() 521 public URL(URL context, String spec, URLStreamHandler handler) in URL() argument 532 if (handler != null) { in URL() 577 if (handler == null) { in URL() 578 handler = context.handler; in URL() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/ |
D | ContentHandlerTest.java | 36 ContentHandler handler = new ContentHandlerImpl(); in test_getContent() local 37 ((ContentHandlerImpl) handler).setContent(new Foo()); in test_getContent() 38 Object content = handler.getContent(conn, classes); in test_getContent() 41 ((ContentHandlerImpl) handler).setContent(new FooSub()); in test_getContent() 42 content = handler.getContent(conn, classes); in test_getContent() 46 ((ContentHandlerImpl) handler).setContent(new Foo()); in test_getContent() 47 content = handler.getContent(conn, classes2); in test_getContent()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/ |
D | MockParser.java | 48 public void setDTDHandler(DTDHandler handler) { in setDTDHandler() argument 49 logger.add("setDTDHandler", handler); in setDTDHandler() 52 public void setDocumentHandler(DocumentHandler handler) { in setDocumentHandler() argument 53 logger.add("setDocumentHandler", handler); in setDocumentHandler() 60 public void setErrorHandler(ErrorHandler handler) { in setErrorHandler() argument 61 logger.add("setErrorHandler", handler); in setErrorHandler()
|
D | MockReader.java | 95 public void setContentHandler(ContentHandler handler) { in setContentHandler() argument 96 this.contentHandler = handler; in setContentHandler() 99 public void setDTDHandler(DTDHandler handler) { in setDTDHandler() argument 100 this.dtdHandler = handler; in setDTDHandler() 107 public void setErrorHandler(ErrorHandler handler) { in setErrorHandler() argument 108 this.errorHandler = handler; in setErrorHandler()
|
D | NoSubclassParser.java | 39 public void setDocumentHandler(DocumentHandler handler) { in setDocumentHandler() argument 42 public void setDTDHandler(DTDHandler handler) { in setDTDHandler() argument 48 public void setErrorHandler(ErrorHandler handler) { in setErrorHandler() argument
|
D | NoAccessParser.java | 40 public void setDocumentHandler(DocumentHandler handler) { in setDocumentHandler() argument 43 public void setDTDHandler(DTDHandler handler) { in setDTDHandler() argument 49 public void setErrorHandler(ErrorHandler handler) { in setErrorHandler() argument
|
D | DoNothingParser.java | 40 public void setDocumentHandler(DocumentHandler handler) { in setDocumentHandler() argument 43 public void setDTDHandler(DTDHandler handler) { in setDTDHandler() argument 49 public void setErrorHandler(ErrorHandler handler) { in setErrorHandler() argument
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | AsynchronousSocketChannel.java | 326 CompletionHandler<Void,? super A> handler); in connect() argument 405 CompletionHandler<Integer,? super A> handler); in read() argument 418 CompletionHandler<Integer,? super A> handler) in read() argument 420 read(dst, 0L, TimeUnit.MILLISECONDS, attachment, handler); in read() 515 CompletionHandler<Long,? super A> handler); in read() argument 562 CompletionHandler<Integer,? super A> handler); in write() argument 574 CompletionHandler<Integer,? super A> handler) in write() argument 577 write(src, 0L, TimeUnit.MILLISECONDS, attachment, handler); in write() 666 CompletionHandler<Long,? super A> handler); in write() argument
|
D | AsynchronousFileChannel.java | 461 CompletionHandler<FileLock,? super A> handler); in lock() argument 492 CompletionHandler<FileLock,? super A> handler) in lock() argument 494 lock(0L, Long.MAX_VALUE, false, attachment, handler); in lock() 679 CompletionHandler<Integer,? super A> handler); in read() argument 745 CompletionHandler<Integer,? super A> handler); in write() argument
|
/libcore/luni/src/main/java/org/xml/sax/ |
D | Parser.java | 110 public abstract void setDTDHandler (DTDHandler handler); in setDTDHandler() argument 129 public abstract void setDocumentHandler (DocumentHandler handler); in setDocumentHandler() argument 149 public abstract void setErrorHandler (ErrorHandler handler); in setErrorHandler() argument
|