mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Modify onHostEndpointDisconnected to always return OK
Update the default HAL to reflect the API definition, which says that
the HAL should silently ignore incorrect values.
Bug: 233853737
Bug: 241339296
Test: Compile only
Change-Id: Iae541e29706dddc6c9acb0563a2b484b75b549b5
(cherry picked from commit bb1d8bfc93)
This commit is contained in:
@@ -107,10 +107,9 @@ ScopedAStatus ContextHub::onHostEndpointConnected(const HostEndpointInfo& in_inf
|
||||
ScopedAStatus ContextHub::onHostEndpointDisconnected(char16_t in_hostEndpointId) {
|
||||
if (mConnectedHostEndpoints.count(in_hostEndpointId) > 0) {
|
||||
mConnectedHostEndpoints.erase(in_hostEndpointId);
|
||||
return ndk::ScopedAStatus::ok();
|
||||
} else {
|
||||
return ndk::ScopedAStatus(AStatus_fromExceptionCode(EX_ILLEGAL_ARGUMENT));
|
||||
}
|
||||
|
||||
return ndk::ScopedAStatus::ok();
|
||||
}
|
||||
|
||||
} // namespace contexthub
|
||||
|
||||
Reference in New Issue
Block a user