Home
last modified time | relevance | path

Searched refs:kFrameLengths (Results 1 – 4 of 4) sorted by relevance

/external/webrtc/common_audio/vad/
Dvad_core_unittest.cc69 if (ValidRatesAndFrameLengths(8000, kFrameLengths[j])) { in TEST_F()
70 EXPECT_EQ(0, WebRtcVad_CalcVad8khz(self, speech, kFrameLengths[j])); in TEST_F()
72 if (ValidRatesAndFrameLengths(16000, kFrameLengths[j])) { in TEST_F()
73 EXPECT_EQ(0, WebRtcVad_CalcVad16khz(self, speech, kFrameLengths[j])); in TEST_F()
75 if (ValidRatesAndFrameLengths(32000, kFrameLengths[j])) { in TEST_F()
76 EXPECT_EQ(0, WebRtcVad_CalcVad32khz(self, speech, kFrameLengths[j])); in TEST_F()
78 if (ValidRatesAndFrameLengths(48000, kFrameLengths[j])) { in TEST_F()
79 EXPECT_EQ(0, WebRtcVad_CalcVad48khz(self, speech, kFrameLengths[j])); in TEST_F()
89 if (ValidRatesAndFrameLengths(8000, kFrameLengths[j])) { in TEST_F()
90 EXPECT_EQ(1, WebRtcVad_CalcVad8khz(self, speech, kFrameLengths[j])); in TEST_F()
[all …]
Dvad_unittest.cc75 WebRtcVad_Process(nullptr, kRates[0], speech, kFrameLengths[0])); in TEST_F()
81 EXPECT_EQ(-1, WebRtcVad_Process(handle, kRates[0], speech, kFrameLengths[0])); in TEST_F()
97 WebRtcVad_Process(handle, kRates[0], nullptr, kFrameLengths[0])); in TEST_F()
99 EXPECT_EQ(-1, WebRtcVad_Process(handle, 9999, speech, kFrameLengths[0])); in TEST_F()
101 EXPECT_EQ(0, WebRtcVad_Process(handle, kRates[0], zeros, kFrameLengths[0])); in TEST_F()
108 if (ValidRatesAndFrameLengths(kRates[i], kFrameLengths[j])) { in TEST_F()
110 kFrameLengths[j])); in TEST_F()
113 kFrameLengths[j])); in TEST_F()
129 const size_t kFrameLengths[] = {0, 80, 81, 159, 160, 240, in TEST_F() local
133 for (size_t j = 0; j < arraysize(kFrameLengths); j++) { in TEST_F()
[all …]
Dvad_filterbank_unittest.cc46 if (ValidRatesAndFrameLengths(8000, kFrameLengths[j])) { in TEST_F()
48 WebRtcVad_CalculateFeatures(self, speech, kFrameLengths[j], in TEST_F()
63 if (ValidRatesAndFrameLengths(8000, kFrameLengths[j])) { in TEST_F()
64 EXPECT_EQ(0, WebRtcVad_CalculateFeatures(self, speech, kFrameLengths[j], in TEST_F()
78 if (ValidRatesAndFrameLengths(8000, kFrameLengths[j])) { in TEST_F()
80 EXPECT_EQ(0, WebRtcVad_CalculateFeatures(self, speech, kFrameLengths[j], in TEST_F()
Dvad_unittest.h31 const size_t kFrameLengths[] = { variable
33 const size_t kFrameLengthsSize = sizeof(kFrameLengths) / sizeof(*kFrameLengths);