Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 25 of 68) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/util/logging/
DOldFileHandlerTest.java46 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 …]
DOldMemoryHandlerTest.java38 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 …]
DOldXMLFormatterTest.java30 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/test/java/libcore/xml/
DExpatSaxParserTest.java107 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/
DSAXResult.java52 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/
DOldURLStreamHandlerTest.java32 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/
DDdmServer.java52 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/ojluni/src/main/java/java/net/
DURL.java215 transient URLStreamHandler handler; field in URL
372 URLStreamHandler handler) throws MalformedURLException { in URL() argument
373 if (handler != null) { in URL()
415 if (handler == null && in URL()
416 (handler = getURLStreamHandler(protocol)) == null) { in URL()
419 this.handler = handler; in URL()
509 public URL(URL context, String spec, URLStreamHandler handler) in URL() argument
520 if (handler != null) { in URL()
565 if (handler == null) { in URL()
566 handler = context.handler; in URL()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DContentHandlerTest.java36 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/
DMockParser.java48 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()
DMockReader.java95 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()
DNoSubclassParser.java39 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
DDoNothingParser.java40 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
DNoAccessParser.java40 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
DNoInstanceParser.java43 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
DNoSubclassXMLReader.java61 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
DDoNothingXMLReader.java61 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
DNoAccessXMLReader.java61 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
DNoInstanceXMLReader.java64 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/ojluni/src/main/java/sun/net/www/protocol/https/
DDelegateHttpsURLConnection.java54 sun.net.www.protocol.http.Handler handler, in DelegateHttpsURLConnection() argument
57 this(url, null, handler, httpsURLConnection); in DelegateHttpsURLConnection()
61 sun.net.www.protocol.http.Handler handler, in DelegateHttpsURLConnection() argument
64 super(url, p, handler); in DelegateHttpsURLConnection()
/libcore/luni/src/main/java/org/xml/sax/
DParser.java110 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
DXMLReader.java259 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/
DXMLFilterImplTest.java51 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 …]
DParserAdapterTest.java60 private MockHandler handler = new MockHandler(logger); field in ParserAdapterTest
76 adapter.setContentHandler(handler); in setUp()
77 adapter.setDTDHandler(handler); in setUp()
78 adapter.setErrorHandler(handler); in setUp()
170 adapter.setDTDHandler(handler); in testGetSetDTDHandler()
171 assertEquals(handler, adapter.getDTDHandler()); in testGetSetDTDHandler()
178 adapter.setContentHandler(handler); in testGetSetContentHandler()
179 assertEquals(handler, adapter.getContentHandler()); in testGetSetContentHandler()
186 adapter.setErrorHandler(handler); in testGetSetErrorHandler()
187 assertEquals(handler, adapter.getErrorHandler()); in testGetSetErrorHandler()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DXMLReaderAdapter.java149 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()

123