Home
last modified time | relevance | path

Searched refs:portId (Results 1 – 25 of 88) sorted by relevance

1234

/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/
DHdmiDeviceInfoTest.java36 int portId = 1; in testEquals() local
48 new HdmiDeviceInfo(phyAddr, portId), new HdmiDeviceInfo(phyAddr, portId)) in testEquals()
50 new HdmiDeviceInfo(phyAddr, portId, adopterId, deviceId), in testEquals()
51 new HdmiDeviceInfo(phyAddr, portId, adopterId, deviceId)) in testEquals()
54 logicalAddr, phyAddr, portId, deviceType, vendorId, displayName), in testEquals()
56 logicalAddr, phyAddr, portId, deviceType, vendorId, displayName)) in testEquals()
61 portId, in testEquals()
69 portId, in testEquals()
78 portId, in testEquals()
DHdmiPortInfoTest.java34 int portId = 1; in testEquals() local
43 new HdmiPortInfo(portId, portType, address, isCec, isMhl, isArcSupported), in testEquals()
44 new HdmiPortInfo(portId, portType, address, isCec, isMhl, isArcSupported)) in testEquals()
47 portId + 1, portType, address, isCec, isMhl, isArcSupported)) in testEquals()
50 portId, portType + 1, address, isCec, isMhl, isArcSupported)) in testEquals()
53 portId, portType, address + 1, isCec, isMhl, isArcSupported)) in testEquals()
55 new HdmiPortInfo(portId, portType, address, !isCec, isMhl, isArcSupported)) in testEquals()
57 new HdmiPortInfo(portId, portType, address, isCec, !isMhl, isArcSupported)) in testEquals()
59 new HdmiPortInfo(portId, portType, address, isCec, isMhl, !isArcSupported)) in testEquals()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiDeviceInfo.java130 int portId = source.readInt();
140 return new HdmiDeviceInfo(logicalAddress, physicalAddress, portId,
145 return new HdmiDeviceInfo(physicalAddress, portId, adopterId, deviceId);
147 return new HdmiDeviceInfo(physicalAddress, portId);
173 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument
177 mPortId = portId; in HdmiDeviceInfo()
203 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument
205 this(logicalAddress, physicalAddress, portId, deviceType, in HdmiDeviceInfo()
220 public HdmiDeviceInfo(int logicalAddress, int physicalAddress, int portId, int deviceType, in HdmiDeviceInfo() argument
222 this(logicalAddress, physicalAddress, portId, deviceType, in HdmiDeviceInfo()
[all …]
DHdmiTvClient.java108 public void portSelect(int portId, @NonNull SelectCallback callback) {
113 mService.portSelect(portId, getCallbackWrapper(callback));
385 void onReceived(int portId, int offset, int length, byte[] data);
408 public void onReceived(int portId, int offset, int length, byte[] data) {
409 listener.onReceived(portId, offset, length, data);
423 public void sendMhlVendorCommand(int portId, int offset, int length, byte[] data) {
435 mService.sendMhlVendorCommand(portId, offset, length, data);
DHdmiSwitchClient.java92 public void selectPort(int portId, @NonNull OnSelectListener listener) {
95 mService.portSelect(portId, getCallbackWrapper(listener));
139 int portId,
144 mService.portSelect(portId,
DHdmiControlServiceWrapper.java116 public void portSelect(int portId, IHdmiControlCallback callback) {
117 HdmiControlServiceWrapper.this.portSelect(portId, callback);
261 public void sendMhlVendorCommand(int portId, int offset, int length, byte[] data) {
262 HdmiControlServiceWrapper.this.sendMhlVendorCommand(portId, offset, length, data);
403 public void portSelect(int portId, IHdmiControlCallback callback) {} in portSelect() argument
495 public void sendMhlVendorCommand(int portId, int offset, int length, byte[] data) {} in sendMhlVendorCommand() argument
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiMhlControllerStub.java60 HdmiMhlLocalDeviceStub getLocalDevice(int portId) { in getLocalDevice() argument
82 HdmiMhlLocalDeviceStub removeLocalDevice(int portId) { in removeLocalDevice() argument
98 void sendVendorCommand(int portId, int offset, int length, byte[] data) { in sendVendorCommand() argument
110 int getMhlVersion(int portId) { in getMhlVersion() argument
119 int getPeerMhlVersion(int portId) { in getPeerMhlVersion() argument
127 int getSupportedFeatures(int portId) { in getSupportedFeatures() argument
135 int getEcbusDeviceRoles(int portId) { in getEcbusDeviceRoles() argument
DHdmiCecLocalDeviceAudioSystem.java163 int portId = mTvInputsToDeviceInfo.get(inputId).getPortId(); in removeTvInput() local
164 mPortIdToTvInputs.remove(portId); in removeTvInput()
171 protected boolean isInputReady(int portId) { in isInputReady() argument
173 String tvInputId = mPortIdToTvInputs.get(portId); in isInputReady()
191 void onHotplug(int portId, boolean connected) { in onHotplug() argument
196 if (mService.getPortInfo(portId).getType() == HdmiPortInfo.PORT_OUTPUT) { in onHotplug()
207 } else if (!connected && mPortIdToTvInputs.get(portId) != null) { in onHotplug()
208 String tvInputId = mPortIdToTvInputs.get(portId); in onHotplug()
884 void doManualPortSwitching(int portId, IHdmiControlCallback callback) { in doManualPortSwitching() argument
886 if (!mService.isValidPortId(portId)) { in doManualPortSwitching()
[all …]
DHdmiControlService.java991 HdmiPortInfo getPortInfo(int portId) { in getPortInfo() argument
992 return mHdmiCecNetwork.getPortInfo(portId); in getPortInfo()
999 int portIdToPath(int portId) { in portIdToPath() argument
1000 return mHdmiCecNetwork.portIdToPath(portId); in portIdToPath()
1020 boolean isValidPortId(int portId) { in isValidPortId() argument
1021 return mHdmiCecNetwork.getPortInfo(portId) != null; in isValidPortId()
1105 boolean isConnected(int portId) { in isConnected() argument
1107 return mCecController.isConnected(portId); in isConnected()
1190 void enableAudioReturnChannel(int portId, boolean enabled) { in enableAudioReturnChannel() argument
1191 mCecController.enableAudioReturnChannel(portId, enabled); in enableAudioReturnChannel()
[all …]
DHdmiCecNetwork.java412 int portId = physicalAddressToPortId(physicalAddress); in isConnectedToArcPort() local
413 if (portId != Constants.INVALID_PORT_ID) { in isConnectedToArcPort()
414 return mPortInfoMap.get(portId).isArcSupported(); in isConnectedToArcPort()
477 HdmiDeviceInfo getDeviceForPortId(int portId) { in getDeviceForPortId() argument
478 return mPortDeviceMap.get(portId, HdmiDeviceInfo.INACTIVE_DEVICE); in getDeviceForPortId()
671 void removeDevicesConnectedToPort(int portId) { in removeDevicesConnectedToPort() argument
676 if (devicePortId == portId || devicePortId == Constants.INVALID_PORT_ID) { in removeDevicesConnectedToPort()
685 if (devicePortId == portId || devicePortId == Constants.INVALID_PORT_ID) { in removeDevicesConnectedToPort()
807 HdmiPortInfo getPortInfo(int portId) { in getPortInfo() argument
808 return mPortInfoMap.get(portId, null); in getPortInfo()
[all …]
DHdmiMhlLocalDeviceStub.java16 protected HdmiMhlLocalDeviceStub(HdmiControlService service, int portId) { in HdmiMhlLocalDeviceStub() argument
18 mPortId = portId; in HdmiMhlLocalDeviceStub()
DHdmiCecLocalDeviceTv.java322 void setPrevPortId(int portId) { in setPrevPortId() argument
324 mPrevPortId = portId; in setPrevPortId()
352 void doManualPortSwitching(int portId, IHdmiControlCallback callback) { in doManualPortSwitching() argument
355 if (!mService.isValidPortId(portId)) { in doManualPortSwitching()
359 if (portId == getActivePortId()) { in doManualPortSwitching()
365 setActivePortId(portId); in doManualPortSwitching()
376 int newPath = mService.portIdToPath(portId); in doManualPortSwitching()
453 int portId = getPrevPortId(); in handleInactiveSource() local
454 if (portId != Constants.INVALID_PORT_ID) { in handleInactiveSource()
462 if (mService.pathToPortId(inactiveSource.getPhysicalAddress()) == portId) { in handleInactiveSource()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DClientDescriptor.h46 ClientDescriptor(audio_port_handle_t portId, uid_t uid, audio_session_t sessionId,
50 mPortId(portId), mUid(uid), mSessionId(sessionId), mAttributes(attributes), in mPortId() argument
58 audio_port_handle_t portId() const { return mPortId; } in portId() function
88 TrackClientDescriptor(audio_port_handle_t portId, uid_t uid, audio_session_t sessionId, in TrackClientDescriptor() argument
96 ClientDescriptor(portId, uid, sessionId, attributes, config, preferredDeviceId, in TrackClientDescriptor()
161 RecordClientDescriptor(audio_port_handle_t portId, audio_unique_id_t riid, uid_t uid, in RecordClientDescriptor() argument
165 ClientDescriptor(portId, uid, sessionId, attributes, config, preferredDeviceId), in RecordClientDescriptor()
196 SourceClientDescriptor(audio_port_handle_t portId, uid_t uid, audio_attributes_t attributes,
252 const audio_port_handle_t portId = client->portId(); in addClient() local
253 LOG_ALWAYS_FATAL_IF(!mClients.emplace(portId, client).second, in addClient()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java306 public UsbPortStatus getPortStatus(String portId) { in getPortStatus() argument
308 final PortInfo portInfo = mPorts.get(portId); in getPortStatus()
319 public void enableContaminantDetection(@NonNull String portId, boolean enable, in enableContaminantDetection() argument
321 final PortInfo portInfo = mPorts.get(portId); in enableContaminantDetection()
324 pw.println("No such USB port: " + portId); in enableContaminantDetection()
345 proxy.enableContaminantPresenceDetection(portId, enable); in enableContaminantDetection()
400 public void setPortRoles(String portId, int newPowerRole, int newDataRole, in setPortRoles() argument
403 final PortInfo portInfo = mPorts.get(portId); in setPortRoles()
406 pw.println("No such USB port: " + portId); in setPortRoles()
414 + "role combination: portId=" + portId in setPortRoles()
[all …]
DUsbService.java705 public UsbPortStatus getPortStatus(String portId) { in getPortStatus() argument
706 Objects.requireNonNull(portId, "portId must not be null"); in getPortStatus()
711 return mPortManager != null ? mPortManager.getPortStatus(portId) : null; in getPortStatus()
718 public void setPortRoles(String portId, int powerRole, int dataRole) { in setPortRoles() argument
719 Objects.requireNonNull(portId, "portId must not be null"); in setPortRoles()
726 mPortManager.setPortRoles(portId, powerRole, dataRole, null); in setPortRoles()
734 public void enableContaminantDetection(String portId, boolean enable) { in enableContaminantDetection() argument
735 Objects.requireNonNull(portId, "portId must not be null"); in enableContaminantDetection()
741 mPortManager.enableContaminantDetection(portId, enable, null); in enableContaminantDetection()
837 final String portId = args[1]; in dump() local
[all …]
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h133 audio_port_handle_t *portId,
137 virtual status_t startOutput(audio_port_handle_t portId) = 0;
139 virtual status_t stopOutput(audio_port_handle_t portId) = 0;
141 virtual bool releaseOutput(audio_port_handle_t portId) = 0;
153 audio_port_handle_t *portId) = 0;
155 virtual status_t startInput(audio_port_handle_t portId) = 0;
157 virtual status_t stopInput(audio_port_handle_t portId) = 0;
159 virtual void releaseInput(audio_port_handle_t portId) = 0;
267 audio_port_handle_t *portId,
269 virtual status_t stopAudioSource(audio_port_handle_t portId) = 0;
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioSystem.h278 audio_port_handle_t *portId,
280 static status_t startOutput(audio_port_handle_t portId);
281 static status_t stopOutput(audio_port_handle_t portId);
282 static void releaseOutput(audio_port_handle_t portId);
294 audio_port_handle_t *portId);
296 static status_t startInput(audio_port_handle_t portId);
297 static status_t stopInput(audio_port_handle_t portId);
298 static void releaseInput(audio_port_handle_t portId);
404 audio_port_handle_t *portId);
405 static status_t stopAudioSource(audio_port_handle_t portId);
[all …]
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp302 audio_port_handle_t portId; in getOutputForAttr() local
342 &flags, &selectedDeviceId, &portId, in getOutputForAttr()
376 portId, selectedDeviceId, stream); in getOutputForAttr()
377 mAudioPlaybackClients.add(portId, client); in getOutputForAttr()
385 _aidl_return->portId = VALUE_OR_RETURN_BINDER_STATUS( in getOutputForAttr()
386 legacy2aidl_audio_port_handle_t_int32_t(portId)); in getOutputForAttr()
394 void AudioPolicyService::getPlaybackClientAndEffects(audio_port_handle_t portId, in getPlaybackClientAndEffects() argument
400 const ssize_t index = mAudioPlaybackClients.indexOfKey(portId); in getPlaybackClientAndEffects()
402 ALOGE("%s AudioTrack client not found for portId %d", context, portId); in getPlaybackClientAndEffects()
411 audio_port_handle_t portId = VALUE_OR_RETURN_BINDER_STATUS( in startOutput() local
[all …]
DAudioPolicyService.h92 binder::Status startOutput(int32_t portId) override;
93 binder::Status stopOutput(int32_t portId) override;
94 binder::Status releaseOutput(int32_t portId) override;
101 binder::Status startInput(int32_t portId) override;
102 binder::Status stopInput(int32_t portId) override;
103 binder::Status releaseInput(int32_t portId) override;
187 binder::Status stopAudioSource(int32_t portId) override;
274 status_t doStopOutput(audio_port_handle_t portId);
275 void doReleaseOutput(audio_port_handle_t portId);
346 std::string getDeviceTypeStrForPortId(audio_port_handle_t portId);
[all …]
/frameworks/av/media/libaudioclient/aidl/android/media/
DIAudioPolicyService.aidl90 void startOutput(int /* audio_port_handle_t */ portId); in startOutput() argument
92 void stopOutput(int /* audio_port_handle_t */ portId); in stopOutput() argument
94 void releaseOutput(int /* audio_port_handle_t */ portId); in releaseOutput() argument
106 void startInput(int /* audio_port_handle_t */ portId); in startInput() argument
108 void stopInput(int /* audio_port_handle_t */ portId); in stopInput() argument
110 void releaseInput(int /* audio_port_handle_t */ portId); in releaseInput() argument
265 void stopAudioSource(int /* audio_port_handle_t */ portId); in stopAudioSource() argument
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioInputDescriptor.cpp288 __func__, client->portId(), mId); in close()
318 LOG_ALWAYS_FATAL_IF(getClient(client->portId()) == nullptr, in setClientActive()
319 "%s(%d) does not exist on input descriptor", __func__, client->portId()); in setClientActive()
328 __func__, client->portId(), mGlobalActiveCount); in setClientActive()
361 __func__, client->riid(), client->uid(), client->portId(), client->session(), event); in updateClientRecordingConfiguration()
373 client->source(), client->portId(), in updateClientRecordingConfiguration()
466 void AudioInputDescriptor::setAppState(audio_port_handle_t portId, app_state_t state) in setAppState() argument
472 if (portId == client->portId()) { in setAppState()
574 sp<AudioInputDescriptor> AudioInputCollection::getInputForClient(audio_port_handle_t portId) in getInputForClient() argument
578 if (inputDesc->getClient(portId) != nullptr) { in getInputForClient()
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp195 audio_port_handle_t *portId = nullptr, audio_attributes_t attr = {});
200 audio_port_handle_t *portId = nullptr);
238 audio_port_handle_t *portId, audio_attributes_t attr) { in getOutputForAttr() argument
248 if (!portId) portId = &localPortId; in getOutputForAttr()
249 *portId = AUDIO_PORT_HANDLE_NONE; in getOutputForAttr()
257 &config, &flags, selectedDeviceId, portId, {}, &outputType) != OK) { in getOutputForAttr()
260 if (*output == AUDIO_IO_HANDLE_NONE || *portId == AUDIO_PORT_HANDLE_NONE) { in getOutputForAttr()
269 audio_input_flags_t flags, audio_port_handle_t *portId) { in getInputForAttr() argument
276 if (!portId) portId = &localPortId; in getInputForAttr()
277 *portId = AUDIO_PORT_HANDLE_NONE; in getInputForAttr()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DIUsbManager.aidl154 UsbPortStatus getPortStatus(in String portId); in getPortStatus() argument
157 void setPortRoles(in String portId, int powerRole, int dataRole); in setPortRoles() argument
160 void enableContaminantDetection(in String portId, boolean enable); in enableContaminantDetection() argument
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.h125 audio_port_handle_t *portId,
128 virtual status_t startOutput(audio_port_handle_t portId);
129 virtual status_t stopOutput(audio_port_handle_t portId);
130 virtual bool releaseOutput(audio_port_handle_t portId);
140 audio_port_handle_t *portId);
143 virtual status_t startInput(audio_port_handle_t portId);
146 virtual status_t stopInput(audio_port_handle_t portId);
147 virtual void releaseInput(audio_port_handle_t portId);
307 audio_port_handle_t *portId,
309 virtual status_t stopAudioSource(audio_port_handle_t portId);
[all …]
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp127 audio_port_handle_t *portId = nullptr,
137 audio_port_handle_t *portId = nullptr);
205 audio_port_handle_t *portId, in getOutputForAttr() argument
216 if (!portId) portId = &localPortId; in getOutputForAttr()
217 *portId = AUDIO_PORT_HANDLE_NONE; in getOutputForAttr()
225 selectedDeviceId, portId, {}, &outputType)); in getOutputForAttr()
226 ASSERT_NE(AUDIO_PORT_HANDLE_NONE, *portId); in getOutputForAttr()
238 audio_port_handle_t *portId) { in getInputForAttr() argument
245 if (!portId) portId = &localPortId; in getInputForAttr()
246 *portId = AUDIO_PORT_HANDLE_NONE; in getInputForAttr()
[all …]

1234