Home
last modified time | relevance | path

Searched refs:action (Results 1 - 25 of 419) sorted by relevance

12345678910>>...17

/base/global/i18n/services/src/
H A Di18n_service_event.cpp74 std::string action = startReason.GetName(); in CheckStartReason() local
76 HILOG_INFO_I18N("CheckStartReason: start reason is %{public}s", action.c_str()); in CheckStartReason()
77 HandleMultiUser(action, localId); in CheckStartReason()
82 std::string action = data.GetWant().GetAction(); in OnReceiveEvent() local
84 HILOG_INFO_I18N("OnReceiveEvent: handle event %{public}s", action.c_str()); in OnReceiveEvent()
85 HandleMultiUser(action, localId); in OnReceiveEvent()
88 void I18nServiceEvent::HandleMultiUser(const std::string& action, const std::string& localId) in HandleMultiUser() argument
91 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED) { in HandleMultiUser()
93 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_ADDED) { in HandleMultiUser()
95 } else if (action in HandleMultiUser()
[all...]
/base/location/services/location_gnss/gnss/source/
H A Dgnss_common_event_subscriber.cpp28 std::string action = want.GetAction(); in OnReceiveEvent() local
31 if (action == CommonEventSupport::COMMON_EVENT_SMS_RECEIVE_COMPLETED) { in OnReceiveEvent()
34 } else if (action == CommonEventSupport::COMMON_EVENT_SMS_WAPPUSH_RECEIVE_COMPLETED) { in OnReceiveEvent()
37 } else if (action == CommonEventSupport::COMMON_EVENT_CALL_STATE_CHANGED) { in OnReceiveEvent()
40 } else if (action == AGNSS_NI_ACCEPT_EVENT) { in OnReceiveEvent()
43 } else if (action == AGNSS_NI_REJECT_EVENT) { in OnReceiveEvent()
/base/customization/enterprise_device_management/interfaces/inner_api/device_settings/src/
H A Dpower_policy.cpp32 uint32_t action = parcel.ReadUint32(); in Unmarshalling() local
34 if (!powerPolicy.SetPowerPolicyAction(action)) { in Unmarshalling()
46 bool PowerPolicy::SetPowerPolicyAction(uint32_t action) in SetPowerPolicyAction() argument
48 if (action >= static_cast<uint32_t>(PowerPolicyAction::NONE) && in SetPowerPolicyAction()
49 action <= static_cast<uint32_t>(PowerPolicyAction::SHUTDOWN)) { in SetPowerPolicyAction()
50 powerPolicyAction_ = PowerPolicyAction(action); in SetPowerPolicyAction()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/security_guard_report/src/
H A Dcm_security_guard_info.c82 static void ConstructInfoAndReport(const struct CmBlob *input, const char *action, struct CmReportSGInfo *info) in ConstructInfoAndReport() argument
84 if (strcpy_s(info->action, sizeof(info->action), action) != EOK) { in ConstructInfoAndReport()
107 char *action = (store == CM_SYSTEM_TRUSTED_STORE) ? "CmSetSystemCertStatus" : "CmSetUserCertStatus"; in CmReportSGSetCertStatus() local
108 ConstructInfoAndReport(certUri, action, &info); in CmReportSGSetCertStatus()
128 char *action = "CmInstallUserCert"; in CmReportSGInstallUserCert() local
129 ConstructInfoAndReport(certAlias, action, &info); in CmReportSGInstallUserCert()
148 if (strcpy_s(info.action, sizeof(info.action), "CmUninstallAllUserCer in CmReportSGUninstallUserCert()
155 char *action = "CmUninstallUserCert"; CmReportSGUninstallUserCert() local
175 char *action = (store == CM_CREDENTIAL_STORE) ? "CmInstallAppCert" : "CmInstallPriAppCert"; CmReportSGInstallAppCert() local
203 char *action = (store == CM_CREDENTIAL_STORE) ? "CmUninstallAppCert" : "CmUninstallPriAppCert"; CmReportSGUninstallAppCert() local
225 char *action = isRemove ? "CmRemoveGrantedAppUid" : "CmGrantAppCert"; CmReportSGGrantAppCert() local
[all...]
/base/startup/init/services/modules/crashhandler/
H A Dcrash_handler.c67 struct sigaction action; in InstallLocalSignalHandler() local
68 memset_s(&action, sizeof(action), 0, sizeof(action)); in InstallLocalSignalHandler()
69 action.sa_sigaction = SignalHandler; in InstallLocalSignalHandler()
70 action.sa_flags = SA_RESTART | SA_SIGINFO | SA_ONSTACK; in InstallLocalSignalHandler()
74 sigemptyset(&action.sa_mask); in InstallLocalSignalHandler()
75 sigaddset(&action.sa_mask, sig); in InstallLocalSignalHandler()
78 if (sigaction(sig, &action, NULL) != 0) { in InstallLocalSignalHandler()
/base/msdp/device_status/intention/adapters/common_event_adapter/src/
H A Dcommon_event_observer.cpp41 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()
/base/inputmethod/imf/frameworks/common/
H A Dconcurrent_map.h159 // 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 ComputeIfAbsent(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) ComputeIfAbsent() argument
[all...]
/base/location/services/location_locator/locator/source/
H A Dlocator_event_subscriber.cpp33 std::string action = event.GetWant().GetAction(); in OnReceiveEvent() local
34 LBSLOGI(LOCATOR_EVENT, "received action = %{public}s", action.c_str()); in OnReceiveEvent()
35 if (OHOS::EventFwk::CommonEventSupport::COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED.compare(action) == 0) { in OnReceiveEvent()
44 if (std::string(MODE_CHANGED_EVENT).compare(action) == 0) { in OnReceiveEvent()
46 } else if (std::string(LOCATION_PRIVACY_ACCEPT_EVENT).compare(action) == 0) { in OnReceiveEvent()
49 } else if (std::string(LOCATION_PRIVACY_REJECT_EVENT).compare(action) == 0) { in OnReceiveEvent()
/base/notification/distributed_notification_service/services/ans/src/
H A Dsystem_event_observer.cpp78 std::string action = want.GetAction(); in OnReceiveEvent() local
79 ANS_LOGD("OnReceiveEvent action is %{public}s.", action.c_str()); in OnReceiveEvent()
80 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED) { in OnReceiveEvent()
88 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_ON) { in OnReceiveEvent()
92 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_OFF) { in OnReceiveEvent()
97 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED) { in OnReceiveEvent()
108 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED) { in OnReceiveEvent()
117 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_PACKAGE_DATA_CLEARED) { in OnReceiveEvent()
131 std::string action in OnReceiveEventInner() local
[all...]
/base/customization/enterprise_device_management/services/edm_plugin/src/network/rule/
H A Drule_utils.cpp22 std::string RuleUtils::EnumToString(Action action) in EnumToString() argument
24 switch (action) { in EnumToString()
35 Action RuleUtils::StringToAction(std::string action) in StringToAction() argument
37 if (action == ACCEPT_TARGET) { in StringToAction()
39 } else if (action == DROP_TARGET) { in StringToAction()
/base/telephony/sms_mms/test/gtest/
H A Dsms_broadcast_subscriber_gtest.cpp32 std::string action = data.GetWant().GetAction(); in OnReceiveEvent() local
33 if (action == CommonEventSupport::COMMON_EVENT_SMS_EMERGENCY_CB_RECEIVE_COMPLETED || in OnReceiveEvent()
34 action == CommonEventSupport::COMMON_EVENT_SMS_CB_RECEIVE_COMPLETED) { in OnReceiveEvent()
42 } else if (action == CommonEventSupport::COMMON_EVENT_SMS_RECEIVE_COMPLETED) { in OnReceiveEvent()
50 } else if (action == CommonEventSupport::COMMON_EVENT_SMS_WAPPUSH_RECEIVE_COMPLETED) { in OnReceiveEvent()
/base/theme/wallpaper_mgr/utils/include/
H A Dconcurrent_map.h131 // The action`s return true means meeting the erase condition
132 // The action`s return false means not meeting the erase condition
133 size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noexcept
135 if (action == nullptr) {
141 entries_, [&action](value_type &value) -> bool { return action(value.first, value.second); });
145 if (action((*it).first, (*it).second)) {
156 void ForEach(const std::function<bool(const key_type &, mapped_type &)> &action) in ForEach() argument
158 if (action == nullptr) { in ForEach()
163 if (action(ke in ForEach()
169 ForEachCopies(const std::function<bool(const key_type &, mapped_type &)> &action) ForEachCopies() argument
183 Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) Compute() argument
204 ComputeIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &action) ComputeIfPresent() argument
220 ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &action) ComputeIfAbsent() argument
[all...]
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
H A Dapp_account_authenticator_session_module_test.cpp79 AuthenticatorAction action = VERIFY_CREDENTIAL; in SetUp() local
81 appAccountAuthenticatorSessionPtr_ = std::make_shared<AppAccountAuthenticatorSession>(action, request); in SetUp()
140 AuthenticatorAction action = SET_AUTHENTICATOR_PROPERTIES; in HWTEST_F() local
145 auto testSessionPtr_ = std::make_shared<AppAccountAuthenticatorSession>(action, request); in HWTEST_F()
177 AuthenticatorAction action = SET_AUTHENTICATOR_PROPERTIES; in HWTEST_F() local
182 auto testSessionPtr_ = std::make_shared<AppAccountAuthenticatorSession>(action, request); in HWTEST_F()
200 * @tc.desc: test OnAbilityConnectDone with not same action and OnResult resultcode is ADD_ACCOUNT_IMPLICITLY branch.
206 AuthenticatorAction action = ADD_ACCOUNT_IMPLICITLY; in HWTEST_F() local
208 auto appAccountAuthenticatorSessionPtr = std::make_shared<AppAccountAuthenticatorSession>(action, request); in HWTEST_F()
226 action in HWTEST_F()
260 AuthenticatorAction action = ADD_ACCOUNT_IMPLICITLY; HWTEST_F() local
316 AuthenticatorAction action = AUTHENTICATE; HWTEST_F() local
363 AuthenticatorAction action = SET_AUTHENTICATOR_PROPERTIES; HWTEST_F() local
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/sigdump_handler/
H A Ddfx_sigdump_handler.cpp160 struct sigaction action; in Init() local
161 (void)memset_s(&action, sizeof(action), 0, sizeof(action)); in Init()
162 sigemptyset(&action.sa_mask); in Init()
163 sigaddset(&action.sa_mask, SIGDUMP); in Init()
164 action.sa_flags = SA_RESTART | SA_SIGINFO; in Init()
165 action.sa_sigaction = DfxSigDumpHandler::SignalDumpRetranHandler; in Init()
167 sigaction(SIGDUMP, &action, nullptr); in Init()
/base/telephony/core_service/services/sim/test/
H A Dcommon_event_test.h67 std::string action = want.GetAction(); in OnReceiveEvent() local
68 switch (GetCommentEventTestIntValue(action)) { in OnReceiveEvent()
70 std::cout << "receive a CommonEvent action = " << action in OnReceiveEvent()
80 std::cout << "receive a CommonEvent action = " << action << ", code = " << data.GetCode() in OnReceiveEvent()
85 std::cout << "receive a CommonEvent action = " << action in OnReceiveEvent()
89 std::cout << "receive a CommonEvent action = " << action in OnReceiveEvent()
[all...]
/base/startup/init/ueventd/
H A Dueventd.c72 const char *ActionString(ACTION action) in ActionString() argument
74 return actions[action]; in ActionString()
77 static ACTION GetUeventAction(const char *action) in GetUeventAction() argument
79 if (action == NULL || *action == '\0') { in GetUeventAction()
83 if (STRINGEQUAL(action, "add")) { in GetUeventAction()
85 } else if (STRINGEQUAL(action, "remove")) { in GetUeventAction()
87 } else if (STRINGEQUAL(action, "change")) { in GetUeventAction()
89 } else if (STRINGEQUAL(action, "move")) { in GetUeventAction()
91 } else if (STRINGEQUAL(action, "onlin in GetUeventAction()
[all...]
/base/security/access_token/services/el5filekeymanager/src/
H A Del5_filekey_manager_subscriber.cpp38 std::string action = want.GetAction(); in OnReceiveEvent() local
39 LOG_INFO("Receive event %{public}s.", action.c_str()); in OnReceiveEvent()
40 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED) { in OnReceiveEvent()
42 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_LOCKED) { in OnReceiveEvent()
/base/security/device_auth/services/frameworks/src/account_subscriber/
H A Daccount_subscriber.cpp32 std::string action = want.GetAction(); in OnReceiveEvent() local
34 LOGI("[AccountSubscriber]: OnReceiveEvent action: %s, userId: %d.", action.c_str(), userId); in OnReceiveEvent()
36 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_UNLOCKED) { in OnReceiveEvent()
38 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED) { in OnReceiveEvent()
41 LOGE("[AccountSubscriber]: OnReceiveEvent invalid action!"); in OnReceiveEvent()
/base/update/updater/utils/include/
H A Dscope_guard.h22 * can be released and the closure action can be performed in a unified manner when
28 ScopeGuard(ExitAction &&action) : action_(action), enable_(true) {} in ScopeGuard() argument
48 static inline ScopeGuard<ExitAction> operator + (ScopeExitGuardHelper, ExitAction &&action) in operator +() argument
50 return ScopeGuard<ExitAction>(std::forward<ExitAction>(action)); in operator +()
/base/print/print_fwk/services/print_service/src/
H A Dprint_event_subscriber.cpp35 std::string action = data.GetWant().GetAction(); in OnReceiveEvent() local
37 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USB_DEVICE_ATTACHED) { in OnReceiveEvent()
40 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USB_DEVICE_DETACHED) { in OnReceiveEvent()
47 if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_SWITCHED) { in OnReceiveEvent()
51 } else if (action == EventFwk::CommonEventSupport::COMMON_EVENT_USER_REMOVED) { in OnReceiveEvent()
/base/useriam/user_auth_framework/frameworks/native/client/src/
H A Duser_auth_callback_service.cpp31 CallbackManager::CallbackAction action = [impl]() { in UserAuthCallbackService() local
38 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in UserAuthCallbackService() local
45 CallbackManager::CallbackAction action = [impl]() { in UserAuthCallbackService() local
52 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in UserAuthCallbackService() local
59 CallbackManager::CallbackAction action = [impl]() { in UserAuthCallbackService() local
65 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in UserAuthCallbackService() local
109 CallbackManager::CallbackAction action = [impl]() { in GetExecutorPropertyCallbackService() local
116 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in GetExecutorPropertyCallbackService() local
137 CallbackManager::CallbackAction action = [impl]() { in SetExecutorPropertyCallbackService() local
144 CallbackManager::GetInstance().AddCallback(reinterpret_cast<uintptr_t>(this), action); in SetExecutorPropertyCallbackService() local
[all...]
/base/useriam/face_auth/services_ex/src/
H A Dfinite_state_machine_builder.cpp41 uint32_t nextState, const FiniteStateMachine::Action &action) in MakeTransition()
43 auto ret = transitionMap_.try_emplace(FiniteStateMachineImpl::GetTransitionIndex(state, event), nextState, action); in MakeTransition()
59 const FiniteStateMachine::Action &action) in MakeOnStateEnter()
61 auto ret = enterMap_.try_emplace(state, action); in MakeOnStateEnter()
63 IAM_LOGE("%{public}s enter state action %{public}u insert failed", name_.c_str(), state); in MakeOnStateEnter()
70 const FiniteStateMachine::Action &action) in MakeOnStateLeave()
72 auto ret = leaveMap_.try_emplace(state, action); in MakeOnStateLeave()
74 IAM_LOGE("%{public}s leave state action %{public}u insert failed", name_.c_str(), state); in MakeOnStateLeave()
40 MakeTransition(uint32_t state, uint32_t event, uint32_t nextState, const FiniteStateMachine::Action &action) MakeTransition() argument
58 MakeOnStateEnter(uint32_t state, const FiniteStateMachine::Action &action) MakeOnStateEnter() argument
69 MakeOnStateLeave(uint32_t state, const FiniteStateMachine::Action &action) MakeOnStateLeave() argument
/base/useriam/user_auth_framework/services/base/src/
H A Dfinite_state_machine_builder.cpp41 uint32_t nextState, const FiniteStateMachine::Action &action) in MakeTransition()
43 auto ret = transitionMap_.try_emplace(FiniteStateMachineImpl::GetTransitionIndex(state, event), nextState, action); in MakeTransition()
59 const FiniteStateMachine::Action &action) in MakeOnStateEnter()
61 auto ret = enterMap_.try_emplace(state, action); in MakeOnStateEnter()
63 IAM_LOGE("%{public}s enter state action %{public}u insert failed", name_.c_str(), state); in MakeOnStateEnter()
70 const FiniteStateMachine::Action &action) in MakeOnStateLeave()
72 auto ret = leaveMap_.try_emplace(state, action); in MakeOnStateLeave()
74 IAM_LOGE("%{public}s leave state action %{public}u insert failed", name_.c_str(), state); in MakeOnStateLeave()
40 MakeTransition(uint32_t state, uint32_t event, uint32_t nextState, const FiniteStateMachine::Action &action) MakeTransition() argument
58 MakeOnStateEnter(uint32_t state, const FiniteStateMachine::Action &action) MakeOnStateEnter() argument
69 MakeOnStateLeave(uint32_t state, const FiniteStateMachine::Action &action) MakeOnStateLeave() argument
/base/account/os_account/services/accountmgr/src/appaccount/
H A Dapp_account_common_event_observer.cpp83 std::string action = want.GetAction(); in OnReceiveEvent() local
84 if (action == CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED || in OnReceiveEvent()
85 action == CommonEventSupport::COMMON_EVENT_SANDBOX_PACKAGE_REMOVED) { in OnReceiveEvent()
86 DealWithRemoveEvent(want, action); in OnReceiveEvent()
89 if ((action == CommonEventSupport::COMMON_EVENT_USER_REMOVED) && (callback_.OnUserRemoved != nullptr)) { in OnReceiveEvent()
93 if (action == CommonEventSupport::COMMON_EVENT_USER_UNLOCKED) { in OnReceiveEvent()
98 void AppAccountCommonEventObserver::DealWithRemoveEvent(const AAFwk::Want &want, const std::string action) in DealWithRemoveEvent() argument
107 if (action == CommonEventSupport::COMMON_EVENT_SANDBOX_PACKAGE_REMOVED) { in DealWithRemoveEvent()
/base/hiviewdfx/faultloggerd/frameworks/localhandler/
H A Ddfx_signal_local_handler.cpp149 struct sigaction action; in DFX_InstallLocalSignalHandler() local
150 (void)memset_s(&action, sizeof(action), 0, sizeof(action)); in DFX_InstallLocalSignalHandler()
151 sigfillset(&action.sa_mask); in DFX_InstallLocalSignalHandler()
152 action.sa_sigaction = DFX_SignalLocalHandler; in DFX_InstallLocalSignalHandler()
153 action.sa_flags = SA_RESTART | SA_SIGINFO | SA_ONSTACK; in DFX_InstallLocalSignalHandler()
160 if (sigaction(sig, &action, nullptr) != 0) { in DFX_InstallLocalSignalHandler()

Completed in 8 milliseconds

12345678910>>...17