Home
last modified time | relevance | path

Searched refs:numPatchesReq (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libaudioclient/
DIAudioPolicyService.cpp769 unsigned int numPatchesReq = (patches == NULL) ? 0 : *num_patches; in listAudioPatches() local
770 data.writeInt32(numPatchesReq); in listAudioPatches()
777 if (numPatchesReq > *num_patches) { in listAudioPatches()
778 numPatchesReq = *num_patches; in listAudioPatches()
780 if (numPatchesReq > 0) { in listAudioPatches()
781 reply.read(patches, numPatchesReq * sizeof(struct audio_patch)); in listAudioPatches()
2126 unsigned int numPatchesReq = data.readInt32(); in onTransact() local
2127 if (numPatchesReq > MAX_ITEMS_PER_LIST) { in onTransact()
2128 numPatchesReq = MAX_ITEMS_PER_LIST; in onTransact()
2130 unsigned int numPatches = numPatchesReq; in onTransact()
[all …]
DIAudioFlinger.cpp1521 unsigned int numPatchesReq = data.readInt32(); in onTransact() local
1522 if (numPatchesReq > MAX_ITEMS_PER_LIST) { in onTransact()
1523 numPatchesReq = MAX_ITEMS_PER_LIST; in onTransact()
1525 unsigned int numPatches = numPatchesReq; in onTransact()
1527 (struct audio_patch *)calloc(numPatchesReq, in onTransact()
1538 if (numPatchesReq > numPatches) { in onTransact()
1539 numPatchesReq = numPatches; in onTransact()
1541 reply->write(patches, numPatchesReq * sizeof(struct audio_patch)); in onTransact()