Home
last modified time | relevance | path

Searched refs:StateMsg (Results 1 - 7 of 7) sorted by relevance

/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/wakeup/
H A Dwakeup_engine_impl.h33 using OHOS::IntellVoiceUtils::StateMsg;
41 int32_t Handle(const StateMsg &msg);
71 int32_t HandleGetParam(const StateMsg &msg, State &nextState);
72 int32_t HandleSetParam(const StateMsg &msg, State &nextState);
73 int32_t HandleInit(const StateMsg &msg, State &nextState);
74 int32_t HandleSetListener(const StateMsg &msg, State &nextState);
75 int32_t HandleInitDone(const StateMsg &msg, State &nextState);
76 int32_t HandleStart(const StateMsg &msg, State &nextState);
77 int32_t HandleStop(const StateMsg &msg, State &nextState);
78 int32_t HandleRecognizeComplete(const StateMsg
[all...]
H A Dwakeup_engine.cpp58 StateMsg msg(START_RECOGNIZE, &uuid, sizeof(int32_t)); in OnDetected()
72 StateMsg msg(INIT); in Init()
87 StateMsg msg(SET_LISTENER, &listenerMsg, sizeof(SetListenerMsg)); in SetCallback()
104 StateMsg msg(START_CAPTURER, &channels, sizeof(int32_t)); in StartCapturer()
111 StateMsg msg(READ, nullptr, 0, reinterpret_cast<void *>(&capturerData)); in Read()
124 StateMsg msg(STOP_CAPTURER); in StopCapturer()
139 StateMsg msg(START_RECOGNIZE); in NotifyHeadsetWakeEvent()
148 StateMsg msg(RELEASE); in HandleHeadsetOff()
192 StateMsg msgCb(SET_LISTENER, &listenerMsg, sizeof(SetListenerMsg)); in HandleHeadsetOn()
197 StateMsg ms in HandleHeadsetOn()
[all...]
H A Dwakeup_engine_impl.cpp118 int32_t WakeupEngineImpl::Handle(const StateMsg &msg) in Handle()
335 StateMsg msg(INIT_DONE, &result, sizeof(int32_t)); in OnInitDone()
346 StateMsg msg(RECOGNIZE_COMPLETE, reinterpret_cast<void *>(&event), in OnWakeupRecognition()
351 int32_t WakeupEngineImpl::HandleSetParam(const StateMsg &msg, State & /* nextState */) in HandleSetParam()
362 int32_t WakeupEngineImpl::HandleGetParam(const StateMsg &msg, State & /* nextState */) in HandleGetParam()
380 int32_t WakeupEngineImpl::HandleInit(const StateMsg & /* msg */, State &nextState) in HandleInit()
415 int32_t WakeupEngineImpl::HandleInitDone(const StateMsg &msg, State &nextState) in HandleInitDone()
428 int32_t WakeupEngineImpl::HandleSetListener(const StateMsg &msg, State & /* nextState */) in HandleSetListener()
440 int32_t WakeupEngineImpl::HandleStart(const StateMsg &msg, State &nextState) in HandleStart()
493 int32_t WakeupEngineImpl::HandleStop(const StateMsg
[all...]
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/wakeup/headset/
H A Dheadset_wakeup_engine_impl.h32 using OHOS::IntellVoiceUtils::StateMsg;
41 int32_t Handle(const StateMsg &msg);
65 int32_t HandleSetParam(const StateMsg &msg, State &nextState);
66 int32_t HandleInit(const StateMsg &msg, State &nextState);
67 int32_t HandleSetListener(const StateMsg &msg, State &nextState);
68 int32_t HandleInitDone(const StateMsg &msg, State &nextState);
69 int32_t HandleStart(const StateMsg &msg, State &nextState);
70 int32_t HandleStop(const StateMsg &msg, State &nextState);
71 int32_t HandleRecognizeComplete(const StateMsg &msg, State &nextState);
72 int32_t HandleStartCapturer(const StateMsg
[all...]
H A Dheadset_wakeup_engine_impl.cpp105 int32_t HeadsetWakeupEngineImpl::Handle(const StateMsg &msg) in Handle()
169 StateMsg msg(INIT_DONE, &result, sizeof(int32_t)); in OnInitDone()
181 StateMsg msg(RECOGNIZE_COMPLETE, reinterpret_cast<void *>(&event), in OnWakeupRecognition()
186 int32_t HeadsetWakeupEngineImpl::HandleInit(const StateMsg & /* msg */, State &nextState) in HandleInit()
213 int32_t HeadsetWakeupEngineImpl::HandleInitDone(const StateMsg &msg, State &nextState) in HandleInitDone()
226 int32_t HeadsetWakeupEngineImpl::HandleSetListener(const StateMsg &msg, State & /* nextState */) in HandleSetListener()
238 int32_t HeadsetWakeupEngineImpl::HandleStart(const StateMsg & /* msg */, State &nextState) in HandleStart()
311 int32_t HeadsetWakeupEngineImpl::HandleStop(const StateMsg & /* msg */, State &nextState) in HandleStop()
319 int32_t HeadsetWakeupEngineImpl::HandleRecognizeComplete(const StateMsg &msg, State &nextState) in HandleRecognizeComplete()
343 int32_t HeadsetWakeupEngineImpl::HandleStartCapturer(const StateMsg
[all...]
/foundation/ai/intelligent_voice_framework/utils/
H A Dstate_manager.h31 struct StateMsg { struct
39 explicit StateMsg(int32_t id, void *in = nullptr, int32_t inLen = 0, void *out = nullptr) in StateMsg() function
76 using HandleMsg = std::function<int(const StateMsg &msg, State &nextState)>;
110 int Handle(const StateMsg &msg, State &nextState);
161 int HandleMsg(const StateMsg &msg);
180 #define ADDR(func) ([this](const StateMsg &msg, State &nextState)->int { return this->func(msg, nextState); })
H A Dstate_manager.cpp26 int StateActions::Handle(const StateMsg &msg, State &nextState) in Handle()
106 StateMsg msg(info.type, &info, sizeof(info)); in OnTimerEvent()
110 int ModuleStates::HandleMsg(const StateMsg &msg) in HandleMsg()

Completed in 4 milliseconds