/frameworks/base/core/java/android/net/sntp/ |
D | Timestamp64.java | 88 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()
|
D | Duration64.java | 100 int nanos = getNanos(); in toDuration() local 101 return Duration.ofSeconds(seconds, nanos); in toDuration()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
D | SessionInteractiveData.java | 25 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()
|
D | BridgeRenderSession.java | 133 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/ |
D | System_Delegate.java | 41 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/ |
D | VsyncModulatorTest.cpp | 59 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/ |
D | Operation.java | 110 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/ |
D | ParcelDuration.h | 32 ParcelDuration(int64_t seconds = 0, int32_t nanos = 0) : mSeconds(seconds), mNanos(nanos) {} in mSeconds()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/ |
D | Physics.kt | 148 fun step(nanos: Long) { in step() 151 dt = (nanos - wallClockNanos) / 1_000_000_000f * TIME_SCALE in step() 152 this.wallClockNanos = nanos in step()
|
D | VisibleUniverse.kt | 62 fun simulateAndDrawFrame(nanos: Long) { in simulateAndDrawFrame() 64 triggerDraw.value = nanos in simulateAndDrawFrame() 66 step(nanos) in simulateAndDrawFrame()
|
/frameworks/base/core/proto/android/view/inputmethod/ |
D | inputmethodeditortrace.proto | 61 /* 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/ |
D | Duration64Test.java | 267 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/ |
D | LatencyAggregator.cpp | 33 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/ |
D | CharacterPerfTest.java | 64 public double nanosToUnits(double nanos) { in nanosToUnits() argument 65 return nanos / 65536; in nanosToUnits()
|
/frameworks/base/core/proto/android/server/ |
D | windowmanagertrace.proto | 49 /* required: elapsed realtime in nanos since boot of when this entry was logged */
|
D | accessibilitytrace.proto | 50 /* required: elapsed realtime in nanos since boot of when this entry was logged */
|
/frameworks/libs/systemui/viewcapturelib/src/com/android/app/viewcapture/proto/ |
D | view_capture.proto | 54 optional int64 timestamp = 1; // unit is elapsed realtime nanos
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | SntpClientTest.java | 291 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/ |
D | RenderSessionImpl.java | 399 public void setElapsedFrameTimeNanos(long nanos) { in setElapsedFrameTimeNanos() argument 400 mElapsedFrameTimeNanos = nanos; in setElapsedFrameTimeNanos()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | Scheduler.cpp | 630 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/ |
D | TimeStats.cpp | 360 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/ |
D | TransitionController.java | 1677 private static String toMsString(long nanos) { in toMsString() argument 1678 return ((double) Math.round((double) nanos / 1000) / 1000) + "ms"; in toMsString()
|