Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            m_logList = new List<string>(5);

            m_bCMDQueuing = false;
            m_adbListenThread = null;
            bTest = true;
            m_tagFilter = "";
            m_tagFilterEnabled = false;

            String FILE_NAME = "AdbMessage";
            int suffix = 1;

            String fileName = @".\" + FILE_NAME + ".log";
            while( System.IO.File.Exists( fileName))
            {
                fileName = @".\" + FILE_NAME + suffix.ToString() + ".log";
                ++suffix;
            }

            fileLocationMsg.Text = @"The log file is saved at : " + fileName;
            m_logFile = new System.IO.StreamWriter( fileName );

            m_ADBCommandQueue = new Queue();
            m_ADBCommandQueueReader = Queue.Synchronized(m_ADBCommandQueue);
            m_ADBCommandQueueWriter = Queue.Synchronized(m_ADBCommandQueue);

            m_ADBAccess = new ADBAccess();
            m_ADBAccess.WinOutputQueueReader = m_ADBCommandQueueReader;
        }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            m_logList = new List <string>(5);

            m_bCMDQueuing      = false;
            m_adbListenThread  = null;
            bTest              = true;
            m_tagFilter        = "";
            m_tagFilterEnabled = false;

            String FILE_NAME = "AdbMessage";
            int    suffix    = 1;

            String fileName = @".\" + FILE_NAME + ".log";

            while (System.IO.File.Exists(fileName))
            {
                fileName = @".\" + FILE_NAME + suffix.ToString() + ".log";
                ++suffix;
            }

            fileLocationMsg.Text = @"The log file is saved at : " + fileName;
            m_logFile            = new System.IO.StreamWriter(fileName);

            m_ADBCommandQueue       = new Queue();
            m_ADBCommandQueueReader = Queue.Synchronized(m_ADBCommandQueue);
            m_ADBCommandQueueWriter = Queue.Synchronized(m_ADBCommandQueue);

            m_ADBAccess = new ADBAccess();
            m_ADBAccess.WinOutputQueueReader = m_ADBCommandQueueReader;
        }
Ejemplo n.º 3
0
        void Init()
        {
            m_logList = new List <string>(5);

            m_bCMDQueuing     = false;
            m_adbListenThread = null;
            bTest             = true;

            /*
             * String FILE_NAME = "AdbMessage";
             * int suffix = 1;
             *
             * String fileName = @".\" + FILE_NAME + ".log";
             * while (System.IO.File.Exists(fileName))
             * {
             *  fileName = @".\" + FILE_NAME + suffix.ToString() + ".log";
             ++suffix;
             * }
             *
             * //m_logFile = new System.IO.StreamWriter( fileName );
             */
            m_ADBCommandQueue       = new Queue();
            m_ADBCommandQueueReader = Queue.Synchronized(m_ADBCommandQueue);
            m_ADBCommandQueueWriter = Queue.Synchronized(m_ADBCommandQueue);

            m_ADBAccess = new ADBAccess();
            m_ADBAccess.WinOutputQueueReader = m_ADBCommandQueueReader;
        }