@@ -1781,18 +1781,32 @@ public final void setDownTime(long downTime) {
17811781 }
17821782
17831783 /**
1784- * Returns the time (in ms) when this specific event was generated.
1784+ * Retrieve the time this event occurred,
1785+ * in the {@link android.os.SystemClock#uptimeMillis} time base.
1786+ *
1787+ * @return Returns the time this event occurred,
1788+ * in the {@link android.os.SystemClock#uptimeMillis} time base.
17851789 */
1790+ @ Override
17861791 public final long getEventTime () {
17871792 return nativeGetEventTimeNanos (mNativePtr , HISTORY_CURRENT ) / NS_PER_MS ;
17881793 }
17891794
17901795 /**
1791- * Returns the time (in ns) when this specific event was generated.
1796+ * Retrieve the time this event occurred,
1797+ * in the {@link android.os.SystemClock#uptimeMillis} time base but with
1798+ * nanosecond precision.
1799+ * <p>
17921800 * The value is in nanosecond precision but it may not have nanosecond accuracy.
1801+ * </p>
1802+ *
1803+ * @return Returns the time this event occurred,
1804+ * in the {@link android.os.SystemClock#uptimeMillis} time base but with
1805+ * nanosecond precision.
17931806 *
17941807 * @hide
17951808 */
1809+ @ Override
17961810 public final long getEventTimeNano () {
17971811 return nativeGetEventTimeNanos (mNativePtr , HISTORY_CURRENT );
17981812 }
@@ -2234,10 +2248,16 @@ public final int getHistorySize() {
22342248
22352249 /**
22362250 * Returns the time that a historical movement occurred between this event
2237- * and the previous event. Only applies to ACTION_MOVE events.
2251+ * and the previous event, in the {@link android.os.SystemClock#uptimeMillis} time base.
2252+ * <p>
2253+ * This only applies to ACTION_MOVE events.
2254+ * </p>
22382255 *
22392256 * @param pos Which historical value to return; must be less than
22402257 * {@link #getHistorySize}
2258+ * @return Returns the time that a historical movement occurred between this
2259+ * event and the previous event,
2260+ * in the {@link android.os.SystemClock#uptimeMillis} time base.
22412261 *
22422262 * @see #getHistorySize
22432263 * @see #getEventTime
@@ -2246,6 +2266,32 @@ public final long getHistoricalEventTime(int pos) {
22462266 return nativeGetEventTimeNanos (mNativePtr , pos ) / NS_PER_MS ;
22472267 }
22482268
2269+ /**
2270+ * Returns the time that a historical movement occurred between this event
2271+ * and the previous event, in the {@link android.os.SystemClock#uptimeMillis} time base
2272+ * but with nanosecond (instead of millisecond) precision.
2273+ * <p>
2274+ * This only applies to ACTION_MOVE events.
2275+ * </p><p>
2276+ * The value is in nanosecond precision but it may not have nanosecond accuracy.
2277+ * </p>
2278+ *
2279+ * @param pos Which historical value to return; must be less than
2280+ * {@link #getHistorySize}
2281+ * @return Returns the time that a historical movement occurred between this
2282+ * event and the previous event,
2283+ * in the {@link android.os.SystemClock#uptimeMillis} time base but with
2284+ * nanosecond (instead of millisecond) precision.
2285+ *
2286+ * @see #getHistorySize
2287+ * @see #getEventTime
2288+ *
2289+ * @hide
2290+ */
2291+ public final long getHistoricalEventTimeNano (int pos ) {
2292+ return nativeGetEventTimeNanos (mNativePtr , pos );
2293+ }
2294+
22492295 /**
22502296 * {@link #getHistoricalX(int, int)} for the first pointer index (may be an
22512297 * arbitrary pointer identifier).
0 commit comments