Home
last modified time | relevance | path

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

123

/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.ModelParamRange;
28 parcelable SoundTrigger.ModuleProperties;
[all …]
DConversionUtil.java49 public static SoundTrigger.ModuleProperties aidl2apiModuleDescriptor( in aidl2apiModuleDescriptor()
52 return new SoundTrigger.ModuleProperties( in aidl2apiModuleDescriptor()
75 result |= SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER; in aidl2apiRecognitionModes()
78 result |= SoundTrigger.RECOGNITION_MODE_USER_IDENTIFICATION; in aidl2apiRecognitionModes()
81 result |= SoundTrigger.RECOGNITION_MODE_USER_AUTHENTICATION; in aidl2apiRecognitionModes()
84 result |= SoundTrigger.RECOGNITION_MODE_GENERIC; in aidl2apiRecognitionModes()
91 if ((apiModes & SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER) != 0) { in api2aidlRecognitionModes()
94 if ((apiModes & SoundTrigger.RECOGNITION_MODE_USER_IDENTIFICATION) != 0) { in api2aidlRecognitionModes()
97 if ((apiModes & SoundTrigger.RECOGNITION_MODE_USER_AUTHENTICATION) != 0) { in api2aidlRecognitionModes()
100 if ((apiModes & SoundTrigger.RECOGNITION_MODE_GENERIC) != 0) { in api2aidlRecognitionModes()
[all …]
DSoundTriggerModule.java65 int moduleId, @NonNull SoundTrigger.StatusListener listener, @NonNull Looper looper, in SoundTriggerModule()
85 int moduleId, @NonNull SoundTrigger.StatusListener listener, @NonNull Looper looper, in SoundTriggerModule()
125 SoundTrigger.handleException(e); in detach()
148 public synchronized int loadSoundModel(@NonNull SoundTrigger.SoundModel model, in loadSoundModel()
151 if (model instanceof SoundTrigger.GenericSoundModel) { in loadSoundModel()
153 (SoundTrigger.GenericSoundModel) model); in loadSoundModel()
168 return SoundTrigger.STATUS_OK; in loadSoundModel()
170 if (model instanceof SoundTrigger.KeyphraseSoundModel) { in loadSoundModel()
172 (SoundTrigger.KeyphraseSoundModel) model); in loadSoundModel()
187 return SoundTrigger.STATUS_OK; in loadSoundModel()
[all …]
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/tests/voiceinteractiontests/src/com/android/server/soundtrigger/
DConversionUtilTest.java26 import static android.hardware.soundtrigger.SoundTrigger.ConfidenceLevel;
27 import static android.hardware.soundtrigger.SoundTrigger.RECOGNITION_MODE_GENERIC;
28 import static android.hardware.soundtrigger.SoundTrigger.RECOGNITION_MODE_USER_AUTHENTICATION;
29 import static android.hardware.soundtrigger.SoundTrigger.RECOGNITION_MODE_USER_IDENTIFICATION;
30 import static android.hardware.soundtrigger.SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER;
37 import android.hardware.soundtrigger.SoundTrigger;
62 final int flags = SoundTrigger.ModuleProperties.AUDIO_CAPABILITY_ECHO_CANCELLATION in testRecognitionConfigRoundTrip()
63 | SoundTrigger.ModuleProperties.AUDIO_CAPABILITY_NOISE_SUPPRESSION; in testRecognitionConfigRoundTrip()
65 final var keyphrases = new SoundTrigger.KeyphraseRecognitionExtra[2]; in testRecognitionConfigRoundTrip()
66 keyphrases[0] = new SoundTrigger.KeyphraseRecognitionExtra(99, in testRecognitionConfigRoundTrip()
[all …]
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;
216 RecognitionEvent re = new RecognitionEvent(SoundTrigger.RECOGNITION_STATUS_SUCCESS, in testRecognitionEventParcelUnparcel_noData()
245 RecognitionEvent re = new RecognitionEvent(SoundTrigger.RECOGNITION_STATUS_FAILURE, in testRecognitionEventParcelUnparcel_zeroData()
276 RecognitionEvent re = new RecognitionEvent(SoundTrigger.RECOGNITION_STATUS_ABORT, in testRecognitionEventParcelUnparcel_largeData()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DISoundTriggerSession.aidl22 import android.hardware.soundtrigger.SoundTrigger;
33 SoundTrigger.GenericSoundModel getSoundModel(in ParcelUuid soundModelId); in getSoundModel()
35 void updateSoundModel(in SoundTrigger.GenericSoundModel soundModel); in updateSoundModel()
39 int startRecognition(in SoundTrigger.GenericSoundModel soundModel, in startRecognition()
41 in SoundTrigger.RecognitionConfig config, boolean runInBatterySaver); in startRecognition()
45 int loadGenericSoundModel(in SoundTrigger.GenericSoundModel soundModel); in loadGenericSoundModel()
46 int loadKeyphraseSoundModel(in SoundTrigger.KeyphraseSoundModel soundModel); in loadKeyphraseSoundModel()
49 in ComponentName callbackIntent,in SoundTrigger.RecognitionConfig config); in startRecognitionForService()
60 @nullable SoundTrigger.ModuleProperties getModuleProperties(); in getModuleProperties()
67 @nullable SoundTrigger.ModelParamRange queryParameter(in ParcelUuid soundModelId, in queryParameter()
DISoundTriggerService.aidl19 import android.hardware.soundtrigger.SoundTrigger;
48 in SoundTrigger.ModuleProperties moduleProperties, in attachAsOriginator()
70 in SoundTrigger.ModuleProperties moduleProperties, in attachAsMiddleman()
76 List<SoundTrigger.ModuleProperties> listModuleProperties(in Identity originatorIdentity); in listModuleProperties()
DIVoiceInteractionSoundTriggerSession.aidl20 import android.hardware.soundtrigger.SoundTrigger;
37 SoundTrigger.ModuleProperties getDspModuleProperties(); in getDspModuleProperties()
45 in SoundTrigger.RecognitionConfig recognitionConfig, in startRecognition()
95 @nullable SoundTrigger.ModelParamRange queryParameter(int keyphraseId, in queryParameter()
DIHotwordRecognitionStatusCallback.aidl19 import android.hardware.soundtrigger.SoundTrigger;
40 in SoundTrigger.KeyphraseRecognitionEvent recognitionEvent, in onKeyphraseDetected()
57 void onGenericSoundTriggerDetected(in SoundTrigger.GenericRecognitionEvent recognitionEvent); in onGenericSoundTriggerDetected()
DIVoiceInteractionManagerService.aidl22 import android.hardware.soundtrigger.SoundTrigger;
77 SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in getKeyphraseSoundModel()
88 int updateKeyphraseSoundModel(in SoundTrigger.KeyphraseSoundModel model); in updateKeyphraseSoundModel()
265 in SoundTrigger.ModuleProperties moduleProperties); in createSoundTriggerSessionAsOriginator()
271 List<SoundTrigger.ModuleProperties> listModuleProperties(in Identity originatorIdentity); in listModuleProperties()
359 in SoundTrigger.KeyphraseRecognitionEvent event, in triggerHardwareRecognitionEventForTest()
/frameworks/base/services/core/java/com/android/server/
DSoundTriggerInternal.java23 import android.hardware.soundtrigger.SoundTrigger;
24 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
25 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
26 import android.hardware.soundtrigger.SoundTrigger.ModelParamRange;
27 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
28 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
46 int STATUS_ERROR = SoundTrigger.STATUS_ERROR;
47 int STATUS_OK = SoundTrigger.STATUS_OK;
/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.java20 import android.hardware.soundtrigger.SoundTrigger;
21 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
22 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
42 private static final int RECOGNITION_MODES = SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER;
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java27 import android.hardware.soundtrigger.SoundTrigger;
28 import android.hardware.soundtrigger.SoundTrigger.GenericRecognitionEvent;
29 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
30 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
31 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionEvent;
32 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra;
33 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
34 import android.hardware.soundtrigger.SoundTrigger.ModelParamRange;
35 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
36 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
[all …]
DSoundTriggerService.java27 import static android.hardware.soundtrigger.SoundTrigger.STATUS_BAD_VALUE;
28 import static android.hardware.soundtrigger.SoundTrigger.STATUS_DEAD_OBJECT;
29 import static android.hardware.soundtrigger.SoundTrigger.STATUS_ERROR;
30 import static android.hardware.soundtrigger.SoundTrigger.STATUS_OK;
57 import android.hardware.soundtrigger.SoundTrigger;
58 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
59 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
60 import android.hardware.soundtrigger.SoundTrigger.ModelParamRange;
61 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
62 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
[all …]
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerManager.java19 import static android.hardware.soundtrigger.SoundTrigger.STATUS_ERROR;
34 import android.hardware.soundtrigger.SoundTrigger;
35 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
36 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
37 import android.hardware.soundtrigger.SoundTrigger.ModelParamRange;
38 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
39 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
40 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
108 .equals(SoundTrigger.FAKE_HAL_ARCH)) in SoundTriggerManager()
155 private final @NonNull SoundTrigger.ModuleProperties getTestModuleProperties() { in getTestModuleProperties()
[all …]
DSoundTriggerDetector.java18 import static android.hardware.soundtrigger.SoundTrigger.STATUS_OK;
27 import android.hardware.soundtrigger.SoundTrigger;
28 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
29 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
30 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
318 audioCapabilities |= SoundTrigger.ModuleProperties.AUDIO_CAPABILITY_ECHO_CANCELLATION; in startRecognition()
321 audioCapabilities |= SoundTrigger.ModuleProperties.AUDIO_CAPABILITY_NOISE_SUPPRESSION; in startRecognition()
376 public void onGenericSoundTriggerDetected(SoundTrigger.GenericRecognitionEvent event) { in onGenericSoundTriggerDetected()
386 public void onKeyphraseDetected(SoundTrigger.KeyphraseRecognitionEvent event) { in onKeyphraseDetected()
DISoundTriggerDetectionService.aidl20 import android.hardware.soundtrigger.SoundTrigger;
32 …void onGenericRecognitionEvent(in ParcelUuid uuid, int opId, in SoundTrigger.GenericRecognitionEve… in onGenericRecognitionEvent()
DSoundTriggerInstrumentation.java25 import android.hardware.soundtrigger.SoundTrigger;
142 default void onParamSet(@SoundTrigger.ModelParamTypes int param, int value) {} in onParamSet()
211 public @NonNull List<SoundTrigger.Keyphrase> getPhrases() { in getPhrases()
267 mPhrases = new SoundTrigger.Keyphrase[phrases.length]; in ModelSession()
290 private final SoundTrigger.Keyphrase[] mPhrases;
331 public @NonNull SoundTrigger.RecognitionConfig getRecognitionConfig() { in getRecognitionConfig()
344 List<SoundTrigger.KeyphraseRecognitionExtra> phraseExtras) { in triggerRecognitionEvent()
437 private final SoundTrigger.RecognitionConfig mRecognitionConfig;
/frameworks/base/media/java/android/media/voice/
DKeyphraseModelManager.java25 import android.hardware.soundtrigger.SoundTrigger;
85 public SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in getKeyphraseSoundModel()
115 public void updateKeyphraseSoundModel(@NonNull SoundTrigger.KeyphraseSoundModel model) { in updateKeyphraseSoundModel()
119 if (status != SoundTrigger.STATUS_OK) { in updateKeyphraseSoundModel()
152 if (status != SoundTrigger.STATUS_OK) { in deleteKeyphraseSoundModel()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DIEnrolledModelDb.java19 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
20 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
/frameworks/base/core/java/android/service/voice/
DAlwaysOnHotwordDetector.java42 import android.hardware.soundtrigger.SoundTrigger;
43 import android.hardware.soundtrigger.SoundTrigger.ConfidenceLevel;
44 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionEvent;
45 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra;
46 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
47 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
225 = SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER;
232 = SoundTrigger.RECOGNITION_MODE_USER_IDENTIFICATION;
249 SoundTrigger.ModuleProperties.AUDIO_CAPABILITY_ECHO_CANCELLATION;
256 SoundTrigger.ModuleProperties.AUDIO_CAPABILITY_NOISE_SUPPRESSION;
[all …]
DISandboxedDetectionService.aidl20 import android.hardware.soundtrigger.SoundTrigger;
40 in SoundTrigger.KeyphraseRecognitionEvent event, in detectFromDspSource()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerUtil.java21 import android.hardware.soundtrigger.SoundTrigger.RecognitionEvent;
22 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;

123