Home
last modified time | relevance | path

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

123

/frameworks/base/ravenwood/services-test/test/com/android/ravenwoodtest/servicestest/
DRavenwoodServicesTest.java64 final String[] ports = service.getSerialPorts(); in testSimple() local
65 assertEquals(0, ports.length); in testSimple()
79 final String[] ports = service.getSerialPorts(); in testDriven() local
80 assertEquals(1, ports.length); in testDriven()
81 assertEquals(TEST_VIRTUAL_PORT, ports[0]); in testDriven()
/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/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyConfig.cpp42 const std::unordered_map<int32_t, sp<PolicyAudioPort>>& ports) { in aidl2legacy_portId_PolicyAudioPort() argument
43 if (auto it = ports.find(portId); it != ports.end()) { in aidl2legacy_portId_PolicyAudioPort()
51 const std::unordered_map<int32_t, sp<PolicyAudioPort>>& ports) { in aidl2legacy_AudioRoute() argument
53 auto legacySink = VALUE_OR_RETURN(aidl2legacy_portId_PolicyAudioPort(aidl.sinkPortId, ports)); in aidl2legacy_AudioRoute()
58 aidl2legacy_portId_PolicyAudioPort(portId, ports)); in aidl2legacy_AudioRoute()
80 std::unordered_map<int32_t, sp<PolicyAudioPort>> ports; in aidl2legacy_AudioHwModule_HwModule() local
81 for (const auto& aidlPort : aidl.ports) { in aidl2legacy_AudioHwModule_HwModule()
101 ports.emplace(aidlPort.id, mixPort); in aidl2legacy_AudioHwModule_HwModule()
115 ports.emplace(aidlPort.id, devicePort); in aidl2legacy_AudioHwModule_HwModule()
141 sp<AudioRoute> legacy = VALUE_OR_RETURN_STATUS(aidl2legacy_AudioRoute(aidlRoute, ports)); in aidl2legacy_AudioHwModule_HwModule()
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DUsbCommand.java173 List<UsbPort> ports = usbManager.getPorts(); in run() local
174 final int numPorts = ports.size(); in run()
178 portStatus = ports.get(portNum).getStatus(); in run()
180 port = ports.get(portNum); in run()
186 UsbPortStatus status = ports.get(portNum).getStatus(); in run()
188 port = ports.get(portNum); in run()
/frameworks/av/media/libaudioclient/tests/
Daudiosystem_tests.cpp214 std::vector<struct audio_port_v7> ports; in TEST_F() local
219 status_t status = listAudioPorts(ports); in TEST_F()
221 if (ports.empty()) { in TEST_F()
226 for (const auto& port : ports) { in TEST_F()
264 std::vector<struct audio_port_v7> ports; in TEST_F() local
275 status = listAudioPorts(ports); in TEST_F()
277 if (ports.empty()) { in TEST_F()
282 for (const auto& port : ports) { in TEST_F()
322 std::vector<struct audio_port_v7> ports; in TEST_F() local
323 status_t status = listAudioPorts(ports); in TEST_F()
[all …]
Daudio_test_utils.cpp594 std::vector<struct audio_port_v7> ports; in getPortById() local
595 status_t status = listAudioPorts(ports); in getPortById()
597 for (auto i = 0; i < ports.size(); i++) { in getPortById()
598 if (ports[i].id == portId) { in getPortById()
599 port = ports[i]; in getPortById()
609 std::vector<struct audio_port_v7> ports; in getPortByAttributes() local
610 status_t status = listAudioPorts(ports); in getPortByAttributes()
612 for (auto i = 0; i < ports.size(); i++) { in getPortByAttributes()
613 if (ports[i].role == role && ports[i].type == type && in getPortByAttributes()
614 ports[i].ext.device.type == deviceType && in getPortByAttributes()
[all …]
Daudiorouting_tests.cpp34 std::vector<struct audio_port_v7> ports; in TEST() local
35 ASSERT_EQ(OK, listAudioPorts(ports)); in TEST()
41 for (const auto& port : ports) { in TEST()
Daudioeffect_tests.cpp47 bool doesDeviceSupportLowLatencyMode(std::vector<struct audio_port_v7>& ports) { in doesDeviceSupportLowLatencyMode() argument
48 for (const auto& port : ports) { in doesDeviceSupportLowLatencyMode()
371 std::vector<struct audio_port_v7> ports; in SetUp() local
372 ASSERT_EQ(OK, listAudioPorts(ports)); in SetUp()
373 if (!doesDeviceSupportLowLatencyMode(ports)) { in SetUp()
/frameworks/base/services/core/java/com/android/server/
DSerialService.java89 final ArrayList<String> ports = new ArrayList<>(); in getSerialPorts() local
92 ports.add(path); in getSerialPorts()
95 return ports.toArray(new String[ports.size()]); in getSerialPorts()
/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.java393 PortInfo[] ports = new PortInfo[mInputPortCount + mOutputPortCount]; in getPorts() local
397 ports[index++] = new PortInfo(PortInfo.TYPE_INPUT, i, mInputPortNames[i]); in getPorts()
400 ports[index++] = new PortInfo(PortInfo.TYPE_OUTPUT, i, mOutputPortNames[i]); in getPorts()
403 return ports; in getPorts()
/frameworks/base/media/java/android/media/
DAudioPortEventHandler.java98 ArrayList<AudioPort> ports = new ArrayList<AudioPort>(); in init()
101 int status = AudioManager.updateAudioPortCache(ports, patches, null); in init()
116 AudioPort[] portList = ports.toArray(new AudioPort[0]); in init()
DAudioManager.java7504 public static int listAudioPorts(ArrayList<AudioPort> ports) { in listAudioPorts() argument
7505 return updateAudioPortCache(ports, null, null); in listAudioPorts()
7514 public static int listPreviousAudioPorts(ArrayList<AudioPort> ports) { in listPreviousAudioPorts() argument
7515 return updateAudioPortCache(null, null, ports); in listPreviousAudioPorts()
7527 ArrayList<AudioPort> ports = new ArrayList<AudioPort>(); in listAudioDevicePorts() local
7528 int status = updateAudioPortCache(ports, null, null); in listAudioDevicePorts()
7530 filterDevicePorts(ports, devices); in listAudioDevicePorts()
7544 ArrayList<AudioPort> ports = new ArrayList<AudioPort>(); in listPreviousAudioDevicePorts() local
7545 int status = updateAudioPortCache(null, null, ports); in listPreviousAudioDevicePorts()
7547 filterDevicePorts(ports, devices); in listPreviousAudioDevicePorts()
[all …]
/frameworks/av/media/libaudiohal/tests/
DCoreAudioHalAidl_test.cpp91 std::vector<AudioPort> ports; member
172 c.ports.push_back(micInDevice); in getTestConfiguration()
178 c.ports.push_back(micInBackDevice); in getTestConfiguration()
183 c.ports.push_back(primaryInMix); in getTestConfiguration()
188 c.ports.push_back(speakerOutDevice); in getTestConfiguration()
195 c.ports.push_back(btOutDevice); in getTestConfiguration()
200 c.ports.push_back(btOutMix); in getTestConfiguration()
253 auto iter = findById<AudioPort>(mConfig.ports, src.id); in connectExternalDevice()
254 if (iter == mConfig.ports.end()) { in connectExternalDevice()
261 mConfig.ports.push_back(*port); in connectExternalDevice()
[all …]
/frameworks/av/media/libaudioclient/aidl/android/media/
DAudioHwModule.aidl29 AudioPort[] ports;
/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/native/services/inputflinger/reader/
DInputDevice.cpp289 const std::unordered_map<std::string, uint8_t>& ports = in configureInternal() local
291 const auto& displayPort = ports.find(inputDeviceDescriptor); in configureInternal()
292 if (displayPort != ports.end()) { in configureInternal()
309 const std::unordered_map<std::string, uint8_t>& ports = in configureInternal() local
311 const auto& displayPort = ports.find(inputPort); in configureInternal()
312 if (displayPort != ports.end()) { in configureInternal()
/frameworks/av/media/libaudiohal/impl/
DHal2AidlMapper.cpp652 std::vector<AudioPort> ports; in initialize() local
653 RETURN_STATUS_IF_ERROR(statusTFromBinderStatus(mModule->getAudioPorts(&ports))); in initialize()
654 ALOGW_IF(ports.empty(), "%s: module %s returned an empty list of audio ports", in initialize()
658 for (auto it = ports.begin(); it != ports.end(); ) { in initialize()
682 it = ports.erase(it); in initialize()
705 ports.push_back(std::move(connectedRSubmixIn)); in initialize()
720 ports.push_back(std::move(tempConnectedRSubmixOut)); in initialize()
725 std::transform(ports.begin(), ports.end(), std::inserter(mPorts, mPorts.end()), in initialize()
DHal2AidlMapper.h66 status_t getAudioPorts(OutputContainer* ports, Func converter) { in getAudioPorts() argument
67 return ::aidl::android::convertContainer(mPorts, ports, in getAudioPorts()
/frameworks/base/services/core/java/com/android/server/power/
DLowPowerStandbyController.java217 StandbyPortsLock(IBinder token, int uid, List<LowPowerStandbyPortDescription> ports) { in StandbyPortsLock() argument
220 mPorts = ports; in StandbyPortsLock()
978 @NonNull List<LowPowerStandbyPortDescription> ports) { in acquireStandbyPorts() argument
979 validatePorts(ports); in acquireStandbyPorts()
981 StandbyPortsLock standbyPortsLock = new StandbyPortsLock(token, uid, ports); in acquireStandbyPorts()
996 void validatePorts(@NonNull List<LowPowerStandbyPortDescription> ports) { in validatePorts() argument
997 for (LowPowerStandbyPortDescription portDescription : ports) { in validatePorts()
/frameworks/av/services/audioflinger/
DPatchPanel.h34 struct audio_port* ports) final REQUIRES(audio_utils::AudioFlinger_Mutex);
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDeviceTv.java179 List<HdmiPortInfo> ports = mService.getPortInfo(); in onAddressAllocated() local
180 for (HdmiPortInfo port : ports) { in onAddressAllocated()
1416 List<HdmiPortInfo> ports = mService.getPortInfo(); in forceDisableArcOnAllPins() local
1417 for (HdmiPortInfo port : ports) { in forceDisableArcOnAllPins()
1688 List<HdmiPortInfo> ports = mService.getPortInfo(); in computeDeviceFeatures() local
1689 for (HdmiPortInfo port : ports) { in computeDeviceFeatures()
/frameworks/av/media/libaudiohal/include/media/audiohal/
DDeviceHalInterface.h44 virtual status_t getAudioPorts(std::vector<media::audio::common::AudioPort> *ports) = 0;
/frameworks/base/core/java/android/os/
DIPowerManager.aidl92 … void acquireLowPowerStandbyPorts(in IBinder token, in List<LowPowerStandbyPortDescription> ports); in acquireLowPowerStandbyPorts() argument

123