/external/wayland/tests/ |
D | newsignal-test.c | 40 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 …]
|
D | signal-test.c | 40 struct wl_signal signal; in TEST() local 42 wl_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_signal signal; in TEST() local 62 wl_signal_init(&signal); in TEST() 64 wl_signal_add(&signal, &l1); in TEST() 65 wl_signal_add(&signal, &l2); in TEST() 66 wl_signal_add(&signal, &l3); in TEST() 67 wl_signal_add(&signal, &l4); in TEST() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_signal.py | 7 import signal 29 for name in dir(signal): 30 sig = getattr(signal, name) 32 self.assertIsInstance(sig, signal.Handlers) 34 self.assertIsInstance(sig, signal.Sigmasks) 36 self.assertIsInstance(sig, signal.Signals) 38 self.assertIsInstance(sig, signal.Signals) 42 enum.IntEnum, 'Signals', 'signal', 47 source=signal, 49 enum._test_simple_enum(CheckedSignals, signal.Signals) [all …]
|
D | test_threadsignals.py | 1 """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 36 # * It verifies that a signal delivered to a background thread still has 38 # * It ensures the signal is handled before the thread exits. 39 signal.raise_signal(signal.SIGUSR1) [all …]
|
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/ |
D | signal_processing.py | 8 """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 …]
|
/external/rust/android-crates-io/crates/gdbstub/src/common/ |
D | signal.rs | 1 /// Cross-platform signal numbers defined by the GDB Remote Serial Protocol. 6 pub struct Signal(pub u8); struct 11 impl Signal { implementation 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 …]
|
/external/rust/android-crates-io/crates/tokio/src/signal/ |
D | unix.rs | 1 //! 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 …]
|
/external/cronet/tot/third_party/llvm-libc/src/test/src/string/ |
D | strsignal_test.cpp | 12 #include <signal.h> 18 "Unknown signal 0", // unknown in TEST() 28 "User defined signal 1", in TEST() 30 "User defined signal 2", in TEST() 37 "Stopped (signal)", in TEST() 55 "Real-time signal 0", "Real-time signal 1", "Real-time signal 2", in TEST() 56 "Real-time signal 3", "Real-time signal 4", "Real-time signal 5", in TEST() 57 "Real-time signal 6", "Real-time signal 7", "Real-time signal 8", in TEST() 58 "Real-time signal 9", "Real-time signal 10", "Real-time signal 11", in TEST() 59 "Real-time signal 12", "Real-time signal 13", "Real-time signal 14", in TEST() [all …]
|
/external/llvm-libc/test/src/string/ |
D | strsignal_test.cpp | 12 #include <signal.h> 18 "Unknown signal 0", // unknown in TEST() 28 "User defined signal 1", in TEST() 30 "User defined signal 2", in TEST() 37 "Stopped (signal)", in TEST() 55 "Real-time signal 0", "Real-time signal 1", "Real-time signal 2", in TEST() 56 "Real-time signal 3", "Real-time signal 4", "Real-time signal 5", in TEST() 57 "Real-time signal 6", "Real-time signal 7", "Real-time signal 8", in TEST() 58 "Real-time signal 9", "Real-time signal 10", "Real-time signal 11", in TEST() 59 "Real-time signal 12", "Real-time signal 13", "Real-time signal 14", in TEST() [all …]
|
/external/cronet/stable/third_party/llvm-libc/src/test/src/string/ |
D | strsignal_test.cpp | 12 #include <signal.h> 18 "Unknown signal 0", // unknown in TEST() 28 "User defined signal 1", in TEST() 30 "User defined signal 2", in TEST() 37 "Stopped (signal)", in TEST() 55 "Real-time signal 0", "Real-time signal 1", "Real-time signal 2", in TEST() 56 "Real-time signal 3", "Real-time signal 4", "Real-time signal 5", in TEST() 57 "Real-time signal 6", "Real-time signal 7", "Real-time signal 8", in TEST() 58 "Real-time signal 9", "Real-time signal 10", "Real-time signal 11", in TEST() 59 "Real-time signal 12", "Real-time signal 13", "Real-time signal 14", in TEST() [all …]
|
/external/rust/android-crates-io/crates/nix/src/sys/ |
D | signal.rs | 24 #[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 …]
|
/external/python/cpython3/Doc/library/ |
D | signal.rst | 1 :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 …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
D | assertions.xml | 4 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 …]
|
/external/webrtc/rtc_base/ |
D | sigslot_unittest.cc | 42 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 …]
|
/external/python/cpython3/Lib/test/test_unittest/ |
D | test_break.py | 5 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 …]
|
/external/rust/android-crates-io/crates/nix/test/sys/ |
D | test_signal.rs | 2 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 …]
|
/external/sdv/vsomeip/third_party/boost/asio/include/boost/asio/ |
D | basic_signal_set.hpp | 36 /// 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 …]
|
/external/cronet/tot/third_party/llvm-libc/src/test/src/signal/ |
D | CMakeLists.txt | 10 libc.include.signal 11 libc.src.signal.raise 21 libc.include.signal 22 libc.src.signal.kill 37 libc.src.signal.raise 38 libc.src.signal.sigaction 50 libc.src.signal.raise 51 libc.src.signal.sigaddset 52 libc.src.signal.sigemptyset 53 libc.src.signal.sigprocmask [all …]
|
/external/cronet/stable/third_party/llvm-libc/src/test/src/signal/ |
D | CMakeLists.txt | 10 libc.include.signal 11 libc.src.signal.raise 21 libc.include.signal 22 libc.src.signal.kill 37 libc.src.signal.raise 38 libc.src.signal.sigaction 50 libc.src.signal.raise 51 libc.src.signal.sigaddset 52 libc.src.signal.sigemptyset 53 libc.src.signal.sigprocmask [all …]
|
/external/tensorflow/tensorflow/python/ops/signal/ |
D | reconstruction_ops.py | 15 """Signal reconstruction via overlapped addition of frames.""" 26 @tf_export("signal.overlap_and_add") 28 def overlap_and_add(signal, frame_step, name=None): argument 29 """Reconstructs a signal from a framed representation. 31 Adds potentially overlapping frames of a signal with shape 38 signal: A [..., frames, frame_length] `Tensor`. All dimensions may be 46 frames of `signal`'s inner-most two dimensions. 49 ValueError: If `signal`'s rank is less than 2, or `frame_step` is not a 52 with ops.name_scope(name, "overlap_and_add", [signal, frame_step]): 53 signal = ops.convert_to_tensor(signal, name="signal") [all …]
|
D | signal.py | 15 """Signal processing operations. 17 See the [tf.signal](https://tensorflow.org/api_guides/python/contrib.signal) 38 from tensorflow.python.ops.signal.dct_ops import dct 39 from tensorflow.python.ops.signal.fft_ops import fft 40 from tensorflow.python.ops.signal.fft_ops import fft2d 41 from tensorflow.python.ops.signal.fft_ops import fft3d 42 from tensorflow.python.ops.signal.fft_ops import fftshift 43 from tensorflow.python.ops.signal.fft_ops import rfft 44 from tensorflow.python.ops.signal.fft_ops import rfft2d 45 from tensorflow.python.ops.signal.fft_ops import rfft3d [all …]
|
/external/autotest/client/cros/audio/ |
D | audio_analysis.py | 26 """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 …]
|
/external/igt-gpu-tools/lib/tests/ |
D | igt_audio.c | 36 /** PHASESHIFT_LEN: how many samples will be truncated from the signal */ 45 static void test_signal_detect_untampered(struct audio_signal *signal) in test_signal_detect_untampered() argument 50 audio_signal_fill(signal, buf, BUFFER_LEN / CHANNELS); in test_signal_detect_untampered() 51 ok = audio_signal_detect(signal, SAMPLING_RATE, 0, buf, BUFFER_LEN); in test_signal_detect_untampered() 55 static void test_signal_detect_silence(struct audio_signal *signal) in test_signal_detect_silence() argument 60 ok = audio_signal_detect(signal, SAMPLING_RATE, 0, buf, BUFFER_LEN); in test_signal_detect_silence() 65 static void test_signal_detect_noise(struct audio_signal *signal) in test_signal_detect_noise() argument 79 ok = audio_signal_detect(signal, SAMPLING_RATE, 0, buf, BUFFER_LEN); in test_signal_detect_noise() 84 static void test_signal_detect_with_missing_freq(struct audio_signal *signal) in test_signal_detect_with_missing_freq() argument 91 /* Generate a signal with all the expected frequencies but the first in test_signal_detect_with_missing_freq() [all …]
|
/external/python/cpython3/Lib/unittest/ |
D | signals.py | 1 import signal 14 if default_handler == signal.SIG_DFL: 15 # Pretend it's signal.default_int_handler instead. 16 default_handler = signal.default_int_handler 17 elif default_handler == signal.SIG_IGN: 23 raise TypeError("expected SIGINT signal handler to be " 24 "signal.SIG_IGN, signal.SIG_DFL, or a " 29 installed_handler = signal.getsignal(signal.SIGINT) 52 default_handler = signal.getsignal(signal.SIGINT) 54 signal.signal(signal.SIGINT, _interrupt_handler) [all …]
|
/external/autotest/utils/frozen_chromite/lib/ |
D | signals.py | 6 """Signal related functionality.""" 10 import signal 15 """Notify a listener returned from getsignal of receipt of a signal. 21 if handler in (None, signal.SIG_IGN): 23 elif handler == signal.SIG_DFL: 31 def SignalModuleUsable(_signal=signal.signal, _SIGUSR1=signal.SIGUSR1): 32 """Verify that the signal module is usable and won't segfault on us. 37 if signal.* was accessed. 43 from the signal module to do the necessary test; invoking code shouldn't 61 # signal module internal Handlers array; we catch all, and interpret it [all …]
|