Home
last modified time | relevance | path

Searched refs:newGroup (Results 1 – 25 of 51) sorted by relevance

123

/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/packagegroup/src/
H A Dbundle_active_user_history.cpp188 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() argument
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()
250 bool isGroupChanged = (oldGroup == newGroup) ? true : false; in SetAppGroup()
[all …]
H A Dbundle_active_group_controller.cpp316 int32_t newGroup = std::max(oldGroup, ACTIVE_GROUP_ALIVE); in CheckAndUpdateGroup() local
320 newGroup = GetNewGroup(bundleName, userId, bootBasedTimeStamp, uid); in CheckAndUpdateGroup()
321 if (newGroup < 0) { in CheckAndUpdateGroup()
328 if (newGroup >= ACTIVE_GROUP_ALIVE && oneBundleHistory->bundleAliveTimeoutTimeStamp_ > in CheckAndUpdateGroup()
330 newGroup = ACTIVE_GROUP_ALIVE; in CheckAndUpdateGroup()
333 } else if (newGroup >= ACTIVE_GROUP_DAILY && oneBundleHistory->bundleDailyTimeoutTimeStamp_ > in CheckAndUpdateGroup()
335 newGroup = ACTIVE_GROUP_DAILY; in CheckAndUpdateGroup()
339 if (oldGroup < newGroup || notTimeout) { in CheckAndUpdateGroup()
341 bundleUserHistory_->SetAppGroup(bundleName, userId, bootBasedTimeStamp, newGroup, in CheckAndUpdateGroup()
347 int32_t newGroup, uint32_t reason, const int64_t bootBasedTimeStamp, const bool isFlush) in SetAppGroup() argument
[all …]
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_bundle_group_change_callback.cpp34 int32_t newGroup = appGroupCallbackInfo.GetNewGroup(); in OnAppGroupChanged() local
39 oldGroup, newGroup, userId, bundleName.c_str()); in OnAppGroupChanged()
40 DelayedSingleton<DataManager>::GetInstance()->AddGroup(bundleName, userId, newGroup); in OnAppGroupChanged()
50 if (newGroup < oldGroup) { in OnAppGroupChanged()
56 std::make_shared<DetectorValue>(newGroup, userId, true, bundleName)); in OnAppGroupChanged()
H A Dwork_status.cpp435 int32_t newGroup = group; in SetMinIntervalByGroup() local
438 newGroup = DeviceUsageStats::DeviceUsageStatsGroupConst::ACTIVE_GROUP_FIXED; in SetMinIntervalByGroup()
440 auto itMap = DeviceUsageStats::DeviceUsageStatsGroupMap::groupIntervalMap_.find(newGroup); in SetMinIntervalByGroup()
442 minInterval_ = DeviceUsageStats::DeviceUsageStatsGroupMap::groupIntervalMap_[newGroup]; in SetMinIntervalByGroup()
445 newGroup, bundleName_.c_str()); in SetMinIntervalByGroup()
/ohos5.0/foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf/
H A Dframe_msg_intf.cpp118 …meMsgIntf::ReportCgroupChange(const int pid, const int uid, const int oldGroup, const int newGroup) in ReportCgroupChange() argument
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);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_layout_algorithm.cpp41 std::list<RefPtr<SpanItem>> newGroup; in RichEditorLayoutAlgorithm() local
42 newGroup.splice(newGroup.begin(), spans, spans.begin(), std::next(it)); in RichEditorLayoutAlgorithm()
43 spans_.push_back(std::move(newGroup)); in RichEditorLayoutAlgorithm()
69 std::list<RefPtr<SpanItem>> newGroup; in AppendNewLineSpan() local
74 newGroup.push_back(tailNewLineSpan); in AppendNewLineSpan()
75 spans_.push_back(std::move(newGroup)); in AppendNewLineSpan()
/ohos5.0/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Ddevice_usage_statistics_test.cpp421 int32_t newGroup = 10; variable
424 …std::make_shared<AppGroupCallbackInfo>(g_commonUserid, oldGroup, newGroup, changeReason, g_default…
433 EXPECT_EQ(appGroupCallback->GetNewGroup(), newGroup);
562 int32_t newGroup = 10; variable
564 …AppGroupCallbackInfo appGroupCallbackInfo(g_commonUserid, oldGroup, newGroup, changeReason, g_defa…
580 int32_t newGroup = 10; variable
582 …AppGroupCallbackInfo appGroupCallbackInfo(g_commonUserid, oldGroup, newGroup, changeReason, g_defa…
/ohos5.0/foundation/resourceschedule/device_usage_statistics/frameworks/src/
H A Dapp_group_observer_napi.cpp57 napi_create_int32(commonEventDataWorkerData->env, commonEventDataWorkerData->newGroup, &value); in SetBundleGroupChangedData()
74 …commonEventDataWorkerData->oldGroup, commonEventDataWorkerData->newGroup, commonEventDataWorkerDat… in SetBundleGroupChangedData()
159 callbackReceiveDataWorker->newGroup = callBackInfo->GetNewGroup(); in OnAppGroupChanged()
H A Dbundle_active_app_group_napi.cpp212 if (BundleStateCommon::GetInt32NumberValue(env, argv[FRIST_ARG], params.newGroup) == nullptr) { in GetAppGroupParameters()
219 if (item == params.newGroup) { in GetAppGroupParameters()
295 asyncCallbackInfo->bundleName, asyncCallbackInfo->newGroup); in SetAppGroupAsync()
320 callbackPtr->newGroup = params.newGroup; in SetAppGroup()
323 callbackPtr->bundleName.c_str(), callbackPtr->newGroup); in SetAppGroup()
/ohos5.0/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
/ohos5.0/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.cpp119 ErrCode BundleActiveClient::SetAppGroup(std::string bundleName, const int32_t newGroup, int32_t use… in SetAppGroup() argument
126 return bundleActiveProxy_->SetAppGroup(bundleName, newGroup, userId); in SetAppGroup()
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta2/
H A Djs-apidiff-resource-scheduler.md13 …up(bundleName: string, newGroup: GroupType, callback: AsyncCallback\<void>): void;<br>setBundleGro…
/ohos5.0/docs/zh-cn/application-dev/device-usage-statistics/
H A Ddevice-usage-statistics-use-guide.md34 …pGroup(bundleName : string, newGroup: GroupType, callback: AsyncCallback&lt;void&gt;): void | 给应用名…
35 …tion setAppGroup(bundleName : string, newGroup : GroupType): Promise&lt;void&gt;; | 给应用名是bundleNam…
339 12. 给指定bundleName的应用的优先级分组设置成newGroup。 需要配置ohos.permission.BUNDLE_ACTIVE_INFO权限。
346 let newGroup = usageStatistics.GroupType.DAILY_GROUP;
348 usageStatistics.setAppGroup(bundleName, newGroup).then( () => {
356 let newGroup = usageStatistics.GroupType.DAILY_GROUP;
357 usageStatistics.setAppGroup(bundleName, newGroup, (err : BusinessError) => {
H A Ddevice-usage-statistics-overview.md28 给应用名称为bundleName的应用分组设置为newGroup
/ohos5.0/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);
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta2/
H A Djs-apidiff-resource-scheduler.md13 …up(bundleName: string, newGroup: GroupType, callback: AsyncCallback\<void>): void;<br>setBundleGro…
/ohos5.0/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,
/ohos5.0/foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactivepowerstatecallbackproxy_fuzzer/
H A Dbundleactivepowerstatecallbackproxy_fuzzer.cpp129 int32_t newGroup = GetData<int32_t>(); in BundleActiveClientFuzzTest() local
131 … DelayedSingleton<BundleActiveClient>::GetInstance()->SetAppGroup(bundleName, newGroup, userId); in BundleActiveClientFuzzTest()
/ohos5.0/foundation/resourceschedule/device_usage_statistics/interfaces/test/unittest/device_usage_statistics_jsunittest/
H A Ddevice_usage_statistics_jsunit.test.js811 let newGroup = 30;
813 usageStatistics.setAppGroup(bundleName, newGroup, (err, res) => {
840 let newGroup = 30;
842 usageStatistics.setAppGroup(bundleName, newGroup).then( res => {
/ohos5.0/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));
/ohos5.0/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);
/ohos5.0/foundation/resourceschedule/frame_aware_sched/frameworks/core/frame_aware_policy/src/
H A Dintellisense_server.cpp272 …nseServer::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()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-backgroundtasks-kit/
H A Djs-apis-resourceschedule-deviceUsageStatistics-sys.md441 setAppGroup(bundleName: string, newGroup: GroupType): Promise&lt;void&gt;
443 将指定bundleName应用的分组设置为newGroup,仅支持当前应用为其他应用设置,使用Promise异步回调。
454 | newGroup | [GroupType](#grouptype) | 是 | 应用分组类型。 |
485 let newGroup = usageStatistics.GroupType.DAILY_GROUP;
487 usageStatistics.setAppGroup(bundleName, newGroup).then( () => {
496 setAppGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback&lt;void&gt;): void
498 将指定bundleName应用的分组设置为newGroup,仅支持当前应用为其他应用设置,使用CallBack异步回调。
509 | newGroup | [GroupType](#grouptype) | 是 | 应用分组类型。 |
535 let newGroup = usageStatistics.GroupType.DAILY_GROUP;
537 usageStatistics.setAppGroup(bundleName, newGroup, (err: BusinessError) => {

123