Home
last modified time | relevance | path

Searched refs:intervalType (Results 1 - 21 of 21) sorted by relevance

/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
H A Dbundle_active_user_service.cpp277 for (uint32_t intervalType = 0; intervalType < periodLength_.size(); intervalType++) { in LoadActiveStats()
279 tmpCalendar.TruncateTo(static_cast<int32_t>(intervalType)); in LoadActiveStats()
280 if (!force && currentStats_[intervalType] != nullptr && in LoadActiveStats()
281 currentStats_[intervalType]->beginTime_ == tmpCalendar.GetMilliseconds()) { in LoadActiveStats()
284 std::shared_ptr<BundleActivePeriodStats> stats = database_.GetCurrentUsageData(intervalType, userId_); in LoadActiveStats()
285 currentStats_[intervalType].reset(); // 当前interval stat置空 in LoadActiveStats()
288 "bundle size is %{public}zu", intervalType, stats->bundleStats_.size()); in LoadActiveStats()
292 intervalType, (lon in LoadActiveStats()
436 QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& PackageStats, int32_t intervalType, const int64_t beginTime, const int64_t endTime, const int32_t userId, const std::string& bundleName) QueryBundleStatsInfos() argument
[all...]
H A Dbundle_active_calendar.cpp122 void BundleActiveCalendar::TruncateTo(int32_t intervalType) in TruncateTo() argument
124 switch (intervalType) { in TruncateTo()
/foundation/resourceschedule/device_usage_statistics/utils/src/
H A Dbundle_active_util.cpp43 int64_t BundleActiveUtil::GetIntervalTypeStartTime(const int64_t& timeStamp, const int32_t& intervalType) in GetIntervalTypeStartTime() argument
56 if (intervalType == PERIOD_WEEKLY) { in GetIntervalTypeStartTime()
62 switch (intervalType) { in GetIntervalTypeStartTime()
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Dpackage_usage_test.cpp489 int32_t intervalType = -1; in HWTEST_F() local
491 PackageStats, intervalType, beginTime, endTime, userId, bundleName), ERR_OK); in HWTEST_F()
493 intervalType = 5; in HWTEST_F()
495 PackageStats, intervalType, beginTime, endTime, userId, bundleName), ERR_OK); in HWTEST_F()
497 intervalType = 0; in HWTEST_F()
499 bundleUserService->QueryBundleStatsInfos(PackageStats, intervalType, beginTime, endTime, userId, bundleName); in HWTEST_F()
504 PackageStats, intervalType, beginTime, endTime, userId, bundleName), ERR_OK); in HWTEST_F()
508 PackageStats, intervalType, beginTime, endTime, userId, bundleName), ERR_OK); in HWTEST_F()
512 bundleUserService->QueryBundleStatsInfos(PackageStats, intervalType, beginTime, endTime, userId, bundleName); in HWTEST_F()
533 int32_t intervalType in HWTEST_F() local
[all...]
/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dbundle_active_service.h78 * @param intervalType .
85 const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) override;
113 * @param intervalType .
119 const int32_t intervalType, const int64_t beginTime, const int64_t endTime) override;
225 int32_t ConvertIntervalType(const int32_t intervalType);
H A Dibundle_active_service.h67 * parameters: intervalType, beginTime, endTime, errCode
71 const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) = 0;
83 * parameters: intervalType, beginTime, endTime
87 const int32_t intervalType, const int64_t beginTime, const int64_t endTime) = 0;
H A Dbundle_active_core.h158 * parameters: userId, intervalType, beginTime, endTime, bundleName
162 const int32_t intervalType, const int64_t beginTime, const int64_t endTime, std::string bundleName);
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_service.cpp313 const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) in QueryBundleStatsInfoByInterval()
315 BUNDLE_ACTIVE_LOGD("QueryBundleStatsInfoByInterval stats called, intervaltype is %{public}d", intervalType); in QueryBundleStatsInfoByInterval()
328 int32_t convertedIntervalType = ConvertIntervalType(intervalType); in QueryBundleStatsInfoByInterval()
385 const int32_t intervalType, const int64_t beginTime, const int64_t endTime) in QueryBundleStatsInfos()
400 int32_t convertedIntervalType = ConvertIntervalType(intervalType); in QueryBundleStatsInfos()
493 int32_t BundleActiveService::ConvertIntervalType(const int32_t intervalType) in ConvertIntervalType() argument
495 if (intervalType == PERIOD_BEST_JS) { in ConvertIntervalType()
497 } else if (intervalType > PERIOD_BEST_JS && intervalType <= PERIOD_YEARLY_JS) { in ConvertIntervalType()
498 return intervalType in ConvertIntervalType()
312 QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& PackageStats, const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) QueryBundleStatsInfoByInterval() argument
384 QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats, const int32_t intervalType, const int64_t beginTime, const int64_t endTime) QueryBundleStatsInfos() argument
739 int32_t intervalType = std::stoi(dumpOption[2]); ShellDump() local
[all...]
H A Dbundle_active_stub.cpp113 int32_t intervalType = data.ReadInt32(); in HandleQueryBundleStatsInfoByInterval() local
114 BUNDLE_ACTIVE_LOGI("OnRemoteRequest intervaltype is %{public}d", intervalType); in HandleQueryBundleStatsInfoByInterval()
118 ErrCode errCode = QueryBundleStatsInfoByInterval(result, intervalType, beginTime, endTime, userId); in HandleQueryBundleStatsInfoByInterval()
164 int32_t intervalType = data.ReadInt32(); in HandleQueryBundleStatsInfos() local
165 BUNDLE_ACTIVE_LOGI("OnRemoteRequest QUERY_BUNDLE_STATS_INFOS intervaltype is %{public}d", intervalType); in HandleQueryBundleStatsInfos()
168 ErrCode errCode = QueryBundleStatsInfos(result, intervalType, beginTime, endTime); in HandleQueryBundleStatsInfos()
H A Dbundle_active_core.cpp668 const int32_t userId, const int32_t intervalType, const int64_t beginTime, const int64_t endTime, in QueryBundleStatsInfos()
679 "intervaltype is %{public}d", (long long)beginTime, (long long)endTime, intervalType); in QueryBundleStatsInfos()
690 return service->QueryBundleStatsInfos(packageStats, intervalType, beginTime, endTime, userId, bundleName); in QueryBundleStatsInfos()
667 QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& packageStats, const int32_t userId, const int32_t intervalType, const int64_t beginTime, const int64_t endTime, std::string bundleName) QueryBundleStatsInfos() argument
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include/
H A Dbundle_active_client.h61 * @param intervalType .
68 const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId = -1);
96 * @param intervalType .
102 const int32_t intervalType, const int64_t beginTime, const int64_t endTime);
H A Dbundle_active_proxy.h47 * parameters: intervalType, beginTime, endTime, errCode
51 const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) override;
70 * parameters: intervalType, beginTime, endTime
74 const int32_t intervalType, const int64_t beginTime, const int64_t endTime) override;
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/
H A Dbundle_active_client.cpp87 const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) in QueryBundleStatsInfoByInterval()
94 return bundleActiveProxy_->QueryBundleStatsInfoByInterval(PackageStats, intervalType, beginTime, endTime, userId); in QueryBundleStatsInfoByInterval()
121 const int32_t intervalType, const int64_t beginTime, const int64_t endTime) in QueryBundleStatsInfos()
128 return bundleActiveProxy_->QueryBundleStatsInfos(bundleActivePackageStats, intervalType, beginTime, endTime); in QueryBundleStatsInfos()
86 QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& PackageStats, const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) QueryBundleStatsInfoByInterval() argument
120 QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats, const int32_t intervalType, const int64_t beginTime, const int64_t endTime) QueryBundleStatsInfos() argument
H A Dbundle_active_proxy.cpp56 const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) in QueryBundleStatsInfoByInterval()
64 data.WriteInt32(intervalType); in QueryBundleStatsInfoByInterval()
145 const int32_t intervalType, const int64_t beginTime, const int64_t endTime) in QueryBundleStatsInfos()
153 data.WriteInt32(intervalType); in QueryBundleStatsInfos()
55 QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& PackageStats, const int32_t intervalType, const int64_t beginTime, const int64_t endTime, int32_t userId) QueryBundleStatsInfoByInterval() argument
144 QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats, const int32_t intervalType, const int64_t beginTime, const int64_t endTime) QueryBundleStatsInfos() argument
/foundation/resourceschedule/device_usage_statistics/services/packageusage/include/
H A Dbundle_active_calendar.h52 void TruncateTo(int32_t intervalType);
H A Dbundle_active_user_service.h69 ErrCode QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& PackageStats, int32_t intervalType,
/foundation/resourceschedule/device_usage_statistics/utils/include/
H A Dbundle_active_util.h32 static int64_t GetIntervalTypeStartTime(const int64_t& timeStamp, const int32_t& intervalType);
/foundation/resourceschedule/device_usage_statistics/interfaces/kits/bundlestats/napi/include/
H A Dbundle_state_data.h92 int32_t intervalType = -1; member
156 int32_t intervalType = -1; member
/foundation/resourceschedule/device_usage_statistics/frameworks/src/
H A Dbundle_state_query.cpp414 // argv[0] : intervalType in ParseAppUsageParametersByInterval()
415 if (BundleStateCommon::GetInt32NumberValue(env, argv[0], params.intervalType) == nullptr) { in ParseAppUsageParametersByInterval()
416 BUNDLE_ACTIVE_LOGE("ParseAppUsageParametersByInterval failed, intervalType is invalid."); in ParseAppUsageParametersByInterval()
419 if ((params.errorCode == ERR_OK) && ((params.intervalType < INTERVAL_NUMBER_MIN) in ParseAppUsageParametersByInterval()
420 || (params.intervalType > INTERVAL_NUMBER_MAX))) { in ParseAppUsageParametersByInterval()
421 BUNDLE_ACTIVE_LOGE("ParseAppUsageParametersByInterval failed, intervalType number is invalid."); in ParseAppUsageParametersByInterval()
468 asyncCallbackInfo->intervalType, asyncCallbackInfo->beginTime, asyncCallbackInfo->endTime); in QueryBundleStatsInfoByIntervalAsync()
506 callbackPtr->intervalType = params.intervalType; in QueryBundleStateInfoByInterval()
507 BUNDLE_ACTIVE_LOGD("QueryBundleStateInfoByInterval callbackPtr->intervalType in QueryBundleStateInfoByInterval()
[all...]
H A Dbundle_state_query_napi.cpp481 // argv[0] : intervalType in ParseQueryBundleStatsInfoByInterval()
482 if (BundleStateCommon::GetInt32NumberValue(env, argv[0], params.intervalType) == nullptr) { in ParseQueryBundleStatsInfoByInterval()
483 BUNDLE_ACTIVE_LOGE("ParseQueryBundleStatsInfoByInterval failed, intervalType is invalid."); in ParseQueryBundleStatsInfoByInterval()
487 if (((params.intervalType < INTERVAL_NUMBER_MIN) || (params.intervalType > INTERVAL_NUMBER_MAX))) { in ParseQueryBundleStatsInfoByInterval()
488 BUNDLE_ACTIVE_LOGE("ParseQueryBundleStatsInfoByInterval failed, intervalType number is invalid."); in ParseQueryBundleStatsInfoByInterval()
532 asyncCallbackInfo->intervalType, asyncCallbackInfo->beginTime, asyncCallbackInfo->endTime); in QueryBundleStatsInfoByIntervalAsync()
559 callbackPtr->intervalType = params.intervalType; in QueryBundleStatsInfoByInterval()
/foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactivepowerstatecallbackproxy_fuzzer/
H A Dbundleactivepowerstatecallbackproxy_fuzzer.cpp108 int32_t intervalType = GetData<int32_t>(); in BundleActiveClientFuzzTest() local
122 intervalType, beginTime, endTime, userId); in BundleActiveClientFuzzTest()

Completed in 15 milliseconds