private void ConnectToDeviceId(string deviceId) { if (deviceId == null) { return; } var adb = GetCachedAdb(); var device = GetAndroidDeviceFromCache(adb, deviceId); m_LogCat = new AndroidLogcat( m_Runtime, adb, device, m_SelectedPackage == null ? 0 : m_SelectedPackage.processId, m_SelectedPriority, m_Filter, m_FilterIsRegularExpression, m_TagControl.GetSelectedTags()); m_LogCat.LogEntriesAdded += OnNewLogEntryAdded; m_LogCat.DeviceDisconnected += OnDeviceDisconnected; m_LogCat.DeviceConnected += OnDeviceConnected; m_LogCat.Start(); }
private void StartLogcat() { var device = m_Runtime.DeviceQuery.SelectedDevice; if (device == null) { return; } if (m_Runtime.Tools == null) { return; } m_LogCat = new AndroidLogcat( m_Runtime, m_Runtime.Tools.ADB, device, SelectedPackage == null ? 0 : SelectedPackage.processId, m_Runtime.UserSettings.SelectedPriority, m_Runtime.UserSettings.Filter, m_Runtime.UserSettings.FilterIsRegularExpression, m_Runtime.UserSettings.Tags.GetSelectedTags()); m_LogCat.LogEntriesAdded += OnNewLogEntryAdded; m_LogCat.Disconnected += OnLogcatDisconnected; m_LogCat.Connected += OnLogcatConnected; m_LogCat.Start(); }
private void ClearLogCat() { if (m_LogCat == null) { m_LogEntries.Clear(); m_SelectedIndices.Clear(); return; } m_LogCat.Stop(); m_LogEntries.Clear(); m_SelectedIndices.Clear(); m_LogCat.Clear(); m_LogCat.Start(); }