Loading core/java/android/view/MotionEvent.java +0 −21 Original line number Diff line number Diff line Loading @@ -2426,27 +2426,6 @@ public final class MotionEvent extends InputEvent implements Parcelable { return nativeGetEventTimeNanos(mNativePtr, HISTORY_CURRENT) / NS_PER_MS; } /** * Retrieve the time this event occurred, * in the {@link android.os.SystemClock#uptimeMillis} time base but with * nanosecond precision. * <p> * The value is in nanosecond precision but it may not have nanosecond accuracy. * </p> * * @return Returns the time this event occurred, * in the {@link android.os.SystemClock#uptimeMillis} time base but with * nanosecond precision. * * @hide */ @UnsupportedAppUsage(publicAlternatives = "Use {@link #getEventTimeNanos()} public API instead.", maxTargetSdk = Build.VERSION_CODES.UPSIDE_DOWN_CAKE) public final long getEventTimeNano() { return nativeGetEventTimeNanos(mNativePtr, HISTORY_CURRENT); } /** * Retrieve the time this event occurred, * in the {@link android.os.SystemClock#uptimeMillis} time base but with Loading Loading
core/java/android/view/MotionEvent.java +0 −21 Original line number Diff line number Diff line Loading @@ -2426,27 +2426,6 @@ public final class MotionEvent extends InputEvent implements Parcelable { return nativeGetEventTimeNanos(mNativePtr, HISTORY_CURRENT) / NS_PER_MS; } /** * Retrieve the time this event occurred, * in the {@link android.os.SystemClock#uptimeMillis} time base but with * nanosecond precision. * <p> * The value is in nanosecond precision but it may not have nanosecond accuracy. * </p> * * @return Returns the time this event occurred, * in the {@link android.os.SystemClock#uptimeMillis} time base but with * nanosecond precision. * * @hide */ @UnsupportedAppUsage(publicAlternatives = "Use {@link #getEventTimeNanos()} public API instead.", maxTargetSdk = Build.VERSION_CODES.UPSIDE_DOWN_CAKE) public final long getEventTimeNano() { return nativeGetEventTimeNanos(mNativePtr, HISTORY_CURRENT); } /** * Retrieve the time this event occurred, * in the {@link android.os.SystemClock#uptimeMillis} time base but with Loading