/external/libnl/lib/cli/qdisc/ |
D | htb.c | 90 long rate; in htb_parse_class_argv() local 123 rate = nl_size2int(optarg); in htb_parse_class_argv() 124 if (rate < 0) { in htb_parse_class_argv() 125 nl_cli_fatal(rate, "Unable to parse htb rate " in htb_parse_class_argv() 129 rtnl_htb_set_rate(class, rate); in htb_parse_class_argv() 133 rate = nl_size2int(optarg); in htb_parse_class_argv() 134 if (rate < 0) { in htb_parse_class_argv() 135 nl_cli_fatal(rate, "Unable to parse htb ceil rate " in htb_parse_class_argv() 139 rtnl_htb_set_ceil(class, rate); in htb_parse_class_argv() 147 rate = nl_size2int(optarg); in htb_parse_class_argv() [all …]
|
/external/iproute2/tc/ |
D | m_police.c | 121 if (p.rate.rate) { in act_parse_police() 125 if (get_rate(&p.rate.rate, *argv)) { in act_parse_police() 141 if (p.peakrate.rate) { in act_parse_police() 145 if (get_rate(&p.peakrate.rate, *argv)) { in act_parse_police() 185 if (p.rate.rate && avrate) in act_parse_police() 189 if (!p.rate.rate && !avrate && !p.index) { in act_parse_police() 195 if (p.rate.rate && !buffer && !avrate) { in act_parse_police() 200 if (p.peakrate.rate) { in act_parse_police() 201 if (!p.rate.rate) { in act_parse_police() 211 if (p.rate.rate) { in act_parse_police() [all …]
|
/external/webrtc/modules/audio_mixer/ |
D | frame_combiner_unittest.cc | 74 for (const int rate : {8000, 18000, 34000, 48000}) { in TEST() 77 SetUpFrames(rate, number_of_channels); in TEST() 81 ProduceDebugText(rate, number_of_channels, number_of_frames)); in TEST() 84 combiner.Combine(frames_to_combine, number_of_channels, rate, in TEST() 94 for (const int rate : {8000, 18000, 34000, 48000}) { in TEST() 96 if (static_cast<size_t>(rate / 100 * number_of_channels) > in TEST() 101 SetUpFrames(rate, number_of_channels); in TEST() 105 ProduceDebugText(rate, number_of_channels, number_of_frames)); in TEST() 110 combiner.Combine(frames_to_combine, number_of_channels, rate, in TEST() 114 combiner.Combine(frames_to_combine, number_of_channels, rate, in TEST() [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | atrous_conv2d_test.py | 34 def _upsample_filters(filters, rate): argument 48 if rate == 1: 52 ker = np.zeros([rate, rate], dtype=np.float32) 54 filters_up = np.kron(filters_up, ker)[:, :, :-(rate - 1), :-(rate - 1)] 77 for rate in range(1, 4): 78 f_up = _upsample_filters(f, rate) 81 y1 = nn_ops.atrous_conv2d(x, f, rate, padding=padding) 123 for rate in range(2, 4): 125 y1 = nn_ops.atrous_conv2d(x, f, rate, padding=padding) 126 y1 = nn_ops.atrous_conv2d(y1, f, rate, padding=padding) [all …]
|
/external/webrtc/modules/audio_processing/aec3/ |
D | block_framer_unittest.cc | 219 for (auto rate : {16000, 32000, 48000}) { in TEST() 221 SCOPED_TRACE(ProduceDebugText(rate, correct_num_channels)); in TEST() 222 const size_t correct_num_bands = NumBandsForRate(rate); in TEST() 225 rate, correct_num_channels, wrong_num_bands, correct_num_channels, in TEST() 233 for (auto rate : {16000, 32000, 48000}) { in TEST() 235 SCOPED_TRACE(ProduceDebugText(rate, correct_num_channels)); in TEST() 236 const size_t correct_num_bands = NumBandsForRate(rate); in TEST() 239 rate, correct_num_channels, correct_num_bands, wrong_num_channels, in TEST() 247 for (auto rate : {16000, 32000, 48000}) { in TEST() 249 SCOPED_TRACE(ProduceDebugText(rate, correct_num_channels)); in TEST() [all …]
|
D | frame_blocker_unittest.cc | 292 for (auto rate : {16000, 32000, 48000}) { in TEST() 294 SCOPED_TRACE(ProduceDebugText(rate, correct_num_channels)); in TEST() 295 const size_t correct_num_bands = NumBandsForRate(rate); in TEST() 298 rate, correct_num_channels, wrong_num_bands, correct_num_channels, in TEST() 306 for (auto rate : {16000, 32000, 48000}) { in TEST() 308 SCOPED_TRACE(ProduceDebugText(rate, correct_num_channels)); in TEST() 309 const size_t correct_num_bands = NumBandsForRate(rate); in TEST() 312 rate, correct_num_channels, correct_num_bands, wrong_num_channels, in TEST() 320 for (auto rate : {16000, 32000, 48000}) { in TEST() 322 SCOPED_TRACE(ProduceDebugText(rate, correct_num_channels)); in TEST() [all …]
|
D | render_delay_controller_unittest.cc | 64 for (auto rate : {16000, 32000, 48000}) { in TEST() 65 SCOPED_TRACE(ProduceDebugText(rate)); in TEST() 67 RenderDelayBuffer::Create(config, rate, num_render_channels)); in TEST() 69 RenderDelayController::Create(config, rate, in TEST() 100 for (auto rate : {16000, 32000, 48000}) { in TEST() 102 NumBandsForRate(rate), in TEST() 106 RenderDelayBuffer::Create(config, rate, num_render_channels)); in TEST() 108 RenderDelayController::Create(EchoCanceller3Config(), rate, in TEST() 145 for (auto rate : {16000, 32000, 48000}) { in TEST() 147 NumBandsForRate(rate), in TEST() [all …]
|
D | render_delay_buffer_unittest.cc | 39 for (auto rate : {16000, 32000, 48000}) { in TEST() 40 SCOPED_TRACE(ProduceDebugText(rate)); in TEST() 42 RenderDelayBuffer::Create(config, rate, num_channels)); in TEST() 44 NumBandsForRate(rate), in TEST() 108 for (auto rate : {16000, 32000, 48000}) { in TEST() 110 SCOPED_TRACE(ProduceDebugText(rate)); in TEST() 112 EchoCanceller3Config(), rate, num_channels)); in TEST() 114 NumBandsForRate(rate < 48000 ? rate + 16000 : 16000), in TEST() 124 for (auto rate : {16000, 32000, 48000}) { in TEST() 126 SCOPED_TRACE(ProduceDebugText(rate)); in TEST() [all …]
|
D | block_processor_unittest.cc | 146 for (auto rate : {16000, 32000, 48000}) { in TEST() 147 SCOPED_TRACE(ProduceDebugText(rate)); in TEST() 150 new StrictMock<webrtc::test::MockRenderDelayBuffer>(rate, 1)); in TEST() 161 EchoCanceller3Config(), rate, kNumRenderChannels, kNumCaptureChannels, in TEST() 165 NumBandsForRate(rate), in TEST() 169 NumBandsForRate(rate), in TEST() 189 for (auto rate : {16000, 32000, 48000}) { in TEST() 190 SCOPED_TRACE(ProduceDebugText(rate)); in TEST() 193 new StrictMock<webrtc::test::MockRenderDelayBuffer>(rate, 1)); in TEST() 218 EchoCanceller3Config(), rate, kNumRenderChannels, kNumCaptureChannels, in TEST() [all …]
|
D | echo_remover_unittest.cc | 57 for (auto rate : {16000, 32000, 48000}) { in TEST_P() 58 SCOPED_TRACE(ProduceDebugText(rate)); in TEST_P() 60 EchoRemover::Create(EchoCanceller3Config(), rate, num_render_channels, in TEST_P() 63 EchoCanceller3Config(), rate, num_render_channels)); in TEST_P() 66 NumBandsForRate(rate), in TEST_P() 70 NumBandsForRate(rate), in TEST_P() 103 for (auto rate : {16000, 32000, 48000}) { in TEST() 104 SCOPED_TRACE(ProduceDebugText(rate)); in TEST() 106 EchoRemover::Create(EchoCanceller3Config(), rate, 1, 1)); in TEST() 108 RenderDelayBuffer::Create(EchoCanceller3Config(), rate, 1)); in TEST() [all …]
|
/external/autotest/client/cros/audio/ |
D | audio_quality_measurement.py | 186 def noised_sine_wave(frequency, rate, noise_level): argument 197 for index in range(0, rate * 2): 198 sample = 2.0 * math.pi * frequency * float(index) / float(rate) 226 def noise_level(amplitude, frequency, rate, teager_value_of_input): argument 250 standard_wave = noised_sine_wave(frequency, rate, standard_noise) 270 def hilbert_analysis(signal, rate, block_size): argument 311 frequency = numpy.diff(phase) / (2.0 * numpy.pi) * rate 415 rate, noise_amplitude_threshold): argument 439 same_event_samples = rate * DEFAULT_SAME_EVENT_SECS 449 if ((start_index - rate * NEAR_SINE_START_OR_END_SECS) <= index and [all …]
|
D | audio_quality_measurement_unittest.py | 28 rate = 48000 35 for index in range(0, rate * length_in_secs): 36 phase = 2.0 * math.pi * frequency * float(index) / float(rate) 50 rate, 71 self.rate = 48000 75 self.samples = length_in_secs * self.rate 78 phase = 2.0 * math.pi * self.freq * float(index) / float(self.rate) 97 start_index = int(self.delay_start_time[i] * self.rate) 98 end_index = int(self.delay_end_time[i] * self.rate) 106 end_index = int(silence_before_playback_end_time * self.rate) [all …]
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCScheduleE5500.td | 74 [30, 2, 2], // Latency= 4..26, Repeat rate= 4..26 80 [20, 2, 2], // Latency= 4..16, Repeat rate= 4..16 85 [11], // Latency = 7, Repeat rate = 1 89 [11, 2, 2], // Latency = 7, Repeat rate = 7 94 [9, 2, 2], // Latency = 4..7, Repeat rate = 2..4 100 [8, 2, 2], // Latency = 4, Repeat rate = 1 106 [8, 2, 2], // Latency = 4, Repeat rate = 1 122 [6, 2, 2], // Latency = 2, Repeat rate = 2 127 [5, 2, 2], // Latency = 1, Repeat rate = 1 132 [6, 2, 2], // Latency = 2, Repeat rate = 2 [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCScheduleE5500.td | 74 [30, 2, 2], // Latency= 4..26, Repeat rate= 4..26 80 [20, 2, 2], // Latency= 4..16, Repeat rate= 4..16 85 [11], // Latency = 7, Repeat rate = 1 89 [11, 2, 2], // Latency = 7, Repeat rate = 7 94 [9, 2, 2], // Latency = 4..7, Repeat rate = 2..4 100 [8, 2, 2], // Latency = 4, Repeat rate = 1 106 [8, 2, 2], // Latency = 4, Repeat rate = 1 122 [6, 2, 2], // Latency = 2, Repeat rate = 2 127 [5, 2, 2], // Latency = 1, Repeat rate = 1 132 [6, 2, 2], // Latency = 2, Repeat rate = 2 [all …]
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCScheduleE5500.td | 75 [30, 2, 2], // Latency= 4..26, Repeat rate= 4..26 81 [20, 2, 2], // Latency= 4..16, Repeat rate= 4..16 86 [11], // Latency = 7, Repeat rate = 1 90 [11, 2, 2], // Latency = 7, Repeat rate = 7 95 [9, 2, 2], // Latency = 4..7, Repeat rate = 2..4 101 [8, 2, 2], // Latency = 4, Repeat rate = 1 107 [8, 2, 2], // Latency = 4, Repeat rate = 1 123 [6, 2, 2], // Latency = 2, Repeat rate = 2 128 [5, 2, 2], // Latency = 1, Repeat rate = 1 133 [6, 2, 2], // Latency = 2, Repeat rate = 2 [all …]
|
/external/tensorflow/tensorflow/python/ops/distributions/ |
D | gamma.py | 138 rate, argument 166 with ops.name_scope(name, values=[concentration, rate]) as name: 169 check_ops.assert_positive(rate), 173 self._rate = array_ops.identity(rate, name="rate") 198 def rate(self): member in Gamma 205 array_ops.shape(self.rate)) 210 self.rate.get_shape()) 225 beta=self.rate, 236 return math_ops.igamma(self.concentration, self.rate * x) 240 return math_ops.xlogy(self.concentration - 1., x) - self.rate * x [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_ossaudiodev.py | 29 rate = au.getframerate() 40 return (data, rate, 16, nchannels) 44 def play_sound_file(self, data, rate, ssize, nchannels): argument 75 expected_time = float(len(data)) / (ssize//8) / nchannels / rate 78 dsp.setparameters(AFMT_S16_NE, nchannels, rate) 101 (fmt, channels, rate) = config 104 dsp.speed(rate) == rate): 112 result = dsp.setparameters(fmt, channels, rate, False) 113 self.assertEqual(result, (fmt, channels, rate), 116 result = dsp.setparameters(fmt, channels, rate, True) [all …]
|
/external/tensorflow/tensorflow/python/keras/layers/ |
D | noise.py | 110 def __init__(self, rate, **kwargs): argument 113 self.rate = rate 116 if 0 < self.rate < 1: 119 stddev = np.sqrt(self.rate / (1.0 - self.rate)) 130 config = {'rate': self.rate} 169 def __init__(self, rate, noise_shape=None, seed=None, **kwargs): argument 171 self.rate = rate 180 if 0. < self.rate < 1.: 183 …def dropped_inputs(inputs=inputs, rate=self.rate, seed=self.seed): # pylint: disable=missing-docs… argument 189 K.random_uniform(noise_shape, seed=seed), rate) [all …]
|
/external/webrtc/modules/audio_processing/agc2/ |
D | signal_classifier_unittest.cc | 31 int RunClassifier(std::function<float()> sample_generator, int rate) { in RunClassifier() argument 34 classifier.Initialize(rate); in RunClassifier() 35 const size_t samples_per_channel = rtc::CheckedDivExact(rate, 100); in RunClassifier() 57 for (const auto rate : {8000, 16000, 32000, 48000}) { in TEST() 58 const int number_of_noise_frames = RunClassifier(WhiteNoiseGenerator, rate); in TEST() 66 for (const auto rate : {8000, 16000, 32000, 48000}) { in TEST() 67 test::SineGenerator gen(600.f, rate); in TEST() 68 const int number_of_noise_frames = RunClassifier(gen, rate); in TEST() 76 for (const auto rate : {8000, 16000, 32000, 48000}) { in TEST() 77 test::PulseGenerator gen(30.f, rate); in TEST() [all …]
|
D | noise_level_estimator_unittest.cc | 32 float RunEstimator(std::function<float()> sample_generator, int rate) { in RunEstimator() argument 35 rtc::CheckedDivExact(rate, kFramesPerSecond); in RunEstimator() 57 for (const auto rate : {8000, 16000, 32000, 48000}) { in TEST() 58 const float noise_level = RunEstimator(WhiteNoiseGenerator, rate); in TEST() 66 for (const auto rate : {8000, 16000, 32000, 48000}) { in TEST() 67 test::SineGenerator gen(600.f, rate); in TEST() 68 const float noise_level = RunEstimator(gen, rate); in TEST() 76 for (const auto rate : {8000, 16000, 32000, 48000}) { in TEST() 77 test::PulseGenerator gen(20.f, rate); in TEST() 78 const int noise_level = RunEstimator(gen, rate); in TEST()
|
/external/libgav1/libgav1/src/utils/ |
D | entropy_decoder.cc | 83 const int rate = (count >> 4) + 4 + static_cast<int>(symbol_count > 3); in UpdateCdf() local 109 cdf[i] += (kCdfMaxProbability - cdf[i]) >> rate; in UpdateCdf() 111 cdf[i] -= cdf[i] >> rate; in UpdateCdf() 174 const int rate = (count >> 4) + 5; in UpdateCdf5() local 185 const int16x4_t negative_rate = vdup_n_s16(-rate); in UpdateCdf5() 202 const int rate = (count >> 4) + 5; in UpdateCdf7To9() local 211 const int16x8_t negative_rate = vdupq_n_s16(-rate); in UpdateCdf7To9() 236 const int rate = (count >> 4) + 5; in UpdateCdf11() local 238 cdf[0] += (kCdfMaxProbability - cdf[0]) >> rate; in UpdateCdf11() 239 cdf[1] += (kCdfMaxProbability - cdf[1]) >> rate; in UpdateCdf11() [all …]
|
/external/iproute2/misc/ |
D | rtacct.c | 70 double rate[256*4]; member 133 static void format_rate(FILE *fp, double rate) in format_rate() argument 137 if (rate > 1024*1024) { in format_rate() 138 sprintf(temp, "%uM", (unsigned int)rint(rate/(1024*1024))); in format_rate() 140 } else if (rate > 1024) { in format_rate() 141 sprintf(temp, "%uK", (unsigned int)rint(rate/1024)); in format_rate() 144 fprintf(fp, " %-10u", (unsigned int)rate); in format_rate() 180 double *rate; in dump_abs_db() local 186 rate = &kern_db->rate[realm*4]; in dump_abs_db() 189 !val[0] && !rate[0] && in dump_abs_db() [all …]
|
/external/libaom/libaom/av1/encoder/ |
D | rd.h | 103 rd_stats->rate = 0; in av1_init_rd_stats() 128 rd_stats->rate = INT_MAX; in av1_invalid_rd_stats() 151 assert(rd_stats_dst->rate != INT_MAX && rd_stats_src->rate != INT_MAX); in av1_merge_rd_stats() 152 rd_stats_dst->rate = (int)AOMMIN( in av1_merge_rd_stats() 153 ((int64_t)rd_stats_dst->rate + (int64_t)rd_stats_src->rate), INT_MAX); in av1_merge_rd_stats() 181 int rate, int skip, int64_t sse, in av1_accumulate_rd_stats() argument 183 assert(rd_stats->rate != INT_MAX && rate != INT_MAX); in av1_accumulate_rd_stats() 184 rd_stats->rate += rate; in av1_accumulate_rd_stats() 191 static INLINE int64_t av1_calculate_rd_cost(int mult, int rate, int64_t dist) { in av1_calculate_rd_cost() argument 193 if (rate >= 0) { in av1_calculate_rd_cost() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_ossaudiodev.py | 29 rate = au.getframerate() 40 return (data, rate, 16, nchannels) 44 def play_sound_file(self, data, rate, ssize, nchannels): argument 75 expected_time = float(len(data)) / (ssize/8) / nchannels / rate 78 dsp.setparameters(AFMT_S16_NE, nchannels, rate) 102 (fmt, channels, rate) = config 105 dsp.speed(rate) == rate): 113 result = dsp.setparameters(fmt, channels, rate, False) 114 self.assertEqual(result, (fmt, channels, rate), 117 result = dsp.setparameters(fmt, channels, rate, True) [all …]
|
/external/adhd/cras/src/common/ |
D | cras_util.h | 39 static inline void cras_frames_to_time(unsigned int frames, unsigned int rate, in cras_frames_to_time() argument 42 t->tv_sec = frames / rate; in cras_frames_to_time() 43 frames = frames % rate; in cras_frames_to_time() 44 t->tv_nsec = (uint64_t)frames * 1000000000 / rate; in cras_frames_to_time() 48 static inline void cras_frames_to_time_precise(unsigned int frames, double rate, in cras_frames_to_time_precise() argument 51 double seconds = frames / rate; in cras_frames_to_time_precise() 59 unsigned int rate) in cras_time_to_frames() argument 61 return t->tv_nsec * (uint64_t)rate / 1000000000 + rate * t->tv_sec; in cras_time_to_frames() 66 unsigned int rate) in cras_frames_to_ms() argument 68 return 1000 * frames / rate; in cras_frames_to_ms() [all …]
|