/base/msdp/device_status/intention/cooperate/plugin/include/ |
H A D | state_machine.h | 39 void OnEvent(Context &context, const CooperateEvent &event); 56 void TransiteTo(Context &context, CooperateState state) override; 57 void AddHandler(CooperateEventType event, std::function<void(Context&, const CooperateEvent&)> handler); 58 void OnQuit(Context &context); 59 void AddObserver(Context &context, const CooperateEvent &event); 60 void RemoveObserver(Context &context, const CooperateEvent &event); 61 void RegisterListener(Context &context, const CooperateEvent &event); 62 void UnregisterListener(Context &context, const CooperateEvent &event); 63 void RegisterHotAreaListener(Context &context, const CooperateEvent &event); 64 void UnregisterHotAreaListener(Context [all...] |
H A D | cooperate_in.h | 30 void OnEvent(Context &context, const CooperateEvent &event) override; 31 void OnEnterState(Context &context) override; 32 void OnLeaveState(Context &context) override; 40 void OnProgress(Context &context, const CooperateEvent &event) override; 41 void OnReset(Context &context, const CooperateEvent &event) override; 47 void OnDisable(Context &context, const CooperateEvent &event); 48 void OnStart(Context &context, const CooperateEvent &event); 49 void OnComeBack(Context &context, const CooperateEvent &event); 50 void OnRelay(Context &context, const CooperateEvent &event); 51 void OnStop(Context [all...] |
H A D | cooperate_out.h | 30 void OnEvent(Context &context, const CooperateEvent &event) override; 31 void OnEnterState(Context &context) override; 32 void OnLeaveState(Context &context) override; 40 void OnProgress(Context &context, const CooperateEvent &event) override; 41 void OnReset(Context &context, const CooperateEvent &event) override; 47 void OnDisable(Context &context, const CooperateEvent &event); 48 void OnStart(Context &context, const CooperateEvent &event); 49 void OnStop(Context &context, const CooperateEvent &event); 50 void OnComeBack(Context &context, const CooperateEvent &event); 51 void OnRemoteStart(Context [all...] |
H A D | cooperate_free.h | 33 void OnEvent(Context &context, const CooperateEvent &event) override; 34 void OnEnterState(Context &context) override; 35 void OnLeaveState(Context &context) override; 47 void OnProgress(Context &context, const CooperateEvent &event) override; 48 void OnReset(Context &context, const CooperateEvent &event) override; 54 void OnStart(Context &context, const CooperateEvent &event); 55 void OnStop(Context &context, const CooperateEvent &event); 56 void OnDisable(Context &context, const CooperateEvent &event); 57 void OnAppClosed(Context &context, const CooperateEvent &event); 58 void OnRemoteStart(Context [all...] |
H A D | i_cooperate_state.h | 33 virtual void TransiteTo(Context &context, CooperateState state) = 0; 41 virtual void OnEvent(Context &context, const CooperateEvent &event) = 0; 42 virtual void OnEnterState(Context &context) = 0; 43 virtual void OnLeaveState(Context &context) = 0; 51 virtual void OnEvent(Context &context, const CooperateEvent &event); 52 virtual void OnProgress(Context &context, const CooperateEvent &event) = 0; 53 virtual void OnReset(Context &context, const CooperateEvent &event) = 0; 58 void AddHandler(CooperateEventType event, std::function<void(Context&, const CooperateEvent&)> handler) in AddHandler() 63 void TransiteTo(Context &context, CooperateState state); 65 void Proceed(Context [all...] |
H A D | cooperate_context.h | 44 class Context final { 46 Context(IContext *env); 47 ~Context() = default; 48 DISALLOW_COPY_AND_MOVE(Context); 144 inline Channel<CooperateEvent>::Sender Context::Sender() const in Sender() 149 inline std::shared_ptr<AppExecFwk::EventHandler> Context::EventHandler() const in EventHandler() 154 inline std::string Context::Local() const in Local() 159 inline std::string Context::Peer() const in Peer() 164 inline int32_t Context::StartDeviceId() const in StartDeviceId() 169 inline Coordinate Context [all...] |
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/ |
H A D | js_text_input_client_engine.h | 60 struct SendKeyFunctionContext : public AsyncCall::Context { 64 SendKeyFunctionContext() : Context(nullptr, nullptr){}; in SendKeyFunctionContext() 65 SendKeyFunctionContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)){}; in SendKeyFunctionContext() 70 return Context::operator()(env, argc, argv, self); 79 return Context::operator()(env, result); 83 struct MoveCursorContext : public AsyncCall::Context { 86 MoveCursorContext() : Context(nullptr, nullptr){}; in MoveCursorContext() 87 MoveCursorContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)){}; in MoveCursorContext() 92 return Context::operator()(env, argc, argv, self); 100 return Context [all...] |
H A D | js_keyboard_controller_engine.h | 23 struct HideKeyboardContext : public AsyncCall::Context { 25 HideKeyboardContext() : Context(nullptr, nullptr){}; in HideKeyboardContext() 26 HideKeyboardContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)){}; in HideKeyboardContext() 31 return Context::operator()(env, argc, argv, self); 39 return Context::operator()(env, result); 43 struct HideContext : public AsyncCall::Context { 45 HideContext() : Context(nullptr, nullptr){}; in HideContext() 46 HideContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)){}; in HideContext() 51 return Context::operator()(env, argc, argv, self); 59 return Context [all...] |
/base/msdp/device_status/intention/cooperate/plugin/src/ |
H A D | state_machine.cpp | 74 AddHandler(CooperateEventType::ADD_OBSERVER, [this](Context &context, const CooperateEvent &event) { in StateMachine() 77 AddHandler(CooperateEventType::REMOVE_OBSERVER, [this](Context &context, const CooperateEvent &event) { in StateMachine() 80 AddHandler(CooperateEventType::REGISTER_LISTENER, [this](Context &context, const CooperateEvent &event) { in StateMachine() 83 AddHandler(CooperateEventType::UNREGISTER_LISTENER, [this](Context &context, const CooperateEvent &event) { in StateMachine() 86 AddHandler(CooperateEventType::REGISTER_HOTAREA_LISTENER, [this](Context &context, const CooperateEvent &event) { in StateMachine() 90 [this](Context &context, const CooperateEvent &event) { in StateMachine() 93 AddHandler(CooperateEventType::ENABLE, [this](Context &context, const CooperateEvent &event) { in StateMachine() 96 AddHandler(CooperateEventType::DISABLE, [this](Context &context, const CooperateEvent &event) { in StateMachine() 99 AddHandler(CooperateEventType::START, [this](Context &context, const CooperateEvent &event) { in StateMachine() 102 AddHandler(CooperateEventType::GET_COOPERATE_STATE, [this](Context in StateMachine() [all...] |
H A D | cooperate_context.cpp | 104 Context::Context(IContext *env) in Context() function in OHOS::Msdp::DeviceStatus::Cooperate::Context 109 void Context::AttachSender(Channel<CooperateEvent>::Sender sender) in AttachSender() 115 void Context::AddObserver(std::shared_ptr<ICooperateObserver> observer) in AddObserver() 121 void Context::RemoveObserver(std::shared_ptr<ICooperateObserver> observer) in RemoveObserver() 126 void Context::Enable() in Enable() 135 void Context::Disable() in Disable() 144 int32_t Context::StartEventHandler() in StartEventHandler() 152 void Context::StopEventHandler() in StopEventHandler() 157 void Context [all...] |
H A D | cooperate_out.cpp | 42 void CooperateOut::OnEvent(Context &context, const CooperateEvent &event) in OnEvent() 47 void CooperateOut::OnEnterState(Context &context) in OnEnterState() 53 void CooperateOut::OnLeaveState(Context &context) in OnLeaveState() 59 void CooperateOut::SetPointerVisible(Context &context) in SetPointerVisible() 78 AddHandler(CooperateEventType::DISABLE, [this](Context &context, const CooperateEvent &event) { in Initial() 81 AddHandler(CooperateEventType::START, [this](Context &context, const CooperateEvent &event) { in Initial() 84 AddHandler(CooperateEventType::STOP, [this](Context &context, const CooperateEvent &event) { in Initial() 87 AddHandler(CooperateEventType::APP_CLOSED, [this](Context &context, const CooperateEvent &event) { in Initial() 90 AddHandler(CooperateEventType::INPUT_HOTPLUG_EVENT, [this](Context &context, const CooperateEvent &event) { in Initial() 93 AddHandler(CooperateEventType::INPUT_POINTER_EVENT, [this](Context in Initial() [all...] |
H A D | cooperate_in.cpp | 42 void CooperateIn::OnEvent(Context &context, const CooperateEvent &event) in OnEvent() 47 void CooperateIn::OnEnterState(Context &context) in OnEnterState() 53 void CooperateIn::OnLeaveState(Context & context) in OnLeaveState() 90 AddHandler(CooperateEventType::DISABLE, [this](Context &context, const CooperateEvent &event) { in Initial() 93 AddHandler(CooperateEventType::START, [this](Context &context, const CooperateEvent &event) { in Initial() 96 AddHandler(CooperateEventType::STOP, [this](Context &context, const CooperateEvent &event) { in Initial() 99 AddHandler(CooperateEventType::APP_CLOSED, [this](Context &context, const CooperateEvent &event) { in Initial() 102 AddHandler(CooperateEventType::INPUT_POINTER_EVENT, [this](Context &context, const CooperateEvent &event) { in Initial() 105 AddHandler(CooperateEventType::DDM_BOARD_OFFLINE, [this](Context &context, const CooperateEvent &event) { in Initial() 109 [this](Context in Initial() [all...] |
H A D | cooperate_free.cpp | 42 void CooperateFree::OnEvent(Context &context, const CooperateEvent &event) in OnEvent() 47 void CooperateFree::OnEnterState(Context &context) in OnEnterState() 52 void CooperateFree::OnLeaveState(Context &context) in OnLeaveState() 61 void CooperateFree::SetPointerVisible(Context &context) in SetPointerVisible() 71 void CooperateFree::UnchainConnections(Context &context, const StopCooperateEvent &event) const in UnchainConnections() 84 AddHandler(CooperateEventType::START, [this](Context &context, const CooperateEvent &event) { in Initial() 87 AddHandler(CooperateEventType::STOP, [this](Context &context, const CooperateEvent &event) { in Initial() 90 AddHandler(CooperateEventType::DISABLE, [this](Context &context, const CooperateEvent &event) { in Initial() 93 AddHandler(CooperateEventType::APP_CLOSED, [this](Context &context, const CooperateEvent &event) { in Initial() 96 AddHandler(CooperateEventType::DSOFTBUS_START_COOPERATE, [this](Context in Initial() [all...] |
H A D | i_cooperate_state.cpp | 30 void ICooperateState::TransiteTo(Context &context, CooperateState state) in TransiteTo() 42 void ICooperateState::ICooperateStep::OnEvent(Context &context, const CooperateEvent &event) in OnEvent() 61 void ICooperateState::ICooperateStep::TransiteTo(Context &context, CooperateState state) in TransiteTo() 71 void ICooperateState::ICooperateStep::Proceed(Context &context, const CooperateEvent &event) in Proceed() 79 void ICooperateState::ICooperateStep::Reset(Context &context, const CooperateEvent &event) in Reset() 102 void ICooperateState::Process::StartCooperate(Context &context, const StartCooperateEvent &event) in StartCooperate() 108 void ICooperateState::Process::RemoteStart(Context &context, const DSoftbusStartCooperate &event) in RemoteStart() 113 void ICooperateState::Process::RelayCooperate(Context &context, const DSoftbusRelayCooperate &event) in RelayCooperate()
|
/base/theme/screenlock_mgr/frameworks/js/napi/include/ |
H A D | napi_screenlock_ability.h | 24 struct AsyncScreenLockInfo : public AsyncCall::Context { 27 AsyncScreenLockInfo() : Context(nullptr, nullptr), allowed(false){}; in AsyncScreenLockInfo() 29 : Context(std::move(input), std::move(output)), allowed(false){}; in AsyncScreenLockInfo() 33 struct SendEventInfo : public AsyncCall::Context { 40 : Context(nullptr, nullptr), param(0), eventInfo(""), flag(false), status(napi_generic_failure), in SendEventInfo() 43 : Context(std::move(input), std::move(output)), param(0), eventInfo(""), flag(false), in SendEventInfo() 48 struct ScreenLockDisableInfo : public AsyncCall::Context { 54 : Context(nullptr, nullptr), disable(false), userId(-1), status(napi_generic_failure), in ScreenLockDisableInfo() 57 : Context(std::move(input), std::move(output)), disable(false), userId(-1), in ScreenLockDisableInfo() 62 struct ScreenLockAuthStatInfo : public AsyncCall::Context { [all...] |
/base/useriam/user_auth_framework/services/context/inc/ |
H A D | context_factory.h | 61 static std::shared_ptr<Context> CreateSimpleAuthContext(const Authentication::AuthenticationPara ¶, 63 static std::shared_ptr<Context> CreateRemoteAuthContext(const Authentication::AuthenticationPara ¶, 65 static std::shared_ptr<Context> CreateRemoteAuthInvokerContext(AuthParamInner authParam, 67 static std::shared_ptr<Context> CreateIdentifyContext(const Identification::IdentificationPara ¶, 69 static std::shared_ptr<Context> CreateEnrollContext(const Enrollment::EnrollmentPara ¶, 71 static std::shared_ptr<Context> CreateWidgetAuthContext(std::shared_ptr<ContextCallback> callback); 72 static std::shared_ptr<Context> CreateWidgetContext(const AuthWidgetContextPara ¶, 74 static std::shared_ptr<Context> CreateScheduleHolderContext(std::shared_ptr<ScheduleNode> scheduleNode);
|
H A D | context_pool.h | 30 virtual void OnContextPoolInsert(const std::shared_ptr<Context> &context) = 0; 31 virtual void OnContextPoolDelete(const std::shared_ptr<Context> &context) = 0; 35 virtual bool Insert(const std::shared_ptr<Context> &context) = 0; 38 virtual std::weak_ptr<Context> Select(uint64_t contextId) const = 0; 39 virtual std::vector<std::weak_ptr<Context>> Select(ContextType contextType) const = 0;
|
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/ |
H A D | js_get_input_method_controller.h | 27 struct HandleContext : public AsyncCall::Context { 30 HandleContext() : Context(nullptr, nullptr){}; in HandleContext() 31 HandleContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)){}; in HandleContext() 36 return Context::operator()(env, argc, argv, self); 44 return Context::operator()(env, result); 48 struct AttachContext : public AsyncCall::Context { 53 AttachContext() : Context(nullptr, nullptr){}; in AttachContext() 54 AttachContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)){}; in AttachContext() 59 return Context::operator()(env, argc, argv, self); 67 return Context [all...] |
/base/request/request/frameworks/js/napi/include/ |
H A D | async_call.h | 32 class Context {
class in OHOS::Request::final 37 Context() = default;
38 virtual ~Context()
in ~Context() 70 inline Context &SetInput(InputAction action)
in SetInput() 75 inline Context &SetOutput(OutputAction action)
in SetOutput() 80 inline Context &SetExec(ExecAction action)
in SetExec() 107 AsyncCall(napi_env env, napi_callback_info info, const std::shared_ptr<Context> &context);
109 napi_value Call(const std::shared_ptr<Context> &context, const std::string &resourceName = "AsyncCall");
120 std::shared_ptr<Context> ctx = nullptr;
|
/base/useriam/user_auth_framework/test/unittest/services/mocks/ |
H A D | mock_context_pool_listener.h | 28 MOCK_METHOD1(OnContextPoolInsert, void(const std::shared_ptr<Context> &context)); 29 MOCK_METHOD1(OnContextPoolDelete, void(const std::shared_ptr<Context> &context)); 36 using Callback = std::function<void(Action action, const std::shared_ptr<Context> &context)>; 43 ON_CALL(*listener, OnContextPoolInsert).WillByDefault([callback](const std::shared_ptr<Context> &context) { in Create() 49 ON_CALL(*listener, OnContextPoolDelete).WillByDefault([callback](const std::shared_ptr<Context> &context) { in Create()
|
/base/theme/wallpaper_mgr/frameworks/js/napi/ |
H A D | napi_wallpaper_ability.h | 49 struct GetContextInfo : public Call::Context { 60 GetContextInfo() : Context(nullptr, nullptr) {}; in GetContextInfo() 61 GetContextInfo(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)) {}; in GetContextInfo() 66 return Context::operator()(env, argc, argv, self); 74 return Context::operator()(env, result); 78 struct GetMinContextInfo : public Call::Context { 82 GetMinContextInfo() : Context(nullptr, nullptr) {}; in GetMinContextInfo() 83 GetMinContextInfo(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)) {}; in GetMinContextInfo() 88 return Context::operator()(env, argc, argv, self); 96 return Context [all...] |
/base/request/request/frameworks/cj/ffi/include/ |
H A D | cj_initialize.h | 34 using OHOS::AbilityRuntime::Context; 47 static ExceptionError ParseConfig(OHOS::AbilityRuntime::Context *context, const CConfig *ffiConfig, Config &config); 48 static ExceptionError ParseBundleName(const std::shared_ptr<OHOS::AbilityRuntime::Context> &context, 66 static ExceptionError CheckFileSpec(const std::shared_ptr<OHOS::AbilityRuntime::Context> &context, Config &config); 67 static ExceptionError CheckFilePath(const std::shared_ptr<OHOS::AbilityRuntime::Context> &context, Config &config); 72 const std::shared_ptr<OHOS::AbilityRuntime::Context> &context, Config &config, std::string &filePath); 77 const std::shared_ptr<OHOS::AbilityRuntime::Context> &context, Config &config, std::string &errInfo); 79 const std::shared_ptr<OHOS::AbilityRuntime::Context> &context, const Config &config, std::string &path); 80 static bool CacheToWhole(const std::shared_ptr<OHOS::AbilityRuntime::Context> &context, std::string &path); 81 static bool FileToWhole(const std::shared_ptr<OHOS::AbilityRuntime::Context> [all...] |
/base/print/print_fwk/interfaces/kits/napi/print_napi/include/ |
H A D | print_async_call.h | 29 class Context { class in OHOS::Print::final 33 using ExecAction = std::function<void(Context *)>; 34 Context(InputAction input, OutputAction output) : input_(std::move(input)), output_(std::move(output)) {}; in Context() function in OHOS::Print::final::Context 36 virtual ~Context() {}; in ~Context() 94 PrintAsyncCall(napi_env env, napi_callback_info info, std::shared_ptr<Context> context, 97 napi_value Call(napi_env env, Context::ExecAction exec = nullptr); 98 napi_value SyncCall(napi_env env, Context::ExecAction exec = nullptr); 106 std::shared_ptr<Context> ctx = nullptr;
|
/base/print/print_fwk/interfaces/kits/napi/scan_napi/include/ |
H A D | scan_async_call.h | 32 class Context { class in OHOS::Scan::final 36 using ExecAction = std::function<void(Context *)>; 37 Context(InputAction input, OutputAction output) : input_(std::move(input)), output_(std::move(output)) {}; in Context() function in OHOS::Scan::final::Context 39 virtual ~Context() {}; in ~Context() 97 ScanAsyncCall(napi_env env, napi_callback_info info, std::shared_ptr<Context> context, 100 napi_value Call(napi_env env, Context::ExecAction exec = nullptr); 101 napi_value SyncCall(napi_env env, Context::ExecAction exec = nullptr); 111 std::shared_ptr<Context> ctx = nullptr;
|
/base/request/request/frameworks/js/napi/include/upload/ |
H A D | async_call.h | 29 class Context {
class in OHOS::Request::UploadNapi::final 33 using ExecAction = std::function<void(Context *)>;
34 Context(InputAction input, OutputAction output) : input_(std::move(input)), output_(std::move(output)){};
in Context() function in OHOS::Request::UploadNapi::final::Context 35 virtual ~Context(){};
in ~Context() 84 AsyncCall(napi_env env, napi_callback_info info, std::shared_ptr<Context> context);
86 napi_value Call(napi_env env, Context::ExecAction exec = nullptr);
87 napi_value SyncCall(napi_env env, Context::ExecAction exec = nullptr);
94 std::shared_ptr<Context> ctx = nullptr;
|