Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Version used:
Android API guidelines require:
-------------------------------
6.1.3. Methods expressing durations or time as a primitive should be named with their time unit, and use long
Methods accepting or returning durations as a primitive should suffix the method name with the associated time units (e.g. Millis, Nanos, Seconds) to reserve the undecorated name for use with java.time.Duration. See Time.
Methods should also be annotated apporiately with their unit and time base:
@CurrentTimeMillisLong: Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z.
---------------------------------
In aosp/2218670 the CL owner mentioned that these annotations are not usable from AndroidX surface.
"I see an annotation: android.annotation.CurrentTimeMillisLong , but it isn't used in androidx anywhere, and Android Studio complains when I try to import it."
Looking at AndroidX I have not seen any usage as well. I don't know what the problem is, but we want these to be available in AndroidX so that we can be consistent with API guidelines.