Home
last modified time | relevance | path

Searched refs:ports (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphExporter.java167 Set<String> ports = new HashSet<String>(); in getInputPorts() local
168 ports.addAll(filter.getConnectedInputPortMap().keySet()); in getInputPorts()
175 ports.add(e.getKey()); in getInputPorts()
179 return ports; in getInputPorts()
185 Set<String> ports = new HashSet<String>(); in getOutputPorts() local
186 ports.addAll(filter.getConnectedOutputPortMap().keySet()); in getOutputPorts()
193 ports.add(e.getKey()); in getOutputPorts()
197 return ports; in getOutputPorts()
/frameworks/base/services/core/java/com/android/server/
DSerialService.java40 ArrayList<String> ports = new ArrayList<String>(); in getSerialPorts() local
44 ports.add(path); in getSerialPorts()
47 String[] result = new String[ports.size()]; in getSerialPorts()
48 ports.toArray(result); in getSerialPorts()
/frameworks/base/services/core/jni/
Dcom_android_server_hdmi_HdmiCecController.cpp266 hidl_vec<HdmiPortInfo> ports; in getPortInfos() local
267 Return<void> ret = mHdmiCec->getPortInfo([&ports](hidl_vec<HdmiPortInfo> list) { in getPortInfos()
268 ports = list; in getPortInfos()
274 jobjectArray res = env->NewObjectArray(ports.size(), hdmiPortInfo, NULL); in getPortInfos()
278 for (size_t i = 0; i < ports.size(); ++i) { in getPortInfos()
279 jboolean cecSupported = (jboolean) ports[i].cecSupported; in getPortInfos()
280 jboolean arcSupported = (jboolean) ports[i].arcSupported; in getPortInfos()
281 jobject infoObj = env->NewObject(hdmiPortInfo, ctor, ports[i].portId, ports[i].type, in getPortInfos()
282 ports[i].physicalAddress, cecSupported, mhlSupported, arcSupported); in getPortInfos()
/frameworks/base/core/java/android/webkit/
DWebMessage.java45 public WebMessage(String data, WebMessagePort[] ports) { in WebMessage() argument
47 mPorts = ports; in WebMessage()
/frameworks/base/tests/SerialChat/src/com/android/serialchat/
DSerialChat.java74 String[] ports = mSerialManager.getSerialPorts(); in onResume() local
75 if (ports != null && ports.length > 0) { in onResume()
77 mSerialPort = mSerialManager.openSerialPort(ports[0], 115200); in onResume()
/frameworks/base/media/java/android/media/midi/
DMidiDeviceInfo.java283 PortInfo[] ports = new PortInfo[mInputPortCount + mOutputPortCount]; in getPorts() local
287 ports[index++] = new PortInfo(PortInfo.TYPE_INPUT, i, mInputPortNames[i]); in getPorts()
290 ports[index++] = new PortInfo(PortInfo.TYPE_OUTPUT, i, mOutputPortNames[i]); in getPorts()
293 return ports; in getPorts()
/frameworks/base/media/java/android/media/
DAudioPortEventHandler.java97 ArrayList<AudioPort> ports = new ArrayList<AudioPort>(); in init()
100 int status = AudioManager.updateAudioPortCache(ports, patches, null); in init()
115 AudioPort[] portList = ports.toArray(new AudioPort[0]); in init()
DAudioManager.java5191 public static int listAudioPorts(ArrayList<AudioPort> ports) { in listAudioPorts() argument
5192 return updateAudioPortCache(ports, null, null); in listAudioPorts()
5201 public static int listPreviousAudioPorts(ArrayList<AudioPort> ports) { in listPreviousAudioPorts() argument
5202 return updateAudioPortCache(null, null, ports); in listPreviousAudioPorts()
5214 ArrayList<AudioPort> ports = new ArrayList<AudioPort>(); in listAudioDevicePorts() local
5215 int status = updateAudioPortCache(ports, null, null); in listAudioDevicePorts()
5217 filterDevicePorts(ports, devices); in listAudioDevicePorts()
5231 ArrayList<AudioPort> ports = new ArrayList<AudioPort>(); in listPreviousAudioDevicePorts() local
5232 int status = updateAudioPortCache(null, null, ports); in listPreviousAudioDevicePorts()
5234 filterDevicePorts(ports, devices); in listPreviousAudioDevicePorts()
[all …]
/frameworks/opt/net/voip/src/java/android/net/sip/
DSimpleSessionDescription.java93 String[] ports = parts[1].split("/", 2); in SimpleSessionDescription() local
94 Media media = newMedia(parts[0], Integer.parseInt(ports[0]), in SimpleSessionDescription()
95 (ports.length < 2) ? 1 : Integer.parseInt(ports[1]), in SimpleSessionDescription()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiControlManager.java361 List<HdmiPortInfo> ports = new ArrayList<>(); in onReceived() local
363 ports = mService.getPortInfo(); in onReceived()
367 if (ports.isEmpty()) { in onReceived()
373 for (HdmiPortInfo port : ports) { in onReceived()
/frameworks/base/core/java/android/hardware/usb/
DUsbManager.java885 ArrayList<UsbPort> ports = new ArrayList<>(numPorts); in getPorts() local
887 ports.add(parcelablePorts.get(i).getUsbPort(this)); in getPorts()
890 return ports; in getPorts()
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp280 const std::unordered_map<std::string, uint8_t>& ports = config->portAssociations; in configure() local
281 const auto& displayPort = ports.find(inputPort); in configure()
282 if (displayPort != ports.end()) { in configure()
/frameworks/av/media/libaudioclient/
DIAudioFlinger.cpp780 struct audio_port *ports) in listAudioPorts() argument
782 if (num_ports == NULL || *num_ports == 0 || ports == NULL) { in listAudioPorts()
794 reply.read(ports, *num_ports * sizeof(struct audio_port)); in listAudioPorts()
1463 struct audio_port *ports = in onTransact() local
1466 if (ports == NULL) { in onTransact()
1471 status_t status = listAudioPorts(&numPorts, ports); in onTransact()
1478 reply->write(ports, numPortsReq * sizeof(struct audio_port)); in onTransact()
1480 free(ports); in onTransact()
DIAudioPolicyService.cpp681 struct audio_port *ports, in listAudioPorts() argument
684 if (num_ports == NULL || (*num_ports != 0 && ports == NULL) || in listAudioPorts()
690 unsigned int numPortsReq = (ports == NULL) ? 0 : *num_ports; in listAudioPorts()
704 reply.read(ports, numPortsReq * sizeof(struct audio_port)); in listAudioPorts()
2062 struct audio_port *ports = in onTransact() local
2064 if (ports == NULL) { in onTransact()
2070 status_t status = listAudioPorts(role, type, &numPorts, ports, &generation); in onTransact()
2078 reply->write(ports, numPortsReq * sizeof(struct audio_port)); in onTransact()
2081 free(ports); in onTransact()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/omadm/
DPpsMoParser.java1502 String ports = null; in parseProtoPortTuple() local
1509 ports = getPpsNodeValue(child); in parseProtoPortTuple()
1519 if (ports == null) { in parseProtoPortTuple()
1522 return Pair.create(proto, ports); in parseProtoPortTuple()
/frameworks/av/services/audioflinger/
DPatchPanel.cpp51 struct audio_port *ports) in listAudioPorts() argument
54 return mPatchPanel.listAudioPorts(num_ports, ports); in listAudioPorts()
99 struct audio_port *ports __unused) in listAudioPorts()
DPatchPanel.h52 struct audio_port *ports);
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbService.java662 final UsbPort[] ports = mPortManager.getPorts(); in getPorts() local
664 final int numPorts = ports.length; in getPorts()
667 parcelablePorts.add(ParcelableUsbPort.of(ports[i])); in getPorts()
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java994 int[] ports = res.getIntArray( in isDisplayPrivate() local
996 if (ports != null) { in isDisplayPrivate()
998 for (int p : ports) { in isDisplayPrivate()
/frameworks/av/media/libaudioclient/include/media/
DIAudioPolicyService.h163 struct audio_port *ports,
DIAudioFlinger.h504 struct audio_port *ports) = 0;
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp227 struct audio_port ports[numPorts]; in findDevicePort() local
228 ret = mManager->listAudioPorts(role, AUDIO_PORT_TYPE_DEVICE, &numPorts, ports, &generation2); in findDevicePort()
233 for (const auto &port : ports) { in findDevicePort()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointXmlUtils.java893 String ports = (String) XmlUtil.readNextValueWithName(in, XML_TAG_PORTS); in deserializeProtoPortMap() local
894 protoPortMap.put(proto, ports); in deserializeProtoPortMap()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h230 struct audio_port *ports,
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceInventory.java1250 ArrayList<AudioPort> ports = new ArrayList<AudioPort>(); in configureHdmiPlugIntent() local
1252 int status = AudioSystem.listAudioPorts(ports, portGeneration); in configureHdmiPlugIntent()
1257 for (AudioPort port : ports) { in configureHdmiPlugIntent()

12