Home
last modified time | relevance | path

Searched refs:old_handler (Results 1 – 25 of 33) sorted by relevance

12

/external/cronet/third_party/protobuf/src/google/protobuf/stubs/
Dcommon_unittest.cc105 LogHandler* old_handler = SetLogHandler(nullptr); in TEST() local
112 EXPECT_TRUE(SetLogHandler(old_handler) == nullptr); in TEST()
121 LogHandler* old_handler = SetLogHandler(&CaptureLog); in TEST() local
127 EXPECT_TRUE(SetLogHandler(old_handler) == &CaptureLog); in TEST()
141 LogHandler* old_handler = SetLogHandler(&CaptureLog); in TEST() local
153 EXPECT_TRUE(SetLogHandler(old_handler) == &CaptureLog); in TEST()
/external/protobuf/src/google/protobuf/stubs/
Dcommon_unittest.cc105 LogHandler* old_handler = SetLogHandler(nullptr); in TEST() local
112 EXPECT_TRUE(SetLogHandler(old_handler) == nullptr); in TEST()
121 LogHandler* old_handler = SetLogHandler(&CaptureLog); in TEST() local
127 EXPECT_TRUE(SetLogHandler(old_handler) == &CaptureLog); in TEST()
141 LogHandler* old_handler = SetLogHandler(&CaptureLog); in TEST() local
153 EXPECT_TRUE(SetLogHandler(old_handler) == &CaptureLog); in TEST()
/external/libepoxy/test/
Dglx_public_api_core.c157 int (*old_handler)(Display *, XErrorEvent *); in main() local
168 old_handler = XSetErrorHandler(error_handler); in main()
172 XSetErrorHandler(old_handler); in main()
/external/ltp/lib/
Dtst_virt.c133 void *old_handler = signal(SIGCHLD, SIG_DFL); in try_systemd_detect_virt() local
137 signal(SIGCHLD, old_handler); in try_systemd_detect_virt()
146 signal(SIGCHLD, old_handler); in try_systemd_detect_virt()
Dtst_cmd.c69 void *old_handler = signal(SIGCHLD, SIG_DFL); in tst_cmd_fds_() local
110 signal(SIGCHLD, old_handler); in tst_cmd_fds_()
184 void *old_handler = signal(SIGCHLD, SIG_DFL); in tst_system() local
188 signal(SIGCHLD, old_handler); in tst_system()
/external/python/cpython2/Modules/
Dsignalmodule.c267 PyObject *old_handler; in signal_signal() local
321 old_handler = Handlers[sig_num].func; in signal_signal()
324 if (old_handler != NULL) in signal_signal()
325 return old_handler; in signal_signal()
346 PyObject *old_handler; in signal_getsignal() local
354 old_handler = Handlers[sig_num].func; in signal_getsignal()
355 if (old_handler != NULL) { in signal_getsignal()
356 Py_INCREF(old_handler); in signal_getsignal()
357 return old_handler; in signal_getsignal()
/external/python/cpython3/Lib/test/
Dtest_threadsignals.py153 old_handler = signal.signal(signal.SIGUSR1, my_handler)
178 signal.signal(signal.SIGUSR1, old_handler)
203 old_handler = signal.signal(signal.SIGUSR1, my_handler)
230 signal.signal(signal.SIGUSR1, old_handler)
Dtest_signal.py1144 old_handler = signal.signal(signum, handler)
1145 self.addCleanup(signal.signal, signum, old_handler)
1290 old_handler = signal.signal(signum, custom_handler)
1291 self.addCleanup(signal.signal, signum, old_handler)
D_test_eintr.py391 old_handler = signal.signal(signum, lambda *args: None)
392 self.addCleanup(signal.signal, signum, old_handler)
/external/mesa3d/src/mesa/drivers/x11/
Dxm_buffer.c74 int (*old_handler)(XMesaDisplay *, XErrorEvent *); in alloc_back_shm_ximage() local
118 old_handler = XSetErrorHandler(mesaHandleXError); in alloc_back_shm_ximage()
132 (void) XSetErrorHandler(old_handler); in alloc_back_shm_ximage()
144 (void) XSetErrorHandler(old_handler); in alloc_back_shm_ximage()
452 int (*old_handler)(XMesaDisplay *, XErrorEvent *); in xmesa_MapRenderbuffer() local
461 old_handler = XSetErrorHandler(mesaHandleXError); in xmesa_MapRenderbuffer()
468 XSetErrorHandler(old_handler); in xmesa_MapRenderbuffer()
/external/google-breakpad/src/client/solaris/handler/
Dexception_handler.cc200 SignalHandler old_handler = in HandleException() local
202 if (old_handler != NULL) in HandleException()
203 old_handler(signo); in HandleException()
/external/rust/crates/nix/test/
Dtest_timer.rs38 let old_handler = unsafe { in alarm_fires() localVariable
100 sigaction(SIG, &old_handler).expect("unable to reset signal handler"); in alarm_fires()
/external/perfetto/src/base/
Ddebug_crash_stack_trace.cc61 struct sigaction old_handler; member
112 sigaction(g_signals[i].sig_num, &g_signals[i].old_handler, nullptr); in RestoreSignalHandlers()
256 sigaction(g_signals[i].sig_num, &sigact, &g_signals[i].old_handler); in EnableStacktraceOnCrashForDebug()
/external/python/cpython3/Modules/
Dsignalmodule.c505 PyObject *old_handler; in signal_signal_impl() local
561 old_handler = get_handler(signalnum); in signal_signal_impl()
564 if (old_handler != NULL) { in signal_signal_impl()
565 return old_handler; in signal_signal_impl()
592 PyObject *old_handler; in signal_getsignal_impl() local
598 old_handler = get_handler(signalnum); in signal_getsignal_impl()
599 if (old_handler != NULL) { in signal_getsignal_impl()
600 return Py_NewRef(old_handler); in signal_getsignal_impl()
/external/autotest/client/common_lib/cros/
Dretry.py117 old_handler = signal.getsignal(signal.SIGALRM)
142 if install_sigalarm_handler(old_handler) and old_timeout_time:
/external/mesa3d/src/glx/apple/
Dapple_glx_drawable.c368 int (*old_handler) (Display *, XErrorEvent *); in apple_glx_garbage_collect_drawables() local
374 old_handler = XSetErrorHandler(error_handler); in apple_glx_garbage_collect_drawables()
420 XSetErrorHandler(old_handler); in apple_glx_garbage_collect_drawables()
/external/mesa3d/src/gallium/winsys/sw/xlib/
Dxlib_sw_winsys.c160 int (*old_handler)(Display *, XErrorEvent *); in alloc_shm_ximage() local
177 old_handler = XSetErrorHandler(handle_xerror); in alloc_shm_ximage()
194 (void) XSetErrorHandler(old_handler); in alloc_shm_ximage()
/external/cronet/base/android/
Dreached_code_profiler.cc139 struct sigaction old_handler; in Start() local
144 int ret = sigaction(kProfilerSignal, &sa, &old_handler); in Start()
/external/perfetto/python/tools/
Dcpu_profile.py363 old_handler = signal.signal(signal.SIGINT, sigint_handler)
377 signal.signal(signal.SIGINT, old_handler)
Dheap_profile.py436 old_handler = signal.signal(signal.SIGINT, sigint_handler)
448 signal.signal(signal.SIGINT, old_handler)
/external/perfetto/tools/
Dcpu_profile626 old_handler = signal.signal(signal.SIGINT, sigint_handler)
640 signal.signal(signal.SIGINT, old_handler)
Dheap_profile699 old_handler = signal.signal(signal.SIGINT, sigint_handler)
711 signal.signal(signal.SIGINT, old_handler)
/external/mesa3d/src/glx/
Ddrisw_glx.c76 int (*old_handler)(Display *, XErrorEvent *); in XCreateDrawable() local
81 old_handler = XSetErrorHandler(handle_xerror); in XCreateDrawable()
92 (void) XSetErrorHandler(old_handler); in XCreateDrawable()
/external/mesa3d/src/gallium/frontends/glx/xlib/
Dxm_api.c348 int (*old_handler)( Display*, XErrorEvent* ); in window_exists() local
350 old_handler = XSetErrorHandler(window_exists_err_handler); in window_exists()
352 XSetErrorHandler(old_handler); in window_exists()
/external/google-breakpad/src/client/linux/handler/
Dexception_handler_unittest.cc456 sighandler_t old_handler = signal(SIGSEGV, SIG_DFL); in TEST() local
457 ASSERT_NE(reinterpret_cast<void*>(old_handler), in TEST()
459 ASSERT_NE(reinterpret_cast<void*>(signal(SIGSEGV, old_handler)), in TEST()

12