| /base/notification/eventhandler/interfaces/inner_api/ |
| D | event_handler.h | 68 …bool SendEvent(InnerEvent::Pointer &event, int64_t delayTime = 0, Priority priority = Priority::LO… 78 …bool SendTimingEvent(InnerEvent::Pointer &event, int64_t taskTime, Priority priority = Priority::L… 87 inline bool SendEvent(InnerEvent::Pointer &event, Priority priority) in SendEvent() argument 89 return SendEvent(event, 0, priority); in SendEvent() 100 …inline bool SendEvent(InnerEvent::Pointer &&event, int64_t delayTime = 0, Priority priority = Prio… 102 return SendEvent(event, delayTime, priority); 129 Priority priority = Priority::LOW, const Caller &caller = {}) 131 return SendEvent(InnerEvent::Get(innerEventId, 0, caller), delayTime, priority); 142 inline bool SendEvent(uint32_t innerEventId, Priority priority, const Caller &caller = {}) 144 return SendEvent(InnerEvent::Get(innerEventId, 0, caller), 0, priority); [all …]
|
| /base/powermgr/power_manager/frameworks/native/shutdown/ |
| D | shutdown_client.cpp | 33 const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback() argument 36 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback() 46 const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback() argument 49 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback() 59 const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback() argument 62 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback()
|
| /base/notification/eventhandler/frameworks/test/moduletest/ |
| D | event_handler_send_event_module_test.cpp | 29 void SendAndCheck(int64_t delayTime, EventQueue::Priority priority) in SendAndCheck() argument 34 bool lValueResult = handler->SendEvent(event, delayTime, priority); in SendAndCheck() 37 bool rValueResult = handler->SendEvent(InnerEvent::Get(RUN_EVENT_ID), delayTime, priority); in SendAndCheck() 50 void SendEventWithPriority(EventQueue::Priority priority) in SendEventWithPriority() argument 60 if (priority == EventQueue::Priority::HIGH) { in SendEventWithPriority() 66 if (priority == EventQueue::Priority::IMMEDIATE) { in SendEventWithPriority() 83 void SendEventWithPriorityByEventId(EventQueue::Priority priority) in SendEventWithPriorityByEventId() argument 94 if (priority == EventQueue::Priority::LOW) { in SendEventWithPriorityByEventId() 97 if (priority == EventQueue::Priority::HIGH) { in SendEventWithPriorityByEventId() 100 if (priority == EventQueue::Priority::IMMEDIATE) { in SendEventWithPriorityByEventId() [all …]
|
| /base/update/updater/services/script/script_manager/ |
| D | script_managerImpl.cpp | 205 int32_t ScriptManagerImpl::ExecuteScript(int32_t priority) in ExecuteScript() argument 207 if (priority >= MAX_PRIORITY || priority < 0) { in ExecuteScript() 208 USCRIPT_LOGE("ExecuteScript priority not support %d", priority); in ExecuteScript() 209 UPDATER_LAST_WORD(USCRIPT_INVALID_PRIORITY, priority); in ExecuteScript() 218 if (scriptFiles_[priority].size() == 0) { in ExecuteScript() 227 task.workSize = scriptFiles_[priority].size(); in ExecuteScript() 229 for (size_t i = static_cast<size_t>(iter); i < scriptFiles_[priority].size(); in ExecuteScript() 231 ret = ExtractAndExecuteScript(manager, scriptFiles_[priority][i]); in ExecuteScript() 233 USCRIPT_LOGE("Failed to execute script %s", scriptFiles_[priority][i].c_str()); in ExecuteScript() 256 int32_t ScriptManagerImpl::AddScript(const std::string &scriptName, int32_t priority) in AddScript() argument [all …]
|
| /base/update/updater/services/script/script_instruction/ |
| D | script_loadscript.cpp | 35 int32_t priority = 0; in Execute() local 42 ret = context.GetParam(1, priority); in Execute() 48 USCRIPT_LOGI("ScriptLoadScript %s priority:%d", scriptName.c_str(), priority); in Execute() 49 return helper->AddScript(scriptName, priority); in Execute()
|
| /base/powermgr/power_manager/services/zidl/src/shutdown/ |
| D | shutdown_stub_delegator.cpp | 63 uint32_t priority; in RegisterTakeOverShutdownCallback() local 65 READ_PARCEL_WITH_RET(data, Uint32, priority, E_READ_PARCEL_ERROR); in RegisterTakeOverShutdownCallback() 69 stub_.RegisterShutdownCallback(callback, static_cast<ShutdownPriority>(priority)); in RegisterTakeOverShutdownCallback() 85 uint32_t priority; in RegisterAsyncShutdownCallback() local 87 READ_PARCEL_WITH_RET(data, Uint32, priority, E_READ_PARCEL_ERROR); in RegisterAsyncShutdownCallback() 91 stub_.RegisterShutdownCallback(callback, static_cast<ShutdownPriority>(priority)); in RegisterAsyncShutdownCallback() 107 uint32_t priority; in RegisterSyncShutdownCallback() local 109 READ_PARCEL_WITH_RET(data, Uint32, priority, E_READ_PARCEL_ERROR); in RegisterSyncShutdownCallback() 113 stub_.RegisterShutdownCallback(callback, static_cast<ShutdownPriority>(priority)); in RegisterSyncShutdownCallback()
|
| D | shutdown_proxy_delegator.h | 34 …gisterShutdownCallback(const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority); 37 … RegisterShutdownCallback(const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority); 39 …d RegisterShutdownCallback(const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority);
|
| D | shutdown_proxy_delegator.cpp | 24 const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback() argument 37 WRITE_PARCEL_NO_RET(data, Uint32, static_cast<uint32_t>(priority)); in RegisterShutdownCallback() 70 const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback() argument 83 WRITE_PARCEL_NO_RET(data, Uint32, static_cast<uint32_t>(priority)); in RegisterShutdownCallback() 116 const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback() argument 129 WRITE_PARCEL_NO_RET(data, Uint32, static_cast<uint32_t>(priority)); in RegisterShutdownCallback()
|
| /base/telephony/core_service/utils/common/include/ |
| D | tel_event_handler.h | 76 …bool SendEvent(AppExecFwk::InnerEvent::Pointer &event, int64_t delayTime = 0, Priority priority = … 92 inline bool SendEvent(AppExecFwk::InnerEvent::Pointer &event, Priority priority) in SendEvent() argument 94 return SendEvent(event, 0, priority); in SendEvent() 106 AppExecFwk::EventQueue::Priority priority = Priority::LOW) 108 return SendEvent(event, delayTime, priority); 133 …uint32_t innerEventId, int64_t delayTime = 0, AppExecFwk::EventQueue::Priority priority = Priority… 135 return SendEvent(AppExecFwk::InnerEvent::Get(innerEventId, 0), delayTime, priority); 145 inline bool SendEvent(uint32_t innerEventId, Priority priority) in SendEvent() argument 147 return SendEvent(AppExecFwk::InnerEvent::Get(innerEventId, 0), 0, priority); in SendEvent()
|
| D | tel_event_queue.h | 28 void Submit(AppExecFwk::InnerEvent::Pointer &event, AppExecFwk::EventQueue::Priority priority); 39 …sertEventsInner(AppExecFwk::InnerEvent::Pointer &event, AppExecFwk::EventQueue::Priority priority); 44 uint32_t ToTelPriority(AppExecFwk::EventQueue::Priority priority);
|
| /base/powermgr/power_manager/interfaces/inner_api/native/include/shutdown/ |
| D | ishutdown_client.h | 29 const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) = 0; 33 const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) = 0; 36 const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) = 0;
|
| D | shutdown_client.h | 48 …const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority = ShutdownPriority::DEF… 66 …const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority = ShutdownPriority::DEFAUL… 84 …const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority = ShutdownPriority::DEFAULT…
|
| /base/update/updateservice/services/startup/model/include/ |
| D | schedule_task.h | 29 TaskPriority priority = TaskPriority::LOW; 52 return priority == other.priority && minDelayTime == other.minDelayTime && 61 .append("priority:").append(std::to_string(CAST_INT(priority))).append(", ") in ToString()
|
| /base/update/updater/test/unittest/script/ |
| D | script_unittest.cpp | 240 int32_t priority = SCRIPT_TEST_PRIORITY_NUM; in TestUscriptExecute() local 241 ret = manager->ExecuteScript(priority); in TestUscriptExecute() 244 priority = 0; in TestUscriptExecute() 245 ret = manager->ExecuteScript(priority); in TestUscriptExecute() 246 priority = 1; in TestUscriptExecute() 247 ret = manager->ExecuteScript(priority); in TestUscriptExecute() 248 priority = SCRIPT_TEST_LAST_PRIORITY; in TestUscriptExecute() 249 ret = manager->ExecuteScript(priority); in TestUscriptExecute()
|
| /base/powermgr/power_manager/services/native/src/shutdown/ |
| D | shutdown_controller.cpp | 173 …Controller::AddCallback(const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) in AddCallback() argument 176 takeoverShutdownCallbackHolder_->AddCallback(callback->AsObject(), priority); in AddCallback() 178 … "takeover shutdown callback added, priority=%{public}u, pid=%{public}d, uid=%{public}d", priority, in AddCallback() 182 …ownController::AddCallback(const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) in AddCallback() argument 185 asyncShutdownCallbackHolder_->AddCallback(callback->AsObject(), priority); in AddCallback() 187 … "async shutdown callback added, priority=%{public}u, pid=%{public}d, uid=%{public}d", priority, in AddCallback() 191 …downController::AddCallback(const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) in AddCallback() argument 194 syncShutdownCallbackHolder_->AddCallback(callback->AsObject(), priority); in AddCallback() 196 … "sync shutdown callback added, priority=%{public}u, pid=%{public}d, uid=%{public}d", priority, in AddCallback()
|
| D | shutdown_controller.h | 49 void AddCallback(const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority); 50 void AddCallback(const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority); 51 void AddCallback(const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority);
|
| /base/web/webview/test/unittest/ohos_adapter/location_proxy_adapter_test/ |
| D | location_proxy_adapter_test.cpp | 111 int32_t priority = -1; variable 112 requestConfigImpl->SetPriority(priority); 113 priority = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_UNSET; 114 requestConfigImpl->SetPriority(priority); 115 priority = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_ACCURACY; 116 requestConfigImpl->SetPriority(priority); 117 priority = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_LOW_POWER; 118 requestConfigImpl->SetPriority(priority); 119 priority = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_FAST_FIRST_FIX; 120 requestConfigImpl->SetPriority(priority);
|
| /base/notification/eventhandler/test/fuzztest/eventhandler_fuzzer/ |
| D | eventhandler_fuzzer.cpp | 76 AppExecFwk::EventQueue::Priority priority = AppExecFwk::EventQueue::Priority::LOW; in DoSomethingInterestingWithMyAPI() local 83 eventHandler.SendTimingEvent(event, taskTime, priority); in DoSomethingInterestingWithMyAPI() 85 eventHandler.SendEvent(event, taskTime, priority); in DoSomethingInterestingWithMyAPI() 86 eventHandler.SendSyncEvent(event, priority); in DoSomethingInterestingWithMyAPI()
|
| /base/hiviewdfx/hiview/base/event_pool/ |
| D | event_thread_pool.h | 32 TaskEvent(uint8_t priority, uint64_t targetTime, Task task, const std::string &name) in TaskEvent() argument 33 : priority_(priority), targetTime_(targetTime), task_(task), name_(name) in TaskEvent() 76 uint64_t delay = 0, uint8_t priority = Priority::IDLE_PRIORITY);
|
| /base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/ |
| D | extractandexecutescript_fuzzer.cpp | 170 int32_t priority = SCRIPT_TEST_PRIORITY_NUM; in TestUscriptExecute() local 171 ret = manager->ExecuteScript(priority); in TestUscriptExecute() 173 priority = 0; in TestUscriptExecute() 174 ret = manager->ExecuteScript(priority); in TestUscriptExecute() 176 priority = 1; in TestUscriptExecute() 177 ret = manager->ExecuteScript(priority); in TestUscriptExecute() 178 priority = SCRIPT_TEST_LAST_PRIORITY; in TestUscriptExecute() 179 ret = manager->ExecuteScript(priority); in TestUscriptExecute()
|
| /base/powermgr/power_manager/interfaces/inner_api/native/include/ |
| D | ipower_mgr.h | 66 SleepPriority priority = SleepPriority::DEFAULT) = 0; 80 const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) = 0; 84 const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) = 0; 87 const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) = 0;
|
| /base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
| D | mock_event_handler.cpp | 32 bool EventHandler::SendEvent(InnerEvent::Pointer &event, int64_t delayTime, Priority priority) in SendEvent() argument 39 bool EventHandler::SendTimingEvent(InnerEvent::Pointer &event, int64_t taskTime, Priority priority) in SendTimingEvent() argument 44 bool EventHandler::SendSyncEvent(InnerEvent::Pointer &event, Priority priority) in SendSyncEvent() argument
|
| /base/notification/distributed_notification_service/services/test/moduletest/mock/ |
| D | mock_event_handler.cpp | 32 bool EventHandler::SendEvent(InnerEvent::Pointer &event, int64_t delayTime, Priority priority) in SendEvent() argument 39 bool EventHandler::SendTimingEvent(InnerEvent::Pointer &event, int64_t taskTime, Priority priority) in SendTimingEvent() argument 44 bool EventHandler::SendSyncEvent(InnerEvent::Pointer &event, Priority priority) in SendSyncEvent() argument
|
| /base/notification/distributed_notification_service/services/distributed/test/unittest/mock/ |
| D | mock_event_handler.cpp | 32 bool EventHandler::SendEvent(InnerEvent::Pointer &event, int64_t delayTime, Priority priority) in SendEvent() argument 39 bool EventHandler::SendTimingEvent(InnerEvent::Pointer &event, int64_t taskTime, Priority priority) in SendTimingEvent() argument 44 bool EventHandler::SendSyncEvent(InnerEvent::Pointer &event, Priority priority) in SendSyncEvent() argument
|
| /base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
| D | mock_event_handler.cpp | 32 bool EventHandler::SendEvent(InnerEvent::Pointer &event, int64_t delayTime, Priority priority) in SendEvent() argument 39 bool EventHandler::SendTimingEvent(InnerEvent::Pointer &event, int64_t taskTime, Priority priority) in SendTimingEvent() argument 44 bool EventHandler::SendSyncEvent(InnerEvent::Pointer &event, Priority priority) in SendSyncEvent() argument
|