• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_TRIGGER_MANAGER_H
16 #define DUMMY_TRIGGER_MANAGER_H
17 
18 #include <cstdint>
19 #include <vector>
20 #include <functional>
21 #include <string>
22 #include "trigger_base_type.h"
23 
24 namespace OHOS {
25 namespace IntellVoiceTrigger {
26 class DummyTriggerManager {
27 public:
DummyTriggerManager()28     DummyTriggerManager() {};
29     ~DummyTriggerManager() = default;
30 
UpdateModel(std::vector<uint8_t> buffer,int32_t uuid,TriggerModelType type)31     void UpdateModel(std::vector<uint8_t> buffer, int32_t uuid, TriggerModelType type) {};
DeleteModel(int32_t uuid)32     void DeleteModel(int32_t uuid) {};
IsModelExist(int32_t uuid)33     bool IsModelExist(int32_t uuid) { return false; };
CreateDetector(int32_t uuid,std::function<void ()> onDetected)34     void CreateDetector(int32_t uuid, std::function<void()> onDetected) {};
ReleaseTriggerDetector(int32_t uuid)35     void ReleaseTriggerDetector(int32_t uuid) {};
StartDetection(int32_t uuid)36     int32_t StartDetection(int32_t uuid) { return 0;};
StopDetection(int32_t uuid)37     void StopDetection(int32_t uuid) {};
SetParameter(const std::string & key,const std::string & value)38     int32_t SetParameter(const std::string &key, const std::string &value) { return 0; };
GetParameter(const std::string & key)39     std::string GetParameter(const std::string &key) { return ""; };
OnServiceStart()40     void OnServiceStart() {};
OnServiceStop()41     void OnServiceStop() {};
OnTelephonyStateRegistryServiceChange(bool isAdded)42     void OnTelephonyStateRegistryServiceChange(bool isAdded) {};
OnAudioDistributedServiceChange(bool isAdded)43     void OnAudioDistributedServiceChange(bool isAdded) {};
OnAudioPolicyServiceChange(bool isAdded)44     void OnAudioPolicyServiceChange(bool isAdded) {};
OnPowerManagerServiceChange(bool isAdded)45     void OnPowerManagerServiceChange(bool isAdded) {};
OnDisplayManagerServiceChange(bool isAdded)46     void OnDisplayManagerServiceChange(bool isAdded) {};
47 };
48 }  // namespace IntellVoiceTrigger
49 }  // namespace OHOS
50 #endif