Speedtest class - librespeed/speedtest-android GitHub Wiki
This class wraps up everything into a convenient interface that can be used to develop your custom UI.
It is described extensively in the The Speedtest
class section in the chapter on making a custom UI.