Making BatteryManager.calculateWeight public.