/ohos5.0/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/wakeup/ |
H A D | wakeup_engine_impl.h | 33 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); 81 int32_t HandleRead(const StateMsg &msg, State &nextState); [all …]
|
H A D | wakeup_engine.cpp | 51 StateMsg msg(START_RECOGNIZE, &uuid, sizeof(int32_t)); in OnDetected() 65 StateMsg msg(INIT); in Init() 116 StateMsg msg(STOP_CAPTURER); in StopCapturer() 131 StateMsg msg(START_RECOGNIZE); in NotifyHeadsetWakeEvent() 140 StateMsg msg(RELEASE); in HandleHeadsetOff() 177 StateMsg msg(INIT); in HandleHeadsetOn() 200 StateMsg msg(RELEASE); in Detach() 212 StateMsg msg(SET_PARAM, ¶m, sizeof(param)); in SetParameter() 230 StateMsg msg(STOP_RECOGNIZE); in Stop() 278 StateMsg msg(RESET_ADAPTER); in ResetAdapter() [all …]
|
H A D | wakeup_engine_impl.cpp | 113 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() 375 int32_t WakeupEngineImpl::HandleInit(const StateMsg & /* msg */, State &nextState) in HandleInit() argument 410 int32_t WakeupEngineImpl::HandleInitDone(const StateMsg &msg, State &nextState) in HandleInitDone() 435 int32_t WakeupEngineImpl::HandleStart(const StateMsg &msg, State &nextState) in HandleStart() 487 int32_t WakeupEngineImpl::HandleStop(const StateMsg & /* msg */, State &nextState) in HandleStop() argument 519 int32_t WakeupEngineImpl::HandleStartCapturer(const StateMsg &msg, State &nextState) in HandleStartCapturer() 532 int32_t WakeupEngineImpl::HandleRead(const StateMsg &msg, State & /* nextState */) in HandleRead() [all …]
|
/ohos5.0/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/wakeup/headset/ |
H A D | headset_wakeup_engine_impl.h | 34 using OHOS::IntellVoiceUtils::StateMsg; 43 int32_t Handle(const StateMsg &msg); 68 int32_t HandleSetParam(const StateMsg &msg, State &nextState); 69 int32_t HandleInit(const StateMsg &msg, State &nextState); 70 int32_t HandleSetListener(const StateMsg &msg, State &nextState); 71 int32_t HandleInitDone(const StateMsg &msg, State &nextState); 72 int32_t HandleStart(const StateMsg &msg, State &nextState); 73 int32_t HandleStop(const StateMsg &msg, State &nextState); 76 int32_t HandleRead(const StateMsg &msg, State &nextState); 77 int32_t HandleStopCapturer(const StateMsg &msg, State &nextState); [all …]
|
H A D | headset_wakeup_engine_impl.cpp | 104 int32_t HeadsetWakeupEngineImpl::Handle(const StateMsg &msg) in Handle() 168 StateMsg msg(INIT_DONE, &result, sizeof(int32_t)); in OnInitDone() 180 StateMsg msg(RECOGNIZE_COMPLETE, reinterpret_cast<void *>(&event), in OnWakeupRecognition() 185 int32_t HeadsetWakeupEngineImpl::HandleInit(const StateMsg & /* msg */, State &nextState) in HandleInit() argument 213 int32_t HeadsetWakeupEngineImpl::HandleInitDone(const StateMsg &msg, State &nextState) in HandleInitDone() 238 int32_t HeadsetWakeupEngineImpl::HandleStart(const StateMsg & /* msg */, State &nextState) in HandleStart() argument 311 int32_t HeadsetWakeupEngineImpl::HandleStop(const StateMsg & /* msg */, State &nextState) in HandleStop() argument 343 int32_t HeadsetWakeupEngineImpl::HandleStartCapturer(const StateMsg &msg, State &nextState) in HandleStartCapturer() 356 int32_t HeadsetWakeupEngineImpl::HandleRead(const StateMsg &msg, State & /* nextState */) in HandleRead() 412 int32_t HeadsetWakeupEngineImpl::HandleRelease(const StateMsg & /* msg */, State &nextState) in HandleRelease() argument [all …]
|
/ohos5.0/foundation/ai/intelligent_voice_framework/utils/ |
H A D | state_manager.h | 31 struct StateMsg { struct 39 explicit StateMsg(int32_t id, void *in = nullptr, int32_t inLen = 0, void *out = nullptr) argument 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, nex…
|
H A D | state_manager.cpp | 26 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()
|