I was trying to use Android-vision api's for barcode scanning . Although barcode/QRcode scanning works , but to bring barcode/QRcode in focus you need to move your whole mobile back and forth. There does not look any inbuilt auto-focus mode . CameraSource class which manages native camera does not expose any way to get access to camera object. If auto focus is not performed then user will think that scanning itself is not working.
Also the sample "multi-tracker" app also does not perform any auto-focus.
Is there any way to do auto focus ?