Searched refs:numPorts (Results 1 – 7 of 7) sorted by relevance
/frameworks/av/services/audiopolicy/tests/ |
D | audio_health_tests.cpp | 33 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()
|
D | audiopolicymanager_tests.cpp | 210 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/ |
D | UsbManager.java | 864 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/ |
D | android_media_AudioSystem.cpp | 1368 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/ |
D | IAudioFlinger.cpp | 1459 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()
|
D | IAudioPolicyService.cpp | 1902 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/ |
D | UsbService.java | 516 final int numPorts = ports.length; in getPorts() local 518 for (int i = 0; i < numPorts; i++) { in getPorts()
|