From 7698bdf132d57fcb2faf4119a3745584a556dbee Mon Sep 17 00:00:00 2001 From: HengBai Date: Sat, 6 Sep 2025 11:47:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E5=8F=98=E9=87=8F=20Signed-off-by:=20zxf=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/common/include/bundle_active_event_reporter.h | 1 - services/common/src/bundle_active_config_reader.cpp | 1 - services/common/src/bundle_active_core.cpp | 1 - services/common/src/bundle_active_usage_database.cpp | 1 - services/packagegroup/src/bundle_active_user_history.cpp | 1 - 5 files changed, 5 deletions(-) diff --git a/services/common/include/bundle_active_event_reporter.h b/services/common/include/bundle_active_event_reporter.h index 75217d9..c56bf00 100644 --- a/services/common/include/bundle_active_event_reporter.h +++ b/services/common/include/bundle_active_event_reporter.h @@ -44,7 +44,6 @@ private: ffrt::mutex mutex_; bool isTaskSubmit_ = false; std::string fileSizeRecorderName_; - int64_t lastReportTime_ = -1; }; } // namespace DeviceUsageStats } // namespace OHOS diff --git a/services/common/src/bundle_active_config_reader.cpp b/services/common/src/bundle_active_config_reader.cpp index 3b3de1e..5d17c8c 100644 --- a/services/common/src/bundle_active_config_reader.cpp +++ b/services/common/src/bundle_active_config_reader.cpp @@ -41,7 +41,6 @@ const int32_t DEFAULT_MIN_TOTAL_USE_DAYS = 4; const int32_t DEFAULT_TOP_USE_HOURS_LIMIT = 6; const int32_t DEFAULT_MIN_HOUR_USE_DAYS = 4; const int32_t DEFAULT_MAX_HIGH_FREQUENCY_HOUR_NUM = 3; -const int32_t MAX_BUFFER = 2048; const uint64_t DEFAULT_MAX_DATA_SIZE = 5 * 1024 * 1024; diff --git a/services/common/src/bundle_active_core.cpp b/services/common/src/bundle_active_core.cpp index f869d2e..4757711 100644 --- a/services/common/src/bundle_active_core.cpp +++ b/services/common/src/bundle_active_core.cpp @@ -44,7 +44,6 @@ constexpr int32_t INDEX_USE_TIME = 1; constexpr int32_t INDEX_HOUR = 0; constexpr double DEFAULT_PERCENT_USER_SPACE_LIMIT = 0.1; static constexpr char RSS[] = "RSS"; -static constexpr char FILEMANAGEMENT[] = "FILEMANAGEMENT"; static constexpr char DATA_PATH[] = "/data"; // 用于根据使用次数对时段进行降序的数据结构 diff --git a/services/common/src/bundle_active_usage_database.cpp b/services/common/src/bundle_active_usage_database.cpp index 68950e1..9f9f233 100644 --- a/services/common/src/bundle_active_usage_database.cpp +++ b/services/common/src/bundle_active_usage_database.cpp @@ -43,7 +43,6 @@ using namespace std; namespace { const int32_t MAX_FILES_EVERY_INTERVAL_TYPE[SORTED_TABLE_ARRAY_NUMBER] = {30, 30, 12, 10}; const int32_t MAIN_APP_INDEX = 0; - const int32_t FILE_VERSION_LINE_NUM = 50; static constexpr char RSS[] = "RSS"; } BundleActiveUsageDatabase::BundleActiveUsageDatabase() diff --git a/services/packagegroup/src/bundle_active_user_history.cpp b/services/packagegroup/src/bundle_active_user_history.cpp index cfe4836..c095eef 100644 --- a/services/packagegroup/src/bundle_active_user_history.cpp +++ b/services/packagegroup/src/bundle_active_user_history.cpp @@ -183,7 +183,6 @@ void BundleActiveUserHistory::ReportUsage(shared_ptr const int64_t bootBasedTimeStamp, const int64_t timeUntilNextCheck, const int32_t userId) { string bundleName = event.bundleName_; - int32_t uid = event.uid_; oneBundleUsageHistory->bundlefirstUseTimeStamp_ = std::min(oneBundleUsageHistory->bundlefirstUseTimeStamp_, event.timeStamp_); if ((oneBundleUsageHistory->reasonInGroup_ & GROUP_CONTROL_REASON_MASK) == GROUP_CONTROL_REASON_FORCED) { -- Gitee