Home
last modified time | relevance | path

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

/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
DSoundTriggerTest.java121 assertTrue(Arrays.equals(keyphrases, unparceled.getKeyphrases())); in testKeyphraseSoundModelParcelUnparcel_noData()
145 assertTrue(Arrays.equals(ksm.getKeyphrases(), unparceled.getKeyphrases())); in testKeyphraseSoundModelParcelUnparcel_zeroData()
167 assertNull(unparceled.getKeyphrases()); in testKeyphraseSoundModelParcelUnparcel_noKeyphrases()
189 assertTrue(Arrays.equals(ksm.getKeyphrases(), unparceled.getKeyphrases())); in testKeyphraseSoundModelParcelUnparcel_zeroKeyphrases()
217 assertTrue(Arrays.equals(ksm.getKeyphrases(), unparceled.getKeyphrases())); in testKeyphraseSoundModelParcelUnparcel_largeData()
/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/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java174 if (soundModel.getKeyphrases() != null && soundModel.getKeyphrases().length == 1) { in updateKeyphraseSoundModel()
176 soundModel.getKeyphrases()[0].getId()); in updateKeyphraseSoundModel()
178 soundModel.getKeyphrases()[0].getRecognitionModes()); in updateKeyphraseSoundModel()
180 getCommaSeparatedString(soundModel.getKeyphrases()[0].getUsers())); in updateKeyphraseSoundModel()
182 soundModel.getKeyphrases()[0].getLocale().toLanguageTag()); in updateKeyphraseSoundModel()
184 soundModel.getKeyphrases()[0].getText()); in updateKeyphraseSoundModel()
DVoiceInteractionManagerService.java1079 for (SoundTrigger.Keyphrase phrase : model.getKeyphrases()) { in getEnrolledKeyphraseMetadata()
1128 || soundModel.getKeyphrases() == null) { in startRecognition()
/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java125 aidlModel.phrases = new Phrase[apiModel.getKeyphrases().length]; in api2aidlPhraseSoundModel()
126 for (int i = 0; i < apiModel.getKeyphrases().length; ++i) { in api2aidlPhraseSoundModel()
127 aidlModel.phrases[i] = api2aidlPhrase(apiModel.getKeyphrases()[i]); in api2aidlPhraseSoundModel()
DSoundTrigger.java763 public Keyphrase[] getKeyphrases() { in getKeyphrases() method in SoundTrigger.KeyphraseSoundModel
814 dest.writeTypedArray(getKeyphrases(), flags); in writeToParcel()
819 return "KeyphraseSoundModel [keyphrases=" + Arrays.toString(getKeyphrases()) in toString()
830 result = prime * result + Arrays.hashCode(getKeyphrases()); in hashCode()
846 if (!Arrays.equals(getKeyphrases(), other.getKeyphrases())) { in equals()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerService.java407 if (soundModel.getKeyphrases() == null || soundModel.getKeyphrases().length != 1) { in loadKeyphraseSoundModel()
430 soundModel.getKeyphrases()[0].getId()); in loadKeyphraseSoundModel()
610 ((KeyphraseSoundModel) soundModel).getKeyphrases()[0].getId()); in unloadSoundModel()
/frameworks/base/api/
Dtest-current.txt1519 method @NonNull public android.hardware.soundtrigger.SoundTrigger.Keyphrase[] getKeyphrases();
Dsystem-current.txt3600 method @NonNull public android.hardware.soundtrigger.SoundTrigger.Keyphrase[] getKeyphrases();
/frameworks/base/non-updatable-api/
Dsystem-current.txt3548 method @NonNull public android.hardware.soundtrigger.SoundTrigger.Keyphrase[] getKeyphrases();