/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | SoundTrigger.aidl | 19 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;
|
D | SoundTriggerModule.java | 46 SoundTriggerModule(int moduleId, SoundTrigger.StatusListener listener, Handler handler) { in SoundTriggerModule() 49 native_setup(SoundTrigger.getCurrentOpPackageName(), in SoundTriggerModule() 83 public native int loadSoundModel(SoundTrigger.SoundModel model, int[] soundModelHandle); in loadSoundModel() 118 public native int startRecognition(int soundModelHandle, SoundTrigger.RecognitionConfig config); in startRecognition() 156 NativeEventHandlerDelegate(final SoundTrigger.StatusListener listener, in NativeEventHandlerDelegate() 176 (SoundTrigger.RecognitionEvent)msg.obj); in NativeEventHandlerDelegate() 182 (SoundTrigger.SoundModelEvent)msg.obj); in NativeEventHandlerDelegate()
|
D | IRecognitionStatusCallback.aidl | 19 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/ |
D | SoundTriggerInternal.java | 20 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 …]
|
D | SoundTriggerHelper.java | 24 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 …]
|
D | SoundTriggerService.java | 25 import static android.hardware.soundtrigger.SoundTrigger.STATUS_ERROR; 26 import static android.hardware.soundtrigger.SoundTrigger.STATUS_OK; 42 import android.hardware.soundtrigger.SoundTrigger; 43 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel; 44 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel; 45 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties; 46 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig; 47 import android.hardware.soundtrigger.SoundTrigger.SoundModel; 301 public SoundTrigger.GenericSoundModel getSoundModel(ParcelUuid soundModelId) { in getSoundModel() 310 SoundTrigger.GenericSoundModel model = mDbHelper.getGenericSoundModel( in getSoundModel() [all …]
|
D | SoundTriggerDbHelper.java | 24 import android.hardware.soundtrigger.SoundTrigger; 25 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
|
/frameworks/av/soundtrigger/ |
D | SoundTrigger.cpp | 58 const sp<ISoundTriggerHwService> SoundTrigger::getSoundTriggerHwService() in getSoundTriggerHwService() 83 status_t SoundTrigger::listModules(const String16& opPackageName, in listModules() 95 sp<SoundTrigger> SoundTrigger::attach(const String16& opPackageName, in attach() 100 sp<SoundTrigger> soundTrigger; in attach() 105 soundTrigger = new SoundTrigger(module, callback); in attach() 119 status_t SoundTrigger::setCaptureState(bool active) in setCaptureState() 130 SoundTrigger::SoundTrigger(sound_trigger_module_handle_t /*module*/, in SoundTrigger() function in android::SoundTrigger 136 SoundTrigger::~SoundTrigger() in ~SoundTrigger() 144 void SoundTrigger::detach() { in detach() 155 status_t SoundTrigger::loadSoundModel(const sp<IMemory>& modelMemory, in loadSoundModel() [all …]
|
D | Android.bp | 19 "SoundTrigger.cpp",
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ISoundTriggerService.aidl | 22 import android.hardware.soundtrigger.SoundTrigger; 32 SoundTrigger.GenericSoundModel getSoundModel(in ParcelUuid soundModelId); in getSoundModel() 34 void updateSoundModel(in SoundTrigger.GenericSoundModel soundModel); in updateSoundModel() 39 in SoundTrigger.RecognitionConfig config); in startRecognition() 43 int loadGenericSoundModel(in SoundTrigger.GenericSoundModel soundModel); in loadGenericSoundModel() 44 int loadKeyphraseSoundModel(in SoundTrigger.KeyphraseSoundModel soundModel); in loadKeyphraseSoundModel() 47 in ComponentName callbackIntent,in SoundTrigger.RecognitionConfig config); in startRecognitionForService()
|
D | IVoiceInteractionManagerService.aidl | 29 import android.hardware.soundtrigger.SoundTrigger; 56 SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in getKeyphraseSoundModel() 60 int updateKeyphraseSoundModel(in SoundTrigger.KeyphraseSoundModel model); in updateKeyphraseSoundModel() 72 SoundTrigger.ModuleProperties getDspModuleProperties(in IVoiceInteractionService service); in getDspModuleProperties() 88 in SoundTrigger.RecognitionConfig recognitionConfig); in startRecognition()
|
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/ |
D | EnrollmentUtil.java | 22 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()
|
D | TestEnrollmentActivity.java | 23 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/ |
D | SoundTriggerTest.java | 19 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/media/java/android/media/soundtrigger/ |
D | SoundTriggerManager.java | 19 import static android.hardware.soundtrigger.SoundTrigger.STATUS_ERROR; 29 import android.hardware.soundtrigger.SoundTrigger; 30 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel; 31 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel; 32 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig; 33 import android.hardware.soundtrigger.SoundTrigger.SoundModel; 155 private SoundTrigger.GenericSoundModel mGenericSoundModel; 160 Model(SoundTrigger.GenericSoundModel soundTriggerModel) { in Model() 169 return new Model(new SoundTrigger.GenericSoundModel(modelUuid, in create() 188 SoundTrigger.GenericSoundModel getGenericSoundModel() { in getGenericSoundModel()
|
D | SoundTriggerDetector.java | 18 import static android.hardware.soundtrigger.SoundTrigger.STATUS_OK; 27 import android.hardware.soundtrigger.SoundTrigger; 28 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig; 319 public void onGenericSoundTriggerDetected(SoundTrigger.GenericRecognitionEvent event) { in onGenericSoundTriggerDetected() 329 public void onKeyphraseDetected(SoundTrigger.KeyphraseRecognitionEvent event) { in onKeyphraseDetected()
|
D | ISoundTriggerDetectionService.aidl | 20 import android.hardware.soundtrigger.SoundTrigger; 32 …void onGenericRecognitionEvent(in ParcelUuid uuid, int opId, in SoundTrigger.GenericRecognitionEve… in onGenericRecognitionEvent()
|
D | SoundTriggerDetectionService.java | 29 import android.hardware.soundtrigger.SoundTrigger; 153 @NonNull SoundTrigger.RecognitionEvent event) { in onGenericRecognitionEvent() 245 SoundTrigger.GenericRecognitionEvent event) { in onBind()
|
/frameworks/base/core/java/android/service/voice/ |
D | AlwaysOnHotwordDetector.java | 28 import android.hardware.soundtrigger.SoundTrigger; 29 import android.hardware.soundtrigger.SoundTrigger.ConfidenceLevel; 30 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionEvent; 31 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra; 32 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel; 33 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties; 34 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig; 163 = SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER; 169 = SoundTrigger.RECOGNITION_MODE_USER_IDENTIFICATION; 174 private static final int STATUS_ERROR = SoundTrigger.STATUS_ERROR; [all …]
|
/frameworks/av/include/soundtrigger/ |
D | SoundTrigger.h | 32 class SoundTrigger : public BnSoundTriggerClient, 37 virtual ~SoundTrigger(); 42 static sp<SoundTrigger> attach(const String16& opPackageName, 72 SoundTrigger(sound_trigger_module_handle_t module,
|
D | ISoundTrigger.h | 31 DECLARE_META_INTERFACE(SoundTrigger);
|
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/stubhal/ |
D | GenericSoundModelTest.java | 27 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/ |
D | android_hardware_SoundTrigger.cpp | 373 static sp<SoundTrigger> getSoundTrigger(JNIEnv* env, jobject thiz) in getSoundTrigger() 376 SoundTrigger* const st = (SoundTrigger*)env->GetLongField(thiz, in getSoundTrigger() 378 return sp<SoundTrigger>(st); in getSoundTrigger() 381 static sp<SoundTrigger> setSoundTrigger(JNIEnv* env, jobject thiz, const sp<SoundTrigger>& module) in setSoundTrigger() 384 sp<SoundTrigger> old = (SoundTrigger*)env->GetLongField(thiz, in setSoundTrigger() 418 status_t status = SoundTrigger::listModules(opPackageNameString16, nModules, &numModules); in android_hardware_SoundTrigger_listModules() 426 status = SoundTrigger::listModules(opPackageNameString16, nModules, &numModules); in android_hardware_SoundTrigger_listModules() 438 SoundTrigger::guidToString(&nModules[i].properties.uuid, in android_hardware_SoundTrigger_listModules() 490 sp<SoundTrigger> module = SoundTrigger::attach(opPackageNameString16, handle, callback); in android_hardware_SoundTrigger_setup() 502 sp<SoundTrigger> module = setSoundTrigger(env, thiz, 0); in android_hardware_SoundTrigger_detach() [all …]
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | DatabaseHelper.java | 24 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/ |
D | SoundTriggerUtil.java | 21 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
|