private void FilterByProcessId(int processId) { var packages = m_PackagesForAllDevices[m_SelectedDeviceId]; foreach (var p in packages) { if (p.processId == processId) { SelectPackage(p); return; } } var packageName = AndroidLogcatUtilities.GetPackageNameFromPid(m_Adb, m_SelectedDeviceId, processId); var package = CreatePackageInformation(packageName, processId, m_SelectedDeviceId); SelectPackage(package); }
private void FilterByProcessId(int processId) { var selectedDevice = m_Runtime.DeviceQuery.SelectedDevice; var packages = m_Runtime.UserSettings.GetKnownPackages(selectedDevice); foreach (var p in packages) { if (p.processId == processId) { SelectPackage(p); return; } } var packageName = AndroidLogcatUtilities.GetPackageNameFromPid(m_Runtime.Tools.ADB, selectedDevice, processId); var package = m_Runtime.UserSettings.CreatePackageInformation(packageName, processId, selectedDevice); SelectPackage(package); }