commit | bdf75f9bce4217a0adaf36ec450c3429e700a952 | [log] [tgz] |
---|---|---|
author | Shuzhen Wang <shuzhenwang@google.com> | Fri Jul 10 14:13:33 2020 -0700 |
committer | Shuzhen Wang <shuzhenwang@google.com> | Fri Jul 17 21:28:59 2020 +0000 |
tree | 75d42839cf075965a569c08598999b2021992c85 | |
parent | e5dd4048d262f49f3231d1a6b7cd7c128210b0b7 [diff] |
Camera: Fix HAL call order for setCallback setCallback() must be the first call made to the camera HAL per spec. Revert the callflow reordering in ProviderInfo::initialize(). If the physical camera status change is triggered during ProverInfo::initialize(), the listener->onDeviceStatusChanged call is skipped anyway. Bug: 160984331 Test: Camera CTS on emulator Change-Id: Iaf69bedf03616bef55400a9d7a361f722341478b