Home
last modified time | relevance | path

Searched refs:beginTime (Results 1 – 25 of 177) sorted by relevance

12345678

/ohos5.0/foundation/resourceschedule/device_usage_statistics/interfaces/test/unittest/device_usage_statistics_jsunittest/
H A Ddevice_usage_statistics_jsunit.test.js100 let beginTime = 0;
121 let beginTime = 0;
144 let beginTime = 0;
165 let beginTime = 0;
188 let beginTime = 0;
209 let beginTime = 0;
233 let beginTime = 0;
255 let beginTime = 0;
478 let beginTime = 0;
507 let beginTime = 0;
[all …]
/ohos5.0/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Dpackage_usage_test.cpp227 int64_t beginTime = 0; variable
359 int64_t beginTime = 0; variable
367 beginTime = -1;
371 beginTime = 0;
390 int64_t beginTime = 0; variable
398 beginTime = -1;
402 beginTime = 0;
406 beginTime = 0;
436 beginTime = -1;
444 beginTime = 0;
[all …]
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
H A Dbundle_active_user_service.cpp427 intervalType = database_.GetOptimalIntervalType(beginTime, endTime); in QueryBundleStatsInfos()
441 if (beginTime > currentStats->beginTime_ + periodLength_[intervalType]) { in QueryBundleStatsInfos()
447 } else if (beginTime >= currentStats->endTime_) { in QueryBundleStatsInfos()
481 if (beginTime >= currentStats->endTime_) { in QueryBundleEvents()
494 int32_t eventBeginIdx = currentStats->events_.FindBestIndex(beginTime); in QueryBundleEvents()
537 if (beginTime >= currentStats->endTime_) { in QueryDeviceEventStats()
550 GetCachedSystemEvents(currentStats, beginTime, endTime, systemEventStats); in QueryDeviceEventStats()
562 int32_t eventBeginIdx = currentStats->events_.FindBestIndex(beginTime); in GetCachedSystemEvents()
595 if (beginTime >= currentStats->endTime_) { in QueryNotificationEventStats()
600 beginTime, endTime, notificationEventStats, userId); in QueryNotificationEventStats()
[all …]
H A Dbundle_active_stats_combiner.cpp23 int64_t beginTime) in combine() argument
34 std::vector<BundleActiveEvent>& accumulatedResult, int64_t beginTime) in combine() argument
37 int32_t startIndex = stats->events_.FindBestIndex(beginTime); in combine()
/ohos5.0/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include/
H A Dbundle_active_proxy.h58 …const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) overri…
65 …Code QueryBundleEvents(std::vector<BundleActiveEvent>& bundleActiveEvents, const int64_t beginTime,
81 const int32_t intervalType, const int64_t beginTime, const int64_t endTime) override;
88 …eryCurrentBundleEvents(std::vector<BundleActiveEvent>& bundleActiveEvents, const int64_t beginTime,
113 ErrCode QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
122 ErrCode QueryNotificationEventStats(int64_t beginTime, int64_t endTime,
153 …ErrCode IPCCommunication(int64_t beginTime, int64_t endTime, std::vector<BundleActiveEventStats>& …
H A Dbundle_active_client.h79 … const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId = -1);
90 …Code QueryBundleEvents(std::vector<BundleActiveEvent>& bundleActiveEvents, const int64_t beginTime,
113 const int32_t intervalType, const int64_t beginTime, const int64_t endTime);
124 const int64_t beginTime, const int64_t endTime);
172 ErrCode QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
184 ErrCode QueryNotificationEventStats(int64_t beginTime, int64_t endTime,
/ohos5.0/foundation/resourceschedule/device_usage_statistics/frameworks/src/
H A Dbundle_state_query.cpp240 && (params.beginTime < TIME_NUMBER_MIN)) { in ParseStatesParameters()
258 (long long)params.endTime, (long long)params.beginTime); in ParseStatesParameters()
317 callbackPtr->beginTime = params.beginTime; in QueryCurrentBundleActiveStates()
319 (long long)callbackPtr->beginTime); in QueryCurrentBundleActiveStates()
384 callbackPtr->beginTime = params.beginTime; in QueryBundleActiveStates()
386 (long long)callbackPtr->beginTime); in QueryBundleActiveStates()
431 && (params.beginTime < TIME_NUMBER_MIN)) { in ParseAppUsageParametersByInterval()
509 callbackPtr->beginTime = params.beginTime; in QueryBundleStateInfoByInterval()
511 (long long)callbackPtr->beginTime); in QueryBundleStateInfoByInterval()
619 callbackPtr->beginTime = params.beginTime; in QueryBundleStateInfos()
[all …]
H A Dbundle_state_query_napi.cpp310 if (params.beginTime < TIME_NUMBER_MIN) { in ParseQueryCurrentBundleEventsParameters()
321 if (params.endTime <= params.beginTime) { in ParseQueryCurrentBundleEventsParameters()
375 callbackPtr->beginTime = params.beginTime; in QueryCurrentBundleEvents()
377 (long long)callbackPtr->beginTime); in QueryCurrentBundleEvents()
431 callbackPtr->beginTime = params.beginTime; in QueryBundleEvents()
433 (long long)callbackPtr->beginTime); in QueryBundleEvents()
498 if (params.beginTime < TIME_NUMBER_MIN) { in ParseQueryBundleStatsInfoByInterval()
509 if (params.endTime <= params.beginTime) { in ParseQueryBundleStatsInfoByInterval()
560 callbackPtr->beginTime = params.beginTime; in QueryBundleStatsInfoByInterval()
656 callbackPtr->beginTime = params.beginTime; in QueryBundleStatsInfos()
[all …]
/ohos5.0/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/
H A Dbundle_active_client.cpp96 const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) in QueryBundleStatsInfoByInterval() argument
107 const int64_t beginTime, const int64_t endTime, int32_t userId) in QueryBundleEvents() argument
114 … auto err = bundleActiveProxy_->QueryBundleEvents(bundleActiveEvents, beginTime, endTime, userId); in QueryBundleEvents()
130 const int32_t intervalType, const int64_t beginTime, const int64_t endTime) in QueryBundleStatsInfos() argument
137 …dleActiveProxy_->QueryBundleStatsInfos(bundleActivePackageStats, intervalType, beginTime, endTime); in QueryBundleStatsInfos()
141 const int64_t beginTime, const int64_t endTime) in QueryCurrentBundleEvents() argument
148 return bundleActiveProxy_->QueryCurrentBundleEvents(bundleActiveEvents, beginTime, endTime); in QueryCurrentBundleEvents()
204 ErrCode BundleActiveClient::QueryDeviceEventStats(int64_t beginTime, int64_t endTime, in QueryDeviceEventStats() argument
212 return bundleActiveProxy_->QueryDeviceEventStats(beginTime, endTime, eventStats, userId); in QueryDeviceEventStats()
215 ErrCode BundleActiveClient::QueryNotificationEventStats(int64_t beginTime, int64_t endTime, in QueryNotificationEventStats() argument
[all …]
H A Dbundle_active_proxy.cpp81 data.WriteInt64(beginTime); in QueryBundleStatsInfoByInterval()
111 const int64_t beginTime, const int64_t endTime, int32_t userId) in QueryBundleEvents() argument
119 data.WriteInt64(beginTime); in QueryBundleEvents()
161 const int32_t intervalType, const int64_t beginTime, const int64_t endTime) in QueryBundleStatsInfos() argument
170 data.WriteInt64(beginTime); in QueryBundleStatsInfos()
201 const int64_t beginTime, const int64_t endTime) in QueryCurrentBundleEvents() argument
209 data.WriteInt64(beginTime); in QueryCurrentBundleEvents()
338 ErrCode BundleActiveProxy::QueryDeviceEventStats(int64_t beginTime, int64_t endTime, in QueryDeviceEventStats() argument
350 ErrCode BundleActiveProxy::QueryNotificationEventStats(int64_t beginTime, int64_t endTime, in QueryNotificationEventStats() argument
362 ErrCode BundleActiveProxy::IPCCommunication(int64_t beginTime, int64_t endTime, in IPCCommunication() argument
[all …]
/ohos5.0/foundation/resourceschedule/device_usage_statistics/interfaces/kits/bundlestats/napi/include/
H A Dbundle_state_data.h85 int64_t beginTime = -1; member
93 int64_t beginTime = -1; member
100 int64_t beginTime = -1; member
107 int64_t beginTime = -1; member
149 int64_t beginTime = -1; member
157 int64_t beginTime = -1; member
164 int64_t beginTime = -1; member
194 int64_t beginTime = -1; member
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dibundle_active_service.h78 … const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) = 0;
85 …Code QueryBundleEvents(std::vector<BundleActiveEvent>& bundleActiveEvents, const int64_t beginTime,
94 const int32_t intervalType, const int64_t beginTime, const int64_t endTime) = 0;
102 const int64_t beginTime, const int64_t endTime) = 0;
147 virtual ErrCode QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
156 virtual ErrCode QueryNotificationEventStats(int64_t beginTime, int64_t endTime,
H A Dbundle_active_usage_database.h55 int32_t GetOptimalIntervalType(int64_t beginTime, int64_t endTime);
57 …::vector<BundleActivePackageStats> QueryDatabaseUsageStats(int32_t databaseType, int64_t beginTime,
59 …std::vector<BundleActiveEvent> QueryDatabaseEvents(int64_t beginTime, int64_t endTime, int32_t use…
79 void QueryDeviceEventStats(int32_t eventId, int64_t beginTime, int64_t endTime,
81 void QueryNotificationEventStats(int32_t eventId, int64_t beginTime, int64_t endTime,
118 …int32_t JudgeQueryCondition(const int64_t beginTime, const int64_t endTime, const int64_t eventTab…
122 void GetQuerySqlCommand(const int64_t beginTime,
126 bool GetDbIndex(const int64_t beginTime, const int64_t endTime,
H A Dbundle_active_service.h96 …const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) overri…
107 …Code QueryBundleEvents(std::vector<BundleActiveEvent>& bundleActiveEvents, const int64_t beginTime,
130 const int32_t intervalType, const int64_t beginTime, const int64_t endTime) override;
141 const int64_t beginTime, const int64_t endTime) override;
173 ErrCode QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
185 ErrCode QueryNotificationEventStats(int64_t beginTime, int64_t endTime,
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/packageusage/include/
H A Dbundle_active_user_service.h70 …const int64_t beginTime, const int64_t endTime, const int32_t userId, const std::string& bundleNam…
71 …rCode QueryBundleEvents(std::vector<BundleActiveEvent>& bundleActiveEvent, const int64_t beginTime,
74 int32_t QueryDeviceEventStats(int64_t beginTime, int64_t endTime,
76 int32_t QueryNotificationEventStats(int64_t beginTime, int64_t endTime,
94 void UpdateContinueAbilitiesMemory(const int64_t& beginTime,
97 void UpdateContinueServicesMemory(const int64_t& beginTime,
103 …oid GetCachedSystemEvents(std::shared_ptr<BundleActivePeriodStats> currentStats, int64_t beginTime,
105 …tCachedNotificationEvents(std::shared_ptr<BundleActivePeriodStats> currentStats, int64_t beginTime,
H A Dbundle_active_stats_combiner.h29 int64_t beginTime = 0);
35 std::vector<BundleActivePackageStats>& accumulatedResult, int64_t beginTime = 0);
41 std::vector<BundleActiveEvent>& accumulatedResult, int64_t beginTime = 0);
/ohos5.0/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
H A Dhisysevent_rules.h28 long long beginTime; member
34 QueryArg(const long long beginTime = -1, const long long endTime = -1, const int maxEvents = -1,
37 this->beginTime = beginTime < 0 ? 0 : beginTime;
44 QueryArg(): beginTime(0), endTime(0), maxEvents(0), fromSeq(-1), toSeq(-1) {} in QueryArg()
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_stub.cpp114 int64_t beginTime = data.ReadInt64(); in HandleQueryBundleStatsInfoByInterval() local
139 int64_t beginTime = data.ReadInt64(); in HandleQueryBundleEvents() local
142 ErrCode errCode = QueryBundleEvents(result, beginTime, endTime, userId); in HandleQueryBundleEvents()
165 int64_t beginTime = data.ReadInt64(); in HandleQueryBundleStatsInfos() local
167 ErrCode errCode = QueryBundleStatsInfos(result, intervalType, beginTime, endTime); in HandleQueryBundleStatsInfos()
197 int64_t beginTime = data.ReadInt64(); in HandleQueryCurrentBundleEvents() local
199 ErrCode errCode = QueryCurrentBundleEvents(result, beginTime, endTime); in HandleQueryCurrentBundleEvents()
276 int64_t beginTime = data.ReadInt64(); in HandleQueryDeviceEventStats() local
279 ErrCode errCode = QueryDeviceEventStats(beginTime, endTime, result, userId); in HandleQueryDeviceEventStats()
300 int64_t beginTime = data.ReadInt64(); in HandleQueryNotificationEventStats() local
[all …]
/ohos5.0/base/hiviewdfx/hisysevent/adapter/native/idl/include/
H A Dquery_argument.h26 QueryArgument(int64_t beginTime, int64_t endTime, int32_t maxEvents = 0,
28 … : beginTime(beginTime), endTime(endTime), maxEvents(maxEvents), fromSeq(fromSeq), toSeq(toSeq) {}
34 int64_t beginTime = -1; variable
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
H A Dquery_argument.h26 QueryArgument(int64_t beginTime, int64_t endTime, int32_t maxEvents = 0,
28 … : beginTime(beginTime), endTime(endTime), maxEvents(maxEvents), fromSeq(fromSeq), toSeq(toSeq) {}
34 int64_t beginTime = -1; variable
/ohos5.0/foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactivepowerstatecallbackproxy_fuzzer/
H A Dbundleactivepowerstatecallbackproxy_fuzzer.cpp109 int64_t beginTime = GetData<int64_t>(); in BundleActiveClientFuzzTest() local
123 intervalType, beginTime, endTime, userId); in BundleActiveClientFuzzTest()
127 beginTime, endTime, userId); in BundleActiveClientFuzzTest()
134 … DelayedSingleton<BundleActiveClient>::GetInstance()->QueryDeviceEventStats(beginTime, endTime, in BundleActiveClientFuzzTest()
136 …DelayedSingleton<BundleActiveClient>::GetInstance()->QueryNotificationEventStats(beginTime, endTim… in BundleActiveClientFuzzTest()
173 int64_t beginTime = GetData<int64_t>(); in BundleActiveStatsCombinerFuzzTest() local
175 combiner->combine(stats, accumulatedResult, beginTime); in BundleActiveStatsCombinerFuzzTest()
179 eventCombiner->combine(stats, activeEventResult, beginTime); in BundleActiveStatsCombinerFuzzTest()
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/session/photo_session/
H A Ddeferred_photo_processing_session.cpp178 uint64_t beginTime = SteadyClock::GetTimestampMilli(); in ReportEvent() local
181 dpsEventInfo.synchronizeTimeBeginTime = beginTime; in ReportEvent()
186 dpsEventInfo.synchronizeTimeEndTime = beginTime; in ReportEvent()
191 dpsEventInfo.dispatchTimeBeginTime = beginTime; in ReportEvent()
195 dpsEventInfo.removeTimeBeginTime = beginTime; in ReportEvent()
199 dpsEventInfo.restoreTimeBeginTime = beginTime; in ReportEvent()
203 dpsEventInfo.processTimeBeginTime = beginTime; in ReportEvent()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/
H A Dkvstore_sync_manager.cpp39 auto beginTime = std::chrono::steady_clock::now() + std::chrono::milliseconds(delayMs); in AddSyncOperation() local
40 KvSyncOperation syncOp{ syncId, opSeq, delayMs, syncFunc, endFunc, beginTime }; in AddSyncOperation()
54 scheduleSyncOps_.emplace(beginTime, syncOp); in AddSyncOperation()
57 (nextScheduleTime_ > beginTime + std::chrono::milliseconds(GetExpireTimeRange(delayMs)))) { in AddSyncOperation()
58 AddTimer(beginTime); in AddSyncOperation()
130 if (currentTime < realtimeSyncingOps_.rbegin()->beginTime + priorSyncingTime) { in GetTimeoutSyncOps()
154 …return op.beginTime + std::chrono::milliseconds(SYNCING_TIMEOUT_MS) < std::chrono::steady_clock::n… in DoCheckSyncingTimeout()
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
H A Dnapi_hiappevent_js_v9.cpp181 uint64_t beginTime = TimeUtil::GetMilliseconds(); in ClearData() local
183 …AppEventStat::WriteApiEndEventAsync("clearData", beginTime, AppEventStat::SUCCESS, NapiError::ERR_… in ClearData()
189 uint64_t beginTime = TimeUtil::GetMilliseconds(); in AddWatcher() local
192 …AppEventStat::WriteApiEndEventAsync("addWatcher", beginTime, AppEventStat::FAILED, NapiError::ERR_… in AddWatcher()
196 return NapiHiAppEventWatch::AddWatcher(env, params[0], beginTime); in AddWatcher()
201 uint64_t beginTime = TimeUtil::GetMilliseconds(); in RemoveWatcher() local
204 …AppEventStat::WriteApiEndEventAsync("removeWatcher", beginTime, AppEventStat::FAILED, NapiError::E… in RemoveWatcher()
208 return NapiHiAppEventWatch::RemoveWatcher(env, params[0], beginTime); in RemoveWatcher()
/ohos5.0/base/hiviewdfx/hiview/test/unittest/unified_collection/client/
H A Dtrace_collector_client_test.cpp227 appCaller1.beginTime = appCaller1.happenTime - 100;
243 appCaller2.beginTime = appCaller2.happenTime - 100;
277 appCaller1.beginTime = appCaller1.happenTime - 100;
311 appCaller1.beginTime = appCaller1.happenTime - 100;
327 appCaller2.beginTime = appCaller2.happenTime - 100;
361 appCaller1.beginTime = appCaller1.happenTime - 100;
383 appCaller3.beginTime = appCaller3.happenTime - 100;
416 appCaller1.beginTime = appCaller1.happenTime - 100;
473 appCaller1.beginTime = appCaller1.happenTime - 100;
489 appCaller2.beginTime = appCaller2.happenTime - 100;
[all …]

12345678