Home
last modified time | relevance | path

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

123

/hardware/interfaces/tv/hdmi/connection/aidl/default/
DHdmiConnectionMock.cpp44 ScopedAStatus HdmiConnectionMock::isConnected(int32_t portId, bool* _aidl_return) { in isConnected() argument
46 if (portId <= mTotalPorts && portId >= 1) { in isConnected()
47 *_aidl_return = mPortConnectionStatus.at(portId - 1); in isConnected()
72 ScopedAStatus HdmiConnectionMock::setHpdSignal(HpdSignal signal, int32_t portId) { in setHpdSignal() argument
73 if (portId > mTotalPorts || portId < 1) { in setHpdSignal()
80 mHpdSignal.at(portId - 1) = signal; in setHpdSignal()
84 ScopedAStatus HdmiConnectionMock::getHpdSignal(int32_t portId, HpdSignal* _aidl_return) { in getHpdSignal() argument
85 if (portId > mTotalPorts || portId < 1) { in getHpdSignal()
88 *_aidl_return = mHpdSignal.at(portId - 1); in getHpdSignal()
129 int32_t portId = static_cast<uint32_t>(msgBuf[0] & 0xf); in handleHotplugMessage() local
[all …]
DHdmiConnectionMock.h46 ::ndk::ScopedAStatus isConnected(int32_t portId, bool* _aidl_return) override;
49 ::ndk::ScopedAStatus setHpdSignal(HpdSignal signal, int32_t portId) override;
50 ::ndk::ScopedAStatus getHpdSignal(int32_t portId, HpdSignal* _aidl_return) override;
/hardware/interfaces/tv/hdmi/earc/aidl/default/
DEArcMock.cpp54 ScopedAStatus EArcMock::getState(int32_t portId, IEArcStatus* _aidl_return) { in getState() argument
56 if (portId <= mTotalPorts && portId >= 1) { in getState()
57 *_aidl_return = mPortStatus.at(portId - 1); in getState()
65 ScopedAStatus EArcMock::getLastReportedAudioCapabilities(int32_t portId, in getLastReportedAudioCapabilities() argument
67 if (portId <= mTotalPorts && portId >= 1) { in getLastReportedAudioCapabilities()
68 *_aidl_return = mCapabilities.at(portId - 1); in getLastReportedAudioCapabilities()
89 int32_t portId) { in reportCapabilities() argument
91 mCallback->onCapabilitiesReported(capabilities, portId); in reportCapabilities()
98 ScopedAStatus EArcMock::changeState(const IEArcStatus status, int32_t portId) { in changeState() argument
100 mCallback->onStateChange(status, portId); in changeState()
/hardware/interfaces/wifi/netlinkinterceptor/libnlinterceptor/
Dlibnlinterceptor.cpp37 : nlFamily(sock.nlFamily), portId(sock.portId) {} in InterceptedSocket()
39 InterceptedSocket::InterceptedSocket(uint32_t nlFamily, uint32_t portId) in InterceptedSocket() argument
40 : nlFamily(nlFamily), portId(portId) {} in InterceptedSocket()
43 return os << "family: " << sock.nlFamily << ", portId: " << sock.portId; in operator <<()
50 return portId < other.portId; in operator <()
57 .nl_pid = portId, in operator sockaddr_nl()
65 .portId = static_cast<int32_t>(portId), in operator AidlInterceptedSocket()
119 uint32_t(interceptedSocket.portId)}; in createSocket()
125 LOG(ERROR) << "Failed to close socket with pid = " << sock.portId; in closeSocket()
149 .portId = maybeSocket->portId}; in android_nlinterceptor_createSocket()
[all …]
/hardware/interfaces/tv/hdmi/connection/aidl/vts/functional/
DVtsHalTvHdmiConnectionAidlTargetTest.cpp67 ::ndk::ScopedAStatus onHotplugEvent(bool connected __unused, int32_t portId __unused) { in onHotplugEvent()
96 if (ports[i].type == HdmiPortType::OUTPUT && ports[i].portId <= 0) { in TEST_P()
109 ASSERT_TRUE(hdmiConnection->isConnected(ports[i].portId, &connected).isOk()); in TEST_P()
119 int32_t portId = ports[i].portId; in TEST_P() local
121 ASSERT_TRUE(hdmiConnection->getHpdSignal(portId, &originalSignal).isOk()); in TEST_P()
122 ASSERT_TRUE(hdmiConnection->setHpdSignal(signal, portId).isOk()); in TEST_P()
123 ASSERT_TRUE(hdmiConnection->getHpdSignal(portId, &readSignal).isOk()); in TEST_P()
126 ASSERT_TRUE(hdmiConnection->setHpdSignal(signal, portId).isOk()); in TEST_P()
127 ASSERT_TRUE(hdmiConnection->getHpdSignal(portId, &readSignal).isOk()); in TEST_P()
129 ASSERT_TRUE(hdmiConnection->setHpdSignal(originalSignal, portId).isOk()); in TEST_P()
/hardware/interfaces/tv/cec/1.0/default/
DHdmiCecMock.cpp135 Return<void> HdmiCecMock::enableAudioReturnChannel(int32_t portId __unused, bool enable __unused) { in enableAudioReturnChannel()
140 Return<bool> HdmiCecMock::isConnected(int32_t portId) { in isConnected() argument
142 if (portId < mTotalPorts && portId >= 0) { in isConnected()
143 return mPortConnectionStatus[portId]; in isConnected()
213 .portId = static_cast<uint32_t>(msgBuf[0] & 0xf)}; in handleHotplugMessage()
215 if (hotplugEvent.portId >= mPortInfo.size()) { in handleHotplugMessage()
216 ALOGD("[halimp] ignore hot plug message, id %x does not exist", hotplugEvent.portId); in handleHotplugMessage()
221 if (mPortInfo[hotplugEvent.portId].type == HdmiPortType::OUTPUT) { in handleHotplugMessage()
224 mPortInfo[hotplugEvent.portId].physicalAddress = mPhysicalAddress; in handleHotplugMessage()
306 .portId = static_cast<uint32_t>(0), in HdmiCecMock()
DHdmiCecDefault.cpp244 .portId = mHdmiCecPorts[i]->mPortId, in getPortInfo()
279 Return<bool> HdmiCecDefault::isConnected(int32_t portId) { in isConnected() argument
281 if (portId < 0 || portId >= mHdmiCecPorts.size()) { in isConnected()
282 LOG(ERROR) << "Port id is out of bounds, portId = " << portId; in isConnected()
285 int ret = ioctl(mHdmiCecPorts[portId]->mCecFd, CEC_ADAP_G_PHYS_ADDR, &addr); in isConnected()
297 int portId = stoi(cecFilename.substr(3)); in getPortId() local
298 if (portId >= MIN_PORT_ID && portId <= MAX_PORT_ID) { in getPortId()
299 return portId; in getPortId()
314 int portId = getPortId(filename); in init() local
315 if (portId == -1) { in init()
[all …]
DHdmiCecPort.cpp34 HdmiCecPort::HdmiCecPort(unsigned int portId) { in HdmiCecPort() argument
35 mPortId = portId; in HdmiCecPort()
/hardware/interfaces/tv/hdmi/connection/aidl/android/hardware/tv/hdmi/connection/
DIHdmiConnection.aidl42 boolean isConnected(in int portId); in isConnected() argument
73 void setHpdSignal(HpdSignal signal, in int portId); in setHpdSignal() argument
86 HpdSignal getHpdSignal(in int portId); in getHpdSignal() argument
/hardware/interfaces/tv/hdmi/connection/aidl/aidl_api/android.hardware.tv.hdmi.connection/1/android/hardware/tv/hdmi/connection/
DIHdmiConnection.aidl38 boolean isConnected(in int portId); in isConnected() argument
40 void setHpdSignal(android.hardware.tv.hdmi.connection.HpdSignal signal, in int portId); in setHpdSignal() argument
41 android.hardware.tv.hdmi.connection.HpdSignal getHpdSignal(in int portId); in getHpdSignal() argument
/hardware/interfaces/tv/hdmi/connection/aidl/aidl_api/android.hardware.tv.hdmi.connection/current/android/hardware/tv/hdmi/connection/
DIHdmiConnection.aidl38 boolean isConnected(in int portId); in isConnected() argument
40 void setHpdSignal(android.hardware.tv.hdmi.connection.HpdSignal signal, in int portId); in setHpdSignal() argument
41 android.hardware.tv.hdmi.connection.HpdSignal getHpdSignal(in int portId); in getHpdSignal() argument
/hardware/interfaces/tv/hdmi/earc/aidl/aidl_api/android.hardware.tv.hdmi.earc/1/android/hardware/tv/hdmi/earc/
DIEArcCallback.aidl37 oneway void onStateChange(in android.hardware.tv.hdmi.earc.IEArcStatus status, in int portId); in onStateChange() argument
38 oneway void onCapabilitiesReported(in byte[] rawCapabilities, in int portId); in onCapabilitiesReported() argument
DIEArc.aidl40 android.hardware.tv.hdmi.earc.IEArcStatus getState(in int portId); in getState() argument
41 byte[] getLastReportedAudioCapabilities(in int portId); in getLastReportedAudioCapabilities() argument
/hardware/interfaces/tv/hdmi/earc/aidl/aidl_api/android.hardware.tv.hdmi.earc/current/android/hardware/tv/hdmi/earc/
DIEArcCallback.aidl37 oneway void onStateChange(in android.hardware.tv.hdmi.earc.IEArcStatus status, in int portId); in onStateChange() argument
38 oneway void onCapabilitiesReported(in byte[] rawCapabilities, in int portId); in onCapabilitiesReported() argument
DIEArc.aidl40 android.hardware.tv.hdmi.earc.IEArcStatus getState(in int portId); in getState() argument
41 byte[] getLastReportedAudioCapabilities(in int portId); in getLastReportedAudioCapabilities() argument
/hardware/interfaces/tv/hdmi/earc/aidl/android/hardware/tv/hdmi/earc/
DIEArcCallback.aidl32 void onStateChange(in IEArcStatus status, in int portId); in onStateChange() argument
44 void onCapabilitiesReported(in byte[] rawCapabilities, in int portId); in onCapabilitiesReported() argument
DIEArc.aidl64 IEArcStatus getState(in int portId); in getState() argument
73 byte[] getLastReportedAudioCapabilities(in int portId); in getLastReportedAudioCapabilities() argument
/hardware/interfaces/wifi/netlinkinterceptor/libnlinterceptor/include/libnlinterceptor/
Dlibnlinterceptor.h36 uint32_t portId; member
40 InterceptedSocket(uint32_t nlFamily, uint32_t portId);
111 uint32_t portId; member
/hardware/interfaces/tv/cec/1.1/default/
DHdmiCecMock.cpp149 Return<void> HdmiCecMock::enableAudioReturnChannel(int32_t portId __unused, bool enable __unused) { in enableAudioReturnChannel()
154 Return<bool> HdmiCecMock::isConnected(int32_t portId) { in isConnected() argument
156 if (portId < mTotalPorts && portId >= 0) { in isConnected()
157 return mPortConnectionStatus[portId]; in isConnected()
264 .portId = static_cast<uint32_t>(msgBuf[0] & 0xf)}; in handleHotplugMessage()
266 if (hotplugEvent.portId >= mPortInfo.size()) { in handleHotplugMessage()
267 ALOGD("[halimp] ignore hot plug message, id %x does not exist", hotplugEvent.portId); in handleHotplugMessage()
272 if (mPortInfo[hotplugEvent.portId].type == HdmiPortType::OUTPUT) { in handleHotplugMessage()
275 mPortInfo[hotplugEvent.portId].physicalAddress = mPhysicalAddress; in handleHotplugMessage()
359 .portId = static_cast<uint32_t>(1), in HdmiCecMock()
/hardware/interfaces/radio/aidl/compat/libradiocompat/config/
Dstructs.cpp28 if (slotPortMapping.portId != 0) { in toHidl()
29 LOG(ERROR) << "Port ID " << slotPortMapping.portId << " != 0 not supported by HIDL HAL"; in toHidl()
/hardware/interfaces/wifi/netlinkinterceptor/aidl/android/hardware/net/nlinterceptor/
DInterceptedSocket.aidl32 int portId;
/hardware/interfaces/wifi/netlinkinterceptor/aidl/aidl_api/android.hardware.net.nlinterceptor/1/android/hardware/net/nlinterceptor/
DInterceptedSocket.aidl38 int portId;
/hardware/interfaces/wifi/netlinkinterceptor/aidl/aidl_api/android.hardware.net.nlinterceptor/current/android/hardware/net/nlinterceptor/
DInterceptedSocket.aidl38 int portId;
/hardware/interfaces/radio/aidl/android/hardware/radio/config/
DSlotPortMapping.aidl34 int portId;
/hardware/interfaces/radio/aidl/aidl_api/android.hardware.radio.config/1/android/hardware/radio/config/
DSlotPortMapping.aidl38 int portId;

123