Home
last modified time | relevance | path

Searched refs:mels (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/services/audioflinger/sounddose/tests/
Dsounddosemanager_tests.cpp126 std::vector<float>mels{1.f, 1.f}; in TEST_F() local
131 EXPECT_THAT(record.mels, ::testing::ElementsAreArray(mels)); in TEST_F()
135 mSoundDoseManager->onNewMelValues(mels, 0, mels.size(), /*deviceId=*/1, in TEST_F()
140 std::vector<float>mels{79.f, 80.f, 79.f, 80.f, 79.f, 79.f, 80.f}; in TEST_F() local
145 EXPECT_EQ(record.mels.size(), size_t {1}); in TEST_F()
146 EXPECT_EQ(record.mels[0], 80.f); in TEST_F()
150 mSoundDoseManager->onNewMelValues(mels, 0, mels.size(), /*deviceId=*/1, in TEST_F()
/frameworks/av/services/audioflinger/sounddose/
DSoundDoseManager.cpp647 void SoundDoseManager::onNewMelValues(const std::vector<float>& mels, size_t offset, size_t length, in onNewMelValues() argument
669 std::vector<float>(mels.begin() + offset, mels.begin() + offset + length), in onNewMelValues()
678 for (; stop < mels.size() && stop < offset + length; ++stop) { in onNewMelValues()
679 if (mels[stop] - attenuation < kDefaultRs2LowerBound) { in onNewMelValues()
683 std::transform(mels.begin() + start, mels.begin() + stop, attMel.begin(), in onNewMelValues()
699 std::transform(mels.begin() + start, mels.begin() + stop, attMel.begin(), in onNewMelValues()
794 for (const auto& mel : melRecord.mels) { in dump()
DSoundDoseManager.h155 void onNewMelValues(const std::vector<float>& mels, size_t offset, size_t length,