Make WorkSource version of alarm listener API @SystemApi

WorkSource is not public API but this should be available to
system support modules.

Change-Id: I7283ab8aa5c5e298959d21a5c8fe55ed119bc6a3
This commit is contained in:
Christopher Tate
2015-11-04 11:10:48 -08:00
parent 4f16073556
commit f2d753ec46
2 changed files with 2 additions and 1 deletions

View 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);

View 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,