| /base/request/request/services/src/task/ |
| D | reason.rs | 14 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 …]
|
| D | notify.rs | 18 use super::reason::Reason; 66 pub(crate) reason: Reason, field 74 reason: Reason, in create_each_file_status() argument 78 let code = if i >= index { reason } else { Reason::Default }; in create_each_file_status() 81 reason: code, in create_each_file_status()
|
| /base/powermgr/power_manager/services/native/src/wakeup_action/ |
| D | wakeup_action_controller.cpp | 50 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/ |
| D | sql.rs | 19 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/request/request/frameworks/cj/ffi/src/ |
| D | cj_request_common.cpp | 35 using OHOS::Request::Reason; 216 out.reason = MallocCString(in->reason); in Convert2CResponse() 258 uint32_t Convert2Broken(Reason code) in Convert2Broken() 260 static std::map<Reason, Faults> InnerCodeToBroken = { in Convert2Broken() 261 {Reason::REASON_OK, Faults::OTHERS}, in Convert2Broken() 262 {Reason::TASK_SURVIVAL_ONE_MONTH, Faults::OTHERS}, in Convert2Broken() 263 {Reason::WAITTING_NETWORK_ONE_DAY, Faults::OTHERS}, in Convert2Broken() 264 {Reason::STOPPED_NEW_FRONT_TASK, Faults::OTHERS}, in Convert2Broken() 265 {Reason::RUNNING_TASK_MEET_LIMITS, Faults::OTHERS}, in Convert2Broken() 266 {Reason::USER_OPERATION, Faults::OTHERS}, in Convert2Broken() [all …]
|
| /base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest011/ |
| D | test_compose_rule.json | 6 "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/actions/default/ |
| D | device_power_action.cpp | 32 void DevicePowerAction::Reboot(const std::string& reason) in Reboot() argument 35 auto ret = PowerExtIntfWrapper::Instance().GetRebootCommand(reason, rebootCmd); in Reboot() 37 rebootCmd = Updater(reason); in Reboot() 40 DoRebootExt(rebootCmd.c_str(), reason.c_str()); in Reboot() 43 void DevicePowerAction::Shutdown(const std::string& reason) in Shutdown() argument 46 DoRebootExt(SHUTDOWN_CMD.c_str(), reason.c_str()); in Shutdown() 49 std::string DevicePowerAction::Updater(const std::string& reason) in Updater() argument 51 return (reason.find(UPDATER_CMD) != std::string::npos) ? UPDATER_CMD : REBOOT_CMD; in Updater()
|
| /base/powermgr/power_manager/services/native/src/suspend/ |
| D | suspend_controller.cpp | 163 … monitor->RegisterListener([this](SuspendDeviceType reason, uint32_t action, uint32_t delay) { in Init() argument 164 this->ControlListener(reason, action, delay); in Init() 180 void SuspendController::ExecSuspendMonitorByReason(SuspendDeviceType reason) in ExecSuspendMonitorByReason() argument 182 FFRTUtils::SubmitTask([this, reason] { in ExecSuspendMonitorByReason() 184 if (monitorMap_.find(reason) != monitorMap_.end()) { in ExecSuspendMonitorByReason() 185 auto monitor = monitorMap_[reason]; in ExecSuspendMonitorByReason() 237 POWER_HILOGI(FEATURE_SUSPEND, "UpdateFunc CreateMonitor[%{public}u] reason=%{public}d", in UpdateSuspendSources() 240 … monitor->RegisterListener([this](SuspendDeviceType reason, uint32_t action, uint32_t delay) { in UpdateSuspendSources() argument 241 this->ControlListener(reason, action, delay); in UpdateSuspendSources() 394 void SuspendController::SuspendWhenScreenOff(SuspendDeviceType reason, uint32_t action, uint32_t de… in RegisterSettingsObserver() argument [all …]
|
| /base/hiviewdfx/hiview/ |
| D | kernel_vendor.yaml | 40 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/ |
| D | power_manage.h | 55 * @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/ |
| D | module.json | 47 "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/ |
| D | OAT.xml | 32 …<!--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/powermgr/power_manager/interfaces/inner_api/native/include/ |
| D | power_mgr_client.h | 40 * @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/ |
| D | OAT.xml | 32 …<!--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/ |
| D | rustpanic_listener.cpp | 38 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/ |
| D | power.cpp | 50 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() 163 char reason[REASON_MAX] = {0}; in WakeupDevice() local 165 status = napi_get_value_string_utf8(env, args[0], reason, REASON_MAX - 1, &reasonLen); in WakeupDevice() 167 POWER_HILOGE(FEATURE_WAKEUP, "Get wakeup reason failed"); in WakeupDevice() 170 POWER_HILOGD(FEATURE_WAKEUP, "Wakeup type: APPLICATION, reason: %{public}s", reason); in WakeupDevice() [all …]
|
| /base/request/request/services/src/manage/scheduler/ |
| D | sql.rs | 16 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/ |
| D | config.json | 19 "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/display_manager/state_manager/service/native/src/ |
| D | screen_controller.cpp | 100 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/ |
| D | device_state_action_native_test.cpp | 62 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/ |
| D | module.json | 48 "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/ |
| D | module.json | 48 "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/ |
| D | OAT.xml | 32 …<!--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/asset/services/core_service/src/common_event/ |
| D | start_event.rs | 74 pub(crate) fn handle_common_event(reason: SystemAbilityOnDemandReason) { in handle_common_event() 75 let reason_name: String = reason.name; in handle_common_event() 77 let want = reason.extra_data.want(); in handle_common_event() 80 let want = reason.extra_data.want(); in handle_common_event() 84 let _ = delete_user_de_dir(reason.extra_data.code); in handle_common_event() 85 listener::notify_on_user_removed(reason.extra_data.code); in handle_common_event() 89 let want = reason.extra_data.want(); in handle_common_event() 124 listener::on_user_unlocked(reason.extra_data.code); in handle_common_event() 128 logi!("[INFO]On user -{}- pin created.", reason.extra_data.code); in handle_common_event() 129 listener::on_user_unlocked(reason.extra_data.code); in handle_common_event()
|
| /base/security/selinux_adapter/ |
| D | OAT.xml | 33 …<!--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…
|