Home
last modified time | relevance | path

Searched refs:SetAppGroup (Results 1 - 22 of 22) sorted by relevance

/foundation/resourceschedule/device_usage_statistics/interfaces/kits/bundlestats/napi/include/
H A Dbundle_active_app_group_napi.h30 napi_value SetAppGroup(napi_env env, napi_callback_info info);
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/src/
H A Dbundle_active_group_controller.cpp341 BUNDLE_ACTIVE_LOGI("CheckAndUpdateGroup called SetAppGroup"); in CheckAndUpdateGroup()
342 bundleUserHistory_->SetAppGroup(bundleName, userId, bootBasedTimeStamp, newGroup, in CheckAndUpdateGroup()
347 ErrCode BundleActiveGroupController::SetAppGroup(const std::string& bundleName, const int32_t userId, in SetAppGroup() function in OHOS::DeviceUsageStats::BundleActiveGroupController
370 tempResult = bundleUserHistory_->SetAppGroup(bundleName, userId, in SetAppGroup()
H A Dbundle_active_user_history.cpp222 int32_t BundleActiveUserHistory::SetAppGroup(const string& bundleName, const int32_t userId, const int32_t uid, in SetAppGroup() function in OHOS::DeviceUsageStats::BundleActiveUserHistory
245 BUNDLE_ACTIVE_LOGI("SetAppGroup set success"); in SetAppGroup()
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Ddevice_usage_statistics_test.cpp255 result = BundleActiveClient::GetInstance().SetAppGroup(g_defaultBundleName, g_defaultGroup, g_commonUserid); in HWTEST_F()
258 result = BundleActiveClient::GetInstance().SetAppGroup(g_defaultBundleName, g_defaultGroup, -1); in HWTEST_F()
270 BundleActiveClient::GetInstance().SetAppGroup(g_defaultBundleName, g_defaultGroup, g_commonUserid); in HWTEST_F()
H A Ddevice_usage_statistics_mock_test.cpp98 EXPECT_NE(BundleActiveClient::GetInstance().SetAppGroup( in HWTEST_F()
194 * @tc.desc: test service SetAppGroup boundary condition
203 EXPECT_NE(DelayedSingleton<BundleActiveService>::GetInstance()->SetAppGroup(bundleName, appGroup, -1), ERR_OK); in HWTEST_F()
204 EXPECT_NE(DelayedSingleton<BundleActiveService>::GetInstance()->SetAppGroup(bundleName, appGroup, 100), ERR_OK); in HWTEST_F()
H A Ddevice_usage_statistics_service_test.cpp851 EXPECT_EQ(coreObject->bundleGroupController_->SetAppGroup("test", userId, 0, 0, time, true), in HWTEST_F()
989 bundleUserHistory_->SetAppGroup("test", userId, uid, bootBasedTimeStamp, newgroup, groupReason, true); in HWTEST_F()
991 bundleUserHistory_->SetAppGroup("test", userId, uid, bootBasedTimeStamp, newgroup, groupReason, false); in HWTEST_F()
1114 coreObject->bundleGroupController_->SetAppGroup(bundleName, userId, newGroup, reason, bootBasedTimeStamp, isFlush); in HWTEST_F()
1119 coreObject->bundleGroupController_->SetAppGroup(bundleName, userId, newGroup, reason, bootBasedTimeStamp, isFlush); in HWTEST_F()
H A Ddevice_usage_statistics_multi_test.cpp268 BundleActiveClient::GetInstance().SetAppGroup(g_defaultBundleName, g_defaultGroup, g_commonUserid); in MultiTestAppGroup()
/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dibundle_active_service.h105 * function: SetAppGroup, set specific bundle of specific user to a priority group.
109 virtual ErrCode SetAppGroup(const std::string& bundleName, int32_t newGroup, int32_t userId) = 0;
H A Dbundle_active_service.h100 * @brief SetAppGroup, set specific bundle of specific user to a priority group.
107 ErrCode SetAppGroup(const std::string& bundleName, int32_t newGroup, int32_t userId) override;
H A Dbundle_active_core.h211 * function: SetAppGroup, change bundleGroup to the newGroup.
215 ErrCode SetAppGroup(
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/include/
H A Dbundle_active_group_controller.h76 int32_t SetAppGroup(const std::string& bundleName, const int32_t userId, int32_t newGroup, uint32_t reason,
H A Dbundle_active_user_history.h55 int32_t SetAppGroup(const std::string& bundleName, const int32_t userId, const int32_t uid,
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include/
H A Dbundle_active_client.h83 * @brief SetAppGroup, set specific bundle of specific user to a priority group.
90 ErrCode SetAppGroup(std::string bundleName, const int32_t newGroup, int32_t userId = -1);
H A Dbundle_active_proxy.h62 * function: SetAppGroup, set specific bundle of specific user to a priority group.
66 ErrCode SetAppGroup(const std::string& bundleName, int32_t newGroup, int32_t userId) override;
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/
H A Dbundle_active_client.cpp110 ErrCode BundleActiveClient::SetAppGroup(std::string bundleName, const int32_t newGroup, int32_t userId) in SetAppGroup() function in OHOS::DeviceUsageStats::BundleActiveClient
117 return bundleActiveProxy_->SetAppGroup(bundleName, newGroup, userId); in SetAppGroup()
H A Dbundle_active_proxy.cpp127 ErrCode BundleActiveProxy::SetAppGroup(const std::string& bundleName, int32_t newGroup, int32_t userId) in SetAppGroup() function in OHOS::DeviceUsageStats::BundleActiveProxy
/foundation/resourceschedule/device_usage_statistics/frameworks/src/
H A Dusage_statistics_init.cpp48 DECLARE_NAPI_FUNCTION("setAppGroup", SetAppGroup), in UsageStatisticsInit()
H A Dbundle_active_app_group_napi.cpp294 asyncCallbackInfo->errorCode = BundleActiveClient::GetInstance().SetAppGroup( in SetAppGroupAsync()
297 BUNDLE_ACTIVE_LOGE("SetAppGroup, asyncCallbackInfo == nullptr"); in SetAppGroupAsync()
311 napi_value SetAppGroup(napi_env env, napi_callback_info info) in SetAppGroup() function
322 BUNDLE_ACTIVE_LOGD("SetAppGroup, bundleName is %{public}s, newGroup is %{public}d", in SetAppGroup()
327 NAPI_CALL(env, napi_create_string_latin1(env, "SetAppGroup", NAPI_AUTO_LENGTH, &resourceName)); in SetAppGroup()
/foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactivepowerstatecallbackproxy_fuzzer/
H A Dbundleactivepowerstatecallbackproxy_fuzzer.cpp130 DelayedSingleton<BundleActiveClient>::GetInstance()->SetAppGroup(bundleName, newGroup, userId); in BundleActiveClientFuzzTest()
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_service.cpp356 ErrCode BundleActiveService::SetAppGroup(const std::string& bundleName, int32_t newGroup, int32_t userId) in SetAppGroup() function in OHOS::DeviceUsageStats::BundleActiveService
368 BUNDLE_ACTIVE_LOGI("SetAppGroup userId is %{public}d", userId); in SetAppGroup()
373 BUNDLE_ACTIVE_LOGI("SetAppGroup can not set its bundleName"); in SetAppGroup()
379 ret = bundleActiveCore_->SetAppGroup(bundleName, newGroup, userId, isFlush); in SetAppGroup()
H A Dbundle_active_stub.cpp191 ErrCode errCode = SetAppGroup(bundleName, newGroup, userId); in HandleSetAppGroup()
H A Dbundle_active_core.cpp758 ErrCode BundleActiveCore::SetAppGroup( in SetAppGroup() function in OHOS::DeviceUsageStats::BundleActiveCore
764 return bundleGroupController_->SetAppGroup( in SetAppGroup()

Completed in 16 milliseconds