Home
last modified time | relevance | path

Searched full:timestamp (Results 1 – 25 of 1404) sorted by relevance

12345678910>>...57

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/
Dtime_helper.cpp24 Timestamp TimeHelper::lastSystemTimeUs_ = 0;
25 Timestamp TimeHelper::currentIncCount_ = 0;
26 std::atomic<Timestamp> TimeHelper::lastMonotonicTime_ = 0;
28 Timestamp TimeHelper::GetSysCurrentTime() in GetSysCurrentTime()
47 return (curTime * TO_100_NS) + currentIncCount_; // Currently Timestamp is uint64_t in GetSysCurrentTime()
83 Timestamp currentSysTime = GetSysCurrentTime(); in Initialize()
85 Timestamp maxItemTime = GetMaxDataItemTime(); in Initialize()
89 Timestamp virtualSysTime = static_cast<Timestamp>(currentSysTime + localTimeOffset); in Initialize()
99 metadata_->SetLastLocalTime(currentSysTime + static_cast<Timestamp>(localTimeOffset)); in Initialize()
103 Timestamp TimeHelper::GetTime() in GetTime()
[all …]
Dtime_helper.h38 static const Timestamp INVALID_TIMESTAMP = 0;
41 static Timestamp GetSysCurrentTime();
50 // Get Timestamp when write data into db, export interface;
51 Timestamp GetTime();
54 Timestamp GetMaxDataItemTime();
64 static Timestamp GetMonotonicTime();
68 static Timestamp lastSystemTimeUs_;
69 static Timestamp currentIncCount_;
71 static std::atomic<Timestamp> lastMonotonicTime_;
/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
Dbundle_active_period_stats.cpp62 const int64_t timeStamp, const int32_t eventId, const std::string abilityId, const int32_t uid) in Update() argument
69 tmpUsageStats->Update("", timeStamp, eventId, abilityId, uid); in Update()
74 usageStats->Update(longTimeTaskName, timeStamp, eventId, abilityId, uid); in Update()
76 if (timeStamp > endTime_) { in Update()
77 endTime_ = timeStamp; in Update()
93 void BundleActivePeriodStats::CommitTime(const int64_t timeStamp) in CommitTime() argument
95 interactiveTracker_.CommitTime(timeStamp); in CommitTime()
96 noninteractiveTracker_.CommitTime(timeStamp); in CommitTime()
97 keyguardShownTracker_.CommitTime(timeStamp); in CommitTime()
98 keyguardHiddenTracker_.CommitTime(timeStamp); in CommitTime()
[all …]
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/
Dbundle_active_package_stats.cpp26 lastTimeUsed_ = -1; // the timestamp of last launch in BundleActivePackageStats()
28 lastContiniousTaskUsed_ = -1; // the timestamp of bundle calling a continuous task. in BundleActivePackageStats()
72 void BundleActivePackageStats::IncrementTimeUsed(const int64_t timeStamp) in IncrementTimeUsed() argument
74 if (timeStamp > lastTimeUsed_) { in IncrementTimeUsed()
75 totalInFrontTime_ += timeStamp - lastTimeUsed_; in IncrementTimeUsed()
76 lastTimeUsed_ = timeStamp; in IncrementTimeUsed()
80 void BundleActivePackageStats::IncrementServiceTimeUsed(const int64_t timeStamp) in IncrementServiceTimeUsed() argument
82 if (timeStamp > lastContiniousTaskUsed_) { in IncrementServiceTimeUsed()
83 totalContiniousTaskUsedTime_ += timeStamp - lastContiniousTaskUsed_; in IncrementServiceTimeUsed()
84 lastContiniousTaskUsed_ = timeStamp; in IncrementServiceTimeUsed()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
Dsqlite_single_ver_storage_executor.h37 …al int GetKvData(SingleVerDataType type, const Key &key, Value &value, Timestamp &timestamp) const;
44 Timestamp timestamp, SingleVerNaturalStoreCommitNotifyData *committedData);
59Timestamp &maxStamp, SingleVerNaturalStoreCommitNotifyData *committedData, bool isPermitForceWrite…
62 Timestamp &timestamp);
75 void InitCurrentMaxStamp(Timestamp &maxStamp);
79 … int GetSyncDataByTimestamp(std::vector<DataItem> &dataItems, size_t appendLength, Timestamp begin,
80 Timestamp end, const DataSizeSpecInfo &dataSizeInfo) const;
81 …tDeletedSyncDataByTimestamp(std::vector<DataItem> &dataItems, size_t appendLength, Timestamp begin,
82 Timestamp end, const DataSizeSpecInfo &dataSizeInfo) const;
84 int GetUnSyncTotalByTimestamp(Timestamp begin, Timestamp end, uint32_t &total) const;
[all …]
Dsqlite_single_ver_continue_token.h28 SQLiteSingleVerContinueToken(Timestamp begin, Timestamp end);
45 Timestamp GetQueryBeginTime() const;
46 Timestamp GetQueryEndTime() const;
47 Timestamp GetDeletedBeginTime() const;
48 Timestamp GetDeletedEndTime() const;
50 void SetNextBeginTime(const DeviceID &deviceID, Timestamp nextBeginTime);
52 void SetDeletedNextBeginTime(const DeviceID &deviceID, Timestamp nextBeginTime);
70 …void RemovePrevDevAndSetBeginTime(const DeviceID &deviceID, Timestamp nextBeginTime, MulDevTimeRan…
72 Timestamp GetBeginTimestamp(const MulDevTimeRanges &timeRanges) const;
73 Timestamp GetEndTimestamp(const MulDevTimeRanges &timeRanges) const;
Dsqlite_single_ver_continue_token.cpp21 SQLiteSingleVerContinueToken::SQLiteSingleVerContinueToken(Timestamp begin, Timestamp end) in SQLiteSingleVerContinueToken()
44 Timestamp SQLiteSingleVerContinueToken::GetQueryBeginTime() const in GetQueryBeginTime()
49 Timestamp SQLiteSingleVerContinueToken::GetQueryEndTime() const in GetQueryEndTime()
54 Timestamp SQLiteSingleVerContinueToken::GetDeletedBeginTime() const in GetDeletedBeginTime()
59 Timestamp SQLiteSingleVerContinueToken::GetDeletedEndTime() const in GetDeletedEndTime()
64 void SQLiteSingleVerContinueToken::SetNextBeginTime(const DeviceID &deviceID, Timestamp nextBeginTi… in SetNextBeginTime()
74 void SQLiteSingleVerContinueToken::SetDeletedNextBeginTime(const DeviceID &deviceID, Timestamp next… in SetDeletedNextBeginTime()
117 void SQLiteSingleVerContinueToken::RemovePrevDevAndSetBeginTime(const DeviceID &deviceID, Timestamp in RemovePrevDevAndSetBeginTime()
128 Timestamp SQLiteSingleVerContinueToken::GetBeginTimestamp(const MulDevTimeRanges &timeRanges) const in GetBeginTimestamp()
136 Timestamp SQLiteSingleVerContinueToken::GetEndTimestamp(const MulDevTimeRanges &timeRanges) const in GetEndTimestamp()
[all …]
/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/test/
Dbeans_test.py53 …"id: 0, point: (123.12, 56.00), screenPoint: (45.00, 280.30), type: down, timestamp: 2017-08-25 15…
62 procedure_step_str = "procedure: HandleTouchUp, timestamp: 2017-08-25 15:00:22.295"
71 " procedure: HandleTouchDown, timestamp: 2017-08-20 15:00:22.247\n" + \
72 " procedure: HandleTouchUp, timestamp: 2017-08-20 15:00:22.295\n"
84 " procedure: HandleTouchDown, timestamp: 2017-08-25 15:00:22.247\n"
85 " procedure: HandleTouchUp, timestamp: 2017-08-25 15:00:22.295\n")
96 " procedure: HandleTouchDown, timestamp: 2017-08-25 15:00:22.247\n"
97 " procedure: HandleTouchUp, timestamp: 2017-08-25 15:00:22.295\n"
101 … " procedure: HandleTouchDown, state: DETECTING, disposal: NONE, timestamp: 2017-08-25 "
103 … " procedure: HandleTouchUp, state: FAIL, disposal: REJECT, timestamp: 2017-08-25 "
[all …]
/foundation/resourceschedule/device_usage_statistics/services/packageusage/include/
Dbundle_active_period_stats.h68 * parameters: bundleName, longTimeTaskName, timeStamp, eventId, abilityId
70 …d Update(const std::string bundleName, const std::string longTimeTaskName, const int64_t timeStamp,
79 * parameters: timeStamp
81 void UpdateScreenInteractive(const int64_t timeStamp);
84 * parameters: timeStamp
86 void UpdateScreenNonInteractive(const int64_t timeStamp);
89 * parameters: timeStamp
91 void UpdateKeyguardShown(const int64_t timeStamp);
94 * parameters: timeStamp
96 void UpdateKeyguardHidden(const int64_t timeStamp);
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
Dvirtual_single_ver_sync_db_Interface.h31 Timestamp timestamp = 0; member
32 Timestamp writeTimestamp = 0;
41 Timestamp begin = 0u;
42 Timestamp end = 0u;
65 int GetSyncData(Timestamp begin, Timestamp end, std::vector<DataItem> &dataItems,
73 void GetMaxTimestamp(Timestamp& stamp) const override;
81 int PutData(const Key &key, const Value &value, const Timestamp &time, int flag);
83 int GetSyncData(Timestamp begin, Timestamp end, std::vector<SingleVerKvEntry *> &entries,
89 int GetUnSyncTotal(Timestamp begin, Timestamp end, uint32_t &total) const override;
117 int GetDatabaseCreateTimestamp(Timestamp &outTime) const override;
[all …]
Dvirtual_single_ver_sync_db_Interface.cpp47 storageItem.timestamp = item.timestamp; in GetEntriesFromItems()
132 int VirtualSingleVerSyncDBInterface::GetSyncData(Timestamp begin, Timestamp end, std::vector<DataIt… in GetSyncData()
138 int VirtualSingleVerSyncDBInterface::GetUnSyncTotal(Timestamp begin, Timestamp end, uint32_t &total… in GetUnSyncTotal()
174 … if (data.timestamp >= timeRange.deleteBeginTime && data.timestamp < timeRange.deleteEndTime) { in GetUnSyncTotal()
178 if (data.timestamp >= timeRange.beginTime && data.timestamp < timeRange.endTime && in GetUnSyncTotal()
218 int VirtualSingleVerSyncDBInterface::PutData(const Key &key, const Value &value, const Timestamp &t… in PutData()
223 item.timestamp = time; in PutData()
231 void VirtualSingleVerSyncDBInterface::GetMaxTimestamp(Timestamp& stamp) const in GetMaxTimestamp()
268 dataItem.timestamp = iter->timestamp; in GetSyncData()
277 int VirtualSingleVerSyncDBInterface::GetSyncData(Timestamp begin, Timestamp end, in GetSyncData()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/
Dtime_sync.h30 void SetSourceTimeBegin(Timestamp sourceTimeBegin);
32 Timestamp GetSourceTimeBegin() const;
34 void SetSourceTimeEnd(Timestamp sourceTimeEnd);
36 Timestamp GetSourceTimeEnd() const;
38 void SetTargetTimeBegin(Timestamp targetTimeBegin);
40 Timestamp GetTargetTimeBegin() const;
42 void SetTargetTimeEnd(Timestamp targetTimeEnd);
44 Timestamp GetTargetTimeEnd() const;
60 Timestamp sourceTimeBegin_; // start point time on peer
61 Timestamp sourceTimeEnd_; // end point time on local
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/
Drd_single_ver_storage_executor.h53 int GetKvData(SingleVerDataType type, const Key &key, Value &value, Timestamp &timestamp) const;
62 Timestamp timestamp, SingleVerNaturalStoreCommitNotifyData *committedData);
86 Timestamp &timestamp);
93 void InitCurrentMaxStamp(Timestamp &maxStamp);
97 … int GetSyncDataByTimestamp(std::vector<DataItem> &dataItems, size_t appendLength, Timestamp begin,
98 Timestamp end, const DataSizeSpecInfo &dataSizeInfo) const;
100 …tDeletedSyncDataByTimestamp(std::vector<DataItem> &dataItems, size_t appendLength, Timestamp begin,
101 Timestamp end, const DataSizeSpecInfo &dataSizeInfo) const;
127 bool CheckIfKeyExisted(const Key &key, bool isLocal, Value &value, Timestamp &timestamp) const;
131 int UpdateLocalDataTimestamp(Timestamp timestamp);
[all …]
/foundation/communication/dhcp/services/dhcp_client/include/
Ddhcp_client_state_machine.h59 void SendReboot(uint32_t targetIp, time_t timestamp);
61 void DhcpResponseHandle(time_t timestamp, int sockFd);
62 void DhcpAckOrNakPacketHandle(uint8_t type, struct DhcpPacket *packet, time_t timestamp);
63 void ParseDhcpAckPacket(const struct DhcpPacket *packet, time_t timestamp);
64 void ParseDhcpNakPacket(const struct DhcpPacket *packet, time_t timestamp);
73 void DhcpOfferPacketHandle(uint8_t type, const struct DhcpPacket *packet, time_t timestamp);
74 void DhcpRequestHandle(time_t timestamp);
75 void Rebinding(time_t timestamp);
76 void Requesting(time_t timestamp);
77 void Renewing(time_t timestamp);
[all …]
/foundation/resourceschedule/device_usage_statistics/test/unittest/
Dpackage_usage_test.cpp84 int64_t timeStamp = 20000000000000; variable
88 packageStats->Update(longTimeTaskName, timeStamp, eventId, abilityId, uid);
91 packageStats->Update(longTimeTaskName, timeStamp, eventId, abilityId, uid);
94 packageStats->Update(longTimeTaskName, timeStamp, eventId, abilityId, uid);
97 packageStats->Update(longTimeTaskName, timeStamp, eventId, abilityId, uid);
100 packageStats->Update(longTimeTaskName, timeStamp, eventId, abilityId, uid);
103 packageStats->Update(longTimeTaskName, timeStamp, eventId, abilityId, uid);
106 packageStats->Update(longTimeTaskName, timeStamp, eventId, abilityId, uid);
109 packageStats->Update(longTimeTaskName, timeStamp, eventId, abilityId, uid);
112 packageStats->Update(longTimeTaskName, timeStamp, eventId, abilityId, uid);
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/cloud/
Dcloud_meta_data.h36 int GetLocalWaterMark(const TableName &tableName, Timestamp &localMark);
37 …int GetLocalWaterMarkByType(const TableName &tableName, CloudWaterType type, Timestamp &localMark);
40 int SetLocalWaterMark(const TableName &tableName, Timestamp localMark);
41 … int SetLocalWaterMarkByType(const TableName &tableName, CloudWaterType type, Timestamp localMark);
52 Timestamp localMark = 0u;
53 Timestamp insertLocalMark = 0u;
54 Timestamp updateLocalMark = 0u;
55 Timestamp deleteLocalMark = 0u;
60 int WriteMarkToMeta(const TableName &tableName, Timestamp localmark, std::string &cloudMark);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/
Ddb_types.h31 using Timestamp = uint64_t; variable
45 Timestamp timestamp = 0; member
48 Timestamp writeTimestamp = 0;
53 Timestamp modifyTime = 0;
54 Timestamp createTime = 0;
140 Timestamp beginTime = 0;
141 Timestamp deleteBeginTime = 0;
142 Timestamp endTime = static_cast<Timestamp>(INT64_MAX);
143 Timestamp deleteEndTime = static_cast<Timestamp>(INT64_MAX);
144 Timestamp lastQueryTime = 0;
[all …]
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/timer/
Dtime_broker.cpp66 auto timestamp = SteadyClock::GetTimestampMilli() + delayTimeMs; in RegisterCallback() local
67 auto timerInfo = std::make_shared<TimerInfo>(handle, timestamp, std::move(timerCallback)); in RegisterCallback()
68 expiringTimers_[timestamp].push_back(timerInfo); in RegisterCallback()
70 timeline_.push(timestamp); in RegisterCallback()
71 if (timestamp == timeline_.top()) { in RegisterCallback()
72 timer_->StartAt(timestamp); in RegisterCallback()
129 auto timestamp = timeline_.top(); in TimerExpired() local
131 timerInfos.reserve(expiringTimers_[timestamp].size()); in TimerExpired()
132 for (auto& weakTimerInfoPtr : expiringTimers_[timestamp]) { in TimerExpired()
138 expiringTimers_.erase(timestamp); in TimerExpired()
[all …]
/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/
Dkeywords.py23 …, point: Offset (278.00, 551.00), screenPoint: Offset (278.00, 551.00), type: TouchDown, timestamp:
25 …Offset (278.00, 551.00), screenPoint: Offset (278.00, 551.00), type: TouchUp, timestamp: 2017-08-25
36 # procedure: HandleTouchDown, timestamp: 2017-08-25 15:00:22.247
37 # procedure: HandleTouchUp, timestamp: 2017-08-25 15:00:22.295
41 # procedure: HandleTouchDown, timestamp: 2017-08-25 15:00:22.247
42 # procedure: HandleTouchUp, timestamp: 2017-08-25 15:00:22.295
79 …, point: Offset (278.00, 551.00), screenPoint: Offset (278.00, 551.00), type: TouchDown, timestamp:
81 …Offset (278.00, 551.00), screenPoint: Offset (278.00, 551.00), type: TouchUp, timestamp: 2017-08-25
89 "timestamp": KeyValueSample("timestamp: 2017-08-25 15:00:22.244"),
112 # procedure: HandleTouchDown, timestamp: 2017-08-25 15:00:22.247
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
Ddistributeddb_storage_single_ver_natural_store_testcase.cpp57 Timestamp timeBegin; in GetSyncData001()
65 Timestamp timeEnd; in GetSyncData001()
105 Timestamp timestamp; in GetSyncData002() local
106 store->GetMaxTimestamp(timestamp); in GetSyncData002()
110 SyncInputArg inputArg(timestamp + 1, timestamp + 1000, 1024); // no more than 1024 in GetSyncData002()
119 * @tc.desc: To test the function of querying data when the timestamp range
135 Timestamp timeBegin = 1000; // random in GetSyncData003()
136 Timestamp timeEnd = 700; // random in GetSyncData003()
182 Timestamp timestamp = 0; in GetSyncData004() local
183 store->GetMaxTimestamp(timestamp); in GetSyncData004()
[all …]
/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/beans/
Dtouch_point.py25 …Offset (278.00, 551.00), screenPoint: Offset (278.00, 551.00), type: TouchUp, timestamp: 2017-08-25
32 timestamp = '' variable in TouchPoint
47 … self.timestamp = get_value_as_str(input_str, get_sample_key(touch_point_keyword, 'timestamp'),
48 … get_sample_separator_count(touch_point_keyword, 'timestamp'))
54 …id is None or self.point is None or self.screenPoint is None or self.type is None or self.timestamp
61 return ('id: {}, point: {}, screenPoint: {}, type: {}, timestamp: {}, isInjected: {}'
62 … .format(self.id, self.point, self.screenPoint, self.type, self.timestamp, self.isInjected))
66 .format(str(self.id), self.point, self.screenPoint, self.type, self.timestamp))
Dprocedure_step.py25 # procedure: HandleTouchDown, state: READY, disposal: NONE, timestamp: 2017-08-25 15:00:20.177
30 timestamp = '' variable in ProcedureStep
43 … self.timestamp = get_value_as_str(input_str, get_sample_key(event_procedure_keyword, 'timestamp'),
44 … get_sample_separator_count(event_procedure_keyword, 'timestamp'), True)
48 if self.procedure is None or self.timestamp is None:
67 result_str += ', timestamp: ' + self.timestamp
/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/src/callback/
Ddcamera_photo_callback.cpp42 void DCameraPhotoCallback::OnFrameShutter(const int32_t captureId, const uint64_t timestamp) const in OnFrameShutter()
44 DHLOGI("enter, captureId: %{public}d, timestamp: %{public}" PRIu64, captureId, timestamp); in OnFrameShutter()
47 void DCameraPhotoCallback::OnFrameShutterEnd(const int32_t captureId, const uint64_t timestamp) con… in OnFrameShutterEnd()
49 DHLOGI("enter, captureId: %{public}d, timestamp: %{public}" PRIu64, captureId, timestamp); in OnFrameShutterEnd()
52 void DCameraPhotoCallback::OnCaptureReady(const int32_t captureId, const uint64_t timestamp) const in OnCaptureReady()
54 DHLOGI("enter, captureId: %{public}d, timestamp: %{public}" PRIu64, captureId, timestamp); in OnCaptureReady()
/foundation/arkui/ui_lite/interfaces/kits/events/
Devent.h30 * the event position and timestamp.
46 * the event position and timestamp.
87 * @brief Obtains the timestamp when an event occurs.
88 * @return Returns the timestamp.
98 * @brief Sets the timestamp when an event occurs.
99 * @param timeStamp Indicates the timestamp of the event to set.
103 void SetTimeStamp(const TimeType& timeStamp) in SetTimeStamp() argument
105 timeStamp_ = timeStamp; in SetTimeStamp()
/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/resources/dumpfile/
Dinput.txt22 …392.00, 312.00), screenPoint: Offset (392.00, 312.00), type: TouchDown, timestamp: 2017-08-25 15:0…
23 … (392.00, 312.00), screenPoint: Offset (392.00, 312.00), type: TouchUp, timestamp: 2017-08-25 15:0…
24 …200.00, 112.00), screenPoint: Offset (200.00, 112.00), type: TouchDown, timestamp: 2017-08-25 15:0…
25 … (100.00, 456.00), screenPoint: Offset (100.00, 456.00), type: TouchUp, timestamp: 2017-08-25 15:0…
56 xxx)-(10000:10000:scope)] EventTreeDumpInfo: procedure: HandleTouchDown, timestamp: 2017-08-25…
57 xxx)-(10000:10000:scope)] EventTreeDumpInfo: procedure: HandleTouchUp, timestamp: 2017-08-25 1…
60 xxx)-(10000:10000:scope)] EventTreeDumpInfo: procedure: HandleTouchDown, timestamp: 2017-08-25…
61 xxx)-(10000:10000:scope)] EventTreeDumpInfo: procedure: HandleTouchUp, timestamp: 2017-08-25 1…
64 xxx)-(10000:10000:scope)] EventTreeDumpInfo: procedure: HandleTouchDown, timestamp: 2017-08-25…
65 xxx)-(10000:10000:scope)] EventTreeDumpInfo: procedure: HandleTouchUp, timestamp: 2017-08-25 1…
[all …]

12345678910>>...57