|
|
@ -28,7 +28,11 @@ namespace samsung { |
|
|
|
|
|
|
|
|
|
|
|
static constexpr const char* kModePath = "/sys/class/mdnie/mdnie/mode"; |
|
|
|
static constexpr const char* kModePath = "/sys/class/mdnie/mdnie/mode"; |
|
|
|
static constexpr const char* kModeMaxPath = "/sys/class/mdnie/mdnie/mode_max"; |
|
|
|
static constexpr const char* kModeMaxPath = "/sys/class/mdnie/mdnie/mode_max"; |
|
|
|
|
|
|
|
#ifdef LIVES_IN_SYSTEM |
|
|
|
|
|
|
|
static constexpr const char* kDefaultPath = "/data/misc/display/.displaymodedefault"; |
|
|
|
|
|
|
|
#else |
|
|
|
static constexpr const char* kDefaultPath = "/data/vendor/display/.displaymodedefault"; |
|
|
|
static constexpr const char* kDefaultPath = "/data/vendor/display/.displaymodedefault"; |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
const std::map<int32_t, std::string> DisplayModes::kModeMap = { |
|
|
|
const std::map<int32_t, std::string> DisplayModes::kModeMap = { |
|
|
|
// clang-format off
|
|
|
|
// clang-format off
|
|
|
|