Home
last modified time | relevance | path

Searched refs:numPorts (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/services/audiopolicy/tests/
Daudio_health_tests.cpp33 unsigned int numPorts; in TEST() local
43 numPorts = 0; in TEST()
45 AUDIO_PORT_ROLE_NONE, AUDIO_PORT_TYPE_DEVICE, &numPorts, NULL, &generation1)); in TEST()
46 if (numPorts == 0) { in TEST()
51 audioPorts = (struct audio_port *)realloc(audioPorts, numPorts * sizeof(struct audio_port)); in TEST()
53 AUDIO_PORT_ROLE_NONE, AUDIO_PORT_TYPE_DEVICE, &numPorts, audioPorts, &generation); in TEST()
60 for (int i = 0 ; i < numPorts; i++) { in TEST()
Daudiopolicymanager_tests.cpp210 uint32_t numPorts = 0; in findDevicePort() local
214 ret = mManager->listAudioPorts(role, AUDIO_PORT_TYPE_DEVICE, &numPorts, nullptr, &generation1); in findDevicePort()
219 struct audio_port ports[numPorts]; in findDevicePort()
220 ret = mManager->listAudioPorts(role, AUDIO_PORT_TYPE_DEVICE, &numPorts, ports, &generation2); in findDevicePort()
/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java864 int numPorts = parcelablePorts.size(); in getPorts() local
866 ArrayList<UsbPort> ports = new ArrayList<>(numPorts); in getPorts()
867 for (int i = 0; i < numPorts; i++) { in getPorts()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp1368 unsigned int numPorts; in android_media_AudioSystem_listAudioPorts() local
1381 numPorts = 0; in android_media_AudioSystem_listAudioPorts()
1384 &numPorts, in android_media_AudioSystem_listAudioPorts()
1391 if (numPorts == 0) { in android_media_AudioSystem_listAudioPorts()
1395 nPorts = (struct audio_port *)realloc(nPorts, numPorts * sizeof(struct audio_port)); in android_media_AudioSystem_listAudioPorts()
1399 &numPorts, in android_media_AudioSystem_listAudioPorts()
1403 numPorts, generation, generation1); in android_media_AudioSystem_listAudioPorts()
1411 for (size_t i = 0; i < numPorts; i++) { in android_media_AudioSystem_listAudioPorts()
/frameworks/av/media/libaudioclient/
DIAudioFlinger.cpp1459 unsigned int numPorts = numPortsReq; in onTransact() local
1468 status_t status = listAudioPorts(&numPorts, ports); in onTransact()
1470 reply->writeInt32(numPorts); in onTransact()
1472 if (numPortsReq > numPorts) { in onTransact()
1473 numPortsReq = numPorts; in onTransact()
DIAudioPolicyService.cpp1902 unsigned int numPorts = numPortsReq; in onTransact() local
1911 status_t status = listAudioPorts(role, type, &numPorts, ports, &generation); in onTransact()
1913 reply->writeInt32(numPorts); in onTransact()
1916 if (numPortsReq > numPorts) { in onTransact()
1917 numPortsReq = numPorts; in onTransact()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbService.java516 final int numPorts = ports.length; in getPorts() local
518 for (int i = 0; i < numPorts; i++) { in getPorts()