OSDN Git Service

Add AlarmClock API to AlarmManager
[android-x86/frameworks-base.git] / core / java / android / app / IAlarmManager.aidl
index edb40ed..fb33706 100644 (file)
@@ -16,7 +16,9 @@
 */
 package android.app;
 
+import android.app.AlarmClockInfo;
 import android.app.PendingIntent;
+import android.os.WorkSource;
 
 /**
  * System private API for talking with the alarm manager service.
@@ -24,12 +26,14 @@ import android.app.PendingIntent;
  * {@hide}
  */
 interface IAlarmManager {
-    void set(int type, long triggerAtTime, in PendingIntent operation);
-    void setRepeating(int type, long triggerAtTime, long interval, in PendingIntent operation);
-    void setInexactRepeating(int type, long triggerAtTime, long interval, in PendingIntent operation);
-    void setTime(long millis);
+       /** windowLength == 0 means exact; windowLength < 0 means the let the OS decide */
+    void set(int type, long triggerAtTime, long windowLength,
+            long interval, in PendingIntent operation, in WorkSource workSource,
+            in AlarmClockInfo alarmClock);
+    boolean setTime(long millis);
     void setTimeZone(String zone);
     void remove(in PendingIntent operation);
+    AlarmClockInfo getNextAlarmClock(int userId);
 }