1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef DUMMY_ENGINE_MANAGER_H 16 #define DUMMY_ENGINE_MANAGER_H 17 #include "i_intell_voice_engine.h" 18 #include "i_intell_voice_service.h" 19 20 namespace OHOS { 21 namespace IntellVoiceEngine { 22 class DummyEngineManager { 23 public: DummyEngineManager()24 DummyEngineManager() {}; 25 ~DummyEngineManager() = default; SetScreenOff(bool value)26 void SetScreenOff(bool value) {}; GetEnrollResult(IntellVoiceEngineType type)27 static bool GetEnrollResult(IntellVoiceEngineType type) { return false; }; 28 AnyEngineExist(const std::vector<IntellVoiceEngineType> & types)29 bool AnyEngineExist(const std::vector<IntellVoiceEngineType>& types) { return false; }; RegisterProxyDeathRecipient(IntellVoiceEngineType type,const sptr<IRemoteObject> & object)30 bool RegisterProxyDeathRecipient(IntellVoiceEngineType type, const sptr<IRemoteObject> &object) { return false; }; DeregisterProxyDeathRecipient(IntellVoiceEngineType type)31 bool DeregisterProxyDeathRecipient(IntellVoiceEngineType type) { return true; }; 32 SetParameter(const std::string & sensibility)33 int32_t SetParameter(const std::string &sensibility) { return 0; }; GetParameter(const std::string & key)34 std::string GetParameter(const std::string &key) { return ""; }; GetWakeupSourceFilesList(std::vector<std::string> & cloneFiles)35 int32_t GetWakeupSourceFilesList(std::vector<std::string> &cloneFiles) { return 0; }; GetWakeupSourceFile(const std::string & filePath,std::vector<uint8_t> & buffer)36 int32_t GetWakeupSourceFile(const std::string &filePath, std::vector<uint8_t> &buffer) { return 0; }; SendWakeupFile(const std::string & filePath,const std::vector<uint8_t> & buffer)37 int32_t SendWakeupFile(const std::string &filePath, const std::vector<uint8_t> &buffer) { return 0; }; GetUploadFiles(int numMax,std::vector<UploadFilesFromHdi> & files)38 int32_t GetUploadFiles(int numMax, std::vector<UploadFilesFromHdi> &files) { return 0; }; 39 ClearUserDataInner()40 void ClearUserDataInner() {}; HeadsetHostDie()41 void HeadsetHostDie() {}; IsNeedUpdateComplete(int32_t result,const std::string & param)42 bool IsNeedUpdateComplete(int32_t result, const std::string ¶m) { return false; }; IsNeedUpdateRetry()43 bool IsNeedUpdateRetry() { return false; }; EngineOnDetected(int32_t uuid)44 void EngineOnDetected(int32_t uuid) {}; ClearWakeupEngineCb()45 void ClearWakeupEngineCb() {}; CreateOrResetWakeupEngine()46 bool CreateOrResetWakeupEngine() { return false; }; IsEngineExist(IntellVoiceEngineType type)47 bool IsEngineExist(IntellVoiceEngineType type) { return false; }; 48 sptr<IIntellVoiceEngine> CreateEngine(IntellVoiceEngineType type, const std::string ¶m = "") 49 { return nullptr; }; ReleaseEngineInner(IntellVoiceEngineType type)50 int32_t ReleaseEngineInner(IntellVoiceEngineType type) { return 0; }; SilenceUpdate()51 int32_t SilenceUpdate() { return 0; }; 52 int32_t WhisperVprUpdate(bool reEnroll = false) { return 0; }; CloneUpdate(const std::string & wakeupInfo,const sptr<IRemoteObject> & object)53 int32_t CloneUpdate(const std::string &wakeupInfo, const sptr<IRemoteObject> &object) { return 0; }; ServiceStopProc()54 int32_t ServiceStopProc() { return 0; }; SetDspSensibility(const std::string & sensibility)55 void SetDspSensibility(const std::string &sensibility) {}; OnServiceStart()56 void OnServiceStart() {}; OnServiceStop()57 void OnServiceStop() {}; 58 }; 59 } // namespace IntellVoice 60 } // namespace OHOS 61 #endif 62