Home
last modified time | relevance | path

Searched refs:patches (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPatch.cpp92 struct audio_patch *patches) const in listAudioPatches()
94 if (num_patches == NULL || (*num_patches != 0 && patches == NULL)) { in listAudioPatches()
98 *num_patches, patches, size()); in listAudioPatches()
99 if (patches == NULL) { in listAudioPatches()
127 patches[patchesWritten] = patch->mPatch; in listAudioPatches()
128 patches[patchesWritten++].id = patch->getHandle(); in listAudioPatches()
/frameworks/base/media/java/android/media/
DHwAudioSource.java153 ArrayList<AudioPatch> patches = new ArrayList<AudioPatch>(); in getDeviceId() local
154 if (AudioManager.listAudioPatches(patches) != AudioManager.SUCCESS) { in getDeviceId()
158 for (int i = 0; i < patches.size(); i++) { in getDeviceId()
159 AudioPatch patch = patches.get(i); in getDeviceId()
DAudioPortEventHandler.java99 ArrayList<AudioPatch> patches = new ArrayList<AudioPatch>(); in init()
101 int status = AudioManager.updateAudioPortCache(ports, patches, null); in init()
126 AudioPatch[] patchList = patches.toArray(new AudioPatch[0]); in init()
DAudioRecordingConfiguration.java254 ArrayList<AudioPatch> patches = new ArrayList<AudioPatch>(); in getAudioDevice() local
255 if (AudioManager.listAudioPatches(patches) != AudioManager.SUCCESS) { in getAudioDevice()
259 for (int i = 0 ; i < patches.size() ; i++) { in getAudioDevice()
260 final AudioPatch patch = patches.get(i); in getAudioDevice()
DAudioManager.java7614 public static int listAudioPatches(ArrayList<AudioPatch> patches) { in listAudioPatches() argument
7615 return updateAudioPortCache(null, patches, null); in listAudioPatches()
7698 static int updateAudioPortCache(ArrayList<AudioPort> ports, ArrayList<AudioPatch> patches, in updateAudioPortCache() argument
7726 && (ports == null || patches == null)); in updateAudioPortCache()
7776 if (patches != null) { in updateAudioPortCache()
7777 patches.clear(); in updateAudioPortCache()
7778 patches.addAll(sAudioPatchesCached); in updateAudioPortCache()
/frameworks/av/media/libaudioclient/tests/
Daudio_test_utils.cpp651 std::vector<struct audio_patch> patches; in getPatchForOutputMix() local
652 status_t status = listAudioPatches(patches); in getPatchForOutputMix()
655 for (auto i = 0; i < patches.size(); i++) { in getPatchForOutputMix()
656 for (auto j = 0; j < patches[i].num_sources; j++) { in getPatchForOutputMix()
657 if (patches[i].sources[j].type == AUDIO_PORT_TYPE_MIX && in getPatchForOutputMix()
658 patches[i].sources[j].ext.mix.handle == audioIo) { in getPatchForOutputMix()
659 patch = patches[i]; in getPatchForOutputMix()
668 std::vector<struct audio_patch> patches; in getPatchForInputMix() local
669 status_t status = listAudioPatches(patches); in getPatchForInputMix()
672 for (auto i = 0; i < patches.size(); i++) { in getPatchForInputMix()
[all …]
Daudiosystem_tests.cpp38 std::vector<struct audio_patch> patches; in anyPatchContainsInputDevice() local
39 status_t status = listAudioPatches(patches); in anyPatchContainsInputDevice()
42 for (const auto& patch : patches) { in anyPatchContainsInputDevice()
/frameworks/av/services/audioflinger/
DPatchPanel.h52 struct audio_patch* patches) final
58 std::vector<SoftwarePatch>* patches) const final;
DDeviceEffectManager.cpp103 const std::map<audio_patch_handle_t, IAfPatchPanel::Patch>& patches, in createEffect_l() argument
146 lStatus = effect->init_l(patches); in createEffect_l()
DIAfPatchPanel.h281 virtual status_t listAudioPatches_l(unsigned int* num_patches, struct audio_patch* patches)
287 audio_io_handle_t stream, std::vector<SoftwarePatch>* patches) const = 0;
DDeviceEffectManager.h52 const std::map<audio_patch_handle_t, IAfPatchPanel::Patch>& patches,
DPatchPanel.cpp876 struct audio_patch *patches __unused) in listAudioPatches_l()
884 std::vector<SoftwarePatch>* patches) const in getDownstreamSoftwarePatches()
892 patches->emplace_back(sp<const IAfPatchPanel>::fromExisting(this), in getDownstreamSoftwarePatches()
DIAfEffect.h392 virtual status_t init_l(const std::map<audio_patch_handle_t, IAfPatchPanel::Patch>& patches)
DAudioFlinger.h196 struct audio_patch* patches) const final EXCLUDES_AudioFlinger_Mutex;
/frameworks/ex/camera2/extensions/
DREADME.android6 Local patches
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPatch.h61 status_t listAudioPatches(unsigned int *num_patches, struct audio_patch *patches) const;
/frameworks/av/media/libaudiohal/tests/
DCoreAudioHalAidl_test.cpp94 std::vector<AudioPatch> patches; member
297 std::vector<::aidl::android::hardware::audio::core::AudioPatch>* patches) override { in getAudioPatches() argument
298 *patches = mConfig.patches; in getAudioPatches()
354 mConfig.patches.push_back(*patch); in setAudioPatch()
357 auto iter = findById<AudioPatch>(mConfig.patches, requested.id); in setAudioPatch()
358 if (iter == mConfig.patches.end()) { in setAudioPatch()
396 auto iter = findById<AudioPatch>(mConfig.patches, patchId); in resetAudioPatch()
397 if (iter == mConfig.patches.end()) { in resetAudioPatch()
400 mConfig.patches.erase(iter); in resetAudioPatch()
1239 auto patches = mModule->getPatches(); in TEST_F() local
[all …]
/frameworks/av/media/libaudiohal/impl/
DHal2AidlMapper.cpp737 std::vector<AudioPatch> patches; in initialize() local
739 statusTFromBinderStatus(mModule->getAudioPatches(&patches))); // OK if empty in initialize()
740 std::transform(patches.begin(), patches.end(), in initialize()
/frameworks/av/media/libaudioclient/aidl/android/media/
DIAudioPolicyService.aidl253 int listAudioPatches(inout Int count, out AudioPatchFw[] patches); in listAudioPatches() argument
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h267 struct audio_patch *patches,
/frameworks/av/media/libaudioclient/include/media/
DIAudioFlinger.h329 struct audio_patch* patches) const = 0;
480 struct audio_patch* patches) const override;
DAudioSystem.h471 struct audio_patch *patches,
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp759 struct audio_patch patches = {}; in invokeAudioPatch() local
760 af->listAudioPatches(&num_patches, &patches); in invokeAudioPatch()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp1687 std::unique_ptr<audio_patch[]> patches(new audio_patch[num_patches]); in listAudioPatches() local
1696 mAudioPolicyManager->listAudioPatches(&num_patches, patches.get(), &generation))); in listAudioPatches()
1699 convertRange(patches.get(), patches.get() + numPatchesReq, in listAudioPatches()
/frameworks/base/tools/aapt2/
Dreadme.md56 NOTE: 9-patches will not be processed correctly with this flag set.

12