Measure battery drain using ADB commands for a specific package name.
Battery stats for the package name since the last charge to the android device. To measure performance of the device or to automate the non-functional testing for your application in the android devices
We can measure the battery drain using the following command
adb shell dumpsys batterystats --charged <packageName>
For more information on the batterystats refer this link: https://source.android.com/devices/tech/power/batterystats