summaryrefslogtreecommitdiff
path: root/sdm/libs/utils/debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sdm/libs/utils/debug.cpp')
-rw-r--r--sdm/libs/utils/debug.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/sdm/libs/utils/debug.cpp b/sdm/libs/utils/debug.cpp
index fc8567ac..69316b6a 100644
--- a/sdm/libs/utils/debug.cpp
+++ b/sdm/libs/utils/debug.cpp
@@ -54,11 +54,15 @@ int Debug::GetHDMIResolution() {
return value;
}
-uint32_t Debug::GetIdleTimeoutMs() {
- int value = IDLE_TIMEOUT_DEFAULT_MS;
- debug_.debug_handler_->GetProperty("sdm.idle_time", &value);
+void Debug::GetIdleTimeoutMs(uint32_t *active_ms, uint32_t *inactive_ms) {
+ int active_val = IDLE_TIMEOUT_ACTIVE_MS;
+ int inactive_val = IDLE_TIMEOUT_INACTIVE_MS;
- return UINT32(value);
+ debug_.debug_handler_->GetProperty("sdm.idle_time", &active_val);
+ debug_.debug_handler_->GetProperty("sdm.idle_time.inactive", &inactive_val);
+
+ *active_ms = UINT32(active_val);
+ *inactive_ms = UINT32(inactive_val);
}
int Debug::GetBootAnimLayerCount() {