Add AlarmClock API to AlarmManager
Adds a new kind of alarm that represents an alarm clock and a way to query the next scheduled alarm clock. Deprecates Settings.System.NEXT_ALARM_FORMATTED. Bug: 14589952 Change-Id: I297eeeff36d07adcda010afac183d0f5ee37dc99
This commit is contained in:
@@ -47,6 +47,7 @@ import static org.easymock.EasyMock.expect;
|
||||
import static org.easymock.EasyMock.expectLastCall;
|
||||
import static org.easymock.EasyMock.isA;
|
||||
|
||||
import android.app.AlarmClockInfo;
|
||||
import android.app.AlarmManager;
|
||||
import android.app.IAlarmManager;
|
||||
import android.app.PendingIntent;
|
||||
@@ -879,7 +880,7 @@ public class NetworkStatsServiceTest extends AndroidTestCase {
|
||||
expectLastCall().anyTimes();
|
||||
|
||||
mAlarmManager.set(eq(AlarmManager.ELAPSED_REALTIME), anyLong(), anyLong(), anyLong(),
|
||||
isA(PendingIntent.class), isA(WorkSource.class));
|
||||
isA(PendingIntent.class), isA(WorkSource.class), isA(AlarmClockInfo.class));
|
||||
expectLastCall().atLeastOnce();
|
||||
|
||||
mNetManager.setGlobalAlert(anyLong());
|
||||
|
||||
Reference in New Issue
Block a user