private void OnEnable()
        {
            AndroidLogcatInternalLog.Log("OnEnable");
            m_Runtime = AndroidLogcatManager.instance.Runtime;

            if (m_SearchField == null)
            {
                m_SearchField = new SearchField();
            }

            if (m_TagControl == null)
            {
                m_TagControl = new AndroidLogcatTagsControl();
            }
            m_TagControl.TagSelectionChanged += TagSelectionChanged;

            m_SelectedDeviceIndex = -1;
            m_SelectedDeviceId    = null;

            m_TimeOfLastAutoConnectStart = DateTime.Now;
            m_Runtime.OnUpdate          += Update;

            m_FinishedAutoselectingPackage = false;
            AndroidLogcatInternalLog.Log("Package: {0}, Auto select: {1}", PlayerSettings.applicationIdentifier, AutoSelectPackage);

            m_StatusBar = new AndroidLogcatStatusBar();

            m_Runtime.Settings.OnSettingsChanged += OnSettingsChanged;

            // Can't apply settings here, apparently EditorStyles aren't initialized yet.
            m_ApplySettings = true;
        }
Example #2
0
        public static void Show(IAndroidLogcatRuntime runtime, ADB adb, List <string> connectedDevices, string[] details, Rect screenRect)
        {
            AndroidLogcatIPWindow win = EditorWindow.GetWindow <AndroidLogcatIPWindow>(true, "Enter Device IP");

            win.m_ConnectedDevices       = connectedDevices;
            win.m_ConnectedDeviceDetails = details;
            win.position = new Rect(screenRect.x, screenRect.y, 600, 200);
        }
 internal void OnDisable()
 {
     if (m_Runtime != null)
     {
         m_Runtime.Shutdown();
         m_Runtime = null;
     }
 }
        private void Initialize()
        {
            if (m_Runtime != null)
            {
                return;
            }

            m_Runtime = new AndroidLogcatRuntime();
            m_Runtime.Initialize();
        }
        public AndroidLogcat(IAndroidLogcatRuntime runtime, ADB adb, IAndroidLogcatDevice device, int packagePid, Priority priority, string filter, bool filterIsRegex, string[] tags)
        {
            this.m_Runtime         = runtime;
            this.adb               = adb;
            this.m_Device          = device;
            this.m_PackagePid      = packagePid;
            this.m_MessagePriority = priority;
            this.m_FilterIsRegex   = filterIsRegex;
            InitFilterRegex(filter);
            this.m_Tags = tags;

            LogEntry.SetTimeFormat(m_Device.SupportYearFormat ? LogEntry.kTimeFormatWithYear : LogEntry.kTimeFormatWithoutYear);
        }
Example #6
0
        void OnEnable()
        {
            if (m_Adb == null)
            {
                m_Adb = ADB.GetInstance();
            }
            if (m_Runtime == null)
            {
                m_Runtime = AndroidLogcatManager.instance.Runtime;
            }
            m_IpString   = EditorPrefs.GetString(kAndroidLogcatLastIp, "");
            m_PortString = EditorPrefs.GetString(kAndroidLogcatLastPort, "5555");

            // Disable progress bar just in case, if we have a stale process hanging where we peform adb connect
            EditorUtility.ClearProgressBar();
        }
Example #7
0
 internal AndroidLogcatDispatcher(IAndroidLogcatRuntime runtime)
 {
     m_Runtime = runtime;
 }
 internal void OnEnable()
 {
     m_Runtime = new AndroidLogcatRuntime();
     m_Runtime.Initialize();
 }