Lines Matching refs:time
79 KeyHistory(T key, uid_t allowUid, int64_t time) in KeyHistory() argument
82 , mCreationTime(time) in KeyHistory()
83 , mLastModificationTime(time) in KeyHistory()
92 putValue(AMEDIAMETRICS_PROP_ALLOWUID, (int32_t)allowUid, time); in KeyHistory()
108 status_t getValue(const std::string &property, T* value, int64_t time = 0) const
110 if (time == 0) time = systemTime(SYSTEM_TIME_REALTIME); in REQUIRES()
114 auto eptr = timeSequence.upper_bound(time); in REQUIRES()
125 status_t getValue(const std::string &property, T defaultValue, int64_t time = 0) const
128 return getValue(property, &value, time) != NO_ERROR ? defaultValue : value; in REQUIRES()
132 const std::string &name, const mediametrics::Item::Prop &prop, int64_t time = 0)
135 putValue(name, prop.get(), time); in REQUIRES()
139 void putValue(const std::string &property, T&& e, int64_t time = 0)
141 if (time == 0) time = systemTime(SYSTEM_TIME_REALTIME); in REQUIRES()
142 mLastModificationTime = time; in REQUIRES()
153 timeSequence.emplace_hint(timeSequence.end(), time, std::move(el)); in REQUIRES()
163 std::pair<std::string, int32_t> dump(int32_t lines, int64_t time) const in dump() argument
169 std::string s = dump(mKey, tsPair, time); in dump()
186 int64_t time) { in dump() argument
188 auto eptr = timeSequence.lower_bound(time); in dump()
199 const size_t offset = commonTimePrefixPosition(timestring.time, in dump()
200 last_timestring.time); in dump()
202 ss << "(" << (offset == 0 ? "" : "~") << ×tring.time[offset] in dump()
274 const int64_t time = item->getTimestamp(); variable
297 key, allowUid, time);
323 keyHistory->putProp(name, prop, time);
345 remoteKeyHistory->putProp(remoteName, prop, time);
352 T* value, int32_t uidCheck = -1, int64_t time = 0) const {
362 ?: keyHistory->getValue(property, value, time);
371 status_t put(const std::string &url, T &&e, int64_t time = 0) {
377 if (time == 0) time = systemTime(SYSTEM_TIME_REALTIME);
379 keyHistory->putValue(prop, std::forward<T>(e), time);
387 status_t get(const std::string &url, T* value, int32_t uidCheck, int64_t time = 0) const {
396 ?: keyHistory->getValue(prop, value, time);
404 int64_t time = 0) const {
406 return get(url, &value, uidCheck, time) == NO_ERROR