/frameworks/av/soundtrigger/ |
D | SoundTrigger.cpp | 58 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 …]
|
D | Android.mk | 20 SoundTrigger.cpp \
|
D | ISoundTrigger.cpp | 116 IMPLEMENT_META_INTERFACE(SoundTrigger, "android.hardware.ISoundTrigger");
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | SoundTrigger.aidl | 19 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;
|
D | SoundTriggerModule.java | 42 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()
|
D | IRecognitionStatusCallback.aidl | 19 import android.hardware.soundtrigger.SoundTrigger; 30 void onDetected(in SoundTrigger.KeyphraseRecognitionEvent recognitionEvent); in onDetected()
|
D | SoundTrigger.java | 34 public class SoundTrigger { class
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | SoundTriggerHelper.java | 24 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 …]
|
D | DatabaseHelper.java | 24 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()
|
D | VoiceInteractionManagerService.java | 35 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/ |
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() 149 int status = SoundTrigger.STATUS_ERROR; in deleteSoundModel() 155 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/core/java/com/android/internal/app/ |
D | IVoiceInteractionManagerService.aidl | 26 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/ |
D | SoundTrigger.h | 32 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,
|
D | ISoundTrigger.h | 31 DECLARE_META_INTERFACE(SoundTrigger);
|
/frameworks/base/core/java/android/service/voice/ |
D | AlwaysOnHotwordDetector.java | 27 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/ |
D | android_hardware_SoundTrigger.cpp | 345 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/ |
D | preloaded-classes | 53 [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/ |
D | AudioPolicyManager.cpp | 1511 SoundTrigger::setCaptureState(true); in startInput() 1593 SoundTrigger::setCaptureState(false); in stopInput()
|