OSDN Git Service

Change selection strategy for ACTION_DISMISS_TIMER
authorChristine Franks <christyfranks@google.com>
Thu, 7 Dec 2017 23:30:37 +0000 (15:30 -0800)
committerChristine Franks <christyfranks@google.com>
Tue, 9 Jan 2018 00:38:35 +0000 (16:38 -0800)
Bug: 70336445
Test: make -j100 && cts-tradefed run cts-dev -m CtsAlarmClockTestCases

Change-Id: Ic7e3e6f32c873d62d52e39873401e3e8f2f39a0a

core/java/android/provider/AlarmClock.java

index 2169457..7ad9e01 100644 (file)
@@ -154,9 +154,12 @@ public final class AlarmClock {
     public static final String ACTION_SET_TIMER = "android.intent.action.SET_TIMER";
 
     /**
-     * Activity Action: Dismiss timers.
+     * Activity Action: Dismiss a timer.
      * <p>
-     * Dismiss all currently expired timers. If there are no expired timers, then this is a no-op.
+     * The timer to dismiss should be specified using the Intent's data URI, which represents a
+     * deeplink to the timer.
+     * </p><p>
+     * If no data URI is provided, dismiss all expired timers.
      * </p>
      */
     @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)