Home
last modified time | relevance | path

Searched refs:Mode (Results 1 - 25 of 46) sorted by relevance

12

/base/request/request/services/tests/
H A Dsearch.rs16 use download_server::config::{Action, ConfigBuilder, Mode};
33 .mode(Mode::FrontEnd) in sdv_search_user()
37 let v = agent.search(current, current - 3000, State::Any, Action::Any, Mode::Any); in sdv_search_user()
39 let v = agent.search(current + 3000, current, State::Any, Action::Any, Mode::Any); in sdv_search_user()
46 Mode::FrontEnd, in sdv_search_user()
54 Mode::FrontEnd, in sdv_search_user()
62 Mode::FrontEnd, in sdv_search_user()
71 Mode::BackGround, in sdv_search_user()
H A Dstart.rs17 use download_server::config::{Action, ConfigBuilder, Mode};
29 .mode(Mode::BackGround) in sdv_start_basic()
H A Dresume.rs17 use download_server::config::{Action, ConfigBuilder, Mode};
29 .mode(Mode::BackGround) in sdv_start_resume()
/base/notification/eventhandler/interfaces/inner_api/
H A Devent_runner.h31 enum class Mode: uint32_t { class
81 return Create(threadName, Mode::DEFAULT, ThreadMode::NEW_THREAD); in Create()
93 return Create(threadName, Mode::DEFAULT, threadMode); in Create()
106 return Create((threadName != nullptr) ? std::string(threadName) : std::string(), Mode::DEFAULT, in Create()
120 return Create((threadName != nullptr) ? std::string(threadName) : std::string(), Mode::DEFAULT, threadMode); in Create()
131 return Create(threadName, Mode::NO_WAIT, ThreadMode::NEW_THREAD); in CreateNoWait()
317 explicit EventRunner(bool deposit, Mode runningMode = Mode::DEFAULT);
321 static std::shared_ptr<EventRunner> Create(const std::string &threadName, Mode mode, ThreadMode threadMode);
331 return (deposit_ && runningMode_ == Mode in IsRunning()
[all...]
/base/request/request/services/src/task/
H A Dconfig.rs18 pub use ffi::{Action, Mode};
43 /// Mode
46 pub enum Mode { enum
82 pub(crate) mode: Mode,
146 self.common_data.mode == Mode::BackGround || Some(self.common_data.uid) == top_uid
159 impl PartialOrd for Mode {
165 impl Ord for Mode {
168 Mode::FrontEnd => 0, in cmp()
169 Mode::Any => 1, in cmp()
170 Mode in cmp()
[all...]
H A Ddownload.rs281 use crate::config::{Action, ConfigBuilder, Mode, TaskConfig};
330 .mode(Mode::BackGround) in ut_download_basic()
354 .mode(Mode::BackGround) in ut_download_resume()
376 .mode(Mode::BackGround) in ut_download_not_support_range()
400 .mode(Mode::BackGround) in ut_download_resume_not_support_range()
435 .mode(Mode::BackGround) in ut_download_not_support_range_resume()
457 .mode(Mode::BackGround) in ut_download_range_0()
480 .mode(Mode::BackGround) in ut_download_range_1()
503 .mode(Mode::BackGround) in ut_download_range_resume_0()
525 .mode(Mode in ut_download_range_resume_1()
[all...]
/base/request/request/services/src/manage/scheduler/qos/
H A Dapps.rs19 use crate::task::config::{Action, Mode};
49 mode: Mode::from(task.mode),
134 mode: Mode,
206 mode: Mode::from(info.mode), in reload_tasks_of_app_from_database()
232 use crate::task::config::Mode;
237 fn new(task_id: u32, mode: Mode, priority: u32) -> Self { in new()
254 app.insert(Task::new(1, Mode::FrontEnd, 0)); in ut_app_insert()
256 assert_eq!(app.tasks[0].mode, Mode::FrontEnd); in ut_app_insert()
259 app.insert(Task::new(2, Mode::FrontEnd, 100)); in ut_app_insert()
263 app.insert(Task::new(3, Mode in ut_app_insert()
[all...]
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_file_selector_params_impl.cpp27 int ArkWebFileSelectorParamsImpl::Mode() in Mode() function in OHOS::ArkWeb::ArkWebFileSelectorParamsImpl
29 return static_cast<int>(nweb_file_selector_params_->Mode()); in Mode()
H A Dark_web_file_selector_params_impl.h32 int Mode() override;
/base/request/request/frameworks/cj/ffi/src/
H A Dcj_app_state_callback.cpp25 using OHOS::Request::Mode;
33 if (task->second->config_.mode == Mode::FOREGROUND) { in OnAbilityForeground()
/base/request/request/services/src/manage/
H A Dquery.rs18 use crate::config::{Action, Mode};
152 if filter.mode != Mode::Any.repr { in search_filter()
208 Mode::BackGround.repr in ut_search_user()
216 mode: Mode::Any.repr, in ut_search_user()
226 mode: Mode::Any.repr, in ut_search_user()
236 mode: Mode::FrontEnd.repr, in ut_search_user()
246 mode: Mode::BackGround.repr, in ut_search_user()
256 mode: Mode::Any.repr, in ut_search_user()
266 mode: Mode::BackGround.repr, in ut_search_user()
286 Mode in ut_search_system()
[all...]
H A Dnotifier.rs90 use crate::config::{Action, ConfigBuilder, Mode};
142 .mode(Mode::BackGround) in ut_notify_progress()
198 .mode(Mode::BackGround) in ut_notify_pause_resume()
250 .mode(Mode::BackGround) in ut_notify_remove()
287 .mode(Mode::BackGround) in ut_notify_completed()
325 .mode(Mode::BackGround) in ut_notify_failed()
363 .mode(Mode::BackGround) in ut_notify_pause_resume_completed()
401 .mode(Mode::BackGround) in ut_notify_pause_resume_failed()
/base/powermgr/display_manager/brightness_manager/include/
H A Dlux_threshold_config_parser.h28 struct Mode { struct
35 std::unordered_map<std::string, LuxThresholdConfig::Mode> modeArray{};
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_file_selector_params_wrapper.cpp27 ArkWebFileSelectorMode ArkWebFileSelectorParamsWrapper::Mode() in Mode() function in OHOS::ArkWeb::ArkWebFileSelectorParamsWrapper
29 return static_cast<ArkWebFileSelectorMode>(ark_web_file_selector_params_->Mode()); in Mode()
H A Dark_web_file_selector_params_wrapper.h32 ArkWebFileSelectorMode Mode() override;
/base/notification/eventhandler/frameworks/eventhandler/src/
H A Devent_runner.cpp352 if (runningMode_ == Mode::NO_WAIT) {
449 inline void SetRunningMode(const Mode runningMode) in SetRunningMode()
546 return Create(std::string(), Mode::DEFAULT, ThreadMode::NEW_THREAD); in Create()
550 std::shared_ptr<EventRunner> sp(new (std::nothrow) EventRunner(false, Mode::DEFAULT)); in Create()
556 innerRunner->SetRunningMode(Mode::DEFAULT); in Create()
569 return Create(std::string(), Mode::DEFAULT, threadMode); in Create()
573 std::shared_ptr<EventRunner> sp(new (std::nothrow) EventRunner(false, Mode::DEFAULT)); in Create()
579 innerRunner->SetRunningMode(Mode::DEFAULT); in Create()
587 std::shared_ptr<EventRunner> EventRunner::Create(const std::string &threadName, Mode mode, ThreadMode threadMode) in Create()
598 if (threadMode == ThreadMode::FFRT && mode == Mode in Create()
[all...]
/base/notification/eventhandler/frameworks/eventhandler/include/
H A Devent_inner_runner.h72 Mode runningMode_ = Mode::DEFAULT;
/base/request/request/services/src/manage/events/
H A Dconstruct.rs18 use crate::config::Mode;
48 Mode::FrontEnd => (frontend, MAX_FRONTEND_TASK),
H A Dmod.rs19 use crate::config::{Action, Mode};
145 Completed(u32, u64, Mode),
146 Failed(u32, u64, Reason, Mode),
147 Offline(u32, u64, Mode),
148 Running(u32, u64, Mode),
231 use crate::config::{Action, ConfigBuilder, Mode};
260 .mode(Mode::BackGround) in ut_task_manager_construct()
279 .mode(Mode::BackGround) in ut_task_manager_start()
304 .mode(Mode::BackGround) in ut_task_manager_pause_resume()
331 .mode(Mode in ut_task_manager_stop_resume()
[all...]
/base/request/request/frameworks/js/napi/include/
H A Djs_common.h34 enum class Mode : uint32_t { class
125 Mode mode = Mode::BACKGROUND;
206 Mode mode;
237 Mode mode;
260 Mode mode = Mode::ANY;
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/
H A Dark_web_file_selector_params.h29 virtual int Mode() = 0;
/base/request/request/services/src/service/
H A Dnotification_bar.rs18 use crate::config::{Action, Mode, Version};
118 Mode::from(self.common_data.mode), in notification_check()
128 mode: Mode, in notification_check_common()
132 version == Version::API10 && mode == Mode::BackGround && (gauge || completed_notify) in notification_check_common()
/base/request/request/frameworks/js/napi/src/
H A Dapp_state_callback.cpp33 if (task->second->config_.mode == Mode::FOREGROUND) { in OnAbilityForeground()
/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb_file_selector_params.h37 virtual FileSelectorMode Mode() = 0;
/base/request/request/frameworks/cj/ffi/include/
H A Dcj_request_impl.h35 using OHOS::Request::Mode;
76 static Mode ParseMode(RequestNativeOptionUInt32 &mode);

Completed in 9 milliseconds

12