Home
last modified time | relevance | path

Searched full:signal (Results 1 – 25 of 22396) sorted by relevance

12345678910>>...896

/aosp_15_r20/prebuilts/go/linux-x86/src/runtime/
Dsigtab_aix.go18 _SIGUSR1: {_SigNotify, "SIGUSR1: user-defined signal 1"},
20 _SIGUSR2: {_SigNotify, "SIGUSR2: user-defined signal 2"},
40 _SIGWAITING: {0, "SIGWAITING: reserved signal no longer used by"},
41 26: {_SigNotify, "signal 26"},
42 27: {_SigNotify, "signal 27"},
43 33: {_SigNotify, "signal 33"},
44 35: {_SigNotify, "signal 35"},
45 36: {_SigNotify, "signal 36"},
46 37: {_SigNotify, "signal 37"},
47 38: {_SigNotify, "signal 38"},
[all …]
Dsigtab_linux_mipsx.go26 /* 16 */ {_SigNotify, "SIGUSR1: user-defined signal 1"},
27 /* 17 */ {_SigNotify, "SIGUSR2: user-defined signal 2"},
42 /* 32 */ {_SigSetStack + _SigUnblock, "signal 32"}, /* SIGCANCEL; see issue 6997 */
43 /* 33 */ {_SigSetStack + _SigUnblock, "signal 33"}, /* SIGSETXID; see issues 3871, 9400, 12498 */
44 /* 34 */ {_SigSetStack + _SigUnblock, "signal 34"}, /* musl SIGSYNCCALL; see issue 39343 */
45 /* 35 */ {_SigNotify, "signal 35"},
46 /* 36 */ {_SigNotify, "signal 36"},
47 /* 37 */ {_SigNotify, "signal 37"},
48 /* 38 */ {_SigNotify, "signal 38"},
49 /* 39 */ {_SigNotify, "signal 39"},
[all …]
Dsignal_unix.go19 // The sigtable array is indexed by a system signal number to get the flags
20 // and printable name of each signal.
43 // sigPreempt is the signal used for non-cooperative preemption.
45 // There's no good way to choose this signal, but there are some
48 // 1. It should be a signal that's passed-through by debuggers by
56 // 3. It should be a signal that can happen spuriously without
58 // signal handler can't tell if it was caused by the real process
59 // alarm or not (arguably this means the signal is broken, but I
75 // Stores the signal handlers registered before Go installed its own.
76 // These signal handlers will be invoked in cases where Go doesn't want to
[all …]
/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_signal.py6 import signal
27 for name in dir(signal):
28 sig = getattr(signal, name)
30 self.assertIsInstance(sig, signal.Handlers)
32 self.assertIsInstance(sig, signal.Sigmasks)
34 self.assertIsInstance(sig, signal.Signals)
36 self.assertIsInstance(sig, signal.Signals)
40 enum.IntEnum, 'Signals', 'signal',
45 source=signal,
47 enum._test_simple_enum(CheckedSignals, signal.Signals)
[all …]
Dtest_threadsignals.py1 """PyUnit testing that threads honor our signal semantics"""
4 import signal
12 raise unittest.SkipTest("Can't test signal on %s" % sys.platform)
21 usr1 = signal.signal(signal.SIGUSR1, for_usr1)
22 usr2 = signal.signal(signal.SIGUSR2, for_usr2)
23 alrm = signal.signal(signal.SIGALRM, for_alrm)
27 # The signal handler. Just note that the signal occurred and
35 os.kill(process_pid, signal.SIGUSR1)
36 os.kill(process_pid, signal.SIGUSR2)
41 @unittest.skipUnless(hasattr(signal, "alarm"), "test requires signal.alarm")
[all …]
/aosp_15_r20/external/wayland/tests/
H A Dnewsignal-test.c40 struct wl_priv_signal signal; in TEST() local
42 wl_priv_signal_init(&signal); in TEST()
45 assert(&signal.listener_list == signal.listener_list.next in TEST()
47 assert(signal.listener_list.next == signal.listener_list.prev in TEST()
53 struct wl_priv_signal signal; in TEST() local
62 wl_priv_signal_init(&signal); in TEST()
64 wl_priv_signal_add(&signal, &l1); in TEST()
65 wl_priv_signal_add(&signal, &l2); in TEST()
66 wl_priv_signal_add(&signal, &l3); in TEST()
67 wl_priv_signal_add(&signal, &l4); in TEST()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/gdbstub/src/common/
Dsignal.rs1 /// Cross-platform signal numbers defined by the GDB Remote Serial Protocol.
6 pub struct Signal(pub u8); struct
11 impl Signal { impl
12 #[doc = "Signal 0 (shouldn't be used)"] pub const SIGZERO: Self = Self(0);
29 #[doc = "Stopped (signal)"] pub const SIGSTOP: Self = Self(17);
42 #[doc = "User defined signal 1"] pub const SIGUSR1: Self = Self(30);
43 #[doc = "User defined signal 2"] pub const SIGUSR2: Self = Self(31);
50 #[doc = "Signal LWP"] pub const SIGLWP: Self = Self(37);
89 /* Used internally by Solaris threads. See signal(5) on Solaris. */
90 #[doc = "LWP internal signal"] pub const SIGCANCEL: Self = Self(76);
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/nix/src/sys/
Dsignal.rs24 #[cfg(any(feature = "aio", feature = "signal"))]
27 #[cfg(any(feature = "aio", feature = "process", feature = "signal"))]
31 // type for signal constants.
36 #[cfg_attr(docsrs, doc(cfg(any(feature = "aio", feature = "signal"))))]
37 pub enum Signal {
56 /// User defined signal 1
60 /// User defined signal 2
66 /// Software termination signal from kill
81 /// Sendable stop signal not from tty
83 /// Stop signal from tty
[all …]
/aosp_15_r20/external/python/cpython2/Lib/test/
Dtest_signal.py7 import signal
13 raise unittest.SkipTest("Can't test signal on %s" % sys.platform)
57 print "handlerA invoked from signal %s at:\n%s" % (
63 print "handlerB invoked from signal %s at:\n%s" % (
80 signal.signal(signal.SIGHUP, self.handlerA)
81 signal.signal(signal.SIGUSR1, self.handlerB)
82 signal.signal(signal.SIGUSR2, signal.SIG_IGN)
83 signal.signal(signal.SIGALRM, signal.default_int_handler)
98 time.sleep(1) # Give the signal time to be delivered.
103 # Make sure the signal isn't delivered while the previous
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/tokio/src/signal/
Dunix.rs1 //! Unix-specific types for signal handling.
4 //! `Signal` type for receiving notifications of signals.
7 #![cfg_attr(docsrs, doc(cfg(all(unix, feature = "signal"))))]
10 use crate::runtime::signal::Handle;
11 use crate::signal::registry::{globals, EventId, EventInfo, Globals, Init, Storage};
12 use crate::signal::RxFuture;
64 /// Represents the specific kind of signal to listen for.
69 /// Allows for listening to any valid OS signal.
74 /// # use tokio::signal::unix::SignalKind;
89 /// Get the signal's numeric value.
[all …]
/aosp_15_r20/external/python/cpython3/Doc/library/
Dsignal.rst1 :mod:`signal` --- Set handlers for asynchronous events
4 .. module:: signal
7 **Source code:** :source:`Lib/signal.py`
11 This module provides mechanisms to use signal handlers in Python.
17 The :func:`signal.signal` function allows defining custom handlers to be
18 executed when a signal is received. A small number of default handlers are
24 A handler for a particular signal, once set, remains installed until it is
33 Execution of Python signal handlers
36 A Python signal handler does not get executed inside the low-level (C) signal
37 handler. Instead, the low-level signal handler sets a flag which tells the
[all …]
/aosp_15_r20/tools/test/connectivity/acts_tests/acts_contrib/test_utils/audio_analysis_lib/
Daudio_analysis.py21 from scipy.signal import blackmanharris
22 from scipy.signal import iirnotch
23 from scipy.signal import lfilter
35 # The minimal signal norm value.
39 # can tolerate normal noise of 0.3 amplitude when sine wave signal
52 """Error when signal RMS is too small."""
56 """Error when signal is empty."""
59 def normalize_signal(signal, saturate_value): argument
60 """Normalizes the signal with respect to the saturate value.
63 signal: A list for one-channel PCM data.
[all …]
/aosp_15_r20/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
H A Dsignal_processing.py8 """Signal processing utility module.
31 import scipy.signal
41 """Collection of signal processing utilities.
72 def SaveWav(cls, output_filepath, signal): argument
77 signal: AudioSegment instance.
79 return signal.export(output_filepath, format='wav')
82 def CountSamples(cls, signal): argument
86 signal: AudioSegment instance.
91 number_of_samples = len(signal.get_array_of_samples())
92 assert signal.channels > 0
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/os/signal/
Ddoc.go6 Package signal implements access to incoming signals.
21 synchronous signal into a run-time panic.
27 Of the asynchronous signals, the SIGHUP signal is sent when a program
28 loses its controlling terminal. The SIGINT signal is sent when the
30 which by default is ^C (Control-C). The SIGQUIT signal is sent when
38 By default, a synchronous signal is converted into a run-time panic. A
39 SIGHUP, SIGINT, or SIGTERM signal causes the program to exit. A
40 SIGQUIT, SIGILL, SIGTRAP, SIGABRT, SIGSTKFLT, SIGEMT, or SIGSYS signal
42 SIGTTOU signal gets the system default behavior (these signals are
43 used by the shell for job control). The SIGPROF signal is handled
[all …]
/aosp_15_r20/external/python/cpython2/Doc/library/
Dsignal.rst2 :mod:`signal` --- Set handlers for asynchronous events
5 .. module:: signal
9 This module provides mechanisms to use signal handlers in Python. Some general
12 * A handler for a particular signal, once set, remains installed until it is
20 * Although Python signal handlers are called asynchronously as far as the Python
26 * When a signal arrives during an I/O operation, it is possible that the I/O
27 operation raises an exception after the signal handler returns. This is
31 * Because the C signal handler always returns, it makes little sense to catch
34 * Python installs a small number of signal handlers by default: :const:`SIGPIPE`
41 simultaneously is: always perform :func:`signal` operations in the main thread
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/asio/include/boost/asio/
Dbasic_signal_set.hpp36 /// Provides signal functionality.
54 * // A signal occurred.
60 * // Construct a signal set registered for process termination.
67 * @par Queueing of signal notifications
69 * If a signal is registered with a signal_set, and the signal occurs when
70 * there are no waiting handlers, then the signal notification is queued. The
73 * dequeue them one at a time. Signal notifications are dequeued in order of
74 * ascending signal number.
76 * If a signal number is removed from a signal_set (using the @c remove or @c
77 * erase member functions) then any queued notifications for that signal are
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/nix/test/sys/
Dtest_signal.rs2 use nix::sys::signal::*;
11 kill(getpid(), None).expect("Should be able to send signal to myself."); in test_kill_none()
18 .expect("Should be able to send signal to my process group."); in test_killpg_none()
47 // This needs to be a signal that rust doesn't use in the test harness. in test_sigprocmask()
48 const SIGNAL: Signal = Signal::SIGCHLD; in test_sigprocmask() constant
54 // Make sure the old set doesn't contain the signal, otherwise the following in test_sigprocmask()
57 !old_signal_set.contains(SIGNAL), in test_sigprocmask()
58 "the {SIGNAL:?} signal is already blocked, please change to a \ in test_sigprocmask()
62 // Now block the signal. in test_sigprocmask()
64 signal_set.add(SIGNAL); in test_sigprocmask()
[all …]
/aosp_15_r20/external/python/cpython2/Lib/unittest/test/
Dtest_break.py4 import signal
21 self._default_handler = signal.getsignal(signal.SIGINT)
23 signal.signal(signal.SIGINT, self.int_handler)
26 signal.signal(signal.SIGINT, self._default_handler)
32 default_handler = signal.getsignal(signal.SIGINT)
34 self.assertNotEqual(signal.getsignal(signal.SIGINT), default_handler)
38 os.kill(pid, signal.SIGINT)
58 default_handler = signal.getsignal(signal.SIGINT)
64 self.assertNotEqual(signal.getsignal(signal.SIGINT), default_handler)
68 os.kill(pid, signal.SIGINT)
[all …]
/aosp_15_r20/external/webrtc/rtc_base/
H A Dsigslot_unittest.cc42 void Connect(sigslot::signal0<signal_policy>* signal) { in Connect() argument
43 if (!signal) in Connect()
46 signal_ = signal; in Connect()
47 signal->connect(this, in Connect()
128 // MT signal (there are two separate SigslotReceiver which in SetUp()
140 void Signal() { SignalMTLoopback(); } in Signal() function in SigslotMTLockTest
153 // ST slot, ST signal
160 // ST slot, MT signal
167 // ST slot, both ST and MT (separate) signal
192 // MT slot, ST signal
[all …]
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/unittest/test/
H A Dtest_break.py5 import signal
21 self._default_handler = signal.getsignal(signal.SIGINT)
23 signal.signal(signal.SIGINT, self.int_handler)
26 signal.signal(signal.SIGINT, self._default_handler)
53 default_handler = signal.getsignal(signal.SIGINT)
55 self.assertNotEqual(signal.getsignal(signal.SIGINT), default_handler)
59 os.kill(pid, signal.SIGINT)
78 os.kill(pid, signal.SIGINT)
88 signal.getsignal(signal.SIGINT),
100 # Can't use skipIf decorator because the signal handler may have
[all …]
/aosp_15_r20/external/python/cpython3/Lib/unittest/test/
Dtest_break.py5 import signal
21 self._default_handler = signal.getsignal(signal.SIGINT)
23 signal.signal(signal.SIGINT, self.int_handler)
26 signal.signal(signal.SIGINT, self._default_handler)
53 default_handler = signal.getsignal(signal.SIGINT)
55 self.assertNotEqual(signal.getsignal(signal.SIGINT), default_handler)
59 os.kill(pid, signal.SIGINT)
78 os.kill(pid, signal.SIGINT)
88 signal.getsignal(signal.SIGINT),
100 # Can't use skipIf decorator because the signal handler may have
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/vmm-sys-util/src/linux/
Dsignal.rs10 //! [`signal`](http://man7.org/linux/man-pages/man7/signal.7.html).
27 /// The error cases enumeration for signal handling.
32 /// The wrapped signal has already been blocked.
34 /// Failed to check if the requested signal is in the blocked set already.
36 /// The signal could not be blocked.
38 /// The signal mask could not be retrieved.
40 /// The signal could not be unblocked.
42 /// Failed to wait for given signal.
46 /// Failed to check if given signal is in the set of pending signals.
56 SignalAlreadyBlocked(num) => write!(f, "signal {} already blocked", num), in fmt()
[all …]
/aosp_15_r20/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A Dassertions.xml4 specifying the action to be associated with the specified signal.
8 associated with the signal is stored in the location pointed to by
12 If the argument "act" is a null pointer, signal handling is unchanged.
15 The SIGKILL and SIGSTOP signals shall not be added to the signal mask
21 with the specified signal.
26 the sa_sigaction field specifies a signal catching function.
30 signal catching function, or if the SA_SIGINFO bit is set, the sa_mask
31 field indentifies a set of signals that shall be added to the signal mask
32 of the thread before the signal-catching function is invoked.
35 If the sa_handler field specifies a signal-catching function, the sa_mask
[all …]
/aosp_15_r20/external/igt-gpu-tools/lib/
H A Digt_audio.c44 * To make sure the audio signal doesn't contain noise, #audio_signal_detect
83 * @channels: The number of channels to use for the signal
84 * @sampling_rate: The sampling rate to use for the signal
86 * Allocate and initialize an audio signal structure with the given parameters.
88 * Returns: A newly-allocated audio signal structure
92 struct audio_signal *signal; in audio_signal_init() local
97 signal = calloc(1, sizeof(struct audio_signal)); in audio_signal_init()
98 signal->sampling_rate = sampling_rate; in audio_signal_init()
99 signal->channels = channels; in audio_signal_init()
100 return signal; in audio_signal_init()
[all …]
/aosp_15_r20/external/autotest/client/cros/audio/
H A Daudio_analysis.py26 """Error when signal RMS is too small."""
31 """Error when signal is empty."""
34 def normalize_signal(signal, saturate_value): argument
35 """Normalizes the signal with respect to the saturate value.
37 @param signal: A list for one-channel PCM data.
40 @returns: A numpy array containing normalized signal. The normalized signal
44 signal = numpy.array(signal)
45 return signal / float(saturate_value)
48 def spectral_analysis(signal, rate, min_peak_ratio=DEFAULT_MIN_PEAK_RATIO, argument
52 @param signal: A list of numbers for one-channel PCM data. This should be
[all …]

12345678910>>...896