Home
last modified time | relevance | path

Searched refs:Context (Results 1 – 25 of 51) sorted by relevance

123

/base/miscservices/wallpaper/interfaces/kits/napi/
Dnapi_wallpaper_ability.h43 struct GetContextInfo : public AsyncCall::Context {
49 GetContextInfo() : Context(nullptr, nullptr) { }; in GetContextInfo()
50 …GetContextInfo(InputAction input, OutputAction output) : Context(std::move(input), std::move(outpu… in GetContextInfo()
55 return Context::operator()(env, argc, argv, self); in operator()
63 return Context::operator()(env, result); in operator()
67 struct GetMinContextInfo : public AsyncCall::Context {
71 GetMinContextInfo() : Context(nullptr, nullptr) { }; in GetMinContextInfo()
72 …GetMinContextInfo(InputAction input, OutputAction output) : Context(std::move(input), std::move(ou… in GetMinContextInfo()
77 return Context::operator()(env, argc, argv, self); in operator()
85 return Context::operator()(env, result); in operator()
[all …]
Dasync_call.h28 class Context {
32 using ExecAction = std::function<void(Context *)>;
33Context(InputAction input, OutputAction output): input_(std::move(input)), output_(std::move(outpu… in Context() function
34 virtual ~Context() {}; in ~Context()
92 …AsyncCall(napi_env env, napi_callback_info info, std::shared_ptr<Context> context, size_t pos = AS…
94 napi_value Call(napi_env env, Context::ExecAction exec = nullptr);
95 napi_value SyncCall(napi_env env, Context::ExecAction exec = nullptr);
110 std::shared_ptr<Context> ctx = nullptr;
Dnapi_wallpaper_ability.cpp43 auto exec = [context](AsyncCall::Context *ctx) { in NAPI_GetColors()
48 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), ONE); in NAPI_GetColors()
71 auto exec = [context](AsyncCall::Context *ctx) { in NAPI_GetId()
79 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), 1); in NAPI_GetId()
103 auto exec = [context](AsyncCall::Context *ctx) { in NAPI_GetPixelMap()
115 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), 1); in NAPI_GetPixelMap()
132 auto exec = [context](AsyncCall::Context *ctx) { in NAPI_GetMinHeight()
141 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), 0); in NAPI_GetMinHeight()
158 auto exec = [context](AsyncCall::Context *ctx) { in NAPI_GetMinWidth()
167 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), 0); in NAPI_GetMinWidth()
[all …]
/base/miscservices/screenlock/interfaces/kits/napi/include/
Dnapi_screenlock_ability.h25 struct AsyncScreenLockInfo : public AsyncCall::Context {
28 AsyncScreenLockInfo() : Context(nullptr, nullptr), allowed(false) {}; in AsyncScreenLockInfo()
30 : Context(std::move(input), std::move(output)), allowed(false) {}; in AsyncScreenLockInfo()
35 return Context::operator()(env, argc, argv, self); in operator()
42 return Context::operator()(env, result); in operator()
46 struct SendEventInfo : public AsyncCall::Context {
52 …SendEventInfo() : Context(nullptr, nullptr), flag(false), status(napi_generic_failure), allowed(fa… in SendEventInfo()
54 …: Context(std::move(input), std::move(output)), flag(false), status(napi_generic_failure), allowed… in SendEventInfo()
59 return Context::operator()(env, argc, argv, self); in operator()
67 return Context::operator()(env, result); in operator()
Dasync_call.h28 class Context {
32 using ExecAction = std::function<void(Context *)>;
33Context(InputAction input, OutputAction output) : input_(std::move(input)), output_(std::move(outp… in Context() function
34 virtual ~Context() {}; in ~Context()
76 …AsyncCall(napi_env env, napi_callback_info info, std::shared_ptr<Context> context, size_t pos = AS…
78 napi_value Call(const napi_env env, Context::ExecAction exec = nullptr);
79 napi_value SyncCall(const napi_env env, Context::ExecAction exec = nullptr);
86 std::shared_ptr<Context> ctx = nullptr;
/base/miscservices/request/upload/interfaces/kits/napi/include/
Dasync_call.h28 class Context {
32 using ExecAction = std::function<void(Context *)>;
33Context(InputAction input, OutputAction output): input_(std::move(input)), output_(std::move(outpu… in Context() function
34 virtual ~Context() {}; in ~Context()
77 AsyncCall(napi_env env, napi_callback_info info, std::shared_ptr<Context> context);
79 napi_value Call(napi_env env, Context::ExecAction exec = nullptr);
80 napi_value SyncCall(napi_env env, Context::ExecAction exec = nullptr);
90 std::shared_ptr<Context> ctx = nullptr;
Dupload_task_napi.h53 std::shared_ptr<OHOS::AbilityRuntime::Context>& context);
58 struct RemoveContextInfo : public AsyncCall::Context {
62 RemoveContextInfo() : Context(nullptr, nullptr) {}; in RemoveContextInfo()
63 …RemoveContextInfo(InputAction input, OutputAction output) : Context(std::move(input), std::move(ou… in RemoveContextInfo()
71 return Context::operator()(env, argc, argv, self); in operator()
78 return Context::operator()(env, result); in operator()
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/include/
Dasync_call.h27 class Context {
31 using ExecAction = std::function<void(Context *)>;
32Context(InputAction input, OutputAction output) : input_(std::move(input)), output_(std::move(outp… in Context() function
33 virtual ~Context() {}; in ~Context()
79 …AsyncCall(napi_env env, napi_callback_info info, std::shared_ptr<Context> context, size_t pos = AS…
81 napi_value Call(napi_env env, Context::ExecAction exec = nullptr);
82 napi_value SyncCall(napi_env env, Context::ExecAction exec = nullptr);
89 std::shared_ptr<Context> ctx = nullptr;
Ddownload_remove.h36 struct RemoveContext : public AsyncCall::Context {
40 RemoveContext() : Context(nullptr, nullptr) {}; in RemoveContext()
41 …RemoveContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output… in RemoveContext()
49 return Context::operator()(env, argc, argv, self); in operator()
56 return Context::operator()(env, result); in operator()
Ddownload_query.h37 struct QueryContext : public AsyncCall::Context {
41 QueryContext() : Context(nullptr, nullptr) {}; in QueryContext()
42 …QueryContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)… in QueryContext()
50 return Context::operator()(env, argc, argv, self); in operator()
57 return Context::operator()(env, result); in operator()
Ddownload_resume.h36 struct ResumeContext : public AsyncCall::Context {
40 ResumeContext() : Context(nullptr, nullptr) {}; in ResumeContext()
41 …ResumeContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output… in ResumeContext()
49 return Context::operator()(env, argc, argv, self); in operator()
56 return Context::operator()(env, result); in operator()
Ddownload_pause.h35 struct PauseContext : public AsyncCall::Context {
39 PauseContext() : Context(nullptr, nullptr) {}; in PauseContext()
40 …PauseContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)… in PauseContext()
48 return Context::operator()(env, argc, argv, self); in operator()
55 return Context::operator()(env, result); in operator()
Ddownload_query_mimetype.h38 struct QueryMimeContext : public AsyncCall::Context {
42 QueryMimeContext() : Context(nullptr, nullptr) {}; in QueryMimeContext()
43 …QueryMimeContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(out… in QueryMimeContext()
51 return Context::operator()(env, argc, argv, self); in operator()
58 return Context::operator()(env, result); in operator()
Ddownload_event.h47 struct EventOffContext : public AsyncCall::Context {
52 EventOffContext() : Context(nullptr, nullptr) {}; in EventOffContext()
53 …EventOffContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(outp… in EventOffContext()
61 return Context::operator()(env, argc, argv, self); in operator()
68 return Context::operator()(env, result); in operator()
/base/accessibility/services/test/mock/aafwk/include/
Dcontext.h26 class Context {
28 Context() = default;
29 virtual ~Context() = default;
/base/miscservices/request/upload/unitest/include/
Dmock_obfile.h30 std::shared_ptr<OHOS::AbilityRuntime::Context> &));
32 std::shared_ptr<OHOS::AbilityRuntime::Context> &));
34 std::shared_ptr<OHOS::AbilityRuntime::Context> &));
Dmock_obtain_file.h28 unsigned int& fileSize, std::shared_ptr<OHOS::AbilityRuntime::Context> &context);
30 unsigned int& fileSize, std::shared_ptr<OHOS::AbilityRuntime::Context> &context);
/base/miscservices/request/upload/frameworks/libs/include/
Dobtain_file.h34 uint32_t& fileSize, std::shared_ptr<OHOS::AbilityRuntime::Context> &context);
37 uint32_t& fileSize, std::shared_ptr<OHOS::AbilityRuntime::Context> &context);
39 uint32_t& fileSize, std::shared_ptr<OHOS::AbilityRuntime::Context> &context);
/base/miscservices/request/upload/unitest/src/
Dobtain_file_test.cpp64 std::shared_ptr<OHOS::AbilityRuntime::Context> context = nullptr;
87 std::shared_ptr<OHOS::AbilityRuntime::Context> context = nullptr;
110 std::shared_ptr<OHOS::AbilityRuntime::Context> context = nullptr;
133 std::shared_ptr<OHOS::AbilityRuntime::Context> context = nullptr;
156 std::shared_ptr<OHOS::AbilityRuntime::Context> context = nullptr;
179 std::shared_ptr<OHOS::AbilityRuntime::Context> context = nullptr;
Dmock_obtain_file.cpp22 unsigned int& fileSize, std::shared_ptr<OHOS::AbilityRuntime::Context> &context) in GetFile()
28 uint32_t& fileSize, std::shared_ptr<OHOS::AbilityRuntime::Context> &context) in GetDataAbilityFile()
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/src/
Ddownload_pause.cpp39 auto exec = [context](AsyncCall::Context *ctx) { in Exec()
46 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), 0); in Exec()
Ddownload_query_mimetype.cpp39 auto exec = [context](AsyncCall::Context *ctx) { in Exec()
46 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), 0); in Exec()
Ddownload_remove.cpp38 auto exec = [context](AsyncCall::Context *ctx) { in Exec()
45 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), 0); in Exec()
Ddownload_resume.cpp38 auto exec = [context](AsyncCall::Context *ctx) { in Exec()
45 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), 0); in Exec()
/base/global/resmgr_standard/interfaces/js/kits/src/
Dresource_manager_napi.cpp85 const std::shared_ptr<AbilityRuntime::Context>& context, ResMgrAsyncContext &asyncContext) in InitAsyncContext()
92 std::shared_ptr<Context> bundleContext = ability->CreateBundleContext(bundleName, 0); in InitAsyncContext()
101 …std::shared_ptr<OHOS::AbilityRuntime::Context> bundleContext = context->CreateBundleContext(bundle… in InitAsyncContext()
118 std::shared_ptr<AbilityRuntime::Context> abilityRuntimeContext; in GetResourceManager()
124 using WeakContextPtr = std::weak_ptr<AbilityRuntime::Context> *; in GetResourceManager()

123