1 #pragma once
2 
3 #include <string_view>
4 
5 namespace pixel_modem::logging {
6 
7 // Modem related Android System Properties
8 
9 // Controls triggering `modem_logging_start` and `modem_logging_stop`.
10 inline constexpr std::string_view kModemLoggingEnabledProperty =
11     "vendor.sys.modem.logging.enable";
12 // Signals the current modem logging state. This will be set to
13 // `vendor.sys.modem.logging.enable` when `modem_log_start` or `modem_log_stop`
14 // terminates.
15 inline constexpr std::string_view kModemLoggingStatusProperty =
16     "vendor.sys.modem.logging.status";
17 // Int which specifies how many files to include in the bugreport.
18 inline constexpr std::string_view kModemLoggingNumberBugreportProperty =
19     "persist.vendor.sys.modem.logging.br_num";
20 // Signals the current location that is being logged to. This can be used to
21 // determine the logging type.
22 inline constexpr std::string_view kModemLoggingPathProperty =
23     "vendor.sys.modem.logging.log_path";
24 inline constexpr std::string_view kModemLoggingLogCountProperty =
25     "vendor.sys.modem.logging.log_count";
26 inline constexpr std::string_view kModemLoggingLogPath =
27     "vendor.sys.modem.logging.log_path";
28 
29 // Bugreport constants
30 inline constexpr int kDefaultBugreportNumberFiles = 100;
31 inline constexpr std::string_view kModemAlwaysOnLogDirectory =
32     "/data/vendor/radio/logs/always-on";
33 inline constexpr std::string_view kModemLogPrefix = "sbuff_";
34 
35 }  // namespace pixel_modem::logging
36