Lines Matching refs:ports
3482 * Returns a list of descriptors for all audio ports managed by the audio framework.
3483 * Audio ports are nodes in the audio framework or audio hardware that can be configured
3486 * @param ports An AudioPort ArrayList where the list will be returned.
3489 public int listAudioPorts(ArrayList<AudioPort> ports) {
3490 return updateAudioPortCache(ports, null);
3499 ArrayList<AudioPort> ports = new ArrayList<AudioPort>();
3500 int status = updateAudioPortCache(ports, null);
3503 for (int i = 0; i < ports.size(); i++) {
3504 if (ports.get(i) instanceof AudioDevicePort) {
3505 devices.add(ports.get(i));
3521 * @param sources List of source audio ports. All must be AudioPort.ROLE_SOURCE.
3522 * @param sinks List of sink audio ports. All must be AudioPort.ROLE_SINK.
3557 * List all existing connections between audio ports.
3589 * @param portList the updated list of audio ports
3639 static int updateAudioPortCache(ArrayList<AudioPort> ports, ArrayList<AudioPatch> patches) {
3692 // Temporarily remove patches with invalid ports. One who created the patch
3702 if (ports != null) {
3703 ports.clear();
3704 ports.addAll(sAudioPortsCached);
3714 static AudioPortConfig updatePortConfig(AudioPortConfig portCfg, ArrayList<AudioPort> ports) {
3717 for (k = 0; k < ports.size(); k++) {
3720 if (ports.get(k).handle().equals(port.handle())) {
3721 port = ports.get(k);
3725 if (k == ports.size()) {