Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 6 of 6) sorted by relevance

/tools/test/connectivity/acts/framework/tests/
Daudio_analysis_unittest.py109 samples = length_in_secs * rate
110 noise = numpy.random.standard_normal(int(samples)) * 0.005
111 x = numpy.linspace(0.0, (samples - 1) * 1.0 / rate, samples)
149 samples = length_in_secs * rate
151 noise = numpy.random.standard_normal(int(samples)) * noise_amplitude
180 self.samples = length_in_secs * self.rate
181 x = numpy.linspace(0.0, (self.samples - 1) * 1.0 / self.rate,
182 self.samples)
Daudio_quality_measurement_unittest.py82 self.samples = length_in_secs * self.rate
84 for index in range(self.samples):
92 for index in range(self.samples):
124 for i in range(silence_after_playback_start_time, self.samples):
/tools/test/connectivity/acts/framework/acts/bin/
Dmonsoon.py52 if FLAGS.samples:
56 result = mon.take_samples(FLAGS.hz, FLAGS.samples,
/tools/test/connectivity/acts/framework/acts/controllers/
Dmonsoon.py751 samples = self.mon.CollectData()
752 if not samples:
754 collected.extend(samples)
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java2512 List<Long> samples = wifi.stopMonitor(); in disableNetworkMonitor() local
2513 if (!samples.isEmpty()) { in disableNetworkMonitor()
2516 for (Long sample : samples) { in disableNetworkMonitor()
2523 double failureRate = failures * 100.0 / samples.size(); in disableNetworkMonitor()
2525 if (failures < samples.size()) { in disableNetworkMonitor()
2526 avgLatency = totalLatency / (samples.size() - failures); in disableNetworkMonitor()
2529 mOptions.getConnCheckUrl(), samples.size() * NETWORK_MONITOR_INTERVAL / 1000, in disableNetworkMonitor()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java852 List<Long> samples = new ArrayList<Long>(); in testDisableNetworkMonitor() local
853 samples.add(Long.valueOf(42)); in testDisableNetworkMonitor()
854 samples.add(Long.valueOf(256)); in testDisableNetworkMonitor()
855 samples.add(Long.valueOf(-1)); // failure to connect in testDisableNetworkMonitor()
856 EasyMock.expect(mMockWifi.stopMonitor()).andReturn(samples); in testDisableNetworkMonitor()