/external/grpc-grpc/test/core/tsi/alts/frame_protector/ |
D | frame_handler_test.cc | 44 frame_handler* handler = in create_frame_handler() local 46 handler->writer = alts_create_frame_writer(); in create_frame_handler() 47 handler->reader = alts_create_frame_reader(); in create_frame_handler() 48 handler->buffer = nullptr; in create_frame_handler() 49 handler->buffer_size = 0; in create_frame_handler() 50 return handler; in create_frame_handler() 53 static void destroy_frame_handler(frame_handler* handler) { in destroy_frame_handler() argument 54 if (handler != nullptr) { in destroy_frame_handler() 55 alts_destroy_frame_reader(handler->reader); in destroy_frame_handler() 56 alts_destroy_frame_writer(handler->writer); in destroy_frame_handler() [all …]
|
/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/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/grpc-grpc/src/python/grpcio_testing/grpc_testing/_channel/ |
D | _invocation.py | 25 def _cancel(handler): argument 26 return handler.cancel(grpc.StatusCode.CANCELLED, 'Locally cancelled!') 29 def _is_active(handler): argument 30 return handler.is_active() 37 def _add_callback(handler, callback): argument 38 return handler.add_callback(callback) 41 def _initial_metadata(handler): argument 42 return handler.initial_metadata() 45 def _trailing_metadata(handler): argument 46 trailing_metadata, unused_code, unused_details = handler.termination() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowHandlerTest.java | 98 Handler handler = new Handler(callback); in shouldCallProvidedHandlerCallback() local 99 handler.sendMessage(new Message()); in shouldCallProvidedHandlerCallback() 126 Handler handler = new Handler(); in testRemoveCallbacks() local 127 ShadowLooper shadowLooper = shadowOf(handler.getLooper()); in testRemoveCallbacks() 129 handler.post(scratchRunnable); in testRemoveCallbacks() 130 handler.removeCallbacks(scratchRunnable); in testRemoveCallbacks() 233 Handler handler = new Handler(); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst() local 238 handler.obtainMessage(123).sendToTarget(); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst() 239 Message frontMsg = handler.obtainMessage(345); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst() 240 boolean result = handler.sendMessageAtFrontOfQueue(frontMsg); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst() [all …]
|
/external/grpc-grpc/src/python/grpcio_testing/grpc_testing/_server/ |
D | _server.py | 47 def _stream_unary_service(handler): argument 50 _service.stream_unary(implementation, rpc, handler, servicer_context) 55 def _stream_stream_service(handler): argument 58 _service.stream_stream(implementation, rpc, handler, servicer_context) 69 def _invoke(self, service_behavior, method_descriptor, handler, argument 73 rpc = _rpc.Rpc(handler, invocation_metadata) 74 if handler.add_termination_callback(rpc.extrinsic_abort): 86 def invoke_unary_unary(self, method_descriptor, handler, argument 89 _unary_unary_service(request), method_descriptor, handler, 92 def invoke_unary_stream(self, method_descriptor, handler, argument [all …]
|
/external/webrtc/webrtc/libjingle/xmpp/ |
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 | 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 | 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 …]
|
/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 …]
|
/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/grpc-grpc/src/objective-c/tests/ |
D | RxLibraryUnitTests.m | 37 + (instancetype)handler; class 41 + (instancetype)handler { class 69 CapturingSingleValueHandler *handler = [CapturingSingleValueHandler handler]; 73 id<GRXWriteable> writeable = [GRXWriteable writeableWithSingleHandler:handler.block]; 78 XCTAssertEqual(handler.timesCalled, 1); 79 XCTAssertEqualObjects(handler.value, anyValue); 80 XCTAssertEqualObjects(handler.errorOrNil, nil); 85 CapturingSingleValueHandler *handler = [CapturingSingleValueHandler handler]; 89 id<GRXWriteable> writeable = [GRXWriteable writeableWithSingleHandler:handler.block]; 93 XCTAssertEqual(handler.timesCalled, 1); [all …]
|
/external/expat/lib/ |
D | xmlrole.c | 116 ((state)->handler = ((state)->documentEntity \ 120 #define setTopLevel(state) ((state)->handler = internalSubset) 158 state->handler = prolog1; in prolog0() 161 state->handler = prolog1; in prolog0() 164 state->handler = prolog1; in prolog0() 167 state->handler = prolog1; in prolog0() 177 state->handler = doctype0; in prolog0() 180 state->handler = error; in prolog0() 215 state->handler = doctype0; in prolog1() 218 state->handler = error; in prolog1() [all …]
|
/external/python/cpython3/Modules/expat/ |
D | xmlrole.c | 116 ((state)->handler = ((state)->documentEntity \ 120 #define setTopLevel(state) ((state)->handler = internalSubset) 158 state->handler = prolog1; in prolog0() 161 state->handler = prolog1; in prolog0() 164 state->handler = prolog1; in prolog0() 167 state->handler = prolog1; in prolog0() 177 state->handler = doctype0; in prolog0() 180 state->handler = error; in prolog0() 215 state->handler = doctype0; in prolog1() 218 state->handler = error; in prolog1() [all …]
|
/external/python/cpython2/Modules/expat/ |
D | xmlrole.c | 116 ((state)->handler = ((state)->documentEntity \ 120 #define setTopLevel(state) ((state)->handler = internalSubset) 158 state->handler = prolog1; in prolog0() 161 state->handler = prolog1; in prolog0() 164 state->handler = prolog1; in prolog0() 167 state->handler = prolog1; in prolog0() 177 state->handler = doctype0; in prolog0() 180 state->handler = error; in prolog0() 215 state->handler = doctype0; in prolog1() 218 state->handler = error; in prolog1() [all …]
|
/external/libchrome/base/message_loop/ |
D | message_loop_io_posix_unittest.cc | 134 TestHandler handler; in TEST_F() local 140 &handler); in TEST_F() 144 ASSERT_FALSE(handler.is_readable_); in TEST_F() 145 ASSERT_FALSE(handler.is_writable_); in TEST_F() 156 TestHandler handler; in TEST_F() local 159 &handler); in TEST_F() 170 TestHandler handler; in TEST_F() local 171 handler.watcher_to_delete_ = in TEST_F() 176 handler.watcher_to_delete_.get(), &handler); in TEST_F() 184 TestHandler handler; in TEST_F() local [all …]
|
/external/libxcam/xcore/ |
D | smart_analyzer.cpp | 40 SmartAnalyzer::add_handler (SmartPtr<SmartAnalysisHandler> handler) in add_handler() argument 43 if (!handler.ptr ()) { in add_handler() 47 _handlers.push_back (handler); in add_handler() 48 handler->set_analyzer (this); in add_handler() 78 SmartPtr<SmartAnalysisHandler> handler = *i_handler; in internal_init() local 79 XCamReturn ret = handler->create_context (handler); in internal_init() 81 …OG_WARNING ("smart analyzer initialize handler(%s) context failed", XCAM_STR(handler->get_name())); in internal_init() 94 SmartPtr<SmartAnalysisHandler> handler = *i_handler; in internal_deinit() local 95 if (handler->is_valid ()) in internal_deinit() 96 handler->destroy_context (); in internal_deinit() [all …]
|
/external/v8/src/ic/ |
D | handler-configuration.cc | 29 int InitPrototypeChecksImpl(Isolate* isolate, Handle<ICHandler> handler, in InitPrototypeChecksImpl() argument 48 handler->set_data2(HeapObjectReference::Weak(*native_context)); in InitPrototypeChecksImpl() 64 handler->set_data1(*data1); in InitPrototypeChecksImpl() 71 handler->set_data2(*maybe_data2); in InitPrototypeChecksImpl() 74 handler->set_data3(*maybe_data2); in InitPrototypeChecksImpl() 100 void InitPrototypeChecks(Isolate* isolate, Handle<ICHandler> handler, in InitPrototypeChecks() argument 105 isolate, handler, nullptr, receiver_map, holder, data1, maybe_data2); in InitPrototypeChecks() 131 Handle<LoadHandler> handler = isolate->factory()->NewLoadHandler(data_count); in LoadFromPrototype() local 133 handler->set_smi_handler(*smi_handler); in LoadFromPrototype() 134 handler->set_validity_cell(*validity_cell); in LoadFromPrototype() [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/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/wpa_supplicant_8/src/common/ |
D | gas_server.c | 41 struct gas_server_handler *handler; member 65 response->handler->status_cb(response->handler->ctx, in gas_server_response_timeout() 85 gas_server_send_resp(struct gas_server *gas, struct gas_server_handler *handler, in gas_server_send_resp() argument 90 size_t hdr_len = 24 + 2 + 5 + 3 + handler->adv_proto_id_len + 2; in gas_server_send_resp() 106 response->handler = handler; in gas_server_send_resp() 121 handler->adv_proto_id_len + in gas_server_send_resp() 131 wpabuf_put_u8(resp, 1 + handler->adv_proto_id_len); /* Length */ in gas_server_send_resp() 134 wpabuf_put_data(resp, handler->adv_proto_id, handler->adv_proto_id_len); in gas_server_send_resp() 166 struct gas_server_handler *handler; in gas_server_rx_initial_req() local 213 dl_list_for_each(handler, &gas->handlers, struct gas_server_handler, in gas_server_rx_initial_req() [all …]
|