Home
last modified time | relevance | path

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

/system/chre/platform/linux/
Dsystem_time.cc29 struct timespec timeNow; in getMonotonicTime() local
30 if (clock_gettime(CLOCK_MONOTONIC, &timeNow)) { in getMonotonicTime()
39 return Seconds(static_cast<uint64_t>(timeNow.tv_sec)) in getMonotonicTime()
40 + Nanoseconds(static_cast<uint64_t>(timeNow.tv_nsec)); in getMonotonicTime()
/system/hardware/interfaces/suspend/1.0/default/
DWakeLockEntryList.cpp162 TimestampType timeNow) const { in createNativeEntry()
168 info.lastChange = timeNow; in createNativeEntry()
304 void WakeLockEntryList::updateOnAcquire(const std::string& name, int pid, TimestampType timeNow) { in updateOnAcquire() argument
311 WakeLockInfo newEntry = createNativeEntry(name, pid, timeNow); in updateOnAcquire()
321 updatedEntry.lastChange = timeNow; in updateOnAcquire()
328 void WakeLockEntryList::updateOnRelease(const std::string& name, int pid, TimestampType timeNow) { in updateOnRelease() argument
341 TimestampType timeDelta = timeNow - updatedEntry.lastChange; in updateOnRelease()
347 updatedEntry.lastChange = timeNow; in updateOnRelease()
359 TimestampType timeNow = getTimeNow(); in updateNow() local
363 TimestampType timeDelta = timeNow - it->lastChange; in updateNow()
[all …]
DWakeLockEntryList.h47 void updateOnAcquire(const std::string& name, int pid, TimestampType timeNow);
48 void updateOnRelease(const std::string& name, int pid, TimestampType timeNow);
59 WakeLockInfo createNativeEntry(const std::string& name, int pid, TimestampType timeNow) const;
DSystemSuspend.cpp144 auto timeNow = getTimeNow(); in acquireWakeLock() local
146 mStatsList.updateOnAcquire(name, pid, timeNow); in acquireWakeLock()
222 TimestampType timeNow) { in updateWakeLockStatOnRelease() argument
223 mStatsList.updateOnRelease(name, pid, timeNow); in updateWakeLockStatOnRelease()
DSystemSuspend.h94 void updateWakeLockStatOnRelease(const std::string& name, int pid, TimestampType timeNow);
/system/chre/core/
Daudio_request_manager.cc248 Nanoseconds timeNow = SystemTime::getMonotonicTime(); in createAudioRequest() local
249 Nanoseconds nextEventTimestamp = timeNow + deliveryInterval; in createAudioRequest()