/base/miscservices/wallpaper/interfaces/kits/napi/ |
D | napi_wallpaper_ability.h | 43 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 …]
|
D | async_call.h | 28 class Context { 32 using ExecAction = std::function<void(Context *)>; 33 …Context(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;
|
D | napi_wallpaper_ability.cpp | 43 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/ |
D | napi_screenlock_ability.h | 25 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()
|
D | async_call.h | 28 class Context { 32 using ExecAction = std::function<void(Context *)>; 33 …Context(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/ |
D | async_call.h | 28 class Context { 32 using ExecAction = std::function<void(Context *)>; 33 …Context(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;
|
D | upload_task_napi.h | 53 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/ |
D | async_call.h | 27 class Context { 31 using ExecAction = std::function<void(Context *)>; 32 …Context(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;
|
D | download_remove.h | 36 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()
|
D | download_query.h | 37 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()
|
D | download_resume.h | 36 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()
|
D | download_pause.h | 35 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()
|
D | download_query_mimetype.h | 38 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()
|
D | download_event.h | 47 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/ |
D | context.h | 26 class Context { 28 Context() = default; 29 virtual ~Context() = default;
|
/base/miscservices/request/upload/unitest/include/ |
D | mock_obfile.h | 30 std::shared_ptr<OHOS::AbilityRuntime::Context> &)); 32 std::shared_ptr<OHOS::AbilityRuntime::Context> &)); 34 std::shared_ptr<OHOS::AbilityRuntime::Context> &));
|
D | mock_obtain_file.h | 28 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/ |
D | obtain_file.h | 34 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/ |
D | obtain_file_test.cpp | 64 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;
|
D | mock_obtain_file.cpp | 22 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/ |
D | download_pause.cpp | 39 auto exec = [context](AsyncCall::Context *ctx) { in Exec() 46 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), 0); in Exec()
|
D | download_query_mimetype.cpp | 39 auto exec = [context](AsyncCall::Context *ctx) { in Exec() 46 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), 0); in Exec()
|
D | download_remove.cpp | 38 auto exec = [context](AsyncCall::Context *ctx) { in Exec() 45 AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(context), 0); in Exec()
|
D | download_resume.cpp | 38 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/ |
D | resource_manager_napi.cpp | 85 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()
|