Lines Matching full:soundtrigger
18 #define LOG_TAG "SoundTrigger"
27 #include <soundtrigger/SoundTrigger.h>
28 #include <soundtrigger/ISoundTrigger.h>
29 #include <soundtrigger/ISoundTriggerHwService.h>
30 #include <soundtrigger/ISoundTriggerClient.h>
31 #include <soundtrigger/SoundTriggerCallback.h>
58 const sp<ISoundTriggerHwService>& SoundTrigger::getSoundTriggerHwService()
83 status_t SoundTrigger::listModules(struct sound_trigger_module_descriptor *modules,
94 sp<SoundTrigger> SoundTrigger::attach(const sound_trigger_module_handle_t module,
98 sp<SoundTrigger> soundTrigger;
101 return soundTrigger;
103 soundTrigger = new SoundTrigger(module, callback);
104 status_t status = service->attach(module, soundTrigger, soundTrigger->mISoundTrigger);
106 if (status == NO_ERROR && soundTrigger->mISoundTrigger != 0) {
107 IInterface::asBinder(soundTrigger->mISoundTrigger)->linkToDeath(soundTrigger);
110 soundTrigger.clear();
112 return soundTrigger;
116 status_t SoundTrigger::setCaptureState(bool active)
126 // SoundTrigger
127 SoundTrigger::SoundTrigger(sound_trigger_module_handle_t module,
133 SoundTrigger::~SoundTrigger()
141 void SoundTrigger::detach() {
152 status_t SoundTrigger::loadSoundModel(const sp<IMemory>& modelMemory,
163 status_t SoundTrigger::unloadSoundModel(sound_model_handle_t handle)
172 status_t SoundTrigger::startRecognition(sound_model_handle_t handle,
182 status_t SoundTrigger::stopRecognition(sound_model_handle_t handle)
192 void SoundTrigger::onRecognitionEvent(const sp<IMemory>& eventMemory)
205 void SoundTrigger::onSoundModelEvent(const sp<IMemory>& eventMemory)
218 void SoundTrigger::onServiceStateChange(const sp<IMemory>& eventMemory)
232 void SoundTrigger::binderDied(const wp<IBinder>& who __unused) {
234 ALOGW("SoundTrigger server binder Died ");
241 status_t SoundTrigger::stringToGuid(const char *str, sound_trigger_uuid_t *guid)
267 status_t SoundTrigger::guidToString(const sound_trigger_uuid_t *guid, char *str, size_t maxLen)