/** * Helper method to stop the hardware profiling service. * * @throws ProfilingException */ private void stopBatteryService() throws ProfilingException { String command = "am startservice -a 'org.qualitune.jouleunit.android.battery.BatteryServiceStopService'"; mCoordinator.executeAdbCommand(command); mCoordinator.reportProgress("Hardware probe service stopped."); }
/** * Helper method to start the hardware profiling service. * * @throws ProfilingException */ private void startBatteryService() throws ProfilingException { mCoordinator.reportProgress("Start Battery Proc service..."); mCoordinator.startLogReading(); String command = "am startservice -a 'org.qualitune.jouleunit.android.battery.BatteryService'"; mCoordinator.executeAdbCommand(command); }