OSDN Git Service

Add @CurrentTimeMillisLong to new API method
authorNed Burns <pixel@google.com>
Wed, 10 Apr 2019 18:33:02 +0000 (14:33 -0400)
committerNed Burns <pixel@google.com>
Wed, 10 Apr 2019 18:33:02 +0000 (14:33 -0400)
Addressing API council feedback

Test: None
Bug: 123223649
Change-Id: I797e293be1fbb552c54d010a379d8e87a201a57c

core/java/android/service/notification/NotificationListenerService.java

index 333868a..c85e0d9 100644 (file)
@@ -16,6 +16,7 @@
 
 package android.service.notification;
 
+import android.annotation.CurrentTimeMillisLong;
 import android.annotation.IntDef;
 import android.annotation.NonNull;
 import android.annotation.SdkConstant;
@@ -1675,6 +1676,7 @@ public abstract class NotificationListenerService extends Service {
          *
          * @return the time of the last alerting behavior, in milliseconds.
          */
+        @CurrentTimeMillisLong
         public long getLastAudiblyAlertedMillis() {
             return mLastAudiblyAlertedMs;
         }