Home
last modified time | relevance | path

Searched refs:keyphrases (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
DSoundTriggerTest.java98 Keyphrase[] keyphrases = new Keyphrase[2]; in testKeyphraseSoundModelParcelUnparcel_noData() local
99 keyphrases[0] = new Keyphrase(1, 0, "en-US", "hello", new int[] {0}); in testKeyphraseSoundModelParcelUnparcel_noData()
100 keyphrases[1] = new Keyphrase(2, 0, "fr-FR", "there", new int[] {1, 2}); in testKeyphraseSoundModelParcelUnparcel_noData()
102 null, keyphrases); in testKeyphraseSoundModelParcelUnparcel_noData()
116 assertTrue(Arrays.equals(keyphrases, unparceled.keyphrases)); in testKeyphraseSoundModelParcelUnparcel_noData()
121 Keyphrase[] keyphrases = new Keyphrase[2]; in testKeyphraseSoundModelParcelUnparcel_zeroData() local
122 keyphrases[0] = new Keyphrase(1, 0, "en-US", "hello", new int[] {0}); in testKeyphraseSoundModelParcelUnparcel_zeroData()
123 keyphrases[1] = new Keyphrase(2, 0, "fr-FR", "there", new int[] {1, 2}); in testKeyphraseSoundModelParcelUnparcel_zeroData()
125 new byte[0], keyphrases); in testKeyphraseSoundModelParcelUnparcel_zeroData()
138 assertTrue(Arrays.equals(ksm.keyphrases, unparceled.keyphrases)); in testKeyphraseSoundModelParcelUnparcel_zeroData()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java99 if (soundModel.keyphrases != null && soundModel.keyphrases.length == 1) { in updateKeyphraseSoundModel()
100 values.put(SoundModelContract.KEY_KEYPHRASE_ID, soundModel.keyphrases[0].id); in updateKeyphraseSoundModel()
102 soundModel.keyphrases[0].recognitionModes); in updateKeyphraseSoundModel()
104 getCommaSeparatedString(soundModel.keyphrases[0].users)); in updateKeyphraseSoundModel()
105 values.put(SoundModelContract.KEY_LOCALE, soundModel.keyphrases[0].locale); in updateKeyphraseSoundModel()
106 values.put(SoundModelContract.KEY_HINT_TEXT, soundModel.keyphrases[0].text); in updateKeyphraseSoundModel()
212 Keyphrase[] keyphrases = new Keyphrase[1]; in getKeyphraseSoundModel() local
213 keyphrases[0] = new Keyphrase( in getKeyphraseSoundModel()
217 null /* FIXME use vendor UUID */, data, keyphrases); in getKeyphraseSoundModel()
DVoiceInteractionManagerService.java768 || soundModel.keyphrases == null) { in startRecognition()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTrigger.java380 public final Keyphrase[] keyphrases; // keyword phrases in model field in SoundTrigger.KeyphraseSoundModel
383 UUID uuid, UUID vendorUuid, byte[] data, Keyphrase[] keyphrases) { in KeyphraseSoundModel() argument
385 this.keyphrases = keyphrases; in KeyphraseSoundModel()
407 Keyphrase[] keyphrases = in.createTypedArray(Keyphrase.CREATOR); in fromParcel() local
408 return new KeyphraseSoundModel(uuid, vendorUuid, data, keyphrases); in fromParcel()
426 dest.writeTypedArray(keyphrases, flags); in writeToParcel()
431 return "KeyphraseSoundModel [keyphrases=" + Arrays.toString(keyphrases) in toString()
440 result = prime * result + Arrays.hashCode(keyphrases); in hashCode()
453 if (!Arrays.equals(keyphrases, other.keyphrases)) in equals()
669 public final KeyphraseRecognitionExtra keyphrases[]; field in SoundTrigger.RecognitionConfig
[all …]
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DEnrollmentUtil.java171 if (soundModel.keyphrases == null || soundModel.keyphrases.length != 1) { in verifyKeyphraseSoundModel()
175 Keyphrase keyphrase = soundModel.keyphrases[0]; in verifyKeyphraseSoundModel()
DTestEnrollmentActivity.java111 soundModel.vendorUuid, data, soundModel.keyphrases); in onReEnrollButtonClicked()
/frameworks/base/core/jni/
Dandroid_hardware_SoundTrigger.cpp86 jfieldID keyphrases; member
94 jfieldID keyphrases; member
589 (jobjectArray)env->GetObjectField(jSoundModel, gKeyphraseSoundModelFields.keyphrases); in android_hardware_SoundTrigger_loadSoundModel()
719 (jobjectArray)env->GetObjectField(jConfig, gRecognitionConfigFields.keyphrases); in android_hardware_SoundTrigger_startRecognition()
845 gKeyphraseSoundModelFields.keyphrases = GetFieldIDOrDie(env, keyphraseSoundModelClass, in register_android_hardware_SoundTrigger()
865 gRecognitionConfigFields.keyphrases = GetFieldIDOrDie(env, keyRecognitionConfigClass, in register_android_hardware_SoundTrigger()