Return immediately when prop is not found

- when VHAL prop is not supported, getPropConfigs calls hidl callback
with INVALID_ARG and has to return.
- otherwise, there will be two callbacks invoked from VHAL.

Bug: 168834308
Test: seahawk should boot up
Change-Id: I41f5ddf26b9ba70221d59bae10d7ca9a2133a9eb
Merged-In: I41f5ddf26b9ba70221d59bae10d7ca9a2133a9eb
(cherry picked from commit 26abceefbe)
This commit is contained in:
Eric Jeong
2020-09-18 12:14:54 -07:00
parent 294b32dd3f
commit 3648ac967a

View File

@@ -78,6 +78,7 @@ Return<void> VehicleHalManager::getPropConfigs(const hidl_vec<int32_t> &properti
} else {
ALOGW("Requested config for undefined property: 0x%x", prop);
_hidl_cb(StatusCode::INVALID_ARG, hidl_vec<VehiclePropConfig>());
return Void();
}
}