Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3604772f authored by Violetta Fedotova's avatar Violetta Fedotova Committed by Android (Google) Code Review
Browse files

Merge "Remove MotionEvent.getEventTimeNano API."

parents 1d8cf0a1 9614a413
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -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