Home
last modified time | relevance | path

Searched refs:newGroup (Results 1 - 25 of 34) sorted by relevance

12

/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_bundle_group_change_callback.cpp31 int32_t newGroup = appGroupCallbackInfo.GetNewGroup(); in OnAppGroupChanged() local
36 newGroup, userId, bundleName.c_str()); in OnAppGroupChanged()
41 if (newGroup < oldGroup) { in OnAppGroupChanged()
44 std::make_shared<DetectorValue>(newGroup, userId, groupChange, bundleName)); in OnAppGroupChanged()
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/src/
H A Dbundle_active_user_history.cpp180 const string& bundleName, const int32_t newGroup, const uint32_t groupReason, const int64_t bootBasedTimeStamp, in ReportUsage()
188 if (newGroup == ACTIVE_GROUP_ALIVE) { in ReportUsage()
191 } else if (newGroup == ACTIVE_GROUP_DAILY) { in ReportUsage()
204 if (oneBundleUsageHistory->currentGroup_ > newGroup) { in ReportUsage()
205 oneBundleUsageHistory->currentGroup_ = newGroup; in ReportUsage()
213 userId, oldGroup, newGroup, oneBundleUsageHistory->reasonInGroup_, bundleName); in ReportUsage()
223 const int64_t bootBasedTimeStamp, int32_t newGroup, uint32_t groupReason, const bool isFlush) in SetAppGroup()
227 bundleName.c_str(), newGroup, groupReason, userId); in SetAppGroup()
237 if (oneBundleHistory->currentGroup_ == newGroup && oneBundleHistory->reasonInGroup_ == groupReason) { in SetAppGroup()
242 oneBundleHistory->currentGroup_ = newGroup; in SetAppGroup()
179 ReportUsage(shared_ptr<BundleActivePackageHistory> oneBundleUsageHistory, const string& bundleName, const int32_t newGroup, const uint32_t groupReason, const int64_t bootBasedTimeStamp, const int64_t timeUntilNextCheck, const int32_t userId, const int32_t uid) ReportUsage() argument
222 SetAppGroup(const string& bundleName, const int32_t userId, const int32_t uid, const int64_t bootBasedTimeStamp, int32_t newGroup, uint32_t groupReason, const bool isFlush) SetAppGroup() argument
[all...]
H A Dbundle_active_group_controller.cpp317 int32_t newGroup = std::max(oldGroup, ACTIVE_GROUP_ALIVE); in CheckAndUpdateGroup() local
321 newGroup = GetNewGroup(bundleName, userId, bootBasedTimeStamp, uid); in CheckAndUpdateGroup()
322 if (newGroup < 0) { in CheckAndUpdateGroup()
329 if (newGroup >= ACTIVE_GROUP_ALIVE && oneBundleHistory->bundleAliveTimeoutTimeStamp_ > in CheckAndUpdateGroup()
331 newGroup = ACTIVE_GROUP_ALIVE; in CheckAndUpdateGroup()
334 } else if (newGroup >= ACTIVE_GROUP_DAILY && oneBundleHistory->bundleDailyTimeoutTimeStamp_ > in CheckAndUpdateGroup()
336 newGroup = ACTIVE_GROUP_DAILY; in CheckAndUpdateGroup()
340 if (oldGroup < newGroup || notTimeout) { in CheckAndUpdateGroup()
342 bundleUserHistory_->SetAppGroup(bundleName, userId, bootBasedTimeStamp, newGroup, in CheckAndUpdateGroup()
348 int32_t newGroup, uint32_ in SetAppGroup()
347 SetAppGroup(const std::string& bundleName, const int32_t userId, int32_t newGroup, uint32_t reason, const int64_t bootBasedTimeStamp, const bool isFlush) SetAppGroup() argument
[all...]
/foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf/
H A Dframe_msg_intf.cpp118 void FrameMsgIntf::ReportCgroupChange(const int pid, const int uid, const int oldGroup, const int newGroup) in ReportCgroupChange() argument
125 RME_LOGI("CgroupChanged pid is %{public}d, uid is %{public}d, oldGroup is %{public}d, newGroup is %{public}d", in ReportCgroupChange()
126 pid, uid, oldGroup, newGroup); in ReportCgroupChange()
127 taskQueue_->submit([pid, uid, oldGroup, newGroup] { in ReportCgroupChange()
128 IntelliSenseServer::GetInstance().ReportCgroupChange(pid, uid, oldGroup, newGroup); in ReportCgroupChange()
H A Dframe_msg_intf.h33 void ReportCgroupChange(const int pid, const int uid, const int oldGroup, const int newGroup);
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/
H A Dapp_group_callback_info.cpp21 AppGroupCallbackInfo::AppGroupCallbackInfo(int32_t userId, int32_t oldGroup, int32_t newGroup, in AppGroupCallbackInfo() argument
26 newGroup_ = newGroup; in AppGroupCallbackInfo()
H A Dbundle_active_client.cpp110 ErrCode BundleActiveClient::SetAppGroup(std::string bundleName, const int32_t newGroup, int32_t userId) in SetAppGroup() argument
117 return bundleActiveProxy_->SetAppGroup(bundleName, newGroup, userId); in SetAppGroup()
/foundation/resourceschedule/device_usage_statistics/frameworks/src/
H A Dapp_group_observer_napi.cpp56 // newGroup in SetBundleGroupChangedData()
57 napi_create_int32(commonEventDataWorkerData->env, commonEventDataWorkerData->newGroup, &value); in SetBundleGroupChangedData()
74 commonEventDataWorkerData->oldGroup, commonEventDataWorkerData->newGroup, commonEventDataWorkerData->userId, in SetBundleGroupChangedData()
159 callbackReceiveDataWorker->newGroup = callBackInfo->GetNewGroup(); in OnAppGroupChanged()
H A Dbundle_active_app_group_napi.cpp210 return BundleStateCommon::HandleParamErr(env, ERR_PARAMETERS_EMPTY, "newGroup"); in GetAppGroupParameters()
212 if (BundleStateCommon::GetInt32NumberValue(env, argv[FRIST_ARG], params.newGroup) == nullptr) { in GetAppGroupParameters()
213 BUNDLE_ACTIVE_LOGW("ParseSetAppGroupParameters failed, newGroup type is invalid."); in GetAppGroupParameters()
219 if (item == params.newGroup) { in GetAppGroupParameters()
225 BUNDLE_ACTIVE_LOGW("ParseSetAppGroupParameters failed, newGroup value is invalid."); in GetAppGroupParameters()
271 // argv[1] : newGroup in ParseSetAppGroupParameters()
295 asyncCallbackInfo->bundleName, asyncCallbackInfo->newGroup); in SetAppGroupAsync()
320 callbackPtr->newGroup = params.newGroup; in SetAppGroup()
322 BUNDLE_ACTIVE_LOGD("SetAppGroup, bundleName is %{public}s, newGroup i in SetAppGroup()
[all...]
/foundation/resourceschedule/device_usage_statistics/interfaces/kits/bundlestats/napi/include/
H A Dbundle_state_data.h65 int32_t newGroup = 0; member
113 int32_t newGroup = -1;; member
178 int32_t newGroup = -1; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_layout_algorithm.cpp36 std::list<RefPtr<SpanItem>> newGroup; in RichEditorLayoutAlgorithm() local
37 newGroup.splice(newGroup.begin(), spans, spans.begin(), std::next(it)); in RichEditorLayoutAlgorithm()
38 spans_.push_back(std::move(newGroup)); in RichEditorLayoutAlgorithm()
64 std::list<RefPtr<SpanItem>> newGroup; in AppendNewLineSpan() local
69 newGroup.push_back(tailNewLineSpan); in AppendNewLineSpan()
70 spans_.push_back(std::move(newGroup)); in AppendNewLineSpan()
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Ddevice_usage_statistics_test.cpp386 int32_t newGroup = 10; in HWTEST_F() local
389 std::make_shared<AppGroupCallbackInfo>(g_commonUserid, oldGroup, newGroup, changeReason, g_defaultBundleName); in HWTEST_F()
398 EXPECT_EQ(appGroupCallback->GetNewGroup(), newGroup); in HWTEST_F()
527 int32_t newGroup = 10; in HWTEST_F() local
529 AppGroupCallbackInfo appGroupCallbackInfo(g_commonUserid, oldGroup, newGroup, changeReason, g_defaultBundleName); in HWTEST_F()
545 int32_t newGroup = 10; in HWTEST_F() local
547 AppGroupCallbackInfo appGroupCallbackInfo(g_commonUserid, oldGroup, newGroup, changeReason, g_defaultBundleName); in HWTEST_F()
H A Ddevice_usage_statistics_service_test.cpp218 int32_t newGroup = 10; in HWTEST_F() local
221 AppGroupCallbackInfo appGroupCallbackInfo(userId, newGroup, oldGroup, reasonInGroup, "test"); in HWTEST_F()
1107 int32_t newGroup = 30; in HWTEST_F() local
1114 coreObject->bundleGroupController_->SetAppGroup(bundleName, userId, newGroup, reason, bootBasedTimeStamp, isFlush); in HWTEST_F()
1117 newGroup = 20; in HWTEST_F()
1119 coreObject->bundleGroupController_->SetAppGroup(bundleName, userId, newGroup, reason, bootBasedTimeStamp, isFlush); in HWTEST_F()
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/include/
H A Dbundle_active_user_history.h53 const int32_t newGroup, const uint32_t groupReason, const int64_t bootBasedTimeStamp,
56 int64_t bootBasedTimeStamp, int32_t newGroup, uint32_t groupReason, const bool isFlush);
H A Dbundle_active_group_controller.h76 int32_t SetAppGroup(const std::string& bundleName, const int32_t userId, int32_t newGroup, uint32_t reason,
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include/
H A Dapp_group_callback_info.h28 AppGroupCallbackInfo(int32_t userId, int32_t oldGroup, int32_t newGroup, uint32_t changeReason,
H A Dbundle_active_client.h86 * @param newGroup .
90 ErrCode SetAppGroup(std::string bundleName, const int32_t newGroup, int32_t userId = -1);
H A Dbundle_active_proxy.h63 * parameters: bundleName, newGroup, userId.
66 ErrCode SetAppGroup(const std::string& bundleName, int32_t newGroup, int32_t userId) override;
/foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactivepowerstatecallbackproxy_fuzzer/
H A Dbundleactivepowerstatecallbackproxy_fuzzer.cpp128 int32_t newGroup = GetData<int32_t>(); in BundleActiveClientFuzzTest() local
130 DelayedSingleton<BundleActiveClient>::GetInstance()->SetAppGroup(bundleName, newGroup, userId); in BundleActiveClientFuzzTest()
/foundation/resourceschedule/frame_aware_sched/frameworks/core/frame_aware_policy/include/
H A Dintellisense_server.h40 void ReportCgroupChange(const int pid, const int uid, const int oldGroup, const int newGroup);
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/test/Mock/
H A Dmock_p2p_state_machine.h50 MOCK_CONST_METHOD2(SetGroupConfig, bool(const WifiP2pConfigInternal &config, bool newGroup));
/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dibundle_active_service.h106 * parameters: bundleName, newGroup, userId
109 virtual ErrCode SetAppGroup(const std::string& bundleName, int32_t newGroup, int32_t userId) = 0;
H A Dbundle_active_service.h103 * @param newGroup .
107 ErrCode SetAppGroup(const std::string& bundleName, int32_t newGroup, int32_t userId) override;
/foundation/resourceschedule/frame_aware_sched/frameworks/core/frame_aware_policy/src/
H A Dintellisense_server.cpp272 void IntelliSenseServer::ReportCgroupChange(const int pid, const int uid, const int oldGroup, const int newGroup) in ReportCgroupChange() argument
282 CgroupPolicy newState = CheckCgroupState(static_cast<CgroupPolicy>(newGroup)); in ReportCgroupChange()
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/frame_aware_plugin/src/
H A Dframe_aware_plugin.cpp162 if (!data->payload.contains("oldGroup") || !data->payload.contains("newGroup") || in HandleCgroupAdjuster()
163 !data->payload["oldGroup"].is_string() || !data->payload["newGroup"].is_string()) { in HandleCgroupAdjuster()
164 RME_LOGI("FrameAwarePlugin::HandleCgroupAdjuster payload is not contains oldGroup or newGroup"); in HandleCgroupAdjuster()
170 int newGroup = ConvertToInteger(data, "newGroup"); in HandleCgroupAdjuster() local
172 RME::FrameMsgIntf::GetInstance().ReportCgroupChange(pid, uid, oldGroup, newGroup); in HandleCgroupAdjuster()

Completed in 14 milliseconds

12