Home
last modified time | relevance | path

Searched refs:ONE_MS_IN_NS (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/com/android/internal/view/
DSurfaceFlingerVsyncChoreographer.java30 private static final long ONE_MS_IN_NS = 1000000; field in SurfaceFlingerVsyncChoreographer
31 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()
/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/java/com/prefabulated/bouncyball/
DOrbitActivity.java59 private static final long ONE_MS_IN_NS = 1000000; field in OrbitActivity
60 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()
/frameworks/opt/gamesdk/src/swappy/
DSwappy.cpp98 const long ONE_MS_IN_NS = 1000000; in init() local
99 const long ONE_S_IN_NS = ONE_MS_IN_NS * 1000; in init()
103 vsyncPeriodNanos - (vsyncPresentationDeadlineNanos - ONE_MS_IN_NS); in init()