Home
last modified time | relevance | path

Searched refs:getKeyphrases (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DEnrollmentUtil.java170 if (soundModel.getKeyphrases() == null || soundModel.getKeyphrases().length != 1) { in verifyKeyphraseSoundModel()
174 Keyphrase keyphrase = soundModel.getKeyphrases()[0]; in verifyKeyphraseSoundModel()
DTestEnrollmentActivity.java116 soundModel.getVendorUuid(), data, soundModel.getKeyphrases()); in onReEnrollButtonClicked()
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger/
DSoundTriggerTest.java142 assertTrue(Arrays.equals(ksm.getKeyphrases(), unparceled.getKeyphrases())); in testKeyphraseSoundModelParcelUnparcel_zeroData()
183 assertTrue(Arrays.equals(ksm.getKeyphrases(), unparceled.getKeyphrases())); in testKeyphraseSoundModelParcelUnparcel_zeroKeyphrases()
211 assertTrue(Arrays.equals(ksm.getKeyphrases(), unparceled.getKeyphrases())); in testKeyphraseSoundModelParcelUnparcel_largeData()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java170 if (soundModel.getKeyphrases() != null && soundModel.getKeyphrases().length == 1) { in updateKeyphraseSoundModel()
172 soundModel.getKeyphrases()[0].getId()); in updateKeyphraseSoundModel()
174 soundModel.getKeyphrases()[0].getRecognitionModes()); in updateKeyphraseSoundModel()
176 getCommaSeparatedString(soundModel.getKeyphrases()[0].getUsers())); in updateKeyphraseSoundModel()
178 soundModel.getKeyphrases()[0].getLocale().toLanguageTag()); in updateKeyphraseSoundModel()
180 soundModel.getKeyphrases()[0].getText()); in updateKeyphraseSoundModel()
DTestModelEnrollmentDatabase.java99 final Keyphrase keyphrase = soundModel.getKeyphrases()[0]; in updateKeyphraseSoundModel()
132 .filter((entry) -> (entry.getValue().getKeyphrases()[0].getText().equals(keyphrase) in getKeyphraseSoundModel()
DVoiceInteractionManagerService.java1810 for (SoundTrigger.Keyphrase phrase : model.getKeyphrases()) { in getEnrolledKeyphraseMetadata()
1882 || soundModel.getKeyphrases() == null) { in startRecognition()
/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java130 aidlModel.phrases = new Phrase[apiModel.getKeyphrases().length]; in api2aidlPhraseSoundModel()
131 for (int i = 0; i < apiModel.getKeyphrases().length; ++i) { in api2aidlPhraseSoundModel()
132 aidlModel.phrases[i] = api2aidlPhrase(apiModel.getKeyphrases()[i]); in api2aidlPhraseSoundModel()
DSoundTrigger.java783 public Keyphrase[] getKeyphrases() { in getKeyphrases() method in SoundTrigger.KeyphraseSoundModel
834 dest.writeTypedArray(getKeyphrases(), flags); in writeToParcel()
839 return "KeyphraseSoundModel [keyphrases=" + Arrays.toString(getKeyphrases()) in toString()
850 result = prime * result + Arrays.hashCode(getKeyphrases()); in hashCode()
866 if (!Arrays.equals(getKeyphrases(), other.getKeyphrases())) { in equals()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerService.java662 if (soundModel.getKeyphrases() == null || soundModel.getKeyphrases().length != 1) { in loadKeyphraseSoundModel()
676 soundModel.getKeyphrases()[0].getId()); in loadKeyphraseSoundModel()
841 ((KeyphraseSoundModel) soundModel).getKeyphrases()[0].getId()); in unloadSoundModel()
/frameworks/base/core/api/
Dsystem-current.txt6708 method @NonNull public android.hardware.soundtrigger.SoundTrigger.Keyphrase[] getKeyphrases();