mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Modify onHostEndpointDisconnected to always return OK am: d90c46cc07
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19539871 Change-Id: I15bf9914be3086913b8388f36da231561421f8e8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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