Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java818 int numPorts = parcelablePorts.size(); in getPorts() local
820 ArrayList<UsbPort> ports = new ArrayList<>(numPorts); in getPorts()
821 for (int i = 0; i < numPorts; i++) { in getPorts()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp1367 unsigned int numPorts; in android_media_AudioSystem_listAudioPorts() local
1380 numPorts = 0; in android_media_AudioSystem_listAudioPorts()
1383 &numPorts, in android_media_AudioSystem_listAudioPorts()
1390 if (numPorts == 0) { in android_media_AudioSystem_listAudioPorts()
1394 nPorts = (struct audio_port *)realloc(nPorts, numPorts * sizeof(struct audio_port)); in android_media_AudioSystem_listAudioPorts()
1398 &numPorts, in android_media_AudioSystem_listAudioPorts()
1402 numPorts, generation, generation1); in android_media_AudioSystem_listAudioPorts()
1410 for (size_t i = 0; i < numPorts; i++) { in android_media_AudioSystem_listAudioPorts()
/frameworks/av/media/libaudioclient/
DIAudioFlinger.cpp1429 unsigned int numPorts = numPortsReq; in onTransact() local
1438 status_t status = listAudioPorts(&numPorts, ports); in onTransact()
1440 reply->writeInt32(numPorts); in onTransact()
1442 if (numPortsReq > numPorts) { in onTransact()
1443 numPortsReq = numPorts; in onTransact()
DIAudioPolicyService.cpp1837 unsigned int numPorts = numPortsReq; in onTransact() local
1846 status_t status = listAudioPorts(role, type, &numPorts, ports, &generation); in onTransact()
1848 reply->writeInt32(numPorts); in onTransact()
1851 if (numPortsReq > numPorts) { in onTransact()
1852 numPortsReq = numPorts; in onTransact()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbService.java513 final int numPorts = ports.length; in getPorts() local
515 for (int i = 0; i < numPorts; i++) { in getPorts()