Home
last modified time | relevance | path

Searched refs:signal (Results 1 – 25 of 29) sorted by relevance

12

/tools/test/connectivity/acts/framework/acts/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
61 def normalize_signal(signal, saturate_value): argument
73 signal = numpy.array(signal)
74 return signal / float(saturate_value)
77 def spectral_analysis(signal, argument
110 if len(signal) == 0:
113 signal_rms = numpy.linalg.norm(signal) / numpy.sqrt(len(signal))
126 y_conv_w = signal * numpy.hanning(len(signal))
[all …]
Daudio_quality_measurement.py280 def hilbert_analysis(signal, rate, block_size): argument
312 length = len(signal)
318 temp = hilbert(signal[temp_left_border:temp_right_border])
763 signal, argument
845 signal = numpy.concatenate(
846 (numpy.zeros(int(rate * APPEND_ZEROS_SECS)), signal,
848 signal = numpy.array(signal, dtype=float)
849 length = len(signal)
852 amplitude, frequency = hilbert_analysis(signal, rate, block_size)
856 dominant_frequency = audio_analysis.spectral_analysis(signal,
[all …]
Dcheck_quality.py219 signal = self._raw_data.channel_data[channel_idx]
220 max_abs = max(numpy.abs(signal))
231 signal, saturate_value)
251 signal=normalized_signal,
/tools/repohooks/rh/
Dutils.py23 import signal
168 signal.signal(signum, signal.SIG_IGN)
385 old_sigint = signal.getsignal(signal.SIGINT)
388 signal.signal(signal.SIGINT, handler)
390 old_sigterm = signal.getsignal(signal.SIGTERM)
393 signal.signal(signal.SIGTERM, handler)
398 signal.signal(signal.SIGINT, old_sigint)
399 signal.signal(signal.SIGTERM, old_sigterm)
Dsignals.py21 import signal
37 if handler in (None, signal.SIG_IGN):
39 if handler == signal.SIG_DFL:
/tools/asuite/atest/test_runners/
Dtest_runner_base.py25 import signal
99 signal.signal(signal.SIGINT, self._signal_passer(subproc))
107 os.killpg(os.getpgid(subproc.pid), signal.SIGINT)
135 signal.signal(signal.SIGINT, self._signal_passer(proc))
140 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
161 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
/tools/tradefederation/core/atest/test_runners/
Dtest_runner_base.py24 import signal
101 signal.signal(signal.SIGINT, self._signal_passer(subproc))
115 os.killpg(os.getpgid(subproc.pid), signal.SIGINT)
142 signal.signal(signal.SIGINT, self._signal_passer(proc))
147 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
168 os.killpg(os.getpgid(proc.pid), signal.SIGINT)
/tools/test/connectivity/acts/framework/acts/
Dtest_decorators.py89 AssertionError) as signal:
90 test_signals_received.append(signal)
92 except signals.TestPass as signal:
93 test_signals_received.append(signal)
97 except Exception as signal:
98 test_signals_received.append(signal)
176 except signals.TestSignal as signal:
177 new_signal = signal
Dutils.py29 import signal
472 def stop_standing_subprocess(proc, kill_signal=signal.SIGTERM):
564 signal.signal(signal.SIGALRM, _timeout_handler)
565 signal.alarm(sec)
572 signal.alarm(0)
Dbase_test.py732 signal = signals.TestError(reason)
736 signal.extras = test_func.gather()
737 record.test_error(signal)
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/commands/
Dshell.py16 import signal
84 self.signal(identifier, 0)
207 signal_queue = [signal.SIGINT, signal.SIGTERM, signal.SIGKILL]
213 self.signal(pid, sig)
225 def signal(self, pid, sig): member in ShellCommand
/tools/test/connectivity/acts/framework/acts/bin/
Dact.py20 import signal
86 signal.signal(signal.SIGTERM, handler)
87 signal.signal(signal.SIGINT, handler)
/tools/test/connectivity/acts/framework/tests/libs/test_bindings/
Dbinding_test.py98 except signals.TestPass as signal:
99 self.assertEqual(signal.details, 'DETAILS')
168 def signal_modifier(_, signal, *__, **___): argument
169 raise signals.TestFailure(signal.details)
175 except signals.TestFailure as signal:
176 self.assertEqual(signal.details, 'DETAILS')
/tools/acloud/internal/lib/
Dutils.py29 import signal
1286 signal.signal(signal.SIGALRM, _HandleTimeout)
1287 signal.alarm(timeout_secs)
1291 signal.alarm(0)
/tools/test/openhst/
Dstress_test.py37 import signal
300 self.process.send_signal(signal.SIGTERM)
324 self.process.kill(signal.SIGHUP)
325 self.process.kill(signal.SIGINT)
327 self.process.send_signal(signal.SIGTERM)
/tools/tradefederation/core/tests/res/testtype/
Dgtest_output8.txt22 stack_unwinding.easy terminated by signal: Segmentation fault.
24 stack_unwinding.unwind_through_signal_frame terminated by signal: Segmentation
27 stack_unwinding.unwind_through_signal_frame_SA_SIGINFO terminated by signal:
/tools/test/connectivity/acts_tests/tests/google/gnss/
DGTWGnssPowerTest.py37 def start_gnss_tracking_with_power_data(self, signal=True): argument
47 if signal:
97 self.start_gnss_tracking_with_power_data(signal=False)
/tools/test/connectivity/acts/framework/acts/libs/test_binding/
Dbinding.py82 except signals.TestSignal as signal:
83 new_signal = signal
/tools/test/connectivity/acts/framework/acts/controllers/sniffer_lib/local/
Dlocal_base.py26 import signal
140 utils.stop_standing_subprocess(self._process, kill_signal=signal.SIGINT)
/tools/test/connectivity/acts/framework/acts/libs/proc/
Dprocess.py20 import signal
163 os.killpg(pgid, signal.SIGKILL)
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
DWifiBaseTest.py635 signal.details = self.result_detail
639 signal.details = self.result_detail
/tools/test/connectivity/acts/framework/acts/controllers/
Dpacket_sender.py112 def __init__(self, signal, packet, interval, interface, log): argument
114 self.stop_signal = signal
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
DTelephonyBaseTest.py563 signal = signals.TestFailure(reason)
567 record.test_fail(signal)
/tools/repohooks/tools/
Dspelling.txt1039 signabl||signal
1046 singal||signal
/tools/tradefederation/core/src/com/android/tradefed/util/
DConditionPriorityBlockingQueue.java294 matcherPair.mCondition.signal(); in add()

12