Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/sntp/
DTimestamp64.java88 long nanos = instant.getNano(); in fromInstant() local
89 int fractionBits = nanosToFractionBits(nanos); in fromInstant()
126 int nanos = fractionBitsToNanos(mFractionBits); in toInstant() local
127 return Instant.ofEpochSecond(secondsSinceEpoch, nanos); in toInstant()
152 static int nanosToFractionBits(long nanos) { in nanosToFractionBits() argument
153 if (nanos > NANOS_PER_SECOND) { in nanosToFractionBits()
156 return (int) ((nanos << 32) / NANOS_PER_SECOND); in nanosToFractionBits()
DDuration64.java100 int nanos = getNanos(); in toDuration() local
101 return Duration.ofSeconds(seconds, nanos); in toDuration()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DSessionInteractiveData.java25 public void setNanosTime(long nanos) { in setNanosTime() argument
26 mNanosTime.set(nanos); in setNanosTime()
33 public void setBootNanosTime(long nanos) { in setBootNanosTime() argument
34 mBootNanosTime.set(nanos); in setBootNanosTime()
DBridgeRenderSession.java133 public void setSystemTimeNanos(long nanos) { in setSystemTimeNanos() argument
134 execute(() -> System_Delegate.setNanosTime(nanos)); in setSystemTimeNanos()
138 public void setSystemBootTimeNanos(long nanos) { in setSystemBootTimeNanos() argument
139 execute(() -> System_Delegate.setBootTimeNanos(nanos)); in setSystemBootTimeNanos()
143 public void setElapsedFrameTimeNanos(long nanos) { in setElapsedFrameTimeNanos() argument
145 mSession.setElapsedFrameTimeNanos(nanos); in setElapsedFrameTimeNanos()
150 public boolean executeCallbacks(long nanos) { in executeCallbacks() argument
/frameworks/layoutlib/bridge/src/com/android/internal/lang/
DSystem_Delegate.java41 public static void setNanosTime(long nanos) { in setNanosTime() argument
44 context.getSessionInteractiveData().setNanosTime(nanos); in setNanosTime()
48 public static void setBootTimeNanos(long nanos) { in setBootTimeNanos() argument
51 context.getSessionInteractiveData().setBootNanosTime(nanos); in setBootTimeNanos()
/frameworks/native/services/surfaceflinger/tests/unittests/
DVsyncModulatorTest.cpp59 using nanos = std::chrono::nanoseconds; typedef in android::scheduler::VsyncModulatorTest
60 const VsyncConfig kEarly{SF_OFFSET_EARLY, APP_OFFSET_EARLY, nanos(SF_DURATION_LATE),
61 nanos(APP_DURATION_LATE)};
62 const VsyncConfig kEarlyGpu{SF_OFFSET_EARLY_GPU, APP_OFFSET_EARLY_GPU, nanos(SF_DURATION_EARLY),
63 nanos(APP_DURATION_EARLY)};
64 const VsyncConfig kLate{SF_OFFSET_LATE, APP_OFFSET_LATE, nanos(SF_DURATION_EARLY_GPU),
65 nanos(APP_DURATION_EARLY_GPU)};
67 const VsyncConfigSet mOffsets = {kEarly, kEarlyGpu, kLate, nanos(HWC_MIN_WORK_DURATION)};
/frameworks/base/tools/preload/
DOperation.java110 private static int nanosToMicros(long nanos) { in nanosToMicros() argument
111 long micros = nanos / 1000; in nanosToMicros()
114 throw new RuntimeException("Integer overflow: " + nanos); in nanosToMicros()
/frameworks/native/services/powermanager/include/android/
DParcelDuration.h32 ParcelDuration(int64_t seconds = 0, int32_t nanos = 0) : mSeconds(seconds), mNanos(nanos) {} in mSeconds()
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DPhysics.kt148 fun step(nanos: Long) { in step()
151 dt = (nanos - wallClockNanos) / 1_000_000_000f * TIME_SCALE in step()
152 this.wallClockNanos = nanos in step()
DVisibleUniverse.kt62 fun simulateAndDrawFrame(nanos: Long) { in simulateAndDrawFrame()
64 triggerDraw.value = nanos in simulateAndDrawFrame()
66 step(nanos) in simulateAndDrawFrame()
/frameworks/base/core/proto/android/view/inputmethod/
Dinputmethodeditortrace.proto61 /* required: elapsed realtime in nanos since boot of when this entry was logged */
111 /* required: elapsed realtime in nanos since boot of when this entry was logged */
148 /* required: elapsed realtime in nanos since boot of when this entry was logged */
/frameworks/base/core/tests/coretests/src/android/net/sntp/
DDuration64Test.java267 int year, int monthOfYear, int day, int hour, int minute, int second, int nanos) {
268 return LocalDateTime.of(year, monthOfYear, day, hour, minute, second, nanos)
/frameworks/native/services/inputflinger/dispatcher/
DLatencyAggregator.cpp33 static inline int64_t ns2hus(nsecs_t nanos) { in ns2hus() argument
34 return ns2us(nanos) / 100; in ns2hus()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DCharacterPerfTest.java64 public double nanosToUnits(double nanos) { in nanosToUnits() argument
65 return nanos / 65536; in nanosToUnits()
/frameworks/base/core/proto/android/server/
Dwindowmanagertrace.proto49 /* required: elapsed realtime in nanos since boot of when this entry was logged */
Daccessibilitytrace.proto50 /* required: elapsed realtime in nanos since boot of when this entry was logged */
/frameworks/libs/systemui/viewcapturelib/src/com/android/app/viewcapture/proto/
Dview_capture.proto54 optional int64 timestamp = 1; // unit is elapsed realtime nanos
/frameworks/base/core/tests/coretests/src/android/net/
DSntpClientTest.java291 int year, int monthOfYear, int day, int hour, int minute, int second, int nanos) { in utcInstant() argument
292 return LocalDateTime.of(year, monthOfYear, day, hour, minute, second, nanos) in utcInstant()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java399 public void setElapsedFrameTimeNanos(long nanos) { in setElapsedFrameTimeNanos() argument
400 mElapsedFrameTimeNanos = nanos; in setElapsedFrameTimeNanos()
/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.cpp630 const auto hwcVsyncPeriod = ftl::Optional(hwcVsyncPeriodIn).transform([](nsecs_t nanos) { in addResyncSample() argument
631 return Period::fromNs(nanos); in addResyncSample()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.cpp360 static int32_t toMs(nsecs_t nanos) { in toMs() argument
362 std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::nanoseconds(nanos)) in toMs()
/frameworks/base/services/core/java/com/android/server/wm/
DTransitionController.java1677 private static String toMsString(long nanos) { in toMsString() argument
1678 return ((double) Math.round((double) nanos / 1000) / 1000) + "ms"; in toMsString()