/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/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/llvm-project/flang/runtime/ |
D | unit.cpp | 32 IoErrorHandler handler{terminator}; in FlushOutputOnCrash() local 33 handler.HasIoStat(); // prevent nested crash if flush has error in FlushOutputOnCrash() 34 defaultOutput->Flush(handler); in FlushOutputOnCrash() 62 IoErrorHandler handler{terminator}; in LookUpOrCreateAnonymous() local 65 Action::ReadWrite, Position::Rewind, Convert::Native, handler); in LookUpOrCreateAnonymous() 94 Convert convert, IoErrorHandler &handler) { in OpenUnit() argument 111 DoImpliedEndfile(handler); in OpenUnit() 112 Flush(handler); in OpenUnit() 113 Close(CloseStatus::Keep, handler); in OpenUnit() 116 Open(status, action, position, handler); in OpenUnit() [all …]
|
D | file.cpp | 33 static int openfile_mkstemp(IoErrorHandler &handler) { in openfile_mkstemp() argument 54 handler.SignalErrno(); in openfile_mkstemp() 63 Position position, IoErrorHandler &handler) { in Open() argument 73 handler.SignalErrno(); in Open() 80 handler.SignalError("FILE= must not appear with STATUS='SCRATCH'"); in Open() 86 fd_ = openfile_mkstemp(handler); in Open() 89 handler.SignalError("FILE= is required"); in Open() 124 handler.SignalErrno(); in Open() 128 RUNTIME_CHECK(handler, action.has_value()); in Open() 131 handler.SignalErrno(); in Open() [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 | 99 Handler handler = new Handler(callback); in shouldCallProvidedHandlerCallback() local 100 handler.sendMessage(new Message()); in shouldCallProvidedHandlerCallback() 127 Handler handler = new Handler(); in testRemoveCallbacks() local 128 ShadowLooper shadowLooper = shadowOf(handler.getLooper()); in testRemoveCallbacks() 130 handler.post(scratchRunnable); in testRemoveCallbacks() 131 handler.removeCallbacks(scratchRunnable); in testRemoveCallbacks() 234 Handler handler = new Handler(); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst() local 239 handler.obtainMessage(123).sendToTarget(); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst() 240 Message frontMsg = handler.obtainMessage(345); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst() 241 boolean result = handler.sendMessageAtFrontOfQueue(frontMsg); in testSendMessageAtFrontOfQueueThenRunMainLooperOneMsgAtATime_shouldRunFrontOfQueueMsgFirst() [all …]
|
/external/pigweed/pw_rpc/nanopb/ |
D | nanopb_client_call_test.cc | 67 TestUnaryResponseHandler<pw_rpc_test_TestResponse> handler; in TEST() local 70 context.channel(), {.integer = 123, .status_code = 0}, handler); in TEST() 84 TestUnaryResponseHandler<pw_rpc_test_TestResponse> handler; in TEST() local 87 context.channel(), {.integer = 123, .status_code = 0}, handler); in TEST() 92 ASSERT_EQ(handler.responses_received(), 1u); in TEST() 93 EXPECT_EQ(handler.last_status(), OkStatus()); in TEST() 94 EXPECT_EQ(handler.last_response().value, 42); in TEST() 99 TestUnaryResponseHandler<pw_rpc_test_TestResponse> handler; in TEST() local 102 context.channel(), {.integer = 123, .status_code = 0}, handler); in TEST() 108 EXPECT_EQ(handler.responses_received(), 0u); in TEST() [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/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 …]
|
/external/google-breakpad/src/common/dwarf/ |
D | dwarf2reader_cfi_unittest.cc | 159 EXPECT_CALL(handler, UndefinedRule(_, _)).Times(0); in CFIFixture() 160 EXPECT_CALL(handler, SameValueRule(_, _)).Times(0); in CFIFixture() 161 EXPECT_CALL(handler, OffsetRule(_, _, _, _)).Times(0); in CFIFixture() 162 EXPECT_CALL(handler, ValOffsetRule(_, _, _, _)).Times(0); in CFIFixture() 163 EXPECT_CALL(handler, RegisterRule(_, _, _)).Times(0); in CFIFixture() 164 EXPECT_CALL(handler, ExpressionRule(_, _, _)).Times(0); in CFIFixture() 165 EXPECT_CALL(handler, ValExpressionRule(_, _, _)).Times(0); in CFIFixture() 166 EXPECT_CALL(handler, PersonalityRoutine(_, _)).Times(0); in CFIFixture() 167 EXPECT_CALL(handler, LanguageSpecificDataArea(_, _)).Times(0); in CFIFixture() 168 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/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/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | FakeClock.java | 121 HandlerWrapper handler, Runnable runnable, long timeMs) { in addHandlerMessageAtTime() argument 123 return handler.post(runnable); in addHandlerMessageAtTime() 125 handlerMessages.add(new HandlerMessageData(timeMs, handler, runnable)); in addHandlerMessageAtTime() 131 HandlerWrapper handler, int message, long timeMs) { in addHandlerMessageAtTime() argument 133 return handler.sendEmptyMessage(message); in addHandlerMessageAtTime() 135 handlerMessages.add(new HandlerMessageData(timeMs, handler, message)); in addHandlerMessageAtTime() 143 private final HandlerWrapper handler; field in FakeClock.HandlerMessageData 147 public HandlerMessageData(long postTime, HandlerWrapper handler, Runnable runnable) { in HandlerMessageData() argument 149 this.handler = handler; in HandlerMessageData() 154 public HandlerMessageData(long postTime, HandlerWrapper handler, int message) { in HandlerMessageData() argument [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/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/video/ |
D | VideoRendererEventListener.java | 137 @Nullable private final Handler handler; field in VideoRendererEventListener.EventDispatcher 145 public EventDispatcher(@Nullable Handler handler, in EventDispatcher() argument 147 this.handler = listener != null ? Assertions.checkNotNull(handler) : null; in EventDispatcher() 153 if (handler != null) { in enabled() 154 handler.post(() -> castNonNull(listener).onVideoEnabled(decoderCounters)); in enabled() 161 if (handler != null) { in decoderInitialized() 162 handler.post( in decoderInitialized() 172 if (handler != null) { in inputFormatChanged() 173 handler.post(() -> castNonNull(listener).onVideoInputFormatChanged(format)); in inputFormatChanged() 179 if (handler != null) { in droppedFrames() [all …]
|
/external/expat/lib/ |
D | xmlrole.c | 110 ((state)->handler \ 113 # define setTopLevel(state) ((state)->handler = internalSubset) 139 state->handler = prolog1; in prolog0() 142 state->handler = prolog1; in prolog0() 145 state->handler = prolog1; in prolog0() 148 state->handler = prolog1; in prolog0() 156 state->handler = doctype0; in prolog0() 159 state->handler = error; in prolog0() 188 state->handler = doctype0; in prolog1() 191 state->handler = error; in prolog1() [all …]
|
/external/python/cpython3/Modules/expat/ |
D | xmlrole.c | 110 ((state)->handler \ 113 # define setTopLevel(state) ((state)->handler = internalSubset) 139 state->handler = prolog1; in prolog0() 142 state->handler = prolog1; in prolog0() 145 state->handler = prolog1; in prolog0() 148 state->handler = prolog1; in prolog0() 156 state->handler = doctype0; in prolog0() 159 state->handler = error; in prolog0() 188 state->handler = doctype0; in prolog1() 191 state->handler = error; in prolog1() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/ |
D | AudioRendererEventListener.java | 97 @Nullable private final Handler handler; field in AudioRendererEventListener.EventDispatcher 105 public EventDispatcher(@Nullable Handler handler, in EventDispatcher() argument 107 this.handler = listener != null ? Assertions.checkNotNull(handler) : null; in EventDispatcher() 115 if (handler != null) { in enabled() 116 handler.post(() -> castNonNull(listener).onAudioEnabled(decoderCounters)); in enabled() 125 if (handler != null) { in decoderInitialized() 126 handler.post( in decoderInitialized() 138 if (handler != null) { in inputFormatChanged() 139 handler.post(() -> castNonNull(listener).onAudioInputFormatChanged(format)); in inputFormatChanged() 148 if (handler != null) { in audioTrackUnderrun() [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/pigweed/pw_protobuf/ |
D | decoder_test.cc | 161 TestDecodeHandler handler; in TEST() local 180 decoder.set_handler(&handler); in TEST() 183 EXPECT_TRUE(handler.called); in TEST() 184 EXPECT_EQ(handler.test_int32, 42); in TEST() 185 EXPECT_EQ(handler.test_sint32, -13); in TEST() 186 EXPECT_FALSE(handler.test_bool); in TEST() 187 EXPECT_EQ(handler.test_double, 3.14159); in TEST() 188 EXPECT_EQ(handler.test_fixed32, 0xdeadbeef); in TEST() 189 EXPECT_STREQ(handler.test_string, "Hello world"); in TEST() 194 TestDecodeHandler handler; in TEST() local [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/ |
D | SystemHandlerWrapper.java | 25 private final android.os.Handler handler; field in SystemHandlerWrapper 27 public SystemHandlerWrapper(android.os.Handler handler) { in SystemHandlerWrapper() argument 28 this.handler = handler; in SystemHandlerWrapper() 33 return handler.getLooper(); in getLooper() 38 return handler.obtainMessage(what); in obtainMessage() 43 return handler.obtainMessage(what, obj); in obtainMessage() 48 return handler.obtainMessage(what, arg1, arg2); in obtainMessage() 53 return handler.obtainMessage(what, arg1, arg2, obj); in obtainMessage() 58 return handler.sendEmptyMessage(what); in sendEmptyMessage() 63 return handler.sendEmptyMessageAtTime(what, uptimeMs); in sendEmptyMessageAtTime() [all …]
|