Ejemplo n.º 1
0
        public SizeScreen GetSizeScreen()
        {
            string cmd     = "shell wm size";
            string outcode = ExcuteWithDeviceTargetImmediately(cmd);

            try
            {
                return(RegexDataADB.MakeSizeDevice(outcode));
            }
            catch (Exception)
            {
                return(new SizeScreen()
                {
                    Height = 0, Width = 0
                });
            }
        }
Ejemplo n.º 2
0
        public IEnumerable <ForwardTcp> GetListForwardTcpPort()
        {
            string outcode = ExecuteGiveResultImmediately("forward --list");

            return(RegexDataADB.MadeListforwardTcp(outcode));
        }
Ejemplo n.º 3
0
        public IEnumerable <ReverseTcp> GetListReverseTcpPort()
        {
            string outcode = ExcuteWithDeviceTargetImmediately("reverse --list");

            return(RegexDataADB.MakeListreverseTcp(outcode));
        }
Ejemplo n.º 4
0
        public List <Device> GetDevices()
        {
            String outcode = ExecuteGiveResultImmediately("devices");

            return(RegexDataADB.MakeListDevices(outcode).ToList());
        }
Ejemplo n.º 5
0
        public string GeyBaterryLevel()
        {
            string outcode = ExcuteWithDeviceTargetImmediately("shell dumpsys battery");

            return(RegexDataADB.MakeBatteryLevel(outcode));
        }