Phones default tonusing Through the Lens autofocus. This is closed-loop and pretty fastthese days.
Only when it's too dark work effectively do they switch to lidar/tof open loop autofocus systems.
It still doesn’t focus perfectly. Not convinced LiDAR helps that much
Focusing has been quite messy for me since they introduced auto-switchinig to macro mode.