/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldFileHandlerTest.java | 46 FileHandler handler; field in OldFileHandlerTest 76 handler = new FileHandler(); in setUp() 81 if (null != handler) { in tearDown() 82 handler.close(); in tearDown() 96 "iso-8859-1", handler.getEncoding()); in testFileHandler() 97 assertNotNull("Filter is null", handler.getFilter()); in testFileHandler() 98 assertNotNull("Formatter is null", handler.getFormatter()); in testFileHandler() 99 assertEquals("is non equal to actual value", Level.FINE, handler in testFileHandler() 101 assertNotNull("ErrorManager is null", handler.getErrorManager()); in testFileHandler() 102 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/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/xml/ |
D | ExpatSaxParserTest.java | 106 TestHandler handler = new TestHandler(); in testSax() local 107 parse(SNIPPET, handler); in testSax() 108 validate(handler); in testSax() 111 handler = new TestHandler(); in testSax() 112 parse(new StringReader(SNIPPET), handler); in testSax() 113 validate(handler); in testSax() 116 handler = new TestHandler(); in testSax() 118 Encoding.UTF_8, handler); in testSax() 119 validate(handler); in testSax() 127 static void validate(TestHandler handler) { in validate() argument [all …]
|
/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/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
D | DdmServer.java | 52 public static void registerHandler(int type, ChunkHandler handler) { in registerHandler() argument 53 if (handler == null) { in registerHandler() 61 mHandlerMap.put(type, handler); in registerHandler() 113 ChunkHandler handler = (ChunkHandler) iter.next(); in broadcast() local 116 handler.connected(); in broadcast() 119 handler.disconnected(); in broadcast() 141 ChunkHandler handler; in dispatch() local 162 handler = mHandlerMap.get(type); in dispatch() 166 if (handler == null) { in dispatch() 171 return handler.handleChunk(chunk); in dispatch()
|
/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 | NoInstanceParser.java | 43 public void setDocumentHandler(DocumentHandler handler) { in setDocumentHandler() argument 46 public void setDTDHandler(DTDHandler handler) { in setDTDHandler() argument 52 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
|
D | NoSubclassXMLReader.java | 61 public void setContentHandler(ContentHandler handler) { in setContentHandler() argument 64 public void setDTDHandler(DTDHandler handler) { in setDTDHandler() argument 70 public void setErrorHandler(ErrorHandler handler) { in setErrorHandler() argument
|
D | NoAccessXMLReader.java | 61 public void setContentHandler(ContentHandler handler) { in setContentHandler() argument 64 public void setDTDHandler(DTDHandler handler) { in setDTDHandler() argument 70 public void setErrorHandler(ErrorHandler handler) { in setErrorHandler() argument
|
D | DoNothingXMLReader.java | 61 public void setContentHandler(ContentHandler handler) { in setContentHandler() argument 64 public void setDTDHandler(DTDHandler handler) { in setDTDHandler() argument 70 public void setErrorHandler(ErrorHandler handler) { in setErrorHandler() argument
|
D | NoInstanceXMLReader.java | 64 public void setContentHandler(ContentHandler handler) { in setContentHandler() argument 67 public void setDTDHandler(DTDHandler handler) { in setDTDHandler() argument 73 public void setErrorHandler(ErrorHandler handler) { in setErrorHandler() 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
|
D | XMLReader.java | 259 public void setDTDHandler (DTDHandler handler); in setDTDHandler() argument 286 public void setContentHandler (ContentHandler handler); in setContentHandler() argument 315 public void setErrorHandler (ErrorHandler handler); in setErrorHandler() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/ |
D | ParserAdapterTest.java | 61 private MockHandler handler = new MockHandler(logger); field in ParserAdapterTest 77 adapter.setContentHandler(handler); in setUp() 78 adapter.setDTDHandler(handler); in setUp() 79 adapter.setErrorHandler(handler); in setUp() 171 adapter.setDTDHandler(handler); in testGetSetDTDHandler() 172 assertEquals(handler, adapter.getDTDHandler()); in testGetSetDTDHandler() 179 adapter.setContentHandler(handler); in testGetSetContentHandler() 180 assertEquals(handler, adapter.getContentHandler()); in testGetSetContentHandler() 187 adapter.setErrorHandler(handler); in testGetSetErrorHandler() 188 assertEquals(handler, adapter.getErrorHandler()); in testGetSetErrorHandler()
|
D | XMLFilterImplTest.java | 51 private MockHandler handler = new MockHandler(logger); field in XMLFilterImplTest 68 parent.setContentHandler(handler); in setUp() 69 parent.setDTDHandler(handler); in setUp() 70 parent.setErrorHandler(handler); in setUp() 72 child.setContentHandler(handler); in setUp() 73 child.setDTDHandler(handler); in setUp() 74 child.setErrorHandler(handler); in setUp() 162 parent.setDTDHandler(handler); in testGetSetDTDHandler() 163 assertEquals(handler, parent.getDTDHandler()); in testGetSetDTDHandler() 170 parent.setContentHandler(handler); in testGetSetContentHandler() [all …]
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | XMLReaderAdapter.java | 149 public void setDTDHandler (DTDHandler handler) in setDTDHandler() argument 151 xmlReader.setDTDHandler(handler); in setDTDHandler() 164 public void setDocumentHandler (DocumentHandler handler) in setDocumentHandler() argument 166 documentHandler = handler; in setDocumentHandler() 176 public void setErrorHandler (ErrorHandler handler) in setErrorHandler() argument 178 xmlReader.setErrorHandler(handler); in setErrorHandler()
|
/libcore/luni/src/main/java/java/security/ |
D | AuthProvider.java | 30 public abstract void login(Subject subject, CallbackHandler handler) throws LoginException; in login() argument 34 public abstract void setCallbackHandler(CallbackHandler handler); in setCallbackHandler() argument
|
/libcore/support/src/test/java/tests/io/ |
D | MockOs.java | 58 InvocationHandler handler = getHandlers(method.getName()).poll(); 59 if (handler == null) { 60 handler = delegateHandler; 62 return handler.invoke(proxy, method, args);
|