Merge "sdm: Change idle fallback time dynamically."

This commit is contained in:
Linux Build Service Account
2017-03-12 23:23:25 -07:00
committed by Gerrit - the friendly Code Review server
13 changed files with 90 additions and 79 deletions

View File

@@ -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() {