Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTrigger.aidl19 parcelable SoundTrigger.ConfidenceLevel;
20 parcelable SoundTrigger.Keyphrase;
21 parcelable SoundTrigger.RecognitionEvent;
22 parcelable SoundTrigger.KeyphraseRecognitionEvent;
23 parcelable SoundTrigger.GenericRecognitionEvent;
24 parcelable SoundTrigger.KeyphraseRecognitionExtra;
25 parcelable SoundTrigger.KeyphraseSoundModel;
26 parcelable SoundTrigger.GenericSoundModel;
27 parcelable SoundTrigger.ModuleProperties;
28 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;
32 void onKeyphraseDetected(in SoundTrigger.KeyphraseRecognitionEvent recognitionEvent); in onKeyphraseDetected()
42 void onGenericSoundTriggerDetected(in SoundTrigger.GenericRecognitionEvent recognitionEvent); in onGenericSoundTriggerDetected()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerInternal.java20 import android.hardware.soundtrigger.SoundTrigger;
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.ModuleProperties;
26 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
27 import android.hardware.soundtrigger.SoundTrigger.RecognitionEvent;
28 import android.hardware.soundtrigger.SoundTrigger.SoundModelEvent;
44 public static final int STATUS_ERROR = SoundTrigger.STATUS_ERROR;
[all …]
DSoundTriggerHelper.java24 import android.hardware.soundtrigger.SoundTrigger;
25 import android.hardware.soundtrigger.SoundTrigger.GenericRecognitionEvent;
26 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
27 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
28 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionEvent;
29 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra;
30 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
31 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
32 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
33 import android.hardware.soundtrigger.SoundTrigger.RecognitionEvent;
[all …]
DSoundTriggerService.java18 import static android.hardware.soundtrigger.SoundTrigger.STATUS_ERROR;
24 import android.hardware.soundtrigger.SoundTrigger;
25 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
26 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
27 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
28 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
151 public SoundTrigger.GenericSoundModel getSoundModel(ParcelUuid soundModelId) { in getSoundModel()
156 SoundTrigger.GenericSoundModel model = mDbHelper.getGenericSoundModel( in getSoundModel()
162 public void updateSoundModel(SoundTrigger.GenericSoundModel soundModel) { in updateSoundModel()
DSoundTriggerDbHelper.java24 import android.hardware.soundtrigger.SoundTrigger;
25 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
/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.cpp118 IMPLEMENT_META_INTERFACE(SoundTrigger, "android.hardware.ISoundTrigger");
/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()
148 int status = SoundTrigger.STATUS_ERROR; in deleteSoundModel()
154 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/
DISoundTriggerService.aidl20 import android.hardware.soundtrigger.SoundTrigger;
30 SoundTrigger.GenericSoundModel getSoundModel(in ParcelUuid soundModelId); in getSoundModel()
32 void updateSoundModel(in SoundTrigger.GenericSoundModel soundModel); in updateSoundModel()
37 in SoundTrigger.RecognitionConfig config); in startRecognition()
DIVoiceInteractionManagerService.aidl27 import android.hardware.soundtrigger.SoundTrigger;
53 SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in getKeyphraseSoundModel()
57 int updateKeyphraseSoundModel(in SoundTrigger.KeyphraseSoundModel model); in updateKeyphraseSoundModel()
69 SoundTrigger.ModuleProperties getDspModuleProperties(in IVoiceInteractionService service); in getDspModuleProperties()
85 in SoundTrigger.RecognitionConfig recognitionConfig); in startRecognition()
/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;
34 import android.hardware.soundtrigger.SoundTrigger.RecognitionEvent;
165 = SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER;
171 = SoundTrigger.RECOGNITION_MODE_USER_IDENTIFICATION;
[all …]
/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/media/java/android/media/soundtrigger/
DSoundTriggerManager.java25 import android.hardware.soundtrigger.SoundTrigger;
144 private SoundTrigger.GenericSoundModel mGenericSoundModel;
149 Model(SoundTrigger.GenericSoundModel soundTriggerModel) { in Model()
158 return new Model(new SoundTrigger.GenericSoundModel(modelUuid, in create()
177 SoundTrigger.GenericSoundModel getGenericSoundModel() { in getGenericSoundModel()
DSoundTriggerDetector.java18 import static android.hardware.soundtrigger.SoundTrigger.STATUS_OK;
26 import android.hardware.soundtrigger.SoundTrigger;
27 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
298 public void onGenericSoundTriggerDetected(SoundTrigger.GenericRecognitionEvent event) { in onGenericSoundTriggerDetected()
308 public void onKeyphraseDetected(SoundTrigger.KeyphraseRecognitionEvent event) { in onKeyphraseDetected()
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/stubhal/
DGenericSoundModelTest.java27 import android.hardware.soundtrigger.SoundTrigger.GenericRecognitionEvent;
28 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
29 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionEvent;
30 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
141 android.hardware.soundtrigger.SoundTrigger.STATUS_OK, r); in testStartStopGenericSoundModel()
146 android.hardware.soundtrigger.SoundTrigger.STATUS_OK, r); in testStartStopGenericSoundModel()
237 android.hardware.soundtrigger.SoundTrigger.STATUS_OK, r); in testFuzzGenericSoundModel()
255 android.hardware.soundtrigger.SoundTrigger.STATUS_OK, r); in testFuzzGenericSoundModel()
/frameworks/base/core/jni/
Dandroid_hardware_SoundTrigger.cpp360 static sp<SoundTrigger> getSoundTrigger(JNIEnv* env, jobject thiz) in getSoundTrigger()
363 SoundTrigger* const st = (SoundTrigger*)env->GetLongField(thiz, in getSoundTrigger()
365 return sp<SoundTrigger>(st); in getSoundTrigger()
368 static sp<SoundTrigger> setSoundTrigger(JNIEnv* env, jobject thiz, const sp<SoundTrigger>& module) in setSoundTrigger()
371 sp<SoundTrigger> old = (SoundTrigger*)env->GetLongField(thiz, in setSoundTrigger()
402 status_t status = SoundTrigger::listModules(nModules, &numModules); in android_hardware_SoundTrigger_listModules()
410 status = SoundTrigger::listModules(nModules, &numModules); in android_hardware_SoundTrigger_listModules()
422 SoundTrigger::guidToString(&nModules[i].properties.uuid, in android_hardware_SoundTrigger_listModules()
470 sp<SoundTrigger> module = SoundTrigger::attach(handle, callback); in android_hardware_SoundTrigger_setup()
482 sp<SoundTrigger> module = setSoundTrigger(env, thiz, 0); in android_hardware_SoundTrigger_detach()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java24 import android.hardware.soundtrigger.SoundTrigger;
25 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
26 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
156 values.put(SoundModelContract.KEY_TYPE, SoundTrigger.SoundModel.TYPE_KEYPHRASE); in updateKeyphraseSoundModel()
225 if (type != SoundTrigger.SoundModel.TYPE_KEYPHRASE) { in getKeyphraseSoundModel()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerUtil.java21 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
/frameworks/base/
Dpreloaded-classes96 [Landroid.hardware.soundtrigger.SoundTrigger$ConfidenceLevel;
97 [Landroid.hardware.soundtrigger.SoundTrigger$Keyphrase;
98 [Landroid.hardware.soundtrigger.SoundTrigger$KeyphraseRecognitionExtra;
1277 android.hardware.soundtrigger.SoundTrigger
1278 android.hardware.soundtrigger.SoundTrigger$ConfidenceLevel
1279 android.hardware.soundtrigger.SoundTrigger$ConfidenceLevel$1
1280 android.hardware.soundtrigger.SoundTrigger$GenericRecognitionEvent
1281 android.hardware.soundtrigger.SoundTrigger$GenericRecognitionEvent$1
1282 android.hardware.soundtrigger.SoundTrigger$GenericSoundModel
1283 android.hardware.soundtrigger.SoundTrigger$Keyphrase
[all …]

12