From 4955d6c1ac4455f9812979348c776c8c5ac5cfd1 Mon Sep 17 00:00:00 2001 From: Steve Paik Date: Mon, 18 Dec 2017 10:23:31 -0800 Subject: [PATCH] Rename set_wakeup_callback Part of refactoring libsuspend. Renamed set_wakeup_callback to be consistent with rest of autosuspend_* interfaces. Bug: 70669809 Test: Compiles Change-Id: I15fc8757b2343447ed79d1dd1af162afd5401007 --- services/core/jni/com_android_server_am_BatteryStatsService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/jni/com_android_server_am_BatteryStatsService.cpp b/services/core/jni/com_android_server_am_BatteryStatsService.cpp index ae7d6daa649b0..b044a4e81be7b 100644 --- a/services/core/jni/com_android_server_am_BatteryStatsService.cpp +++ b/services/core/jni/com_android_server_am_BatteryStatsService.cpp @@ -100,7 +100,7 @@ static jint nativeWaitWakeup(JNIEnv *env, jobject clazz, jobject outBuf) return -1; } ALOGV("Registering callback..."); - set_wakeup_callback(&wakeup_callback); + autosuspend_set_wakeup_callback(&wakeup_callback); } // Wait for wakeup.