/external/webrtc/webrtc/libjingle/xmllite/ |
D | xmlparser_unittest.cc | 69 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/v8/test/mjsunit/harmony/ |
D | proxies-prototype-handler-stackoverflow.js | 11 var handler = {}; 12 var p = new Proxy({}, handler); 13 handler.__proto__ = p; 18 var handler = {}; 19 var p = new Proxy({}, handler); 20 handler.__proto__ = p; 25 var handler = {}; 26 var p = new Proxy({}, handler); 27 handler.__proto__ = p; 34 var handler = {}; [all …]
|
D | proxies.js | 44 test((handler) => { return new Proxy({}, handler) }, x, y, z) 49 test((handler) => { return new Proxy(() => {}, handler) }, x, y, z) 57 function TestGetOwnProperty(handler) { argument 58 TestWithProxies(TestGetOwnProperty2, handler) 61 function TestGetOwnProperty2(create, handler) { argument 62 var p = create(handler) 101 function TestGetOwnPropertyThrow(handler) { argument 102 TestWithProxies(TestGetOwnPropertyThrow2, handler) 105 function TestGetOwnPropertyThrow2(create, handler) { argument 106 var p = create(handler) [all …]
|
D | proxies-set.js | 50 function TestForwarding(handler, mySet) { argument 51 assertTrue(undefined == handler.set); 52 assertTrue(undefined == handler.getOwnPropertyDescriptor); 53 assertTrue(undefined == handler.defineProperty); 56 var proxy = new Proxy(target, handler); 82 var handler = {}; 83 TestForwarding(handler, sloppyDefaultSet); 84 TestForwarding(handler, sloppyReflectSet); 85 TestForwarding(handler, strictDefaultSet); 86 TestForwarding(handler, strictReflectSet); [all …]
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
D | MemoryHandlerTest.java | 58 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 …]
|
D | FileHandlerTest.java | 59 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/webrtc/webrtc/libjingle/xmpp/ |
D | xmppstanzaparser_unittest.cc | 55 XmppStanzaParserTestHandler handler; in TEST() local 56 XmppStanzaParser parser(&handler); in TEST() 61 EXPECT_EQ("START<trivial/>END", handler.StrClear()); in TEST() 65 XmppStanzaParserTestHandler handler; in TEST() local 66 XmppStanzaParser parser(&handler); in TEST() 72 "xmlns:stream=\"str\"/>", handler.StrClear()); in TEST() 77 "<c:body>hello</c:body></c:message>", handler.StrClear()); in TEST() 81 EXPECT_EQ("", handler.StrClear()); in TEST() 86 "<abc xmlns=\"def\"/></c:iq>", handler.StrClear()); in TEST() 90 EXPECT_EQ("END", handler.StrClear()); in TEST() [all …]
|
D | xmpplogintask_unittest.cc | 47 XmppTestHandler* handler() { return handler_.get(); } in handler() function in XmppLoginTaskTest 255 EXPECT_EQ("", handler()->OutputActivity()); in TEST_F() 256 EXPECT_EQ("", handler()->SessionActivity()); in TEST_F() 257 EXPECT_EQ("", handler()->StanzaActivity()); in TEST_F() 268 EXPECT_EQ("[CLOSED]", handler()->OutputActivity()); in TEST_F() 269 EXPECT_EQ("[CLOSED][ERROR-XML]", handler()->SessionActivity()); in TEST_F() 270 EXPECT_EQ("", handler()->StanzaActivity()); in TEST_F() 279 EXPECT_EQ("[CLOSED]", handler()->OutputActivity()); in TEST_F() 280 EXPECT_EQ("[CLOSED][ERROR-VERSION]", handler()->SessionActivity()); in TEST_F() 281 EXPECT_EQ("", handler()->StanzaActivity()); in TEST_F() [all …]
|
D | rostermodule_unittest.cc | 243 XmppTestHandler* handler) { in RunLogin() argument 262 XmppTestHandler handler(engine.get()); in TEST_F() local 272 engine->SetOutputHandler(&handler); in TEST_F() 273 engine->AddStanzaHandler(&handler); in TEST_F() 274 engine->SetSessionHandler(&handler); in TEST_F() 281 RunLogin(this, engine.get(), &handler); in TEST_F() 282 EXPECT_EQ("", handler.OutputActivity()); in TEST_F() 294 EXPECT_EQ(handler.OutputActivity(), in TEST_F() 300 EXPECT_EQ(handler.SessionActivity(), ""); in TEST_F() 311 EXPECT_EQ(handler.OutputActivity(), in TEST_F() [all …]
|
D | xmppengine_unittest.cc | 58 XmppTestHandler* handler() { return handler_.get(); } in handler() function in XmppEngineTest 205 EXPECT_EQ("</stream:stream>[CLOSED]", handler()->OutputActivity()); in TEST_F() 206 EXPECT_EQ("[CLOSED]", handler()->SessionActivity()); in TEST_F() 207 EXPECT_EQ("", handler()->StanzaActivity()); in TEST_F() 213 EXPECT_EQ("[CLOSED]", handler()->OutputActivity()); in TEST_F() 214 EXPECT_EQ("[CLOSED][ERROR-CONNECTION-CLOSED]", handler()->SessionActivity()); in TEST_F() 215 EXPECT_EQ("", handler()->StanzaActivity()); in TEST_F() 226 "xmlns=\"jabber:client\">\r\n", handler()->OutputActivity()); in TEST_F() 232 EXPECT_EQ("[CLOSED]", handler()->OutputActivity()); in TEST_F() 233 EXPECT_EQ("[OPENING][CLOSED][ERROR-XML]", handler()->SessionActivity()); in TEST_F() [all …]
|
/external/apache-xml/src/main/java/org/apache/xalan/processor/ |
D | ProcessorInclude.java | 124 … 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 …]
|
D | ProcessorStylesheetElement.java | 60 … 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 …]
|
D | XSLTAttributeDef.java | 513 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 …]
|
D | ProcessorLRE.java | 69 … 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() 85 … handler.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 …]
|
D | ProcessorTemplateElem.java | 49 … 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() 71 …handler.error(XSLTErrorResources.ER_FAILED_CREATING_ELEMTMPL, null, ie);//"Failed creating ElemTem… in startElement() 75 …handler.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 …]
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | HandlerTest.java | 94 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/google-breakpad/src/common/dwarf/ |
D | dwarf2reader_cfi_unittest.cc | 154 EXPECT_CALL(handler, UndefinedRule(_, _)).Times(0); in CFIFixture() 155 EXPECT_CALL(handler, SameValueRule(_, _)).Times(0); in CFIFixture() 156 EXPECT_CALL(handler, OffsetRule(_, _, _, _)).Times(0); in CFIFixture() 157 EXPECT_CALL(handler, ValOffsetRule(_, _, _, _)).Times(0); in CFIFixture() 158 EXPECT_CALL(handler, RegisterRule(_, _, _)).Times(0); in CFIFixture() 159 EXPECT_CALL(handler, ExpressionRule(_, _, _)).Times(0); in CFIFixture() 160 EXPECT_CALL(handler, ValExpressionRule(_, _, _)).Times(0); in CFIFixture() 161 EXPECT_CALL(handler, PersonalityRoutine(_, _)).Times(0); in CFIFixture() 162 EXPECT_CALL(handler, LanguageSpecificDataArea(_, _)).Times(0); in CFIFixture() 163 EXPECT_CALL(handler, SignalHandler()).Times(0); in CFIFixture() [all …]
|
/external/expat/lib/ |
D | xmlrole.c | 94 ((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/libvncserver/libvncserver/ |
D | auth.c | 49 rfbRegisterSecurityHandler(rfbSecurityHandler* handler) in rfbRegisterSecurityHandler() argument 53 if(handler == NULL) in rfbRegisterSecurityHandler() 56 next = handler->next; in rfbRegisterSecurityHandler() 59 if(head == handler) { in rfbRegisterSecurityHandler() 67 handler->next = securityHandlers; in rfbRegisterSecurityHandler() 68 securityHandlers = handler; in rfbRegisterSecurityHandler() 79 rfbUnregisterSecurityHandler(rfbSecurityHandler* handler) in rfbUnregisterSecurityHandler() argument 83 if(handler == NULL) in rfbUnregisterSecurityHandler() 86 if(securityHandlers == handler) { in rfbUnregisterSecurityHandler() 88 rfbUnregisterSecurityHandler(handler->next); in rfbUnregisterSecurityHandler() [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/ |
D | BuilderExceptionHandler.java | 41 @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/icu/icu4c/source/i18n/ |
D | digitaffixesandpadding.cpp | 36 FieldPositionHandler &handler, in formatInt32() argument 50 handler, in formatInt32() 61 prefix->format(handler, appendTo); in formatInt32() 62 formatter.formatInt32(value, handler, appendTo); in formatInt32() 63 return suffix->format(handler, appendTo); in formatInt32() 69 FieldPositionHandler &handler, in formatAffix() argument 72 affix->format(handler, appendTo); in formatAffix() 89 FieldPositionHandler &handler, in format() argument 112 formatAffix(prefix, handler, appendTo); in format() 113 formatter.format(digits, handler, appendTo); in format() [all …]
|
/external/smali/util/src/test/java/org/jf/util/ |
D | ClassFileNameHandlerTest.java | 122 ClassFileNameHandler handler = new ClassFileNameHandler(tempDir, ".smali"); in testMultipleLongNames() local 126 …File file1 = handler.getUniqueFilenameForClass("La/a/" + filenameFragment + "1" + filenameFragmen… in testMultipleLongNames() 129 …File file2 = handler.getUniqueFilenameForClass("La/a/" + filenameFragment + "2" + filenameFragment… in testMultipleLongNames() 138 ClassFileNameHandler handler = new ClassFileNameHandler(tempDir, ".smali"); in testBasicFunctionality() local 140 File file = handler.getUniqueFilenameForClass("La/b/c/d;"); in testBasicFunctionality() 143 file = handler.getUniqueFilenameForClass("La/b/c/e;"); in testBasicFunctionality() 146 file = handler.getUniqueFilenameForClass("La/b/d/d;"); in testBasicFunctionality() 149 file = handler.getUniqueFilenameForClass("La/b;"); in testBasicFunctionality() 152 file = handler.getUniqueFilenameForClass("Lb;"); in testBasicFunctionality() 159 ClassFileNameHandler handler = new ClassFileNameHandler(tempDir, ".smali", false, false); in testCaseInsensitiveFilesystem() local [all …]
|
/external/libbrillo/brillo/dbus/ |
D | dbus_object.h | 125 const base::Callback<R(Args...)>& handler) { in AddSimpleMethodHandler() argument 127 this, method_name, handler); in AddSimpleMethodHandler() 134 R(*handler)(Args...)) { in AddSimpleMethodHandler() 136 this, method_name, base::Bind(handler)); in AddSimpleMethodHandler() 144 R(Class::*handler)(Args...)) { in AddSimpleMethodHandler() 146 this, method_name, base::Bind(handler, instance)); in AddSimpleMethodHandler() 153 R(Class::*handler)(Args...) const) { in AddSimpleMethodHandler() 155 this, method_name, base::Bind(handler, instance)); in AddSimpleMethodHandler() 162 const base::Callback<bool(ErrorPtr*, Args...)>& handler) { in AddSimpleMethodHandlerWithError() argument 164 this, method_name, handler); in AddSimpleMethodHandlerWithError() [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/webapp/ |
D | service_handlers_test.py | 182 handler = factory() 184 self.assertTrue(isinstance(handler, service_handlers.ServiceHandler)) 185 self.assertTrue(isinstance(handler.service, Service)) 299 mapper.build_response(self.handler, 306 self.assertRaises(NotImplementedError, self.handler.redirect, '/') 311 self.handler, Request1).AndReturn(self.request) 313 def build_response(handler, response): argument 317 handler.response.headers['content-type'] = ( 319 handler.response.out.write(output) 321 self.handler, mox.IsA(Response1)).WithSideEffects(build_response) [all …]
|
/external/google-breakpad/src/common/ |
D | dwarf_cfi_to_module_unittest.cc | 61 handler(&module, register_names, &reporter) { in DwarfCFIToModuleFixture() 82 DwarfCFIToModule handler; member 89 ASSERT_TRUE(handler.Entry(0x3b8961b8, 0xa21069698096fc98ULL, in TEST_F() 91 ASSERT_TRUE(handler.End()); in TEST_F() 101 ASSERT_TRUE(handler.Entry(0xeb60e0fc, 0x75b8806bb09eab78ULL, in TEST_F() 103 ASSERT_TRUE(handler.End()); in TEST_F() 119 ASSERT_TRUE(handler.Entry(0x4445c05c, entry_address, entry_size, in StartEntry() 137 ASSERT_TRUE(handler.UndefinedRule(entry_address, 7)); in TEST_F() 138 ASSERT_TRUE(handler.End()); in TEST_F() 148 ASSERT_TRUE(handler.UndefinedRule(entry_address, 10)); in TEST_F() [all …]
|