/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiEarcController.java | 45 byte nativeGetState(int portId); in nativeGetState() argument 46 byte[] nativeGetLastReportedAudioCapabilities(int portId); in nativeGetLastReportedAudioCapabilities() argument 116 public byte nativeGetState(int portId) { in nativeGetState() argument 118 return mEarc.getState(portId); in nativeGetState() 126 public byte[] nativeGetLastReportedAudioCapabilities(int portId) { in nativeGetLastReportedAudioCapabilities() argument 128 return mEarc.getLastReportedAudioCapabilities(portId); in nativeGetLastReportedAudioCapabilities() 207 int getState(int portId) { in getState() argument 208 return mEarcNativeWrapperImpl.nativeGetState(portId); in getState() 217 byte[] getLastReportedCaps(int portId) { in getLastReportedCaps() argument 218 return mEarcNativeWrapperImpl.nativeGetLastReportedAudioCapabilities(portId); in getLastReportedCaps() [all …]
|
D | HdmiMhlControllerStub.java | 60 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
|
D | HdmiCecLocalDeviceAudioSystem.java | 173 int portId = mTvInputsToDeviceInfo.get(inputId).getPortId(); in removeTvInput() local 174 mPortIdToTvInputs.remove(portId); in removeTvInput() 181 protected boolean isInputReady(int portId) { in isInputReady() argument 183 String tvInputId = mPortIdToTvInputs.get(portId); in isInputReady() 199 void onHotplug(int portId, boolean connected) { in onHotplug() argument 204 HdmiPortInfo portInfo = mService.getPortInfo(portId); in onHotplug() 216 } else if (!connected && mPortIdToTvInputs.get(portId) != null) { in onHotplug() 217 String tvInputId = mPortIdToTvInputs.get(portId); in onHotplug() 1064 void doManualPortSwitching(int portId, IHdmiControlCallback callback) { in doManualPortSwitching() argument 1066 if (!mService.isValidPortId(portId)) { in doManualPortSwitching() [all …]
|
D | HdmiCecNetwork.java | 418 int portId = physicalAddressToPortId(physicalAddress); in isConnectedToArcPort() local 419 if (portId != Constants.INVALID_PORT_ID && portId != Constants.CEC_SWITCH_HOME) { in isConnectedToArcPort() 420 return mPortInfoMap.get(portId).isArcSupported(); in isConnectedToArcPort() 490 HdmiDeviceInfo getDeviceForPortId(int portId) { in getDeviceForPortId() argument 491 return mPortDeviceMap.get(portId, HdmiDeviceInfo.INACTIVE_DEVICE); in getDeviceForPortId() 757 void removeCecSwitches(int portId) { in removeCecSwitches() argument 762 if (devicePortId == portId || devicePortId == Constants.INVALID_PORT_ID) { in removeCecSwitches() 768 void removeDevicesConnectedToPort(int portId) { in removeDevicesConnectedToPort() argument 769 removeCecSwitches(portId); in removeDevicesConnectedToPort() 776 if (devicePortId == portId || devicePortId == Constants.INVALID_PORT_ID) { in removeDevicesConnectedToPort() [all …]
|
D | HdmiCecController.java | 428 void setHpdSignalType(@Constants.HpdSignalType int signal, int portId) { in setHpdSignalType() argument 430 HdmiLogger.debug("setHpdSignalType: portId %b, signal %b", portId, signal); in setHpdSignalType() 431 mNativeWrapperImpl.nativeSetHpdSignalType(signal, portId); in setHpdSignalType() 440 int getHpdSignalType(int portId) { in getHpdSignalType() argument 442 HdmiLogger.debug("getHpdSignalType: portId %b ", portId); in getHpdSignalType() 443 return mNativeWrapperImpl.nativeGetHpdSignalType(portId); in getHpdSignalType() 933 void nativeSetHpdSignalType(int signal, int portId); in nativeSetHpdSignalType() argument 934 int nativeGetHpdSignalType(int portId); in nativeGetHpdSignalType() argument 1126 portInfo.portId, in nativeGetPortInfos() 1154 public void nativeSetHpdSignalType(int signal, int portId) { in nativeSetHpdSignalType() argument [all …]
|
/frameworks/base/core/tests/hdmitests/src/android/hardware/hdmi/ |
D | HdmiPortInfoTest.java | 37 int portId = 1; in testEquals() local 47 new HdmiPortInfo.Builder(portId, portType, address) in testEquals() 53 new HdmiPortInfo.Builder(portId, portType, address) in testEquals() 60 new HdmiPortInfo.Builder(portId + 1, portType, address) in testEquals() 67 new HdmiPortInfo.Builder(portId, portType + 1, address) in testEquals() 74 new HdmiPortInfo.Builder(portId, portType, address + 1) in testEquals() 81 new HdmiPortInfo.Builder(portId, portType, address) in testEquals() 88 new HdmiPortInfo.Builder(portId, portType, address) in testEquals() 95 new HdmiPortInfo.Builder(portId, portType, address) in testEquals() 102 new HdmiPortInfo.Builder(portId, portType, address) in testEquals()
|
D | HdmiDeviceInfoTest.java | 39 int portId = 1; in testEquals() local 51 HdmiDeviceInfo.hardwarePort(phyAddr, portId), in testEquals() 52 HdmiDeviceInfo.hardwarePort(phyAddr, portId)) in testEquals() 54 HdmiDeviceInfo.mhlDevice(phyAddr, portId, adopterId, deviceId), in testEquals() 55 HdmiDeviceInfo.mhlDevice(phyAddr, portId, adopterId, deviceId)) in testEquals() 60 .setPortId(portId) in testEquals() 69 .setPortId(portId) in testEquals()
|
/frameworks/av/media/libaudiousecasevalidation/ |
D | UsecaseLookup.cpp | 58 void UsecaseLookup::addTrack(STREAMID streamId, PORTID portId) { in addTrack() argument 59 ALOGV("%s streamId: %d portId: %d", __func__, streamId, portId); in addTrack() 63 if (m_tracks.find(portId) == m_tracks.end()) { in addTrack() 64 m_tracks[portId] = streamId; in addTrack() 71 void UsecaseLookup::removeTrack(STREAMID streamId, PORTID portId) { in removeTrack() argument 72 ALOGV("%s streamId: %d portId: %d", __func__, streamId, portId); in removeTrack() 75 auto it = m_tracks.find(portId); in removeTrack() 78 m_tracks.erase(portId); in removeTrack()
|
D | UsecaseValidator.cpp | 66 audio_port_handle_t portId, const content::AttributionSourceState& attributionSource, in startClient() argument 70 __func__, streamId, portId, attributes.usage, attributionSource.pid, in startClient() 73 m_lookup.addTrack(streamId, portId); in startClient() 82 status_t stopClient(audio_io_handle_t streamId, audio_port_handle_t portId) override { in stopClient() argument 83 ALOGV("%s output: %d portId: %d", __func__, streamId, portId); in stopClient() 85 m_lookup.removeTrack(streamId, portId); in stopClient()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbPortManager.java | 314 public UsbPortStatus getPortStatus(String portId) { in getPortStatus() argument 316 final PortInfo portInfo = mPorts.get(portId); in getPortStatus() 324 public boolean isModeChangeSupported(String portId) { in isModeChangeSupported() argument 326 final PortInfo portInfo = mPorts.get(portId); in isModeChangeSupported() 337 public void enableContaminantDetection(@NonNull String portId, boolean enable, in enableContaminantDetection() argument 339 final PortInfo portInfo = mPorts.get(portId); in enableContaminantDetection() 342 pw.println("No such USB port: " + portId); in enableContaminantDetection() 361 mUsbPortHal.enableContaminantPresenceDetection(portId, enable, ++mTransactionId); in enableContaminantDetection() 373 public void enableLimitPowerTransfer(@NonNull String portId, boolean limit, long transactionId, in enableLimitPowerTransfer() argument 375 Objects.requireNonNull(portId); in enableLimitPowerTransfer() [all …]
|
D | UsbService.java | 755 public void resetUsbPort(String portId, int operationId, in resetUsbPort() argument 757 Objects.requireNonNull(portId, "resetUsbPort: portId must not be null. opId:" in resetUsbPort() 767 mPortManager.resetUsbPort(portId, operationId, callback, null); in resetUsbPort() 807 public UsbPortStatus getPortStatus(String portId) { in getPortStatus() argument 808 Objects.requireNonNull(portId, "portId must not be null"); in getPortStatus() 813 return mPortManager != null ? mPortManager.getPortStatus(portId) : null; in getPortStatus() 821 public boolean isModeChangeSupported(String portId) { in isModeChangeSupported() argument 823 Objects.requireNonNull(portId, "portId must not be null"); in isModeChangeSupported() 827 return mPortManager != null ? mPortManager.isModeChangeSupported(portId) : false; in isModeChangeSupported() 834 public void setPortRoles(String portId, int powerRole, int dataRole) { in setPortRoles() argument [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | ClientDescriptor.h | 48 ClientDescriptor(audio_port_handle_t portId, uid_t uid, audio_session_t sessionId, 52 mPortId(portId), mUid(uid), mSessionId(sessionId), mAttributes(attributes), in mPortId() argument 68 audio_port_handle_t portId() const { return mPortId; } in portId() function 106 TrackClientDescriptor(audio_port_handle_t portId, uid_t uid, audio_session_t sessionId, in TrackClientDescriptor() argument 114 ClientDescriptor(portId, uid, sessionId, attributes, config, preferredDeviceId, in TrackClientDescriptor() 201 RecordClientDescriptor(audio_port_handle_t portId, audio_unique_id_t riid, uid_t uid, in RecordClientDescriptor() argument 205 ClientDescriptor(portId, uid, sessionId, attributes, config, preferredDeviceId), in RecordClientDescriptor() 236 SourceClientDescriptor(audio_port_handle_t portId, uid_t uid, audio_attributes_t attributes, 325 const audio_port_handle_t portId = client->portId(); in addClient() local 326 LOG_ALWAYS_FATAL_IF(!mClients.emplace(portId, client).second, in addClient() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/hal/port/ |
D | RawPortInfo.java | 29 public final String portId; field in RawPortInfo 51 public RawPortInfo(String portId, int supportedModes) { in RawPortInfo() argument 52 this.portId = portId; in RawPortInfo() 69 public RawPortInfo(String portId, int supportedModes, int supportedContaminantProtectionModes, in RawPortInfo() argument 80 this(portId, supportedModes, supportedContaminantProtectionModes, in RawPortInfo() 91 public RawPortInfo(String portId, int supportedModes, int supportedContaminantProtectionModes, in RawPortInfo() argument 107 this.portId = portId; in RawPortInfo() 139 dest.writeString(portId); in writeToParcel()
|
/frameworks/base/core/java/android/hardware/hdmi/ |
D | HdmiDeviceInfo.java | 142 int portId = source.readInt(); 155 .setPortId(portId) 165 return mhlDevice(physicalAddress, portId, adopterId, deviceId); 167 return hardwarePort(physicalAddress, portId); 266 int physicalAddress, int portId, int adopterId, int deviceId) { in mhlDevice() argument 269 .setPortId(portId) in mhlDevice() 284 public static HdmiDeviceInfo hardwarePort(int physicalAddress, int portId) { in hardwarePort() argument 287 .setPortId(portId) in hardwarePort() 289 .setDisplayName("HDMI" + portId) in hardwarePort() 326 public static int idForMhlDevice(int portId) { in idForMhlDevice() argument [all …]
|
D | HdmiTvClient.java | 111 public void portSelect(int portId, @NonNull SelectCallback callback) { 116 mService.portSelect(portId, getCallbackWrapper(callback)); 390 void onReceived(int portId, int offset, int length, byte[] data); 413 public void onReceived(int portId, int offset, int length, byte[] data) { 414 listener.onReceived(portId, offset, length, data); 428 public void sendMhlVendorCommand(int portId, int offset, int length, byte[] data) { 440 mService.sendMhlVendorCommand(portId, offset, length, data);
|
D | HdmiSwitchClient.java | 91 public void selectPort(int portId, @NonNull OnSelectListener listener) { 94 mService.portSelect(portId, getCallbackWrapper(listener)); 140 int portId, 145 mService.portSelect(portId,
|
/frameworks/base/core/java/android/hardware/usb/ |
D | IUsbManager.aidl | 163 void resetUsbPort(in String portId, int operationId, in IUsbOperationInternal callback); in resetUsbPort() argument 166 …boolean enableUsbData(in String portId, boolean enable, int operationId, in IUsbOperationInternal … in enableUsbData() argument 169 …void enableUsbDataWhileDocked(in String portId, int operationId, in IUsbOperationInternal callback… in enableUsbDataWhileDocked() argument 187 UsbPortStatus getPortStatus(in String portId); in getPortStatus() argument 191 boolean isModeChangeSupported(in String portId); in isModeChangeSupported() argument 194 void setPortRoles(in String portId, int powerRole, int dataRole); in setPortRoles() argument 199 …void enableLimitPowerTransfer(in String portId, boolean limit, int operationId, in IUsbOperationIn… in enableLimitPowerTransfer() argument 202 void enableContaminantDetection(in String portId, boolean enable); in enableContaminantDetection() argument
|
/frameworks/av/media/libaudioclient/aidl/android/media/ |
D | IAudioPolicyService.aidl | 97 void startOutput(int /* audio_port_handle_t */ portId); in startOutput() argument 99 void stopOutput(int /* audio_port_handle_t */ portId); in stopOutput() argument 101 void releaseOutput(int /* audio_port_handle_t */ portId); in releaseOutput() argument 113 void startInput(int /* audio_port_handle_t */ portId); in startInput() argument 115 void stopInput(int /* audio_port_handle_t */ portId); in stopInput() argument 117 void releaseInput(int /* audio_port_handle_t */ portId); in releaseInput() argument 234 AudioPortFw getAudioPort(int /* audio_port_handle_t */ portId); in getAudioPort() argument 287 void stopAudioSource(int /* audio_port_handle_t */ portId); in stopAudioSource() argument 431 int /* audio_port_handle_t */ portId); in getSupportedMixerAttributes() 449 int /* audio_port_handle_t */ portId, in setPreferredMixerAttributes() [all …]
|
/frameworks/av/services/audiopolicy/ |
D | AudioPolicyInterface.h | 146 audio_port_handle_t *portId, 153 virtual status_t startOutput(audio_port_handle_t portId) = 0; 156 virtual status_t stopOutput(audio_port_handle_t portId) = 0; 158 virtual bool releaseOutput(audio_port_handle_t portId) = 0; 170 audio_port_handle_t *portId, 173 virtual status_t startInput(audio_port_handle_t portId) = 0; 175 virtual status_t stopInput(audio_port_handle_t portId) = 0; 177 virtual void releaseInput(audio_port_handle_t portId) = 0; 296 audio_port_handle_t *portId, 298 virtual status_t stopAudioSource(audio_port_handle_t portId) = 0; [all …]
|
/frameworks/av/media/libaudiousecasevalidation/include/media/ |
D | UsecaseValidator.h | 45 virtual void onAttributesChanged(audio_port_handle_t portId, 69 audio_port_handle_t portId, 78 virtual status_t stopClient(audio_io_handle_t streamId, audio_port_handle_t portId) = 0;
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyInterfaceImpl.cpp | 349 audio_port_handle_t portId; in getOutputForAttr() local 389 &flags, &selectedDeviceId, &portId, in getOutputForAttr() 433 portId, selectedDeviceId, stream, isSpatialized); in getOutputForAttr() 434 mAudioPlaybackClients.add(portId, client); in getOutputForAttr() 442 _aidl_return->portId = VALUE_OR_RETURN_BINDER_STATUS( in getOutputForAttr() 443 legacy2aidl_audio_port_handle_t_int32_t(portId)); in getOutputForAttr() 462 void AudioPolicyService::getPlaybackClientAndEffects(audio_port_handle_t portId, in getPlaybackClientAndEffects() argument 468 const ssize_t index = mAudioPlaybackClients.indexOfKey(portId); in getPlaybackClientAndEffects() 470 ALOGE("%s AudioTrack client not found for portId %d", context, portId); in getPlaybackClientAndEffects() 479 audio_port_handle_t portId = VALUE_OR_RETURN_BINDER_STATUS( in startOutput() local [all …]
|
D | AudioPolicyService.h | 119 binder::Status startOutput(int32_t portId) override; 120 binder::Status stopOutput(int32_t portId) override; 121 binder::Status releaseOutput(int32_t portId) override; 128 binder::Status startInput(int32_t portId) override; 129 binder::Status stopInput(int32_t portId) override; 130 binder::Status releaseInput(int32_t portId) override; 196 binder::Status getAudioPort(int portId, 224 binder::Status stopAudioSource(int32_t portId) override; 310 int32_t portId, 314 int32_t portId, [all …]
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioIoDescriptor.h | 49 audio_io_handle_t ioHandle, const audio_patch& patch, audio_port_handle_t portId) : in AudioIoDescriptor() argument 50 mIoHandle(ioHandle), mPatch(patch), mPortId(portId) {} in AudioIoDescriptor() 56 audio_port_handle_t portId = AUDIO_PORT_HANDLE_NONE) : 60 mPortId(portId) {} in mIoHandle()
|
D | AudioSystem.h | 337 audio_port_handle_t *portId, 341 static status_t startOutput(audio_port_handle_t portId); 342 static status_t stopOutput(audio_port_handle_t portId); 343 static void releaseOutput(audio_port_handle_t portId); 372 audio_port_handle_t *portId); 374 static status_t startInput(audio_port_handle_t portId); 375 static status_t stopInput(audio_port_handle_t portId); 376 static void releaseInput(audio_port_handle_t portId); 502 audio_port_handle_t *portId); 503 static status_t stopAudioSource(audio_port_handle_t portId); [all …]
|
/frameworks/av/media/libaudiohal/impl/ |
D | Hal2AidlMapper.cpp | 118 return p.portId == mDefaultInputPortId; in audioDeviceMatches() 120 return p.portId == mDefaultOutputPortId; in audioDeviceMatches() 178 portIds->insert(portConfig.portId); in createOrUpdatePatch() 286 void Hal2AidlMapper::eraseConnectedPort(int32_t portId) { in eraseConnectedPort() argument 287 mPorts.erase(portId); in eraseConnectedPort() 288 mConnectedPorts.erase(portId); in eraseConnectedPort() 289 if (mDisconnectedPortReplacement.first == portId) { in eraseConnectedPort() 339 requestedPortConfig.portId = portsIt->first; in findOrCreateDevicePortConfig() 400 requestedPortConfig.portId = portsIt->first; in findOrCreateMixPortConfig() 635 return updateAudioPort(it->second.portId, port); in getAudioMixPort() [all …]
|