/foundation/ability/ability_runtime/frameworks/js/napi/wantConstant/ |
H A D | want_constant.cpp | 32 napi_value action = nullptr; in WantConstantInit() local 36 napi_create_object(env, &action); in WantConstantInit() 41 SetNamedProperty(env, action, "ohos.want.action.home", "ACTION_HOME"); in WantConstantInit() 42 SetNamedProperty(env, action, "ohos.want.action.dial", "ACTION_DIAL"); in WantConstantInit() 43 SetNamedProperty(env, action, "ohos.want.action.search", "ACTION_SEARCH"); in WantConstantInit() 44 SetNamedProperty(env, action, "ohos.settings.wireless", "ACTION_WIRELESS_SETTINGS"); in WantConstantInit() 45 SetNamedProperty(env, action, "oho in WantConstantInit() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | concurrent_adapter.cpp | 19 int ConcurrentAdapter::ScheduleTask(const TaskAction &action, Dependence inDeps, Dependence outDeps) in ScheduleTask() argument 23 ffrt::submit(action); in ScheduleTask() 25 ffrt::submit(action, {}, { outDeps }); in ScheduleTask() 27 ffrt::submit(action, { inDeps }, {}); in ScheduleTask() 29 ffrt::submit(action, { inDeps }, { outDeps }); in ScheduleTask() 33 return RuntimeContext::GetInstance()->ScheduleTask(action); in ScheduleTask() 37 TaskHandle ConcurrentAdapter::ScheduleTaskH(const TaskAction &action, Dependence inDeps, Dependence outDeps) in ScheduleTaskH() argument 41 return ffrt::submit_h(action); in ScheduleTaskH() 43 return ffrt::submit_h(action, {}, { outDeps }); in ScheduleTaskH() 45 return ffrt::submit_h(action, { inDep in ScheduleTaskH() [all...] |
H A D | db_dfx_adapter.cpp | 127 void DBDfxAdapter::StartTrace(const std::string &action) in StartTrace() argument 129 ::StartTrace(HITRACE_LABEL, action); in StartTrace() 151 void DBDfxAdapter::StartAsyncTrace(const std::string &action, int32_t taskId) in StartAsyncTrace() argument 155 ::StartAsyncTrace(HITRACE_LABEL, action, taskId); in StartAsyncTrace() 158 void DBDfxAdapter::FinishAsyncTrace(const std::string &action, int32_t taskId) in FinishAsyncTrace() argument 161 ::FinishAsyncTrace(HITRACE_LABEL, action, taskId); in FinishAsyncTrace() 170 void DBDfxAdapter::StartTrace(const std::string &action) in StartTrace() argument 172 (void) action; in StartTrace() 179 void DBDfxAdapter::StartAsyncTrace(const std::string &action, int32_t taskId) in StartAsyncTrace() argument 181 (void) action; in StartAsyncTrace() 185 FinishAsyncTrace(const std::string &action, int32_t taskId) FinishAsyncTrace() argument [all...] |
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | state_manager.cpp | 57 StateActions* action = new (std::nothrow) StateActions(); in ForState() local 58 if (action == nullptr) { in ForState() 63 states_[s] = action; in ForState() 77 StateActions& action = ForState(i); in FromState() local 78 AddAction(&action); in FromState() 87 StateActions* action = currState_->second; in ToState() local 88 if (action->timerId != INVALID_ID) { in ToState() 89 KillTimer(action->timerId); in ToState() 98 action = nextIt->second; in ToState() 99 if (action in ToState() 152 StateActions *action = currState_->second; ResetTimerDelay() local [all...] |
/foundation/multimedia/ringtone_library/test/unittest/ringtone_data_extension_test/src/ |
H A D | ringtone_subscriber_test.cpp | 48 string action = EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF; in HWTEST_F() local 50 want.SetAction(action); in HWTEST_F() 53 EXPECT_EQ(want.GetAction(), action); in HWTEST_F() 60 string action = EventFwk::CommonEventSupport::COMMON_EVENT_POWER_CONNECTED; in HWTEST_F() local 62 want.SetAction(action); in HWTEST_F() 65 EXPECT_EQ(want.GetAction(), action); in HWTEST_F() 72 string action = EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON; in HWTEST_F() local 74 want.SetAction(action); in HWTEST_F() 77 EXPECT_EQ(want.GetAction(), action); in HWTEST_F() 84 string action in HWTEST_F() local 96 string action = EventFwk::CommonEventSupport::COMMON_EVENT_POWER_DISCONNECTED; HWTEST_F() local [all...] |
/foundation/communication/netstack/utils/http_over_curl/src/ |
H A D | epoll_multi_driver.cpp | 41 static auto socketCallback = +[](CURL *easy, curl_socket_t s, int action, void *userp, void *socketp) { in Initialize() 43 return instance->MultiSocketCallback(s, action, static_cast<CurlSocketContext *>(socketp)); in Initialize() 154 int EpollMultiDriver::MultiSocketCallback(curl_socket_t socket, int action, CurlSocketContext *socketContext) in MultiSocketCallback() argument 156 switch (action) { in MultiSocketCallback() 161 auto curlSocket = new (std::nothrow) CurlSocketContext(poller_, socket, action); in MultiSocketCallback() 167 socketContext->Reassign(socket, action); in MultiSocketCallback() 174 NETSTACK_LOGE("Unexpected socket action = %{public}d", action); in MultiSocketCallback() 180 static int CurlPollToEpoll(int action) in CurlPollToEpoll() argument 182 int kind = ((action in CurlPollToEpoll() 187 CurlSocketContext(HttpOverCurl::Epoller &poller, curl_socket_t sockDescriptor, int action) CurlSocketContext() argument 195 Reassign(curl_socket_t sockDescriptor, int action) Reassign() argument 211 int action = CURL_CSELECT_IN | CURL_CSELECT_OUT; EpollSocketCallback() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/common/ |
H A D | concurrent_map.h | 114 bool ContainIf(const key_type &key, const std::function<bool(const mapped_type &value)> &action) const noexcept 121 if (action) { 122 return action(it->second); 172 // The action`s return true means meeting the erase condition 173 // The action`s return false means not meeting the erase condition 174 size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noexcept 176 if (action == nullptr) { 182 [&action](value_type &value) -> bool { return action(value.first, value.second); }); 186 if (action((*i 197 ForEach(const std::function<bool(const key_type &, mapped_type &)> &action) ForEach() argument 210 ForEachCopies(const std::function<bool(const key_type &, mapped_type &)> &action) ForEachCopies() argument 224 Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) Compute() argument 245 ComputeIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) ComputeIfPresent() argument 261 ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &action) ComputeIfAbsent() argument 275 DoActionIfEmpty(const std::function<void(void)> &action) DoActionIfEmpty() argument [all...] |
/foundation/multimodalinput/input/service/display_state_manager/src/ |
H A D | display_event_monitor.cpp | 54 std::string action = eventData.GetWant().GetAction(); in OnReceiveEvent() local 55 if (action.empty()) { in OnReceiveEvent() 59 MMI_HILOGD("Received screen status:%{public}s", action.c_str()); in OnReceiveEvent() 60 JudgeAction(action); in OnReceiveEvent() 63 void JudgeAction(std::string &action) in JudgeAction() argument 65 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON) { in JudgeAction() 67 DISPLAY_MONITOR->SetScreenStatus(action); in JudgeAction() 77 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF) { in JudgeAction() 79 DISPLAY_MONITOR->SetScreenStatus(action); in JudgeAction() 86 } else if (action in JudgeAction() [all...] |
/foundation/ability/form_fwk/services/src/ |
H A D | form_sys_event_receiver.cpp | 111 std::string action = want.GetAction(); in OnReceiveEvent() local 113 if (action.empty()) { in OnReceiveEvent() 114 HILOG_ERROR("empty action"); in OnReceiveEvent() 117 if (bundleName.empty() && action != EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED && in OnReceiveEvent() 118 action != EventFwk::CommonEventSupport::COMMON_EVENT_BUNDLE_SCAN_FINISHED && in OnReceiveEvent() 119 action != EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED && in OnReceiveEvent() 120 action != EventFwk::CommonEventSupport::COMMON_EVENT_SECOND_MOUNTED && in OnReceiveEvent() 121 action != EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON && in OnReceiveEvent() 122 action != EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED) { in OnReceiveEvent() 123 HILOG_ERROR("invalid param, action in OnReceiveEvent() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/common_event/src/ |
H A D | event_controller.cpp | 210 std::string action = want.GetAction(); in OnReceiveEvent() local 211 RESSCHED_LOGI("Recieved common event:%{public}s", action.c_str()); in OnReceiveEvent() 214 if (HandlePkgCommonEvent(action, want, payload)) { in OnReceiveEvent() 217 if (action == CommonEventSupport::COMMON_EVENT_SCREEN_ON) { in OnReceiveEvent() 221 if (action == CommonEventSupport::COMMON_EVENT_SCREEN_OFF) { in OnReceiveEvent() 225 if (action == CommonEventSupport::COMMON_EVENT_CONNECTIVITY_CHANGE) { in OnReceiveEvent() 230 if (action == CommonEventSupport::COMMON_EVENT_USER_SWITCHED) { in OnReceiveEvent() 235 if (action == CommonEventSupport::COMMON_EVENT_USER_REMOVED) { in OnReceiveEvent() 240 if (action == "common.event.UNLOCK_SCREEN") { in OnReceiveEvent() 244 if (action in OnReceiveEvent() 261 handleEvent(int32_t userId, const std::string &action, nlohmann::json &payload) handleEvent() argument 306 handleOtherEvent(int32_t userId, const std::string &action, nlohmann::json &payload) handleOtherEvent() argument 316 HandlePkgCommonEvent(const std::string &action, Want &want, nlohmann::json &payload) HandlePkgCommonEvent() argument [all...] |
/foundation/arkui/ace_engine/adapter/ohos/tools/raw_input_injector/ |
H A D | raw_input_injector.cpp | 248 // 先按照7ms步进间隔扫描整个队列,生成所有的待注入的事件action信息 in ExecuteQueue() 270 ConsumeActionInfo action; in PrepareAllInjectingActions() local 271 if (iter->second.ConsumeOnce(currentTime, action)) { in PrepareAllInjectingActions() 272 actionList.push_back(action); in PrepareAllInjectingActions() 295 for (auto& action : actionList) { in DumpAllInjectingActions() 296 str += ("finger " + std::to_string(action.finger) + " " + in DumpAllInjectingActions() 297 BaseCommand::GetReadableCommandTypeName(action.type) + ", "); in DumpAllInjectingActions() 350 for (auto& action : actionList) { in UpdateGlobalStatus() 351 if (action.finger == info.finger) { in UpdateGlobalStatus() 352 isStartUpdateNeeded = (action in UpdateGlobalStatus() 393 UpdateInjectInfoForTouchEvent(const ConsumeActionInfo& action, InjectingInfo& info) const UpdateInjectInfoForTouchEvent() argument 413 UpdateInjectInfoForTouchMove(const ConsumeActionInfo& action, InjectingInfo& info) const UpdateInjectInfoForTouchMove() argument 434 CalculatePosValueBaseOnLastPoint( const PointerInfo& lastPoint, const ConsumeActionInfo& action, InjectingInfo& info) const CalculatePosValueBaseOnLastPoint() argument 450 UpdateInjectInfoForWaitAction(const ConsumeActionInfo& action, InjectingInfo& info) const UpdateInjectInfoForWaitAction() argument 466 GetInjectInfoFrom(const ConsumeActionInfo& action, int64_t currentTime) const GetInjectInfoFrom() argument [all...] |
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/utils/ |
H A D | system_event_observer.cpp | 74 std::string action = want.GetAction(); in OnReceiveEvent() local 75 if (action.empty()) { in OnReceiveEvent() 76 INTELL_VOICE_LOG_ERROR("action is empty"); in OnReceiveEvent() 85 INTELL_VOICE_LOG_INFO("action:%{public}s.", action.c_str()); in OnReceiveEvent() 86 if (action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON) { in OnReceiveEvent() 92 } else if (action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF) { in OnReceiveEvent() 98 } else if (action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED) { in OnReceiveEvent() 100 } else if (action == OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REPLACED) { in OnReceiveEvent() 102 } else if (action in OnReceiveEvent() [all...] |
/foundation/distributeddatamgr/relational_store/rdbmock/frameworks/native/rdb/ |
H A D | concurrent_map.h | 159 // The action`s return true means meeting the erase condition 160 // The action`s return false means not meeting the erase condition 161 size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noexcept 163 if (action == nullptr) { 169 [&action](value_type &value) -> bool { return action(value.first, value.second); }); 173 if (action((*it).first, (*it).second)) { 184 void ForEach(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEach() argument 186 if (action == nullptr) { in ForEach() 191 if (action(ke in ForEach() 197 ForEachCopies(const std::function<bool(const key_type &, mapped_type &)> &action) ForEachCopies() argument 211 Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) Compute() argument 232 ComputeIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) ComputeIfPresent() argument 248 ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &action) ComputeIfAbsent() argument 262 DoActionIfEmpty(const std::function<void(void)> &action) DoActionIfEmpty() argument [all...] |
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/ |
H A D | netlink_msg_test.cpp | 53 uint16_t action = 2; in HWTEST_F() local 54 netLinkMsg.AddRoute(action, rtmsg); in HWTEST_F() 65 netLinkMsg.AddRule(action, hdr); in HWTEST_F() 66 netLinkMsg.AddAddress(action, addrmsg); in HWTEST_F() 69 int32_t ret = netLinkMsg.AddAttr(action, nullptr, dataLength100); in HWTEST_F() 73 ret = netLinkMsg.AddAttr(action, data, dataLength100); in HWTEST_F() 75 ret = netLinkMsg.AddAttr(action, data, dataLength10); in HWTEST_F()
|
/foundation/distributeddatamgr/preferences/frameworks/native/include/ |
H A D | concurrent_map.h | 130 bool ContainIf(const key_type &key, const std::function<bool(const mapped_type &value)> &action) const noexcept 137 if (action) { 138 return action(it->second); 171 const std::function<bool(const key_type &key, mapped_type &value)> &action) noexcept 173 if (action == nullptr) { 178 if (it == entries_.end() || !action((*it).first, (*it).second)) { 202 // The action`s return true means meeting the erase condition 203 // The action`s return false means not meeting the erase condition 204 size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noexcept 206 if (action 227 ForEach(const std::function<bool(const key_type &, mapped_type &)> &action) ForEach() argument 240 ForEachCopies(const std::function<bool(const key_type &, mapped_type &)> &action) ForEachCopies() argument 254 Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) Compute() argument 275 ComputeIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) ComputeIfPresent() argument 291 ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &action) ComputeIfAbsent() argument 305 DoActionIfEmpty(const std::function<void(void)> &action) DoActionIfEmpty() argument 317 DoActionWhenClone(const std::function<void(const std::map<_Key, _Tp> &)> &action) DoActionWhenClone() argument [all...] |
/foundation/multimodalinput/input/intention/adapters/common_event_adapter/src/ |
H A D | common_event_observer.cpp | 41 for (const auto &action : g_commonEvents) { in CreateCommonEventObserver() 42 skill.AddEvent(action); in CreateCommonEventObserver() 51 const auto action = want.GetAction(); in OnReceiveEvent() local 52 if (g_commonEvents.find(action) == g_commonEvents.end()) { in OnReceiveEvent() 53 FI_HILOGE("Unexpected action:%{public}s", action.c_str()); in OnReceiveEvent() 56 handle_(action); in OnReceiveEvent()
|
/foundation/ability/form_fwk/test/unittest/fms_form_timer_mgr_new_test/ |
H A D | fms_form_timer_mgr_new_test.cpp | 75 std::string action = "fms.time_speed"; in HWTEST_F() local 77 want.SetAction(action); in HWTEST_F() 94 std::string action = "usual.event.TIME_CHANGED"; in HWTEST_F() local 96 want.SetAction(action); in HWTEST_F() 113 std::string action = "usual.event.TIMEZONE_CHANGED"; in HWTEST_F() local 115 want.SetAction(action); in HWTEST_F() 132 std::string action = "form_update_at_timer"; in HWTEST_F() local 134 want.SetAction(action); in HWTEST_F() 151 std::string action = "abc"; in HWTEST_F() local 153 want.SetAction(action); in HWTEST_F() 170 std::string action = "form_update_at_timer"; HWTEST_F() local 190 std::string action = "form_update_at_timer"; HWTEST_F() local 210 std::string action = "form_update_at_timer"; HWTEST_F() local [all...] |
/foundation/ability/ability_runtime/service_router_framework/services/srms/src/ |
H A D | sr_common_event_subscriber.cpp | 39 std::string action = want.GetAction(); in OnReceiveEvent() local 41 TAG_LOGI(AAFwkTag::SER_ROUTER, "action:%{public}s.", action.c_str()); in OnReceiveEvent() 42 if (action.empty() || eventHandler_ == nullptr) { in OnReceiveEvent() 43 TAG_LOGE(AAFwkTag::SER_ROUTER, "Invalid action or event handler"); in OnReceiveEvent() 46 if (bundleName.empty() && action != EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED) { in OnReceiveEvent() 52 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED) { in OnReceiveEvent() 62 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_ADDED || in OnReceiveEvent() 63 action == EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_CHANGED) { in OnReceiveEvent() 72 } else if (action in OnReceiveEvent() [all...] |
/foundation/multimedia/media_foundation/engine/scene/recorder/internal/ |
H A D | recording_setting_state.h | 39 Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_BUTT; variable 40 return {ret, action}; 46 Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_BUTT; variable 47 return {ret, action}; 53 Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_BUTT; variable 54 return {ret, action}; 60 Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_RECORDING_SETTING : Action::ACTION_BUTT; variable 61 return {ret, action}; 82 Action action = (ret == ErrorCode::SUCCESS) ? Action::TRANS_TO_INIT : Action::TRANS_TO_ERROR; variable 83 return {ret, action}; [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_rdb_test/src/ |
H A D | medialibrary_subscriber_test.cpp | 41 string action = EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF; in HWTEST_F() local 43 want.SetAction(action); in HWTEST_F() 54 string action = EventFwk::CommonEventSupport::COMMON_EVENT_POWER_CONNECTED; in HWTEST_F() local 56 want.SetAction(action); in HWTEST_F() 67 string action = EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON; in HWTEST_F() local 69 want.SetAction(action); in HWTEST_F() 80 string action = EventFwk::CommonEventSupport::COMMON_EVENT_TIME_CHANGED; in HWTEST_F() local 82 want.SetAction(action); in HWTEST_F() 93 string action = EventFwk::CommonEventSupport::COMMON_EVENT_POWER_DISCONNECTED; in HWTEST_F() local 95 want.SetAction(action); in HWTEST_F() [all...] |
/foundation/resourceschedule/background_task_mgr/services/common/src/ |
H A D | system_event_observer.cpp | 83 std::string action = want.GetAction();
in OnReceiveEventContinuousTask() local 84 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED
in OnReceiveEventContinuousTask() 85 || action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_ADDED
in OnReceiveEventContinuousTask() 86 || action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED) {
in OnReceiveEventContinuousTask() 88 BGTASK_LOGI("user of id :%{public}d state is changed, action is : %{public}s", userId, action.c_str());
in OnReceiveEventContinuousTask() 95 BGTASK_LOGI("get common event action = %{public}s, bundleName = %{public}s, uid = %{public}d",
in OnReceiveEventContinuousTask() 96 action.c_str(), bundleName.c_str(), uid);
in OnReceiveEventContinuousTask() 97 auto task = [bgContinuousTaskMgr, action, bundleName, uid]() {
in OnReceiveEventContinuousTask() 98 bgContinuousTaskMgr->OnBundleInfoChanged(action, bundleNam in OnReceiveEventContinuousTask() 106 std::string action = want.GetAction(); OnReceiveEventEfficiencyRes() local [all...] |
/foundation/ability/ability_runtime/services/dataobsmgr/include/ |
H A D | concurrent_map.h | 159 // The action`s return true means meeting the erase condition 160 // The action`s return false means not meeting the erase condition 161 size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noexcept 163 if (action == nullptr) { 169 [&action](value_type &value) -> bool { return action(value.first, value.second); }); 173 if (action((*it).first, (*it).second)) { 184 void ForEach(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEach() argument 186 if (action == nullptr) { in ForEach() 191 if (action(ke in ForEach() 197 ForEachCopies(const std::function<bool(const key_type &, mapped_type &)> &action) ForEachCopies() argument 211 Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) Compute() argument 232 ComputeIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) ComputeIfPresent() argument 248 ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &action) ComputeIfAbsent() argument [all...] |
/foundation/distributeddatamgr/pasteboard/framework/framework/include/common/ |
H A D | concurrent_map.h | 134 // The action`s return true mains meet the erase condition 135 // The action`s return false mains not meet the erase condition 136 size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noexcept 138 if (action == nullptr) { 143 auto count = std::erase_if(entries_, [&action](value_type &value) -> bool { 144 return action(value.first, value.second); 149 if (action((*it).first, (*it).second)) { 160 void ForEach(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEach() argument 162 if (action == nullptr) { in ForEach() 167 if (action(ke in ForEach() 173 ForEachCopies(const std::function<bool(const key_type &, mapped_type &)> &action) ForEachCopies() argument 187 Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) Compute() argument 208 ComputeIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) ComputeIfPresent() argument 224 ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &action) ComputeIfAbsent() argument [all...] |
/foundation/ability/ability_lite/frameworks/ability_lite/src/ |
H A D | ability_slice_route.cpp | 38 void AbilitySliceRoute::AddActionRoute(const std::string &action, const std::string &entry)
in AddActionRoute() argument 40 if (action.empty() || entry.empty()) {
in AddActionRoute() 44 actionEntries_[action] = entry;
in AddActionRoute() 47 std::string AbilitySliceRoute::MatchRoute(const std::string &action)
in MatchRoute() argument 49 auto iter = actionEntries_.find(action);
in MatchRoute()
|
/foundation/bundlemanager/distributed_bundle_framework/services/dbms/include/ |
H A D | distributed_monitor.h | 35 std::string action = want.GetAction(); in OnReceiveEvent() local 36 APP_LOGI("OnReceiveEvent action:%{public}s", action.c_str()); in OnReceiveEvent() 37 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED) { in OnReceiveEvent() 45 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_ADDED || in OnReceiveEvent() 46 action == EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_CHANGED) { in OnReceiveEvent() 48 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED) { in OnReceiveEvent() 51 APP_LOGW("OnReceiveEvent undefined action"); in OnReceiveEvent()
|