Searched refs:ONE_MS_IN_NS (Results 1 – 3 of 3) sorted by relevance
30 private static final long ONE_MS_IN_NS = 1000000; field in SurfaceFlingerVsyncChoreographer31 private static final long ONE_S_IN_NS = ONE_MS_IN_NS * 1000;67 long sfVsyncOffset = vsyncPeriod - (display.getPresentationDeadlineNanos() - ONE_MS_IN_NS); in calculateAppSurfaceFlingerVsyncOffsetMs()68 return Math.max(0, (sfVsyncOffset - display.getAppVsyncOffsetNanos()) / ONE_MS_IN_NS); in calculateAppSurfaceFlingerVsyncOffsetMs()
59 private static final long ONE_MS_IN_NS = 1000000; field in OrbitActivity60 private static final long ONE_S_IN_NS = 1000 * ONE_MS_IN_NS;211 … sfVsyncOffsetNanos = refreshPeriodNanos - (display.getPresentationDeadlineNanos() - ONE_MS_IN_NS); in onCreate()225 …tText(String.format(Locale.US, "App Offset: %.1f ms", appVsyncOffsetNanos / (float) ONE_MS_IN_NS)); in onCreate()227 …setText(String.format(Locale.US, "SF Offset: %.1f ms", sfVsyncOffsetNanos / (float) ONE_MS_IN_NS)); in onCreate()
98 const long ONE_MS_IN_NS = 1000000; in init() local99 const long ONE_S_IN_NS = ONE_MS_IN_NS * 1000; in init()103 vsyncPeriodNanos - (vsyncPresentationDeadlineNanos - ONE_MS_IN_NS); in init()