Google is testing whether a smartphone’s camera can be used to detect diabetes-related vision loss problems and if the onboard mic can listen to heart problems.