Home
last modified time | relevance | path

Searched refs:SoundTrigger (Results 1 – 25 of 34) 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.ModelParamRange;
28 parcelable SoundTrigger.ModuleProperties;
[all …]
DSoundTriggerModule.java54 int moduleId, @NonNull SoundTrigger.StatusListener listener, @NonNull Looper looper) in SoundTriggerModule()
81 SoundTrigger.handleException(e); in detach()
101 public synchronized int loadSoundModel(@NonNull SoundTrigger.SoundModel model, in loadSoundModel()
104 if (model instanceof SoundTrigger.GenericSoundModel) { in loadSoundModel()
106 (SoundTrigger.GenericSoundModel) model); in loadSoundModel()
108 return SoundTrigger.STATUS_OK; in loadSoundModel()
110 if (model instanceof SoundTrigger.KeyphraseSoundModel) { in loadSoundModel()
112 (SoundTrigger.KeyphraseSoundModel) model); in loadSoundModel()
114 return SoundTrigger.STATUS_OK; in loadSoundModel()
116 return SoundTrigger.STATUS_BAD_VALUE; in loadSoundModel()
[all …]
DConversionUtil.java45 public static SoundTrigger.ModuleProperties aidl2apiModuleDescriptor( in aidl2apiModuleDescriptor()
48 return new SoundTrigger.ModuleProperties( in aidl2apiModuleDescriptor()
71 result |= SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER; in aidl2apiRecognitionModes()
74 result |= SoundTrigger.RECOGNITION_MODE_USER_IDENTIFICATION; in aidl2apiRecognitionModes()
77 result |= SoundTrigger.RECOGNITION_MODE_USER_AUTHENTICATION; in aidl2apiRecognitionModes()
80 result |= SoundTrigger.RECOGNITION_MODE_GENERIC; in aidl2apiRecognitionModes()
87 if ((apiModes & SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER) != 0) { in api2aidlRecognitionModes()
90 if ((apiModes & SoundTrigger.RECOGNITION_MODE_USER_IDENTIFICATION) != 0) { in api2aidlRecognitionModes()
93 if ((apiModes & SoundTrigger.RECOGNITION_MODE_USER_AUTHENTICATION) != 0) { in api2aidlRecognitionModes()
96 if ((apiModes & SoundTrigger.RECOGNITION_MODE_GENERIC) != 0) { in api2aidlRecognitionModes()
[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()
DSoundTrigger.java64 public class SoundTrigger { class
67 private SoundTrigger() { in SoundTrigger() method in SoundTrigger
/frameworks/base/core/java/com/android/internal/app/
DISoundTriggerService.aidl22 import android.hardware.soundtrigger.SoundTrigger;
33 SoundTrigger.GenericSoundModel getSoundModel(in ParcelUuid soundModelId); in getSoundModel()
35 void updateSoundModel(in SoundTrigger.GenericSoundModel soundModel); in updateSoundModel()
40 in SoundTrigger.RecognitionConfig config); in startRecognition()
44 int loadGenericSoundModel(in SoundTrigger.GenericSoundModel soundModel); in loadGenericSoundModel()
45 int loadKeyphraseSoundModel(in SoundTrigger.KeyphraseSoundModel soundModel); in loadKeyphraseSoundModel()
48 in ComponentName callbackIntent,in SoundTrigger.RecognitionConfig config); in startRecognitionForService()
59 @nullable SoundTrigger.ModuleProperties getModuleProperties(); in getModuleProperties()
66 @nullable SoundTrigger.ModelParamRange queryParameter(in ParcelUuid soundModelId, in queryParameter()
DIVoiceInteractionManagerService.aidl31 import android.hardware.soundtrigger.SoundTrigger;
65 SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in String bcp47Locale); in getKeyphraseSoundModel()
76 int updateKeyphraseSoundModel(in SoundTrigger.KeyphraseSoundModel model); in updateKeyphraseSoundModel()
95 SoundTrigger.ModuleProperties getDspModuleProperties(); in getDspModuleProperties()
125 in SoundTrigger.RecognitionConfig recognitionConfig); in startRecognition()
174 @nullable SoundTrigger.ModelParamRange queryParameter(int keyphraseId, in queryParameter()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerInternal.java22 import android.hardware.soundtrigger.SoundTrigger;
23 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
24 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
25 import android.hardware.soundtrigger.SoundTrigger.ModelParamRange;
26 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
27 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
44 public static final int STATUS_ERROR = SoundTrigger.STATUS_ERROR;
45 public static final int STATUS_OK = SoundTrigger.STATUS_OK;
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.java26 import static android.hardware.soundtrigger.SoundTrigger.STATUS_BAD_VALUE;
27 import static android.hardware.soundtrigger.SoundTrigger.STATUS_ERROR;
28 import static android.hardware.soundtrigger.SoundTrigger.STATUS_NO_INIT;
29 import static android.hardware.soundtrigger.SoundTrigger.STATUS_OK;
46 import android.hardware.soundtrigger.SoundTrigger;
47 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
48 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
49 import android.hardware.soundtrigger.SoundTrigger.ModelParamRange;
50 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
51 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
[all …]
DSoundTriggerDbHelper.java24 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
/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/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
DSoundTriggerTest.java19 import android.hardware.soundtrigger.SoundTrigger.ConfidenceLevel;
20 import android.hardware.soundtrigger.SoundTrigger.Keyphrase;
21 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionEvent;
22 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra;
23 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
24 import android.hardware.soundtrigger.SoundTrigger.RecognitionEvent;
222 RecognitionEvent re = new RecognitionEvent(SoundTrigger.RECOGNITION_STATUS_SUCCESS, 1, in testRecognitionEventParcelUnparcel_noData()
239 RecognitionEvent re = new RecognitionEvent(SoundTrigger.RECOGNITION_STATUS_FAILURE, 1, in testRecognitionEventParcelUnparcel_zeroData()
258 RecognitionEvent re = new RecognitionEvent(SoundTrigger.RECOGNITION_STATUS_ABORT, 1, in testRecognitionEventParcelUnparcel_largeData()
277 RecognitionEvent re = new RecognitionEvent(SoundTrigger.RECOGNITION_STATUS_ABORT, 1, in testRecognitionEventParcelUnparcel_largeAudioData()
[all …]
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerManager.java19 import static android.hardware.soundtrigger.SoundTrigger.STATUS_ERROR;
30 import android.hardware.soundtrigger.SoundTrigger;
31 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
32 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
33 import android.hardware.soundtrigger.SoundTrigger.ModelParamRange;
34 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
35 import android.hardware.soundtrigger.SoundTrigger.SoundModel;
166 private SoundTrigger.GenericSoundModel mGenericSoundModel;
171 Model(SoundTrigger.GenericSoundModel soundTriggerModel) { in Model()
189 return new Model(new SoundTrigger.GenericSoundModel(modelUuid, vendorUuid, data, in create()
[all …]
DSoundTriggerDetector.java18 import static android.hardware.soundtrigger.SoundTrigger.STATUS_OK;
27 import android.hardware.soundtrigger.SoundTrigger;
28 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
29 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
300 audioCapabilities |= SoundTrigger.ModuleProperties.AUDIO_CAPABILITY_ECHO_CANCELLATION; in startRecognition()
303 audioCapabilities |= SoundTrigger.ModuleProperties.AUDIO_CAPABILITY_NOISE_SUPPRESSION; in startRecognition()
355 public void onGenericSoundTriggerDetected(SoundTrigger.GenericRecognitionEvent event) { in onGenericSoundTriggerDetected()
365 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()
DSoundTriggerDetectionService.java29 import android.hardware.soundtrigger.SoundTrigger;
153 @NonNull SoundTrigger.RecognitionEvent event) { in onGenericRecognitionEvent()
245 SoundTrigger.GenericRecognitionEvent event) { in onBind()
/frameworks/base/media/java/android/media/voice/
DKeyphraseModelManager.java24 import android.hardware.soundtrigger.SoundTrigger;
83 public SoundTrigger.KeyphraseSoundModel getKeyphraseSoundModel(int keyphraseId, in getKeyphraseSoundModel()
113 public void updateKeyphraseSoundModel(@NonNull SoundTrigger.KeyphraseSoundModel model) { in updateKeyphraseSoundModel()
117 if (status != SoundTrigger.STATUS_OK) { in updateKeyphraseSoundModel()
150 if (status != SoundTrigger.STATUS_OK) { in deleteKeyphraseSoundModel()
/frameworks/base/core/java/android/service/voice/
DAlwaysOnHotwordDetector.java28 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.ModuleProperties;
33 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
161 = SoundTrigger.RECOGNITION_MODE_VOICE_TRIGGER;
167 = SoundTrigger.RECOGNITION_MODE_USER_IDENTIFICATION;
184 SoundTrigger.ModuleProperties.AUDIO_CAPABILITY_ECHO_CANCELLATION;
191 SoundTrigger.ModuleProperties.AUDIO_CAPABILITY_NOISE_SUPPRESSION;
[all …]
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/stubhal/
DGenericSoundModelTest.java26 import android.hardware.soundtrigger.SoundTrigger.GenericRecognitionEvent;
27 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
28 import android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionEvent;
29 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
140 android.hardware.soundtrigger.SoundTrigger.STATUS_OK, r); in testStartStopGenericSoundModel()
145 android.hardware.soundtrigger.SoundTrigger.STATUS_OK, r); in testStartStopGenericSoundModel()
237 android.hardware.soundtrigger.SoundTrigger.STATUS_OK, r); in testFuzzGenericSoundModel()
256 android.hardware.soundtrigger.SoundTrigger.STATUS_OK, r); in testFuzzGenericSoundModel()
/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;
170 values.put(SoundModelContract.KEY_TYPE, SoundTrigger.SoundModel.TYPE_KEYPHRASE); in updateKeyphraseSoundModel()
271 if (type != SoundTrigger.SoundModel.TYPE_KEYPHRASE) { in getValidKeyphraseSoundModelForUser()
DVoiceInteractionManagerService.java46 import android.hardware.soundtrigger.SoundTrigger;
47 import android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel;
48 import android.hardware.soundtrigger.SoundTrigger.ModelParamRange;
49 import android.hardware.soundtrigger.SoundTrigger.ModuleProperties;
50 import android.hardware.soundtrigger.SoundTrigger.RecognitionConfig;
1079 for (SoundTrigger.Keyphrase phrase : model.getKeyphrases()) { in getEnrolledKeyphraseMetadata()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerUtil.java21 import android.hardware.soundtrigger.SoundTrigger.GenericSoundModel;
/frameworks/base/api/
Dtest-current.txt1496 public class SoundTrigger {
1504 public static final class SoundTrigger.Keyphrase implements android.os.Parcelable {
1505 …ctor public SoundTrigger.Keyphrase(int, int, @NonNull java.util.Locale, @NonNull String, @Nullable…
1511 …method @NonNull public static android.hardware.soundtrigger.SoundTrigger.Keyphrase readFromParcel(…
1513 …tic final android.os.Parcelable.Creator<android.hardware.soundtrigger.SoundTrigger.Keyphrase> CREA…
1516 …public static final class SoundTrigger.KeyphraseSoundModel extends android.hardware.soundtrigger.S…
1517SoundTrigger.KeyphraseSoundModel(@NonNull java.util.UUID, @NonNull java.util.UUID, @Nullable byte[…
1518SoundTrigger.KeyphraseSoundModel(@NonNull java.util.UUID, @NonNull java.util.UUID, @Nullable byte[…
1519 method @NonNull public android.hardware.soundtrigger.SoundTrigger.Keyphrase[] getKeyphrases();
1520 …method @NonNull public static android.hardware.soundtrigger.SoundTrigger.KeyphraseSoundModel readF…
[all …]

12