mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Fix CameraHidlTest
[Description] Add ASOP to Fix CameraHidlTest callback fail Test: 1,build pass 2,Verified pass Bug: 193611228 Change-Id: Icdf1cac6e67f866f5aedfaeab4095fa2efc57959
This commit is contained in:
@@ -450,7 +450,9 @@ Return<Status> LegacyCameraProviderImpl_2_4::setCallback(
|
||||
const sp<ICameraProviderCallback>& callback) {
|
||||
Mutex::Autolock _l(mCbLock);
|
||||
mCallbacks = callback;
|
||||
|
||||
if (mCallbacks == nullptr) {
|
||||
return Status::OK;
|
||||
}
|
||||
// Add and report all presenting external cameras.
|
||||
for (auto const& statusPair : mCameraStatusMap) {
|
||||
int id = std::stoi(statusPair.first);
|
||||
|
||||
Reference in New Issue
Block a user