/ohos5.0/commonlibrary/utils_lite/include/ |
H A D | ohos_init.h | 70 void BOOT_##layer##priority##func() {func();} 72 #define LAYER_INITCALL(func, layer, clayer, priority) \ argument 74 __attribute__((section(".zinitcall." clayer #priority ".init"))) = func 104 #define CORE_INIT_PRI(func, priority) LAYER_INITCALL(func, core, "core", priority) argument 129 #define SYS_SERVICE_INIT_PRI(func, priority) LAYER_INITCALL(func, sys_service, "sys.service", prior… argument 154 #define SYS_FEATURE_INIT_PRI(func, priority) LAYER_INITCALL(func, sys_feature, "sys.feature", prior… argument 179 #define SYS_RUN_PRI(func, priority) LAYER_INITCALL(func, run, "run", priority) argument 203 #define SYSEX_SERVICE_INIT_PRI(func, priority) LAYER_INITCALL(func, app_service, "app.service", pri… argument 227 #define SYSEX_FEATURE_INIT_PRI(func, priority) LAYER_INITCALL(func, app_feature, "app.feature", pri… argument 252 #define APP_SERVICE_INIT_PRI(func, priority) LAYER_INITCALL(func, app_service, "app.service", prior… argument [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/eventhandler/ |
H A D | event_handler.h | 112 inline bool SendEvent(InnerEvent::Pointer &event, Priority priority) in SendEvent() argument 114 return SendEvent(event, 0, priority); in SendEvent() 127 return SendEvent(event, delayTime, priority); 163 inline bool SendEvent(uint32_t innerEventId, Priority priority) in SendEvent() argument 165 return SendEvent(InnerEvent::Get(innerEventId, 0), 0, priority); in SendEvent() 413 Priority priority = Priority::LOW, Caller caller = {}) 447 return PostTask(callback, caller.ToString(), 0, priority); 548 return SendSyncEvent(event, priority); 656 return PostSyncTask(callback, caller.ToString(), priority); 669 return SendTimingEvent(event, taskTime, priority); in SendTimingEvent() [all …]
|
/ohos5.0/base/notification/eventhandler/interfaces/inner_api/ |
H A D | event_handler.h | 100 inline bool SendEvent(InnerEvent::Pointer &event, Priority priority) in SendEvent() argument 102 return SendEvent(event, 0, priority); in SendEvent() 115 return SendEvent(event, delayTime, priority); 157 return SendEvent(InnerEvent::Get(innerEventId, 0, caller), 0, priority); 481 return PostTask(callback, std::string(), 0, priority, caller); 496 return PostTask(callback, std::string(), delayTime, priority, caller); 588 return SendSyncEvent(event, priority); 695 return SendSyncEvent(InnerEvent::Get(callback, name, caller), priority); 709 return PostSyncTask(callback, std::string(), priority, caller); 722 return SendTimingEvent(event, taskTime, priority); in SendTimingEvent() [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/interceptor/test/ |
H A D | event_interceptor_handler_test.cpp | 179 int32_t priority = 0; variable 203 int32_t priority = 0; variable 212 priority = 0; 236 int32_t priority = 0; variable 260 int32_t priority = 1; variable 269 priority = 2; 291 int32_t priority = 1; variable 300 priority = 0; 331 priority = 0; 384 priority = 2; [all …]
|
/ohos5.0/foundation/resourceschedule/memmgr/interface/innerkits/src/ |
H A D | mem_mgr_constant.cpp | 20 std::string GetReclaimPriorityString(int32_t priority) in GetReclaimPriorityString() argument 22 if (priority < RECLAIM_PRIORITY_SYSTEM || priority > RECLAIM_PRIORITY_UNKNOWN) { in GetReclaimPriorityString() 24 } else if (priority < RECLAIM_ONDEMAND_SYSTEM) { in GetReclaimPriorityString() 26 } else if (priority < RECLAIM_PRIORITY_KILLABLE_SYSTEM) { in GetReclaimPriorityString() 28 } else if (priority < RECLAIM_PRIORITY_FOREGROUND) { in GetReclaimPriorityString() 30 } else if (priority < RECLAIM_PRIORITY_VISIBLE) { in GetReclaimPriorityString() 32 } else if (priority < RECLAIM_PRIORITY_BG_SUSPEND_DELAY) { in GetReclaimPriorityString() 34 } else if (priority < RECLAIM_PRIORITY_BG_PERCEIVED) { in GetReclaimPriorityString() 36 } else if (priority < RECLAIM_PRIORITY_BG_DIST_DEVICE) { in GetReclaimPriorityString() 38 } else if (priority < RECLAIM_PRIORITY_BACKGROUND) { in GetReclaimPriorityString()
|
/ohos5.0/foundation/multimedia/image_framework/plugins/manager/src/framework/ |
H A D | plugin_metadata.h | 37 "priority":100, 54 "priority":100, 81 "priority":100, 108 "priority":100, 135 "priority":100, 162 "priority":100, 179 "priority":100, 206 "priority":100, 233 "priority":100, 260 "priority":100, [all …]
|
/ohos5.0/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_strategy_manager/ |
H A D | reclaim_strategy_manager.cpp | 160 void ReclaimStrategyManager::NotifyAccountPriorityChanged(int accountId, int priority) in NotifyAccountPriorityChanged() argument 171 handler_->PostImmediateTask([this, accountId, priority] { in NotifyAccountPriorityChanged() 172 this->HandleAccountPriorityChanged_(accountId, priority); in NotifyAccountPriorityChanged() 187 GetValidScore_(priority); in HandleAccountPriorityChanged_() 195 if (ratios == nullptr || !GetReclaimRatiosByScore_(priority, *ratios)) { in HandleAccountPriorityChanged_() 202 ret ? "succ" : "fail", accountId, priority, ratios->ToString().c_str()); in HandleAccountPriorityChanged_() 223 void ReclaimStrategyManager::GetValidScore_(int& priority) in GetValidScore_() argument 225 if (priority < RECLAIM_SCORE_MIN) { in GetValidScore_() 226 priority = RECLAIM_SCORE_MIN; in GetValidScore_() 227 } else if (priority > RECLAIM_SCORE_MAX) { in GetValidScore_() [all …]
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-basic-process-scheduler.md | 6 …chanism for tasks. The tasks with a higher priority are scheduled first, and the tasks with the sa… 17 …priority queue and thread priority queue for scheduling. The process priority ranges from 0 to 31,… 19 **Figure 1** Scheduling priority bucket queue 21  41 | LOS_SetProcessScheduler | Sets scheduling parameters, including the priority and scheduling polic…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-layout-constraints.md | 3 Layout constraints refer to constraints on the aspect ratio and display priority of components. 36 Sets the display priority for the component in the layout container. 48 …priority of the component in the layout container.<br>Default value: **1**<br>**NOTE**<br>This par… 127 priority: number = 0; 140 { text: '1\n(priority:2)', priority: 2 }, 141 { text: '2\n(priority:1)', priority: 1 }, 142 { text: '3\n(priority:3)', priority: 3 }, 143 { text: '4\n(priority:1)', priority: 1 }, 144 { text: '5\n(priority:2)', priority: 2 } 158 // Bind the display priority to the child component through displayPriority. [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/entity/ |
H A D | p2p_broadcast_receiver.cpp | 28 const std::string &name, ListenerPriority priority, BroadcastListener listener) in RegisterBroadcastListener() argument 36 actionListener.priority = priority; in RegisterBroadcastListener() 53 for (auto priority = static_cast<int32_t>(ListenerPriority::LISTENER_PRIORITY_HIGH); in DispatchWorkHandler() local 54 priority >= static_cast<int32_t>(ListenerPriority::LISTENER_PRIORITY_LOW); priority--) { in DispatchWorkHandler() 56 if (static_cast<int32_t>(listener.priority) == priority && listener.listener) { in DispatchWorkHandler()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/osal/src/ |
H A D | osal_thread.c | 101 uint16_t priority; in OsalThreadStart() local 120 if (param->priority == OSAL_THREAD_PRI_HIGHEST) { in OsalThreadStart() 121 priority = OSAL_PRIORITY_HIGHEST; in OsalThreadStart() 122 } else if (param->priority == OSAL_THREAD_PRI_HIGH) { in OsalThreadStart() 123 priority = OSAL_PRIORITY_HIGH; in OsalThreadStart() 124 } else if (param->priority == OSAL_THREAD_PRI_DEFAULT) { in OsalThreadStart() 125 priority = OSAL_PRIORITY_MIDDLE; in OsalThreadStart() 127 priority = OSAL_PRIORITY_LOW; in OsalThreadStart() 130 stTskInitParam.taskPrio = OS_TASK_PRIORITY_LOWEST - (priority - OS_PRIORITY_WIN); in OsalThreadStart() 135 HDF_LOGE("%s PRT_TaskCreate fail %u %u", __func__, ret, priority); in OsalThreadStart() [all …]
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/nnrt/ |
H A D | _model_config_v10.md | 22 | enum [Priority](_n_n_rt_v10.md#priority)[priority](#priority) | 计算任务的优先级,优先级详情请看[Priority](_n_n_r… 48 ### priority subsection 51 enum Priority ModelConfig::priority 55 计算任务的优先级,优先级详情请看[Priority](_n_n_rt_v10.md#priority)
|
H A D | _model_config_v20.md | 22 | enum [Priority](_n_n_rt_v20.md#priority)[priority](#priority) | 计算任务的优先级,优先级详情请看[Priority](_n_n_r… 59 ### priority subsection 62 enum Priority ModelConfig::priority 66 计算任务的优先级,优先级详情请看[Priority](_n_n_rt_v20.md#priority)
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/formatagentplugin/ |
H A D | imageformatagent.pluginmeta | 15 "priority":100, 32 "priority":100, 49 "priority":100, 66 "priority":100, 83 "priority":100, 100 "priority":100, 117 "priority":100, 134 "priority":100, 151 "priority":100,
|
/ohos5.0/base/notification/eventhandler/frameworks/test/moduletest/ |
H A D | event_handler_send_event_module_test.cpp | 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() 94 if (priority == EventQueue::Priority::LOW) { in SendEventWithPriorityByEventId() 97 if (priority == EventQueue::Priority::HIGH) { in SendEventWithPriorityByEventId() 100 if (priority == EventQueue::Priority::IMMEDIATE) { in SendEventWithPriorityByEventId() 125 if (priority == EventQueue::Priority::LOW) { in SendEventWithSharedOrWeakPtr() 128 if (priority == EventQueue::Priority::HIGH) { in SendEventWithSharedOrWeakPtr() 131 if (priority == EventQueue::Priority::IMMEDIATE) { in SendEventWithSharedOrWeakPtr() 149 switch (priority) { in SendEventWithUniquePtr() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-layout-constraints.md | 127 priority: number = 0; 140 { text: '1\n(priority:2)', priority: 2 }, 141 { text: '2\n(priority:1)', priority: 1 }, 142 { text: '3\n(priority:3)', priority: 3 }, 143 { text: '4\n(priority:1)', priority: 1 }, 144 { text: '5\n(priority:2)', priority: 2 } 165 .displayPriority(item.priority)
|
/ohos5.0/base/update/updater/services/script/script_manager/ |
H A D | script_managerImpl.cpp | 206 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][i]); in ExecuteScript() 260 if (priority < 0 || priority >= MAX_PRIORITY) { in AddScript() 261 USCRIPT_LOGE("Invalid priority %d", priority); in AddScript() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
H A D | osal_thread.c | 101 uint16_t priority; in OsalThreadStart() local 109 param->priority > OSAL_THREAD_PRI_HIGHEST) { in OsalThreadStart() 123 if (param->priority == OSAL_THREAD_PRI_HIGHEST) { in OsalThreadStart() 124 priority = OSAL_PRIORITY_HIGHEST; in OsalThreadStart() 125 } else if (param->priority == OSAL_THREAD_PRI_HIGH) { in OsalThreadStart() 126 priority = OSAL_PRIORITY_HIGH; in OsalThreadStart() 127 } else if (param->priority == OSAL_THREAD_PRI_DEFAULT) { in OsalThreadStart() 128 priority = OSAL_PRIORITY_MIDDLE; in OsalThreadStart() 130 priority = OSAL_PRIORITY_LOW; in OsalThreadStart() 137 stTskInitParam.usTaskPrio = OS_TASK_PRIORITY_LOWEST - (priority - LOS_PRIORITY_WIN); in OsalThreadStart() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/ |
H A D | osal_thread.c | 101 uint16_t priority; in OsalThreadStart() local 108 …if (thread == NULL || thread->realThread == NULL || param == NULL || param->priority > OSAL_THREAD… in OsalThreadStart() 120 if (param->priority == OSAL_THREAD_PRI_HIGHEST) { in OsalThreadStart() 121 priority = OSAL_PRIORITY_HIGHEST; in OsalThreadStart() 122 } else if (param->priority == OSAL_THREAD_PRI_HIGH) { in OsalThreadStart() 123 priority = OSAL_PRIORITY_HIGH; in OsalThreadStart() 124 } else if (param->priority == OSAL_THREAD_PRI_DEFAULT) { in OsalThreadStart() 125 priority = OSAL_PRIORITY_MIDDLE; in OsalThreadStart() 127 priority = OSAL_PRIORITY_LOW; in OsalThreadStart() 130 stTskInitParam.usTaskPrio = OS_TASK_PRIORITY_LOWEST - (priority - LOS_PRIORITY_WIN); in OsalThreadStart() [all …]
|
/ohos5.0/drivers/hdf_core/framework/core/common/src/ |
H A D | hdf_attribute_macro.c | 29 return attrFirstMacro->priority <= attrSecondMacro->priority; in HdfHostListCompareMacro() 35 hostInfo->priority = hostNode->priority; in GetHostInfoMacro() 40 if (hostInfo->priority > MAX_PRIORITY_NUM) { in GetHostInfoMacro() 41 …HDF_LOGW("GetHostInfoMacro get host priority failed, priority is: %{public}u", hostInfo->priority); in GetHostInfoMacro() 112 return attrFirstMacro->priority <= attrSecondMacro->priority; in HdfDeviceListCompareMacro() 122 if (deviceNodeInfo->priority > MAX_PRIORITY_NUM) { in CheckDeviceInfoMacro() 123 HDF_LOGE("CheckDeviceInfoMacro priority %{public}u is invalid", deviceNodeInfo->priority); in CheckDeviceInfoMacro() 138 deviceNodeInfo->priority = deviceNode->priority; in GetDeviceNodeInfo()
|
/ohos5.0/drivers/hdf_core/framework/core/shared/include/ |
H A D | hdf_attribute_macro.h | 21 uint16_t priority; member 33 uint16_t priority; member 52 deviceNode->priority = HCS_PROP(node, priority); \ 79 (host)->priority = HCS_PROP(node, priority); \ 93 host->priority = HCS_PROP(node, priority); \
|
/ohos5.0/base/powermgr/power_manager/frameworks/native/shutdown/ |
H A 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()
|
/ohos5.0/base/telephony/core_service/utils/common/include/ |
H A 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()
|
/ohos5.0/base/powermgr/power_manager/services/zidl/src/shutdown/ |
H A D | shutdown_stub_delegator.cpp | 63 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()
|
/ohos5.0/base/notification/eventhandler/frameworks/eventhandler/src/ |
H A D | event_queue_ffrt.cpp | 31 ffrt_inner_queue_priority_t TransferInnerPriority(EventQueue::Priority priority) in TransferInnerPriority() argument 34 switch (priority) { in TransferInnerPriority() 103 InsertEvent(event, priority, false, insertType); in Insert() 360 Priority priority = static_cast<Priority>(i); in IsQueueEmpty() local 361 ffrt_inner_queue_priority_t innerPriority = TransferInnerPriority(priority); in IsQueueEmpty() 383 Priority priority = static_cast<Priority>(i); in DumpCurrentQueueSize() local 427 InsertEvent(event, priority, true, insertType); in InsertSyncEvent() 450 SubmitEventAtFront(event, priority, syncWait, taskName, lock); in InsertEvent() 452 SubmitEventAtEnd(event, priority, syncWait, taskName, lock); in InsertEvent() 488 .delay(time * MILLI_TO_MICRO).priority(queuePriority)); in SubmitEventAtEnd() [all …]
|