Exemplo n.º 1
0
            protected CommandResult ExecutePowerCommand(string state)
            {
                AdbManager.Arguments adbArgs = new AdbManager.Arguments();
                adbArgs.addProperty("state", state);

                return RunCommand(Command.LED_POWER, adbArgs, null);
            }
Exemplo n.º 2
0
            protected static CommandResult ExecuteCommand(Command command, int frequency, Func<int, int> usbManagementFunction)
            {
                AdbManager.Arguments adbArgs = new AdbManager.Arguments();
                adbArgs.addProperty("frequency", frequency.ToString());
                adbArgs.addProperty("delay", "5000");

                return RunCommand(command, adbArgs, usbManagementFunction);
            }