Home
last modified time | relevance | path

Searched refs:RecognitionMode (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DValidationUtil.java26 import android.media.soundtrigger_middleware.RecognitionMode;
74 if ((phrase.recognitionModes & ~(RecognitionMode.VOICE_TRIGGER in validatePhraseModel()
75 | RecognitionMode.USER_IDENTIFICATION | RecognitionMode.USER_AUTHENTICATION in validatePhraseModel()
76 | RecognitionMode.GENERIC_TRIGGER)) != 0) { in validatePhraseModel()
90 if ((extra.recognitionModes & ~(RecognitionMode.VOICE_TRIGGER in validateRecognitionConfig()
91 | RecognitionMode.USER_IDENTIFICATION | RecognitionMode.USER_AUTHENTICATION in validateRecognitionConfig()
92 | RecognitionMode.GENERIC_TRIGGER)) != 0) { in validateRecognitionConfig()
DConversionUtil.java37 import android.media.soundtrigger_middleware.RecognitionMode;
159 if ((aidlModes & RecognitionMode.VOICE_TRIGGER) != 0) { in aidl2hidlRecognitionModes()
160 hidlModes |= android.hardware.soundtrigger.V2_0.RecognitionMode.VOICE_TRIGGER; in aidl2hidlRecognitionModes()
162 if ((aidlModes & RecognitionMode.USER_IDENTIFICATION) != 0) { in aidl2hidlRecognitionModes()
163 hidlModes |= android.hardware.soundtrigger.V2_0.RecognitionMode.USER_IDENTIFICATION; in aidl2hidlRecognitionModes()
165 if ((aidlModes & RecognitionMode.USER_AUTHENTICATION) != 0) { in aidl2hidlRecognitionModes()
166 hidlModes |= android.hardware.soundtrigger.V2_0.RecognitionMode.USER_AUTHENTICATION; in aidl2hidlRecognitionModes()
168 if ((aidlModes & RecognitionMode.GENERIC_TRIGGER) != 0) { in aidl2hidlRecognitionModes()
169 hidlModes |= android.hardware.soundtrigger.V2_0.RecognitionMode.GENERIC_TRIGGER; in aidl2hidlRecognitionModes()
176 if ((hidlModes & android.hardware.soundtrigger.V2_0.RecognitionMode.VOICE_TRIGGER) != 0) { in hidl2aidlRecognitionModes()
[all …]
/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java31 import android.media.soundtrigger_middleware.RecognitionMode;
70 if ((aidlModes & RecognitionMode.VOICE_TRIGGER) != 0) { in aidl2apiRecognitionModes()
73 if ((aidlModes & RecognitionMode.USER_IDENTIFICATION) != 0) { in aidl2apiRecognitionModes()
76 if ((aidlModes & RecognitionMode.USER_AUTHENTICATION) != 0) { in aidl2apiRecognitionModes()
79 if ((aidlModes & RecognitionMode.GENERIC_TRIGGER) != 0) { in aidl2apiRecognitionModes()
88 result |= RecognitionMode.VOICE_TRIGGER; in api2aidlRecognitionModes()
91 result |= RecognitionMode.USER_IDENTIFICATION; in api2aidlRecognitionModes()
94 result |= RecognitionMode.USER_AUTHENTICATION; in api2aidlRecognitionModes()
97 result |= RecognitionMode.GENERIC_TRIGGER; in api2aidlRecognitionModes()
/frameworks/base/services/tests/servicestests/src/com/android/server/soundtrigger_middleware/
DSoundTriggerMiddlewareImplTest.java52 import android.media.soundtrigger_middleware.RecognitionMode;
144 RecognitionMode.USER_AUTHENTICATION | RecognitionMode.USER_IDENTIFICATION; in createPhraseSoundModel()
166 android.hardware.soundtrigger.V2_0.RecognitionMode.VOICE_TRIGGER in createDefaultProperties()
167 | android.hardware.soundtrigger.V2_0.RecognitionMode.USER_IDENTIFICATION in createDefaultProperties()
168 | android.hardware.soundtrigger.V2_0.RecognitionMode.USER_AUTHENTICATION in createDefaultProperties()
169 | android.hardware.soundtrigger.V2_0.RecognitionMode.GENERIC_TRIGGER; in createDefaultProperties()
199 assertEquals(RecognitionMode.GENERIC_TRIGGER in validateDefaultProperties()
200 | RecognitionMode.USER_AUTHENTICATION in validateDefaultProperties()
201 | RecognitionMode.USER_IDENTIFICATION in validateDefaultProperties()
202 | RecognitionMode.VOICE_TRIGGER, properties.recognitionModes); in validateDefaultProperties()
[all …]
/frameworks/base/media/java/android/media/soundtrigger_middleware/
DRecognitionMode.aidl23 enum RecognitionMode { enum
/frameworks/base/media/
DAndroid.bp42 "java/android/media/soundtrigger_middleware/RecognitionMode.aidl",