Home
last modified time | relevance | path

Searched refs:SoundTrigger (Results 1 – 20 of 20) sorted by relevance

/frameworks/av/soundtrigger/
DSoundTrigger.cpp58 const sp<ISoundTriggerHwService>& SoundTrigger::getSoundTriggerHwService() in getSoundTriggerHwService()
83 status_t SoundTrigger::listModules(struct sound_trigger_module_descriptor *modules, in listModules()
94 sp<SoundTrigger> SoundTrigger::attach(const sound_trigger_module_handle_t module, in attach()
98 sp<SoundTrigger> soundTrigger; in attach()
103 soundTrigger = new SoundTrigger(module, callback); in attach()
116 status_t SoundTrigger::setCaptureState(bool active) in setCaptureState()
127 SoundTrigger::SoundTrigger(sound_trigger_module_handle_t module, in SoundTrigger() function in android::SoundTrigger
133 SoundTrigger::~SoundTrigger() in ~SoundTrigger()
141 void SoundTrigger::detach() { in detach()
152 status_t SoundTrigger::loadSoundModel(const sp<IMemory>& modelMemory, in loadSoundModel()
[all …]
DAndroid.mk20 SoundTrigger.cpp \
DISoundTrigger.cpp116 IMPLEMENT_META_INTERFACE(SoundTrigger, "android.hardware.ISoundTrigger");
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTrigger.aidl19 parcelable SoundTrigger.ConfidenceLevel;
20 parcelable SoundTrigger.Keyphrase;
21 parcelable SoundTrigger.KeyphraseRecognitionEvent;
22 parcelable SoundTrigger.KeyphraseRecognitionExtra;
23 parcelable SoundTrigger.KeyphraseSoundModel;
24 parcelable SoundTrigger.ModuleProperties;
25 parcelable SoundTrigger.RecognitionConfig;
DSoundTriggerModule.java42 SoundTriggerModule(int moduleId, SoundTrigger.StatusListener listener, Handler handler) { in SoundTriggerModule()
76 public native int loadSoundModel(SoundTrigger.SoundModel model, int[] soundModelHandle); in loadSoundModel()
109 public native int startRecognition(int soundModelHandle, SoundTrigger.RecognitionConfig config); in startRecognition()
129 NativeEventHandlerDelegate(final SoundTrigger.StatusListener listener, in NativeEventHandlerDelegate()
149 (SoundTrigger.RecognitionEvent)msg.obj); in NativeEventHandlerDelegate()
155 (SoundTrigger.SoundModelEvent)msg.obj); in NativeEventHandlerDelegate()
DIRecognitionStatusCallback.aidl19 import android.hardware.soundtrigger.SoundTrigger;
30 void onDetected(in SoundTrigger.KeyphraseRecognitionEvent recognitionEvent); in onDetected()
DSoundTrigger.java34 public class SoundTrigger { class
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DSoundTriggerHelper.java24 import android.hardware.soundtrigger.SoundTrigger;
25 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
26 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionEvent;
27 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra;
28 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
29 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
30 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
31 import android.hardware.soundtrigger.SoundTrigger.RecognitionEvent;
32 import android.hardware.soundtrigger.SoundTrigger.SoundModelEvent;
50 public class SoundTriggerHelper implements SoundTrigger.StatusListener {
[all …]
DDatabaseHelper.java24 import android.hardware.soundtrigger.SoundTrigger;
25 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
26 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
96 values.put(SoundModelContract.KEY_TYPE, SoundTrigger.SoundModel.TYPE_KEYPHRASE); in updateKeyphraseSoundModel()
165 if (type != SoundTrigger.SoundModel.TYPE_KEYPHRASE) { in getKeyphraseSoundModel()
DVoiceInteractionManagerService.java35 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
36 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
37 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DEnrollmentUtil.java22 import android.hardware.soundtrigger.SoundTrigger;
23 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
24 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
68 SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER;
71 SoundTrigger.RECOGNITION_MODE_USER_IDENTIFICATION;
94 int status = SoundTrigger.STATUS_ERROR; in addOrUpdateSoundModel()
100 return status == SoundTrigger.STATUS_OK; in addOrUpdateSoundModel()
149 int status = SoundTrigger.STATUS_ERROR; in deleteSoundModel()
155 return status == SoundTrigger.STATUS_OK; in deleteSoundModel()
DTestEnrollmentActivity.java23 import android.hardware.soundtrigger.SoundTrigger;
24 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
25 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
38 private static final int RECOGNITION_MODES = SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER;
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
DSoundTriggerTest.java19 import android.hardware.soundtrigger.SoundTrigger;
20 import android.hardware.soundtrigger.SoundTrigger.ConfidenceLevel;
21 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
22 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionEvent;
23 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra;
24 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
25 import android.hardware.soundtrigger.SoundTrigger.RecognitionEvent;
213 RecognitionEvent re = new RecognitionEvent(SoundTrigger.RECOGNITION_STATUS_SUCCESS, 1, in testRecognitionEventParcelUnparcel_noData()
230 RecognitionEvent re = new RecognitionEvent(SoundTrigger.RECOGNITION_STATUS_FAILURE, 1, in testRecognitionEventParcelUnparcel_zeroData()
249 RecognitionEvent re = new RecognitionEvent(SoundTrigger.RECOGNITION_STATUS_ABORT, 1, in testRecognitionEventParcelUnparcel_largeData()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DIVoiceInteractionManagerService.aidl26 import android.hardware.soundtrigger.SoundTrigger;
51 SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in getKeyphraseSoundModel()
55 int updateKeyphraseSoundModel(in SoundTrigger.KeyphraseSoundModel model); in updateKeyphraseSoundModel()
67 SoundTrigger.ModuleProperties getDspModuleProperties(in IVoiceInteractionService service); in getDspModuleProperties()
83 in SoundTrigger.RecognitionConfig recognitionConfig); in startRecognition()
/frameworks/av/include/soundtrigger/
DSoundTrigger.h32 class SoundTrigger : public BnSoundTriggerClient,
37 virtual ~SoundTrigger();
41 static sp<SoundTrigger> attach(const sound_trigger_module_handle_t module,
69 SoundTrigger(sound_trigger_module_handle_t module,
DISoundTrigger.h31 DECLARE_META_INTERFACE(SoundTrigger);
/frameworks/base/core/java/android/service/voice/
DAlwaysOnHotwordDetector.java27 import android.hardware.soundtrigger.SoundTrigger;
28 import android.hardware.soundtrigger.SoundTrigger.ConfidenceLevel;
29 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionEvent;
30 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra;
31 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
32 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
33 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
164 = SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER;
170 = SoundTrigger.RECOGNITION_MODE_USER_IDENTIFICATION;
175 private static final int STATUS_ERROR = SoundTrigger.STATUS_ERROR;
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_SoundTrigger.cpp345 static sp<SoundTrigger> getSoundTrigger(JNIEnv* env, jobject thiz) in getSoundTrigger()
348 SoundTrigger* const st = (SoundTrigger*)env->GetLongField(thiz, in getSoundTrigger()
350 return sp<SoundTrigger>(st); in getSoundTrigger()
353 static sp<SoundTrigger> setSoundTrigger(JNIEnv* env, jobject thiz, const sp<SoundTrigger>& module) in setSoundTrigger()
356 sp<SoundTrigger> old = (SoundTrigger*)env->GetLongField(thiz, in setSoundTrigger()
387 status_t status = SoundTrigger::listModules(nModules, &numModules); in android_hardware_SoundTrigger_listModules()
395 status = SoundTrigger::listModules(nModules, &numModules); in android_hardware_SoundTrigger_listModules()
407 SoundTrigger::guidToString(&nModules[i].properties.uuid, in android_hardware_SoundTrigger_listModules()
455 sp<SoundTrigger> module = SoundTrigger::attach(handle, callback); in android_hardware_SoundTrigger_setup()
467 sp<SoundTrigger> module = setSoundTrigger(env, thiz, 0); in android_hardware_SoundTrigger_detach()
[all …]
/frameworks/base/
Dpreloaded-classes53 [Landroid.hardware.soundtrigger.SoundTrigger$ConfidenceLevel;
54 [Landroid.hardware.soundtrigger.SoundTrigger$Keyphrase;
55 [Landroid.hardware.soundtrigger.SoundTrigger$KeyphraseRecognitionExtra;
964 android.hardware.soundtrigger.SoundTrigger
965 android.hardware.soundtrigger.SoundTrigger$ConfidenceLevel
966 android.hardware.soundtrigger.SoundTrigger$ConfidenceLevel$1
967 android.hardware.soundtrigger.SoundTrigger$Keyphrase
968 android.hardware.soundtrigger.SoundTrigger$Keyphrase$1
969 android.hardware.soundtrigger.SoundTrigger$KeyphraseRecognitionEvent
970 android.hardware.soundtrigger.SoundTrigger$KeyphraseRecognitionEvent$1
[all …]
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp1511 SoundTrigger::setCaptureState(true); in startInput()
1593 SoundTrigger::setCaptureState(false); in stopInput()