Google previews its new smartphone OS, Android P, at its developer conference. New features include adaptive battery, adaptive brightness and predictive apps.