/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/ |
D | SoundTriggerTest.java | 98 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/ |
D | DatabaseHelper.java | 159 if (soundModel.keyphrases != null && soundModel.keyphrases.length == 1) { in updateKeyphraseSoundModel() 160 values.put(SoundModelContract.KEY_KEYPHRASE_ID, soundModel.keyphrases[0].id); in updateKeyphraseSoundModel() 162 soundModel.keyphrases[0].recognitionModes); in updateKeyphraseSoundModel() 164 getCommaSeparatedString(soundModel.keyphrases[0].users)); in updateKeyphraseSoundModel() 165 values.put(SoundModelContract.KEY_LOCALE, soundModel.keyphrases[0].locale); in updateKeyphraseSoundModel() 166 values.put(SoundModelContract.KEY_HINT_TEXT, soundModel.keyphrases[0].text); in updateKeyphraseSoundModel() 277 Keyphrase[] keyphrases = new Keyphrase[1]; in getKeyphraseSoundModel() local 278 keyphrases[0] = new Keyphrase( in getKeyphraseSoundModel() 285 UUID.fromString(modelUuid), vendorUuid, data, keyphrases); in getKeyphraseSoundModel()
|
D | VoiceInteractionManagerService.java | 1015 || soundModel.keyphrases == null) { in startRecognition()
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | SoundTrigger.java | 432 public final Keyphrase[] keyphrases; // keyword phrases in model field in SoundTrigger.KeyphraseSoundModel 436 UUID uuid, UUID vendorUuid, byte[] data, Keyphrase[] keyphrases) { in KeyphraseSoundModel() argument 438 this.keyphrases = keyphrases; in KeyphraseSoundModel() 460 Keyphrase[] keyphrases = in.createTypedArray(Keyphrase.CREATOR); in fromParcel() local 461 return new KeyphraseSoundModel(uuid, vendorUuid, data, keyphrases); in fromParcel() 479 dest.writeTypedArray(keyphrases, flags); in writeToParcel() 484 return "KeyphraseSoundModel [keyphrases=" + Arrays.toString(keyphrases) in toString() 493 result = prime * result + Arrays.hashCode(keyphrases); in hashCode() 506 if (!Arrays.equals(keyphrases, other.keyphrases)) in equals() 911 public final KeyphraseRecognitionExtra keyphrases[]; field in SoundTrigger.RecognitionConfig [all …]
|
/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/ |
D | EnrollmentUtil.java | 170 if (soundModel.keyphrases == null || soundModel.keyphrases.length != 1) { in verifyKeyphraseSoundModel() 174 Keyphrase keyphrase = soundModel.keyphrases[0]; in verifyKeyphraseSoundModel()
|
D | TestEnrollmentActivity.java | 111 soundModel.vendorUuid, data, soundModel.keyphrases); in onReEnrollButtonClicked()
|
/frameworks/base/core/jni/ |
D | android_hardware_SoundTrigger.cpp | 91 jfieldID keyphrases; member 99 jfieldID keyphrases; member 627 (jobjectArray)env->GetObjectField(jSoundModel, gKeyphraseSoundModelFields.keyphrases); in android_hardware_SoundTrigger_loadSoundModel() 759 (jobjectArray)env->GetObjectField(jConfig, gRecognitionConfigFields.keyphrases); in android_hardware_SoundTrigger_startRecognition() 905 gKeyphraseSoundModelFields.keyphrases = GetFieldIDOrDie(env, keyphraseSoundModelClass, in register_android_hardware_SoundTrigger() 930 gRecognitionConfigFields.keyphrases = GetFieldIDOrDie(env, keyRecognitionConfigClass, in register_android_hardware_SoundTrigger()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/ |
D | SoundTriggerService.java | 393 if (soundModel.keyphrases == null || soundModel.keyphrases.length != 1) { in loadKeyphraseSoundModel() 415 mSoundTriggerHelper.unloadKeyphraseSoundModel(soundModel.keyphrases[0].id); in loadKeyphraseSoundModel() 592 ((KeyphraseSoundModel)soundModel).keyphrases[0].id); in unloadSoundModel()
|