/foundation/resourceschedule/device_usage_statistics/interfaces/kits/bundlestats/napi/include/ |
H A D | bundle_active_app_group_napi.h | 30 napi_value SetAppGroup(napi_env env, napi_callback_info info);
|
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/src/ |
H A D | bundle_active_group_controller.cpp | 341 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 D | bundle_active_user_history.cpp | 222 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 D | device_usage_statistics_test.cpp | 255 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 D | device_usage_statistics_mock_test.cpp | 98 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 D | device_usage_statistics_service_test.cpp | 851 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 D | device_usage_statistics_multi_test.cpp | 268 BundleActiveClient::GetInstance().SetAppGroup(g_defaultBundleName, g_defaultGroup, g_commonUserid);
in MultiTestAppGroup()
|
/foundation/resourceschedule/device_usage_statistics/services/common/include/ |
H A D | ibundle_active_service.h | 105 * 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 D | bundle_active_service.h | 100 * @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 D | bundle_active_core.h | 211 * function: SetAppGroup, change bundleGroup to the newGroup. 215 ErrCode SetAppGroup(
|
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/include/ |
H A D | bundle_active_group_controller.h | 76 int32_t SetAppGroup(const std::string& bundleName, const int32_t userId, int32_t newGroup, uint32_t reason,
|
H A D | bundle_active_user_history.h | 55 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 D | bundle_active_client.h | 83 * @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 D | bundle_active_proxy.h | 62 * 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 D | bundle_active_client.cpp | 110 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 D | bundle_active_proxy.cpp | 127 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 D | usage_statistics_init.cpp | 48 DECLARE_NAPI_FUNCTION("setAppGroup", SetAppGroup), in UsageStatisticsInit()
|
H A D | bundle_active_app_group_napi.cpp | 294 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 D | bundleactivepowerstatecallbackproxy_fuzzer.cpp | 130 DelayedSingleton<BundleActiveClient>::GetInstance()->SetAppGroup(bundleName, newGroup, userId); in BundleActiveClientFuzzTest()
|
/foundation/resourceschedule/device_usage_statistics/services/common/src/ |
H A D | bundle_active_service.cpp | 356 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 D | bundle_active_stub.cpp | 191 ErrCode errCode = SetAppGroup(bundleName, newGroup, userId); in HandleSetAppGroup()
|
H A D | bundle_active_core.cpp | 758 ErrCode BundleActiveCore::SetAppGroup( in SetAppGroup() function in OHOS::DeviceUsageStats::BundleActiveCore 764 return bundleGroupController_->SetAppGroup( in SetAppGroup()
|