summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Fabian Kozynski <kozynski@google.com> 2022-06-24 11:37:47 -0400
committer Fabian Kozynski <kozynski@google.com> 2022-06-27 16:02:25 -0400
commit32f8f25f38f1fb3d2f9e2e84318409c11d488a9a (patch)
tree8d98ade56f6f483106f45dbc94c4b84181137f90 /libs/androidfw/StringPool.cpp
parentcb8c65fef9084f281d2d5067b69ea03af08978f6 (diff)
Move CameraManager interactions to background
Move all interactions with the CameraManager to a background thread. This makes initialization async, but it's ok as we will be initialized to the correct state (and that will be propagated) once we register the TorchCallback. For now, we call init in the constructor, but a refactor will happen to move this to a better call point. Also, remove optimistically setting the state of mFlashlightEnabled when setting it. Instead, make sure that we always reflect the device state by only changing it from the callback. Test: manual Test: atest FlashlightControllerImpl Fixes: 233870137 Change-Id: I9100c9101429f2dc840c6708ad3115a4eab6ab4b
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions