Home
last modified time | relevance | path

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

/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DOperationalDatasetTimestamp.java46 private static final int TICKS_UPPER_BOUND = 0x8000; field in OperationalDatasetTimestamp
69 long seconds = instant.getEpochSecond() + ticks / TICKS_UPPER_BOUND; in fromInstant()
71 ticks = ticks % TICKS_UPPER_BOUND; in fromInstant()
85 long nanos = Math.round((double) mTicks * 1000000000L / TICKS_UPPER_BOUND); in toInstant()
162 return (int) Math.round((double) nanos * TICKS_UPPER_BOUND / 1000000000L); in getRoundedTicks()