OSDN Git Service

Make WorkSource version of alarm listener API @SystemApi
authorChristopher Tate <ctate@google.com>
Wed, 4 Nov 2015 19:10:48 +0000 (11:10 -0800)
committerChristopher Tate <ctate@google.com>
Wed, 4 Nov 2015 19:30:52 +0000 (11:30 -0800)
WorkSource is not public API but this should be available to
system support modules.

Change-Id: I7283ab8aa5c5e298959d21a5c8fe55ed119bc6a3

api/system-current.txt
core/java/android/app/AlarmManager.java

index 9db70e3..e1fa3e6 100644 (file)
@@ -3878,6 +3878,7 @@ package android.app {
     method public void set(int, long, android.app.PendingIntent);
     method public void set(int, long, java.lang.String, android.app.AlarmManager.OnAlarmListener, android.os.Handler);
     method public void set(int, long, long, long, android.app.PendingIntent, android.os.WorkSource);
+    method public void set(int, long, long, long, android.app.AlarmManager.OnAlarmListener, android.os.Handler, android.os.WorkSource);
     method public void setAlarmClock(android.app.AlarmManager.AlarmClockInfo, android.app.PendingIntent);
     method public void setAndAllowWhileIdle(int, long, android.app.PendingIntent);
     method public void setExact(int, long, android.app.PendingIntent);
index 3dc9582..bf2e13a 100644 (file)
@@ -611,7 +611,7 @@ public class AlarmManager {
      *
      * @hide
      */
-    //@SystemApi
+    @SystemApi
     public void set(int type, long triggerAtMillis, long windowMillis, long intervalMillis,
             OnAlarmListener listener, Handler targetHandler, WorkSource workSource) {
         setImpl(type, triggerAtMillis, windowMillis, intervalMillis, 0, null, listener, null,