remove_padding_timeout();
- ret = tracker_get_power_lock_ref(&ref);
+ ret = tracker_get_ref_counter(TRACKER_TYPE_POWER_LOCK, &ref);
if (ret != TRACKER_ERROR_NONE) {
_E("Failed to get reference count of power lock");
goto out;
return G_SOURCE_REMOVE;
}
- ret = tracker_get_power_lock_total(&count);
+ ret = tracker_get_tick(TRACKER_TYPE_POWER_LOCK, &count);
if (ret != TRACKER_ERROR_NONE) {
_E("Failed to get total count of power lock(%d)", ret);
goto out;
_I("Power lock timeout expired");
- ret = tracker_get_power_lock_ref(&ref);
+ ret = tracker_get_ref_counter(TRACKER_TYPE_POWER_LOCK, &ref);
if (ret != TRACKER_ERROR_NONE) {
_E("Failed to get reference count of power lock(%d)", ret);
remove_off_lock_timeout();
add_padding_timeout();
- ret = tracker_get_power_lock_total(&prev_count);
+ ret = tracker_get_tick(TRACKER_TYPE_POWER_LOCK, &prev_count);
if (ret != TRACKER_ERROR_NONE)
_E("Failed to get total count of power lock(%d)", ret);