Home
last modified time | relevance | path

Searched refs:priority (Results 1 - 25 of 142) sorted by relevance

123456

/base/notification/eventhandler/interfaces/inner_api/
H A Devent_handler.h43 TaskOptions(std::string dfxName, int64_t delayTime, EventQueue::Priority priority, uintptr_t taskId) in TaskOptions()
44 : dfxName_(dfxName), delayTime_(delayTime), priority_(priority), taskId_(taskId) {} in TaskOptions()
78 * @param priority Priority of the event queue for this event.
81 bool SendEvent(InnerEvent::Pointer &event, int64_t delayTime = 0, Priority priority = Priority::LOW);
88 * @param priority Priority of the event queue for this event.
91 bool SendTimingEvent(InnerEvent::Pointer &event, int64_t taskTime, Priority priority = Priority::LOW);
97 * @param priority Priority of the event queue for this event.
100 inline bool SendEvent(InnerEvent::Pointer &event, Priority priority) in SendEvent() argument
102 return SendEvent(event, 0, priority); in SendEvent()
110 * @param priority Priorit
155 SendEvent(uint32_t innerEventId, Priority priority, const Caller &caller = {}) SendEvent() argument
479 PostTask(const Callback &callback, Priority priority, const Caller &caller = {}) PostTask() argument
614 SendSyncEvent(uint32_t innerEventId, Priority priority, const Caller &caller = {}) SendSyncEvent() argument
720 SendTimingEvent(InnerEvent::Pointer &&event, int64_t taskTime, Priority priority) SendTimingEvent() argument
761 SendTimingEvent(uint32_t innerEventId, int64_t taskTime, Priority priority, const Caller &caller = {}) SendTimingEvent() argument
[all...]
/base/powermgr/power_manager/frameworks/native/shutdown/
H A Dshutdown_client.cpp33 const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback()
36 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback()
46 const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback()
49 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback()
59 const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback()
62 proxy_->RegisterShutdownCallback(callback, priority); in RegisterShutdownCallback()
32 RegisterShutdownCallback( const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) RegisterShutdownCallback() argument
45 RegisterShutdownCallback( const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) RegisterShutdownCallback() argument
58 RegisterShutdownCallback( const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) RegisterShutdownCallback() argument
/base/update/updater/services/script/script_instruction/
H A Dscript_loadscript.cpp35 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/
H A Dshutdown_stub_delegator.cpp63 uint32_t priority; in RegisterTakeOverShutdownCallback() local
65 RETURN_IF_READ_PARCEL_FAILED_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 RETURN_IF_READ_PARCEL_FAILED_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 RETURN_IF_READ_PARCEL_FAILED_WITH_RET(data, Uint32, priority, E_READ_PARCEL_ERROR); in RegisterSyncShutdownCallback()
113 stub_.RegisterShutdownCallback(callback, static_cast<ShutdownPriority>(priority)); in RegisterSyncShutdownCallback()
H A Dshutdown_proxy_delegator.h34 void RegisterShutdownCallback(const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority);
37 void RegisterShutdownCallback(const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority);
39 void RegisterShutdownCallback(const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority);
H A Dshutdown_proxy_delegator.cpp24 const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback()
37 RETURN_IF_WRITE_PARCEL_FAILED_NO_RET(data, Uint32, static_cast<uint32_t>(priority)); in RegisterShutdownCallback()
70 const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback()
83 RETURN_IF_WRITE_PARCEL_FAILED_NO_RET(data, Uint32, static_cast<uint32_t>(priority)); in RegisterShutdownCallback()
116 const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) in RegisterShutdownCallback()
129 RETURN_IF_WRITE_PARCEL_FAILED_NO_RET(data, Uint32, static_cast<uint32_t>(priority)); in RegisterShutdownCallback()
23 RegisterShutdownCallback( const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) RegisterShutdownCallback() argument
69 RegisterShutdownCallback( const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) RegisterShutdownCallback() argument
115 RegisterShutdownCallback( const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) RegisterShutdownCallback() argument
/base/telephony/core_service/utils/common/include/
H A Dtel_event_handler.h73 * @param priority Priority of the event queue for this event.
76 bool SendEvent(AppExecFwk::InnerEvent::Pointer &event, int64_t delayTime = 0, Priority priority = Priority::LOW);
89 * @param priority Priority of the event queue for this event.
92 inline bool SendEvent(AppExecFwk::InnerEvent::Pointer &event, Priority priority) in SendEvent() argument
94 return SendEvent(event, 0, priority); in SendEvent()
102 * @param priority Priority of the event queue for this event.
106 AppExecFwk::EventQueue::Priority priority = Priority::LOW) in SendEvent()
108 return SendEvent(event, delayTime, priority); in SendEvent()
129 * @param priority Priority of the event queue for this event.
133 uint32_t innerEventId, int64_t delayTime = 0, AppExecFwk::EventQueue::Priority priority in SendEvent()
145 SendEvent(uint32_t innerEventId, Priority priority) SendEvent() argument
[all...]
/base/update/updater/services/script/script_manager/
H A Dscript_managerImpl.cpp206 int32_t ScriptManagerImpl::ExecuteScript(int32_t priority) in ExecuteScript() argument
208 if (priority >= MAX_PRIORITY || priority < 0) { in ExecuteScript()
209 USCRIPT_LOGE("ExecuteScript priority not support %d", priority); in ExecuteScript()
210 UPDATER_LAST_WORD(USCRIPT_INVALID_PRIORITY, priority); in ExecuteScript()
219 if (scriptFiles_[priority].size() == 0) { in ExecuteScript()
228 task.workSize = (static_cast<int32_t>(scriptFiles_[priority].size())); in ExecuteScript()
230 for (size_t i = static_cast<size_t>(iter); i < scriptFiles_[priority].size(); in ExecuteScript()
232 ret = ExtractAndExecuteScript(manager, scriptFiles_[priority][ in ExecuteScript()
257 AddScript(const std::string &scriptName, int32_t priority) AddScript() argument
[all...]
/base/notification/eventhandler/frameworks/eventhandler/src/
H A Devent_queue_ffrt.cpp34 ffrt_inner_queue_priority_t TransferInnerPriority(EventQueue::Priority priority) in TransferInnerPriority() argument
37 switch (priority) { in TransferInnerPriority()
121 void EventQueueFFRT::Insert(InnerEvent::Pointer &event, Priority priority, EventInsertType insertType) in Insert() argument
123 InsertEvent(event, priority, false, insertType); in Insert()
380 Priority priority = static_cast<Priority>(i); in IsQueueEmpty() local
381 ffrt_inner_queue_priority_t innerPriority = TransferInnerPriority(priority); in IsQueueEmpty()
403 Priority priority = static_cast<Priority>(i); in DumpCurrentQueueSize() local
404 ffrt_inner_queue_priority_t innerPriority = TransferInnerPriority(priority); in DumpCurrentQueueSize()
445 void EventQueueFFRT::InsertSyncEvent(InnerEvent::Pointer &event, Priority priority, EventInsertType insertType) in InsertSyncEvent() argument
447 InsertEvent(event, priority, tru in InsertSyncEvent()
450 InsertEvent(InnerEvent::Pointer &event, Priority priority, bool syncWait, EventInsertType insertType) InsertEvent() argument
485 SubmitEventAtEnd(InnerEvent::Pointer &event, Priority priority, bool syncWait, const std::string &taskName, std::unique_lock<ffrt::mutex> &lock) SubmitEventAtEnd() argument
517 SubmitEventAtFront(InnerEvent::Pointer &event, Priority priority, bool syncWait, const std::string &taskName, std::unique_lock<ffrt::mutex> &lock) SubmitEventAtFront() argument
559 AddFileDescriptorListener(int32_t fileDescriptor, uint32_t events, const std::shared_ptr<FileDescriptorListener> &listener, const std::string &taskName, Priority priority) AddFileDescriptorListener() argument
594 AddFileDescriptorByFd(int32_t fileDescriptor, uint32_t events, const std::string &taskName, const std::shared_ptr<FileDescriptorListener>& listener, EventQueue::Priority priority) AddFileDescriptorByFd() argument
665 HandleFileDescriptorEvent(int32_t fileDescriptor, uint32_t events, const std::string &taskName, Priority priority) HandleFileDescriptorEvent() argument
[all...]
/base/notification/eventhandler/frameworks/test/moduletest/
H A Devent_handler_send_event_module_test.cpp25 * Function: Send an event with default priority, and then check the processed result.
27 * @param priority Priority of event.
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()
47 * Function: Send an event with HIGH or IMMEDIATE priority, and chen check the processed result.
48 * @param priority Priority of event.
50 void SendEventWithPriority(EventQueue::Priority priority) in SendEventWithPriority() argument
60 if (priority == EventQueue::Priority::HIGH) { in SendEventWithPriority()
66 if (priority in SendEventWithPriority()
83 SendEventWithPriorityByEventId(EventQueue::Priority priority) SendEventWithPriorityByEventId() argument
121 SendEventWithSharedOrWeakPtr( const std::shared_ptr<MyEventHandler> &handler, EventQueue::Priority priority, const T &ptr) SendEventWithSharedOrWeakPtr() argument
143 SendEventWithUniquePtr( const std::shared_ptr<MyEventHandler> &handler, EventQueue::Priority priority, bool isRValue = false) SendEventWithUniquePtr() argument
188 SendEventWithSmartPtr(SmartPointerType smartPointerType, EventQueue::Priority priority) SendEventWithSmartPtr() argument
[all...]
/base/powermgr/power_manager/interfaces/inner_api/native/include/shutdown/
H A Dshutdown_client.h42 * Callbacks are executed in order of highest to lowest priority.
45 * @param priority Change the priority of execution.
48 const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority = ShutdownPriority::DEFAULT);
60 * Callbacks are executed in order of highest to lowest priority.
63 * @param priority Change the priority of execution.
66 const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority = ShutdownPriority::DEFAULT);
78 * Callbacks are executed in order of highest to lowest priority.
81 * @param priority Chang
[all...]
H A Dishutdown_client.h29 const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) = 0;
33 const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) = 0;
36 const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) = 0;
/base/notification/eventhandler/frameworks/eventhandler/include/
H A Devent_queue_ffrt.h37 * Insert an event into event queue with different priority.
46 LOCAL_API void Insert(InnerEvent::Pointer &event, Priority priority = Priority::LOW,
147 LOCAL_API void InsertSyncEvent(InnerEvent::Pointer &event, Priority priority = Priority::LOW,
167 Priority priority = Priority::HIGH) override;
180 const std::shared_ptr<FileDescriptorListener>& listener, EventQueue::Priority priority);
209 Priority priority);
215 LOCAL_API void InsertEvent(InnerEvent::Pointer &event, Priority priority = Priority::LOW, bool syncWait = false,
217 LOCAL_API void SubmitEventAtEnd(InnerEvent::Pointer &event, Priority priority, bool syncWait,
219 LOCAL_API void SubmitEventAtFront(InnerEvent::Pointer &event, Priority priority, bool syncWait,
H A Dio_waiter.h36 FileDescriptorInfo(std::string taskName, EventQueue::Priority priority, in FileDescriptorInfo() argument
37 std::shared_ptr<FileDescriptorListener>listener): taskName_(taskName), priority_(priority), in FileDescriptorInfo()
48 EventQueue::Priority priority)>;
88 const std::shared_ptr<FileDescriptorListener>& listener, EventQueue::Priority priority) = 0;
/base/update/updateservice/services/startup/model/include/
H A Dschedule_task.h29 TaskPriority priority = TaskPriority::LOW; member in OHOS::UpdateEngine::final
52 return priority == other.priority && minDelayTime == other.minDelayTime && in operator ==()
61 .append("priority:").append(std::to_string(CAST_INT(priority))).append(", ") in ToString()
/base/update/updater/test/unittest/script/
H A Dscript_unittest.cpp240 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/web/webview/test/unittest/ohos_adapter/location_proxy_adapter_test/
H A Dlocation_proxy_adapter_test.cpp111 int32_t priority = -1; in HWTEST_F() local
112 requestConfigImpl->SetPriority(priority); in HWTEST_F()
113 priority = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_UNSET; in HWTEST_F()
114 requestConfigImpl->SetPriority(priority); in HWTEST_F()
115 priority = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_ACCURACY; in HWTEST_F()
116 requestConfigImpl->SetPriority(priority); in HWTEST_F()
117 priority = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_LOW_POWER; in HWTEST_F()
118 requestConfigImpl->SetPriority(priority); in HWTEST_F()
119 priority = OHOS::NWeb::LocationRequestConfig::Priority::PRIORITY_FAST_FIRST_FIX; in HWTEST_F()
120 requestConfigImpl->SetPriority(priority); in HWTEST_F()
[all...]
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_location_request_config_impl.cpp51 void ArkLocationRequestConfigImpl::SetPriority(int32_t priority) in SetPriority() argument
53 real_->SetPriority(priority); in SetPriority()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_location_request_config_wrapper.cpp44 void ArkLocationRequestConfigWrapper::SetPriority(int32_t priority) in SetPriority() argument
46 ctocpp_->SetPriority(priority); in SetPriority()
/base/powermgr/power_manager/services/native/src/shutdown/
H A Dshutdown_controller.cpp212 void ShutdownController::AddCallback(const sptr<ITakeOverShutdownCallback>& callback, ShutdownPriority priority) in AddCallback() argument
215 takeoverShutdownCallbackHolder_->AddCallback(callback->AsObject(), priority); in AddCallback()
217 "takeover shutdown callback added, priority=%{public}u, pid=%{public}d, uid=%{public}d", priority, in AddCallback()
221 void ShutdownController::AddCallback(const sptr<IAsyncShutdownCallback>& callback, ShutdownPriority priority) in AddCallback() argument
224 asyncShutdownCallbackHolder_->AddCallback(callback->AsObject(), priority); in AddCallback()
226 "async shutdown callback added, priority=%{public}u, pid=%{public}d, uid=%{public}d", priority, in AddCallback()
230 void ShutdownController::AddCallback(const sptr<ISyncShutdownCallback>& callback, ShutdownPriority priority) in AddCallback() argument
233 syncShutdownCallbackHolder_->AddCallback(callback->AsObject(), priority); in AddCallback()
[all...]
H A Dshutdown_controller.h49 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/notification/distributed_notification_service/frameworks/test/moduletest/mock/
H A Dmock_event_handler.cpp32 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/
H A Dmock_event_handler.cpp32 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/ans/test/unittest/mock/
H A Dmock_event_handler.cpp32 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/
H A Dmock_event_handler.cpp32 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

Completed in 12 milliseconds

123456