(bytes: &[u8])
| 1728 | } |
| 1729 | |
| 1730 | fn command_stream_summary(bytes: &[u8]) -> Option<String> { |
| 1731 | let text = String::from_utf8_lossy(bytes); |
| 1732 | let trimmed = text.trim(); |
| 1733 | if trimmed.is_empty() { |
| 1734 | return None; |
| 1735 | } |
| 1736 | let mut summary = trimmed.chars().take(2000).collect::<String>(); |
| 1737 | if trimmed.chars().nth(2000).is_some() { |
| 1738 | summary.push_str("..."); |
| 1739 | } |
| 1740 | Some(summary) |
| 1741 | } |
| 1742 | |
| 1743 | fn sdk_root() -> PathBuf { |
| 1744 | env::var_os("ANDROID_HOME") |
no test coverage detected