Home
last modified time | relevance | path

Searched full:reason (Results 1 – 25 of 674) sorted by relevance

12345678910>>...27

/base/request/request/services/src/task/
Dreason.rs14 pub(crate) use ffi::Reason;
20 pub(crate) enum Reason { enum
50 impl From<u8> for Reason { implementation
53 0 => Reason::Default, in from()
54 1 => Reason::TaskSurvivalOneMonth, in from()
55 4 => Reason::RunningTaskMeetLimits, in from()
56 5 => Reason::UserOperation, in from()
57 6 => Reason::AppBackgroundOrTerminate, in from()
58 7 => Reason::NetworkOffline, in from()
59 8 => Reason::UnsupportedNetworkType, in from()
[all …]
/base/powermgr/power_manager/services/native/src/wakeup_action/
Dwakeup_action_controller.cpp50 std::string reason; in IsLowCapacityWakeup() local
51 SystemSuspendController::GetInstance().GetWakeupReason(reason); in IsLowCapacityWakeup()
52 if (reason.empty()) { in IsLowCapacityWakeup()
53 POWER_HILOGI(FEATURE_WAKEUP_ACTION, "WakeupAction reason is empty"); in IsLowCapacityWakeup()
56 reason.erase(reason.end() - 1); in IsLowCapacityWakeup()
57 POWER_HILOGI(FEATURE_WAKEUP_ACTION, "WakeupAction reason %{public}s", reason.c_str()); in IsLowCapacityWakeup()
58 if (sourceMap_.find(reason) != sourceMap_.end()) { in IsLowCapacityWakeup()
61 …POWER_HILOGI(FEATURE_WAKEUP_ACTION, "WakeupAction reason %{public}s doesn't exist", reason.c_str()… in IsLowCapacityWakeup()
67 std::string reason; in ExecuteByGetReason() local
68 SystemSuspendController::GetInstance().GetWakeupReason(reason); in ExecuteByGetReason()
[all …]
/base/request/request/services/src/manage/scheduler/state/
Dsql.rs19 use crate::task::reason::Reason;
29 const APP_BACKGROUND_OR_TERMINATE: u8 = Reason::AppBackgroundOrTerminate.repr;
30 const RUNNING_TASK_MEET_LIMITS: u8 = Reason::RunningTaskMeetLimits.repr;
31 const ACCOUNT_STOPPED: u8 = Reason::AccountStopped.repr;
32 const NETWORK_OFFLINE: u8 = Reason::NetworkOffline.repr;
33 const UNSUPPORTED_NETWORK_TYPE: u8 = Reason::UnsupportedNetworkType.repr;
34 const NETWORK_APP: u8 = Reason::NetworkApp.repr;
35 const NETWORK_ACCOUNT: u8 = Reason::NetworkAccount.repr;
36 const APP_ACCOUNT: u8 = Reason::AppAccount.repr;
37 const NETWORK_APP_ACCOUNT: u8 = Reason::NetworkAppAccount.repr;
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest011/
Dtest_compose_rule.json6 "REASON": "BasicParam.v_process", string
10 "REASON": "BasicParam.v_process", string
16 "REASON": "BasicParam.v_process", string
21 "REASON": "BasicParam.v_process", string
26 "REASON": "BasicParam.v_process", string
31 "REASON": "BasicParam.v_process", string
/base/powermgr/power_manager/services/native/src/suspend/
Dsuspend_controller.cpp146 … monitor->RegisterListener([this](SuspendDeviceType reason, uint32_t action, uint32_t delay) { in Init() argument
147 this->ControlListener(reason, action, delay); in Init()
163 void SuspendController::ExecSuspendMonitorByReason(SuspendDeviceType reason) in ExecSuspendMonitorByReason() argument
165 FFRTUtils::SubmitTask([this, reason] { in ExecSuspendMonitorByReason()
167 if (monitorMap_.find(reason) != monitorMap_.end()) { in ExecSuspendMonitorByReason()
168 auto monitor = monitorMap_[reason]; in ExecSuspendMonitorByReason()
201 POWER_HILOGI(FEATURE_SUSPEND, "UpdateFunc CreateMonitor[%{public}u] reason=%{public}d", in RegisterSettingsObserver()
204 … monitor->RegisterListener([this](SuspendDeviceType reason, uint32_t action, uint32_t delay) { in RegisterSettingsObserver() argument
205 this->ControlListener(reason, action, delay); in RegisterSettingsObserver()
316 void SuspendController::SuspendWhenScreenOff(SuspendDeviceType reason, uint32_t action, uint32_t de… in SuspendWhenScreenOff() argument
[all …]
/base/hiviewdfx/hiview/
Dkernel_vendor.yaml40 REASON: {type: STRING, desc: fault reason}
54 REASON: {type: STRING, desc: fault reason}
68 REASON: {type: STRING, desc: fault reason}
82 REASON: {type: STRING, desc: fault reason}
96 REASON: {type: STRING, desc: fault reason}
110 REASON: {type: STRING, desc: fault reason}
124 REASON: {type: STRING, desc: fault reason}
138 REASON: {type: STRING, desc: fault reason}
152 REASON: {type: STRING, desc: fault reason}
166 REASON: {type: STRING, desc: fault reason}
[all …]
/base/powermgr/powermgr_lite/interfaces/innerkits/
Dpower_manage.h55 * @param reason The reason why will you suspend the device.
58 void SuspendDevice(SuspendDeviceType reason, BOOL suspendImmed);
63 * @param reason The reason for waking up the device.
64 * @param details Details of the wakeup reason.
66 void WakeupDevice(WakeupDeviceType reason, const char* details);
/base/request/request/test/unittest/js_test/requestSystemQueryTest/entry/src/main/
Dmodule.json47 "reason": "$string:permission_reason", string
55 "reason": "$string:permission_reason", string
63 "reason":"need use ohos.permission.INTERNET." string
67 "reason":"need use ohos.permission.DOWNLOAD_SESSION_MANAGER." string
71 "reason":"need use ohos.permission.UPLOAD_SESSION_MANAGER." string
74 "reason": "need use ohos.permission.WRITE_MEDIA", string
83 "reason": "need use ohos.permission.WRITE_MEDIA", string
/base/telephony/sms_mms/
DOAT.xml32 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
33 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
37 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
38 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
42 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
43 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
47 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
48 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
52 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
53 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
[all …]
/base/notification/distributed_notification_service/services/ans/src/common/
Dnotification_analytics_util.cpp182 ANS_LOGI("Publish event failed, eventCode:%{public}d, reason:%{public}s", in CommonNotificationEvent()
196 EventFwk::Want want, int32_t eventCode, const std::string& reason) in ReportNotificationEvent() argument
221 ANS_LOGI("Publish event failed, reason:%{public}s", message.Build().c_str()); in ReportModifyEvent()
242 ANS_LOGI("Publish event failed, reason:%{public}s", message.Build().c_str()); in ReportDeleteFailedEvent()
257 int32_t eventCode, const std::string& reason) in ReportNotificationEvent() argument
262 ANS_LOGD("Publish event success %{public}d, %{public}s", eventCode, reason.c_str()); in ReportNotificationEvent()
264 ANS_LOGE("Publish event failed %{public}d, %{public}s", eventCode, reason.c_str()); in ReportNotificationEvent()
319 nlohmann::json reason; in BuildExtraInfo() local
320 reason["scene"] = message.sceneId_; in BuildExtraInfo()
321 reason["branch"] = message.branchId_; in BuildExtraInfo()
[all …]
/base/powermgr/power_manager/interfaces/inner_api/native/include/
Dpower_mgr_client.h40 * @param reason The reason for rebooting the device. e.g.updater
42 PowerErrors RebootDevice(const std::string& reason);
43 PowerErrors RebootDeviceForDeprecated(const std::string& reason);
48 * @param reason The reason for shutting down the device.
51 PowerErrors ShutDownDevice(const std::string& reason);
66 …* @param reason The reason why will you suspend the device, such as timeout/powerkey/forcesuspend …
68 …PowerErrors SuspendDevice(SuspendDeviceType reason = SuspendDeviceType::SUSPEND_DEVICE_REASON_APPL…
74 * @param reason The reason for waking up the device, such as powerkey/plugin/application.
76 PowerErrors WakeupDevice(WakeupDeviceType reason = WakeupDeviceType::WAKEUP_DEVICE_APPLICATION,
82 * @param reason The reason for waking up the device, such as powerkey/plugin/application.
[all …]
/base/telephony/call_manager/
DOAT.xml32 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
33 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
37 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
38 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
42 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
43 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
47 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
48 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
52 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
53 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
[all …]
/base/hiviewdfx/faultloggerd/test/unittest/panic_handler/
Drustpanic_listener.cpp38 std::string reason; in OnEvent() local
39 sysEvent->GetParamValue("REASON", reason); in OnEvent()
41 std::cout << "recv event, reason:" << reason << std::endl; in OnEvent()
42 if (reason.find(keyWord) == std::string::npos) { in OnEvent()
43 std::cout << "not find keyWord in reason" << std::endl; in OnEvent()
/base/powermgr/power_manager/frameworks/napi/power/
Dpower.cpp50 char reason[REASON_MAX] = {0}; in RebootOrShutdown() local
52 status = napi_get_value_string_utf8(env, args[0], reason, REASON_MAX - 1, &reasonLen); in RebootOrShutdown()
54 POWER_HILOGE(FEATURE_SHUTDOWN, "Get shutdown reason failed"); in RebootOrShutdown()
57 POWER_HILOGD(FEATURE_SHUTDOWN, "reboot: %{public}d, reason: %{public}s", isReboot, reason); in RebootOrShutdown()
59 g_powerMgrClient.RebootDeviceForDeprecated(std::string(reason)); in RebootOrShutdown()
61 g_powerMgrClient.ShutDownDevice(std::string(reason)); in RebootOrShutdown()
162 char reason[REASON_MAX] = {0}; in WakeupDevice() local
164 status = napi_get_value_string_utf8(env, args[0], reason, REASON_MAX - 1, &reasonLen); in WakeupDevice()
166 POWER_HILOGE(FEATURE_WAKEUP, "Get wakeup reason failed"); in WakeupDevice()
169 POWER_HILOGD(FEATURE_WAKEUP, "Wakeup type: APPLICATION, reason: %{public}s", reason); in WakeupDevice()
[all …]
/base/request/request/services/src/manage/scheduler/
Dsql.rs16 use crate::task::reason::Reason;
20 …"UPDATE request_task SET state = {}, reason = {} where task_id = {} AND (state = {} OR state = {} … in start_task()
22 Reason::RunningTaskMeetLimits.repr, in start_task()
34 …"UPDATE request_task SET state = {}, reason = {} where task_id = {} AND (state = {} OR state = {} … in pause_task()
36 Reason::UserOperation.repr, in pause_task()
46 …"UPDATE request_task SET state = {}, reason = {} where task_id = {} AND (state = {} OR state = {} … in stop_task()
48 Reason::UserOperation.repr, in stop_task()
58 "UPDATE request_task SET state = {}, reason = {} where task_id = {}", in remove_task()
60 Reason::UserOperation.repr, in remove_task()
69 …INTEGER, metered INTEGER, roaming INTEGER, ctime INTEGER, mtime INTEGER, reason INTEGER, gauge INT…
[all …]
/base/sensors/sensor/test/unittest/interfaces/js/sensor/
Dconfig.json19 "reason": "", string
29 "reason": "need user ohos.permission.ACTIVITY_MOTION", string
39 "reason": "", string
49 "reason": "user ohos.permission.GRANT_SENSITIVE_PERMISSIONS" string
53 "reason": "user ohos.permission.REVOKE_SENSITIVE_PERMISSIONS" string
/base/powermgr/power_manager/services/native/src/actions/default/
Ddevice_power_action.cpp31 void DevicePowerAction::Reboot(const std::string& reason) in Reboot() argument
33 std::string rebootReason = Updater(reason); in Reboot()
38 void DevicePowerAction::Shutdown(const std::string& reason) in Shutdown() argument
44 std::string DevicePowerAction::Updater(const std::string& reason) in Updater() argument
46 return (reason.find(UPDATER_CMD) != std::string::npos) ? UPDATER_CMD : REBOOT_CMD; in Updater()
/base/powermgr/display_manager/state_manager/service/native/src/
Dscreen_controller.cpp100 bool ScreenController::UpdateState(DisplayState state, uint32_t reason) in UpdateState() argument
102 …EAT_STATE, "[UL_POWER] UpdateState, state=%{public}u, current state=%{public}u, reason=%{public}u", in UpdateState()
103 static_cast<uint32_t>(state), static_cast<uint32_t>(state_), reason); in UpdateState()
104 if (reason != static_cast<uint32_t> in UpdateState()
119 if (action_->EnableSkipSetDisplayState(reason)) { in UpdateState()
120 OnStateChanged(state, reason); in UpdateState()
123 bind(&ScreenController::OnStateChanged, this, placeholders::_1, reason); in UpdateState()
138 if (IsNeedSkipNextProc(reason)) { in UpdateState()
140 … "Need interrupt next process when updating state because of reason = %{public}d", reason); in UpdateState()
146 stateChangeReason_ = reason; in UpdateState()
[all …]
/base/powermgr/power_manager/test/unittest/src/
Ddevice_state_action_native_test.cpp62 StateChangeReason reason = StateChangeReason::STATE_CHANGE_REASON_INIT; variable
63 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);
66 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);
69 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);
72 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);
74 deviceStateAction->SetDisplayState(DisplayState::DISPLAY_OFF, reason);
75 deviceStateAction->SetDisplayState(DisplayState::DISPLAY_ON, reason);
/base/request/request/test/unittest/js_test/requestQueryTaskTest/entry/src/main/
Dmodule.json48 "reason": "$string:permission_reason", string
56 "reason": "$string:permission_reason", string
64 "reason":"need use ohos.permission.INTERNET." string
67 "reason": "need use ohos.permission.WRITE_MEDIA", string
76 "reason": "need use ohos.permission.WRITE_MEDIA", string
/base/request/request/test/unittest/js_test/requestAgentTaskTest/entry/src/main/
Dmodule.json48 "reason": "$string:permission_reason", string
56 "reason": "$string:permission_reason", string
64 "reason":"need use ohos.permission.INTERNET." string
67 "reason": "need use ohos.permission.WRITE_MEDIA", string
76 "reason": "need use ohos.permission.WRITE_MEDIA", string
/base/startup/hvb/
DOAT.xml32 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
33 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
47 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
48 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
52 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
53 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
57 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
58 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
62 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
63 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
/base/security/selinux_adapter/
DOAT.xml33 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
34 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
48 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
49 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
53 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
54 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
58 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
59 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
63 …<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan result…
64 …<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering sc…
/base/powermgr/power_manager/services/native/src/
Dpower_state_machine.cpp158 …POWER_HILOGE(FEATURE_POWER_STATE, "Dlopen GetMovementState failed, reason : %{public}s", dlerror()… in IsMovementStateOn()
165 … POWER_HILOGE(FEATURE_POWER_STATE, "GetMovementState is null, reason : %{public}s", dlerror()); in IsMovementStateOn()
177 bool PowerStateMachine::CanTransitTo(PowerState to, StateChangeReason reason) in CanTransitTo() argument
184 if ((reason == StateChangeReason::STATE_CHANGE_REASON_DOUBLE_CLICK || in CanTransitTo()
185 reason == StateChangeReason::STATE_CHANGE_REASON_PICKUP) && to == PowerState::AWAKE) { in CanTransitTo()
201 bool isAllowed = (!allowMapByReason_.count(reason) || in CanTransitTo()
202 …(allowMapByReason_[reason].count(currentState_) && allowMapByReason_[reason][currentState_].count(… in CanTransitTo()
223 …e_shared<StateController>(PowerState::AWAKE, shared_from_this(), [this](StateChangeReason reason) { in EmplaceAwake() argument
224 …WER_HILOGD(FEATURE_POWER_STATE, "[UL_POWER] StateController_AWAKE lambda start, reason=%{public}s", in EmplaceAwake()
225 PowerUtils::GetReasonTypeString(reason).c_str()); in EmplaceAwake()
[all …]
/base/request/request/services/src/manage/
Dmod.rs48 use crate::task::reason::Reason;
98 assert_eq!(task_into(task_id).common_data.reason, Reason::Default.repr); in ut_manager_task_state_and_reason()
106 task_into(task_id).common_data.reason, in ut_manager_task_state_and_reason()
107 Reason::RunningTaskMeetLimits.repr in ut_manager_task_state_and_reason()
116 task_into(task_id).common_data.reason, in ut_manager_task_state_and_reason()
117 Reason::UserOperation.repr in ut_manager_task_state_and_reason()
126 task_into(task_id).common_data.reason, in ut_manager_task_state_and_reason()
127 Reason::RunningTaskMeetLimits.repr in ut_manager_task_state_and_reason()
136 task_into(task_id).common_data.reason, in ut_manager_task_state_and_reason()
137 Reason::UserOperation.repr in ut_manager_task_state_and_reason()
[all …]

12345678910>>...27