Lines Matching refs:signalTime

52 FenceTime::FenceTime(nsecs_t signalTime)  in FenceTime()  argument
53 : mState(Fence::isValidTimestamp(signalTime) ? State::VALID : State::INVALID), in FenceTime()
55 mSignalTime(signalTime) { in FenceTime()
75 nsecs_t signalTime = mSignalTime.load(std::memory_order_relaxed); in applyTrustedSnapshot() local
76 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in applyTrustedSnapshot()
80 if (CC_UNLIKELY(signalTime != src.signalTime)) { in applyTrustedSnapshot()
83 signalTime, src.signalTime); in applyTrustedSnapshot()
90 mSignalTime.store(src.signalTime, std::memory_order_relaxed); in applyTrustedSnapshot()
102 nsecs_t signalTime = mSignalTime.load(std::memory_order_relaxed); in getSignalTime() local
103 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in getSignalTime()
104 return signalTime; in getSignalTime()
125 signalTime = fence->getSignalTime(); in getSignalTime()
130 if (signalTime == Fence::SIGNAL_TIME_INVALID) { in getSignalTime()
131 signalTime = Fence::SIGNAL_TIME_PENDING; in getSignalTime()
137 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in getSignalTime()
140 mSignalTime.store(signalTime, std::memory_order_relaxed); in getSignalTime()
143 return signalTime; in getSignalTime()
154 nsecs_t signalTime = mSignalTime.load(std::memory_order_relaxed); in getSnapshot() local
155 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in getSnapshot()
156 return Snapshot(signalTime); in getSnapshot()
161 signalTime = mSignalTime.load(std::memory_order_relaxed); in getSnapshot()
162 if (signalTime != Fence::SIGNAL_TIME_PENDING) { in getSnapshot()
163 return Snapshot(signalTime); in getSnapshot()
178 void FenceTime::signalForTest(nsecs_t signalTime) { in signalForTest() argument
184 mSignalTime.store(signalTime, std::memory_order_relaxed); in signalForTest()
195 : state(State::SIGNAL_TIME), signalTime(srcSignalTime) { in Snapshot()
206 return min + sizeof(signalTime); in getFlattenedSize()
228 FlattenableUtils::write(buffer, size, signalTime); in flatten()
249 if (size < sizeof(signalTime)) { in unflatten()
252 FlattenableUtils::read(buffer, size, signalTime); in unflatten()
316 const sp<Fence>& fence, nsecs_t signalTime) { in signalAllForTest() argument
329 fenceTime->signalForTest(signalTime); in signalAllForTest()