Home
last modified time | relevance | path

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

12345678910>>...56

/external/chromium_org/third_party/webrtc/libjingle/xmllite/
Dxmlparser_unittest.cc69 XmlParserTestHandler handler; in TEST() local
70 XmlParser::ParseXml(&handler, "<testing/>"); in TEST()
71 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST()
76 XmlParserTestHandler handler; in TEST() local
77 XmlParser::ParseXml(&handler, "<testing a='b'/>"); in TEST()
78 EXPECT_EQ("START (testing, a='b') END ", handler.Str()); in TEST()
81 XmlParserTestHandler handler; in TEST() local
82 XmlParser::ParseXml(&handler, "<testing e='' long='some text'/>"); in TEST()
83 EXPECT_EQ("START (testing, e='', long='some text') END ", handler.Str()); in TEST()
89 XmlParserTestHandler handler; in TEST() local
[all …]
/external/chromium_org/third_party/libjingle/source/talk/xmllite/
Dxmlparser_unittest.cc86 XmlParserTestHandler handler; in TEST() local
87 XmlParser::ParseXml(&handler, "<testing/>"); in TEST()
88 EXPECT_EQ("START (testing) END ", handler.Str()); in TEST()
93 XmlParserTestHandler handler; in TEST() local
94 XmlParser::ParseXml(&handler, "<testing a='b'/>"); in TEST()
95 EXPECT_EQ("START (testing, a='b') END ", handler.Str()); in TEST()
98 XmlParserTestHandler handler; in TEST() local
99 XmlParser::ParseXml(&handler, "<testing e='' long='some text'/>"); in TEST()
100 EXPECT_EQ("START (testing, e='', long='some text') END ", handler.Str()); in TEST()
106 XmlParserTestHandler handler; in TEST() local
[all …]
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DMemoryHandlerTest.java58 MemoryHandler handler; field in MemoryHandlerTest
71 handler = new MemoryHandler(); in setUp()
102 Filter filter = handler.getFilter(); in testClose()
103 Formatter formatter = handler.getFormatter(); in testClose()
105 handler.close(); in testClose()
107 assertEquals(handler.getFilter(), filter); in testClose()
108 assertEquals(handler.getFormatter(), formatter); in testClose()
109 assertNull(handler.getEncoding()); in testClose()
110 assertNotNull(handler.getErrorManager()); in testClose()
111 assertEquals(handler.getLevel(), Level.OFF); in testClose()
[all …]
DFileHandlerTest.java59 FileHandler handler; field in FileHandlerTest
73 handler = new FileHandler(); in setUp()
97 if (null != handler) { in tearDown()
98 handler.close(); in tearDown()
169 assertEquals(handler.getEncoding(), "iso-8859-1"); in testFileHandler()
170 assertTrue(handler.getFilter() instanceof MockFilter); in testFileHandler()
171 assertTrue(handler.getFormatter() instanceof MockFormatter); in testFileHandler()
172 assertEquals(handler.getLevel(), Level.FINE); in testFileHandler()
173 assertNotNull(handler.getErrorManager()); in testFileHandler()
174 handler.publish(r); in testFileHandler()
[all …]
/external/chromium_org/net/http/
Dhttp_auth_handler_factory_unittest.cc30 scoped_ptr<HttpAuthHandler>* handler) OVERRIDE { in CreateAuthHandler() argument
31 handler->reset(); in CreateAuthHandler()
56 scoped_ptr<HttpAuthHandler> handler; in TEST() local
61 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); in TEST()
67 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); in TEST()
71 &handler)); in TEST()
77 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); in TEST()
81 &handler)); in TEST()
86 "basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); in TEST()
92 "Basic", HttpAuth::AUTH_SERVER, gurl, BoundNetLog(), &handler)); in TEST()
[all …]
/external/chromium_org/android_webview/native/permission/
Dpermission_request_handler_unittest.cc156 TestPermissionRequestHandler* handler() { in handler() function in android_webview::PermissionRequestHandlerTest
178 handler()->SendRequest(delegate().Pass()); in TEST_F()
180 ASSERT_EQ(1u, handler()->requests().size()); in TEST_F()
181 EXPECT_EQ(origin(), handler()->requests()[0]->GetOrigin()); in TEST_F()
182 EXPECT_EQ(resources(), handler()->requests()[0]->GetResources()); in TEST_F()
192 handler()->PruneRequests(); in TEST_F()
194 EXPECT_TRUE(handler()->requests().empty()); in TEST_F()
198 handler()->SendRequest(delegate().Pass()); in TEST_F()
200 ASSERT_EQ(1u, handler()->requests().size()); in TEST_F()
201 EXPECT_EQ(origin(), handler()->requests()[0]->GetOrigin()); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/custom_handlers/
Dprotocol_handler_registry.cc84 void SetDefault(const ProtocolHandler& handler);
129 const ProtocolHandler& handler) { in SetDefault() argument
131 ClearDefault(handler.protocol()); in SetDefault()
132 default_handlers_.insert(std::make_pair(handler.protocol(), handler)); in SetDefault()
142 ProtocolHandler handler = LookupHandler(default_handlers_, in MaybeCreateJob() local
144 if (handler.IsEmpty()) in MaybeCreateJob()
147 GURL translated_url(handler.TranslateUrl(request->url())); in MaybeCreateJob()
322 const ProtocolHandler& handler) { in SilentlyHandleRegisterHandlerRequest() argument
323 if (handler.IsEmpty() || !CanSchemeBeOverridden(handler.protocol())) in SilentlyHandleRegisterHandlerRequest()
326 if (!enabled() || IsRegistered(handler) || HasIgnoredEquivalent(handler)) in SilentlyHandleRegisterHandlerRequest()
[all …]
/external/chromium_org/content/browser/ssl/
Dssl_policy.cc34 void SSLPolicy::OnCertError(SSLCertErrorHandler* handler) { in OnCertError() argument
37 DCHECK(handler->ssl_info().is_valid()); in OnCertError()
39 backend_->QueryPolicy(*handler->ssl_info().cert.get(), in OnCertError()
40 handler->request_url().host(), in OnCertError()
41 handler->cert_error(), in OnCertError()
45 handler->ContinueRequest(); in OnCertError()
52 switch (handler->cert_error()) { in OnCertError()
59 if (!handler->fatal()) in OnCertError()
65 OnCertErrorInternal(handler, options_mask); in OnCertError()
69 handler->ContinueRequest(); in OnCertError()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/xmpp/
Dxmppstanzaparser_unittest.cc48 XmppStanzaParserTestHandler handler; in TEST() local
49 XmppStanzaParser parser(&handler); in TEST()
54 EXPECT_EQ("START<trivial/>END", handler.StrClear()); in TEST()
58 XmppStanzaParserTestHandler handler; in TEST() local
59 XmppStanzaParser parser(&handler); in TEST()
65 "xmlns:stream=\"str\"/>", handler.StrClear()); in TEST()
70 "<c:body>hello</c:body></c:message>", handler.StrClear()); in TEST()
74 EXPECT_EQ("", handler.StrClear()); in TEST()
79 "<abc xmlns=\"def\"/></c:iq>", handler.StrClear()); in TEST()
83 EXPECT_EQ("END", handler.StrClear()); in TEST()
[all …]
Dxmpplogintask_unittest.cc40 XmppTestHandler* handler() { return handler_.get(); } in handler() function in XmppLoginTaskTest
235 EXPECT_EQ("", handler()->OutputActivity()); in TEST_F()
236 EXPECT_EQ("", handler()->SessionActivity()); in TEST_F()
237 EXPECT_EQ("", handler()->StanzaActivity()); in TEST_F()
248 EXPECT_EQ("[CLOSED]", handler()->OutputActivity()); in TEST_F()
249 EXPECT_EQ("[CLOSED][ERROR-XML]", handler()->SessionActivity()); in TEST_F()
250 EXPECT_EQ("", handler()->StanzaActivity()); in TEST_F()
259 EXPECT_EQ("[CLOSED]", handler()->OutputActivity()); in TEST_F()
260 EXPECT_EQ("[CLOSED][ERROR-VERSION]", handler()->SessionActivity()); in TEST_F()
261 EXPECT_EQ("", handler()->StanzaActivity()); in TEST_F()
[all …]
Drostermodule_unittest.cc260 XmppTestHandler* handler) { in RunLogin() argument
279 XmppTestHandler handler(engine.get()); in TEST_F() local
289 engine->SetOutputHandler(&handler); in TEST_F()
290 engine->AddStanzaHandler(&handler); in TEST_F()
291 engine->SetSessionHandler(&handler); in TEST_F()
298 RunLogin(this, engine.get(), &handler); in TEST_F()
299 EXPECT_EQ("", handler.OutputActivity()); in TEST_F()
311 EXPECT_EQ(handler.OutputActivity(), in TEST_F()
317 EXPECT_EQ(handler.SessionActivity(), ""); in TEST_F()
328 EXPECT_EQ(handler.OutputActivity(), in TEST_F()
[all …]
/external/chromium_org/net/websockets/
Dwebsocket_handshake_handler_test.cc34 WebSocketHandshakeRequestHandler handler; in TEST() local
47 EXPECT_TRUE(handler.ParseRequest(kHandshakeRequestMessage, in TEST()
50 handler.RemoveHeaders(kCookieHeaders, arraysize(kCookieHeaders)); in TEST()
52 EXPECT_EQ(kHandshakeRequestMessage, handler.GetRawRequest()); in TEST()
56 WebSocketHandshakeRequestHandler handler; in TEST() local
70 EXPECT_TRUE(handler.ParseRequest(kHandshakeRequestMessage, in TEST()
73 handler.RemoveHeaders(kCookieHeaders, arraysize(kCookieHeaders)); in TEST()
75 handler.AppendHeaderIfMissing("Cookie", in TEST()
91 EXPECT_EQ(kHandshakeRequestExpectedMessage, handler.GetRawRequest()); in TEST()
95 WebSocketHandshakeResponseHandler handler; in TEST() local
[all …]
/external/chromium_org/content/browser/appcache/
Dappcache_interceptor.cc22 AppCacheRequestHandler* handler) { in SetHandler() argument
23 request->SetUserData(GetInstance(), handler); // request takes ownership in SetHandler()
52 AppCacheRequestHandler* handler = in SetExtraRequestInfo() local
54 if (handler) in SetExtraRequestInfo()
55 SetHandler(request, handler); in SetExtraRequestInfo()
63 AppCacheRequestHandler* handler = GetHandler(request); in GetExtraResponseInfo() local
64 if (handler) in GetExtraResponseInfo()
65 handler->GetExtraResponseInfo(cache_id, manifest_url); in GetExtraResponseInfo()
71 AppCacheRequestHandler* handler = GetHandler(request); in PrepareForCrossSiteTransfer() local
72 if (!handler) in PrepareForCrossSiteTransfer()
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/processor/
DProcessorStylesheetElement.java60 … StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes) in startElement() argument
64 super.startElement(handler, uri, localName, rawName, attributes); in startElement()
67 int stylesheetType = handler.getStylesheetType(); in startElement()
74 stylesheet = getStylesheetRoot(handler); in startElement()
83 Stylesheet parent = handler.getStylesheet(); in startElement()
101 stylesheet.setDOMBackPointer(handler.getOriginatingNode()); in startElement()
102 stylesheet.setLocaterInfo(handler.getLocator()); in startElement()
104 stylesheet.setPrefixes(handler.getNamespaceSupport()); in startElement()
105 handler.pushStylesheet(stylesheet); in startElement()
106 setPropertiesFromAttributes(handler, rawName, attributes, in startElement()
[all …]
DProcessorInclude.java124 … StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes) in startElement() argument
129 setPropertiesFromAttributes(handler, rawName, attributes, this); in startElement()
135 Source sourceFromURIResolver = getSourceFromUriResolver(handler); in startElement()
137 String hrefUrl = getBaseURIOfIncludedStylesheet(handler, sourceFromURIResolver); in startElement()
139 if (handler.importStackContains(hrefUrl)) in startElement()
148 handler.pushImportURL(hrefUrl); in startElement()
149 handler.pushImportSource(sourceFromURIResolver); in startElement()
151 int savedStylesheetType = handler.getStylesheetType(); in startElement()
153 handler.setStylesheetType(this.getStylesheetType()); in startElement()
154 handler.pushNewNamespaceSupport(); in startElement()
[all …]
DProcessorTemplateElem.java49 … StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes) in startElement() argument
53 super.startElement(handler, uri, localName, rawName, attributes); in startElement()
65 elem.setDOMBackPointer(handler.getOriginatingNode()); in startElement()
66 elem.setLocaterInfo(handler.getLocator()); in startElement()
67 elem.setPrefixes(handler.getNamespaceSupport()); in startElement()
71handler.error(XSLTErrorResources.ER_FAILED_CREATING_ELEMTMPL, null, ie);//"Failed creating ElemTem… in startElement()
75handler.error(XSLTErrorResources.ER_FAILED_CREATING_ELEMTMPL, null, iae);//"Failed creating ElemTe… in startElement()
78 setPropertiesFromAttributes(handler, rawName, attributes, elem); in startElement()
79 appendAndPush(handler, elem); in startElement()
99 StylesheetHandler handler, ElemTemplateElement elem) in appendAndPush() argument
[all …]
DXSLTAttributeDef.java513 StylesheetHandler handler, String uri, String name, String rawName, String value, in processAVT() argument
520 AVT avt = new AVT(handler, uri, name, rawName, value, owner); in processAVT()
544 Object processCDATA(StylesheetHandler handler, String uri, String name, in processCDATA() argument
551 AVT avt = new AVT(handler, uri, name, rawName, value, owner); in processCDATA()
578 …StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElem… in processCHAR() argument
584 AVT avt = new AVT(handler, uri, name, rawName, value, owner); in processCHAR()
588 handleError(handler, XSLTErrorResources.INVALID_TCHAR, new Object[] {name, value},null); in processCHAR()
600 handleError(handler, XSLTErrorResources.INVALID_TCHAR, new Object[] {name, value},null); in processCHAR()
622 Object processENUM(StylesheetHandler handler, String uri, String name, in processENUM() argument
631 avt = new AVT(handler, uri, name, rawName, value, owner); in processENUM()
[all …]
DProcessorLRE.java69 … StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes) in startElement() argument
75 ElemTemplateElement p = handler.getElemTemplateElement(); in startElement()
83 XSLTElementProcessor lreProcessor = handler.popProcessor(); in startElement()
85handler.getProcessorFor(Constants.S_XSLNAMESPACEURL, "stylesheet", in startElement()
88 handler.pushProcessor(lreProcessor); in startElement()
93 stylesheet = getStylesheetRoot(handler); in startElement()
103 Locator locator = handler.getLocator(); in startElement()
112 stylesheet.setPrefixes(handler.getNamespaceSupport()); in startElement()
113 handler.pushStylesheet(stylesheet); in startElement()
154 stylesheetProcessor.setPropertiesFromAttributes(handler, "stylesheet", in startElement()
[all …]
DProcessorCharacters.java47 public void startNonText(StylesheetHandler handler) throws org.xml.sax.SAXException in startNonText() argument
49 if (this == handler.getCurrentProcessor()) in startNonText()
51 handler.popProcessor(); in startNonText()
59 || handler.isSpacePreserve()) in startNonText()
64 elem.setLocaterInfo(handler.getLocator()); in startNonText()
67 elem.setPrefixes(handler.getNamespaceSupport()); in startNonText()
85 ElemTemplateElement parent = handler.getElemTemplateElement(); in startNonText()
110 StylesheetHandler handler, char ch[], int start, int length) in characters() argument
117 m_firstBackPointer = handler.getOriginatingNode(); in characters()
120 if (this != handler.getCurrentProcessor()) in characters()
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DHandlerTest.java94 Handler handler = new Handler(callback); in shouldCallProvidedHandlerCallback() local
95 handler.sendMessage(new Message()); in shouldCallProvidedHandlerCallback()
122 Handler handler = new Handler(); in testRemoveCallbacks() local
123 ShadowLooper shadowLooper = shadowOf(handler.getLooper()); in testRemoveCallbacks()
125 handler.post(scratchRunnable); in testRemoveCallbacks()
126 handler.removeCallbacks(scratchRunnable); in testRemoveCallbacks()
202 Handler handler = new Handler(); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst() local
207 handler.obtainMessage(123).sendToTarget(); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst()
208 Message frontMsg = handler.obtainMessage(345); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst()
209 boolean result = handler.sendMessageAtFrontOfQueue(frontMsg); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst()
[all …]
/external/expat/lib/
Dxmlrole.c94 ((state)->handler = ((state)->documentEntity \
98 #define setTopLevel(state) ((state)->handler = internalSubset)
136 state->handler = prolog1; in prolog0()
139 state->handler = prolog1; in prolog0()
142 state->handler = prolog1; in prolog0()
145 state->handler = prolog1; in prolog0()
155 state->handler = doctype0; in prolog0()
158 state->handler = error; in prolog0()
186 state->handler = doctype0; in prolog1()
189 state->handler = error; in prolog1()
[all …]
/external/chromium_org/third_party/expat/files/lib/
Dxmlrole.c94 ((state)->handler = ((state)->documentEntity \
98 #define setTopLevel(state) ((state)->handler = internalSubset)
136 state->handler = prolog1; in prolog0()
139 state->handler = prolog1; in prolog0()
142 state->handler = prolog1; in prolog0()
145 state->handler = prolog1; in prolog0()
155 state->handler = doctype0; in prolog0()
158 state->handler = error; in prolog0()
186 state->handler = doctype0; in prolog1()
189 state->handler = error; in prolog1()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
DBuilderExceptionHandler.java41 @Nonnull protected final Label handler; field in BuilderExceptionHandler
43 private BuilderExceptionHandler(@Nonnull Label handler) { in BuilderExceptionHandler() argument
44 this.handler = handler; in BuilderExceptionHandler()
49 return handler; in getHandler()
53 @Nonnull Label handler) { in newExceptionHandler() argument
55 return newExceptionHandler(handler); in newExceptionHandler()
57 return new BuilderExceptionHandler(handler) { in newExceptionHandler()
63 return handler.getCodeAddress(); in newExceptionHandler()
72 static BuilderExceptionHandler newExceptionHandler(@Nonnull Label handler) {
73 return new BuilderExceptionHandler(handler) {
[all …]
/external/chromium_org/third_party/libxml/src/
Dencoding.c1308 xmlCharEncodingHandlerPtr handler; in xmlNewCharEncodingHandler() local
1343 handler = (xmlCharEncodingHandlerPtr) in xmlNewCharEncodingHandler()
1345 if (handler == NULL) { in xmlNewCharEncodingHandler()
1350 handler->input = input; in xmlNewCharEncodingHandler()
1351 handler->output = output; in xmlNewCharEncodingHandler()
1352 handler->name = up; in xmlNewCharEncodingHandler()
1355 handler->iconv_in = NULL; in xmlNewCharEncodingHandler()
1356 handler->iconv_out = NULL; in xmlNewCharEncodingHandler()
1359 handler->uconv_in = NULL; in xmlNewCharEncodingHandler()
1360 handler->uconv_out = NULL; in xmlNewCharEncodingHandler()
[all …]
/external/deqp/framework/qphelper/
DqpCrashHandler.c251 qpCrashHandler* handler = (qpCrashHandler*)deCalloc(sizeof(qpCrashHandler)); in qpCrashHandler_create() local
253 if (!handler) in qpCrashHandler_create()
254 return handler; in qpCrashHandler_create()
258 handler->crashHandlerFunc = handlerFunc ? handlerFunc : defaultCrashHandler; in qpCrashHandler_create()
259 handler->handlerUserPointer = userPointer; in qpCrashHandler_create()
265 handler->crashHandlerLock = deMutex_create(&attr); in qpCrashHandler_create()
267 if (!handler->crashHandlerLock) in qpCrashHandler_create()
269 deFree(handler); in qpCrashHandler_create()
274 qpCrashInfo_init(&handler->crashInfo); in qpCrashHandler_create()
275 handler->crashAddress = 0; in qpCrashHandler_create()
[all …]

12345678910>>...56