Home
last modified time | relevance | path

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

/frameworks/av/media/libaudiohal/tests/
DCoreAudioHalAidl_test.cpp395 ndk::ScopedAStatus resetAudioPatch(int32_t patchId) override { in resetAudioPatch() argument
396 auto iter = findById<AudioPatch>(mConfig.patches, patchId); in resetAudioPatch()
961 void CreateFwkPatch(int32_t* patchId) { in CreateFwkPatch() argument
965 ASSERT_EQ(OK, mMapper->createOrUpdatePatch({mMixPortConfig}, {mDevicePortConfig}, patchId, in CreateFwkPatch()
975 void ReleaseFwkOnlyPatch(int32_t patchId) { in ReleaseFwkOnlyPatch() argument
977 EXPECT_EQ(patchId, mMapper->findFwkPatch(patchId)); in ReleaseFwkOnlyPatch()
978 ASSERT_EQ(BAD_VALUE, mMapper->releaseAudioPatch(patchId)); in ReleaseFwkOnlyPatch()
979 mMapper->eraseFwkPatch(patchId); in ReleaseFwkOnlyPatch()
981 EXPECT_EQ(0, mMapper->findFwkPatch(patchId)); in ReleaseFwkOnlyPatch()
1056 int32_t patchId; in TEST_F() local
[all …]
/frameworks/av/media/libaudiohal/impl/
DHal2AidlMapper.cpp106 const sp<StreamHalInterface>& stream, int32_t mixPortConfigId, int32_t patchId) { in addStream() argument
107 mStreams.insert(std::pair(stream, std::pair(mixPortConfigId, patchId))); in addStream()
128 int32_t* patchId, Cleanups* cleanups) { in createOrUpdatePatch() argument
129 auto existingPatchIt = *patchId != 0 ? mPatches.find(*patchId): mPatches.end(); in createOrUpdatePatch()
141 __func__, *patchId, ::android::internal::ToString(sources).c_str(), in createOrUpdatePatch()
217 *patchId = patch.id; in createOrUpdatePatch()
748 for (const auto& [patchId, patch] : mPatches) { in getPatchIdsByPortId()
751 result.insert(patchId); in getPatchIdsByPortId()
757 result.insert(patchId); in getPatchIdsByPortId()
890 status_t Hal2AidlMapper::releaseAudioPatch(int32_t patchId) { in releaseAudioPatch() argument
[all …]
DHal2AidlMapper.h52 void addStream(const sp<StreamHalInterface>& stream, int32_t mixPortConfigId, int32_t patchId);
56 int32_t* patchId, Cleanups* cleanups);
93 status_t releaseAudioPatch(int32_t patchId);
210 void resetPatch(int32_t patchId) { (void)releaseAudioPatch(patchId); } in resetPatch() argument