Home
last modified time | relevance | path

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

/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/
DSoundTriggerTest.java101 Keyphrase[] keyphrases = new Keyphrase[2]; in testKeyphraseSoundModelParcelUnparcel_noData() local
102 keyphrases[0] = new Keyphrase(1, 0, Locale.forLanguageTag("en-US"), in testKeyphraseSoundModelParcelUnparcel_noData()
104 keyphrases[1] = new Keyphrase(2, 0, Locale.forLanguageTag("fr-FR"), in testKeyphraseSoundModelParcelUnparcel_noData()
107 null, keyphrases); in testKeyphraseSoundModelParcelUnparcel_noData()
121 assertTrue(Arrays.equals(keyphrases, unparceled.getKeyphrases())); in testKeyphraseSoundModelParcelUnparcel_noData()
126 Keyphrase[] keyphrases = new Keyphrase[2]; in testKeyphraseSoundModelParcelUnparcel_zeroData() local
127 keyphrases[0] = new Keyphrase(1, 0, Locale.forLanguageTag("en-US"), in testKeyphraseSoundModelParcelUnparcel_zeroData()
129 keyphrases[1] = new Keyphrase(2, 0, Locale.forLanguageTag("fr-FR"), in testKeyphraseSoundModelParcelUnparcel_zeroData()
132 new byte[0], keyphrases); in testKeyphraseSoundModelParcelUnparcel_zeroData()
195 Keyphrase[] keyphrases = new Keyphrase[2]; in testKeyphraseSoundModelParcelUnparcel_largeData() local
[all …]
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTrigger.java764 @Nullable Keyphrase[] keyphrases, int version) { in KeyphraseSoundModel() argument
766 this.mKeyphrases = keyphrases != null ? keyphrases : new Keyphrase[0]; in KeyphraseSoundModel()
770 @Nullable byte[] data, @Nullable Keyphrase[] keyphrases) { in KeyphraseSoundModel() argument
771 this(uuid, vendorUuid, data, keyphrases, -1); in KeyphraseSoundModel()
806 Keyphrase[] keyphrases = in.createTypedArray(Keyphrase.CREATOR); in readFromParcel() local
807 return new KeyphraseSoundModel(uuid, vendorUuid, data, keyphrases, version); in readFromParcel()
1423 public final KeyphraseRecognitionExtra keyphrases[]; field in SoundTrigger.RecognitionConfig
1438 @Nullable KeyphraseRecognitionExtra[] keyphrases, @Nullable byte[] data, in RecognitionConfig() argument
1442 this.keyphrases = keyphrases != null ? keyphrases : new KeyphraseRecognitionExtra[0]; in RecognitionConfig()
1449 @Nullable KeyphraseRecognitionExtra[] keyphrases, @Nullable byte[] data) { in RecognitionConfig() argument
[all …]
DConversionUtil.java149 new PhraseRecognitionExtra[apiConfig.keyphrases.length]; in api2aidlRecognitionConfig()
150 for (int i = 0; i < apiConfig.keyphrases.length; ++i) { in api2aidlRecognitionConfig()
152 apiConfig.keyphrases[i]); in api2aidlRecognitionConfig()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java327 Keyphrase[] keyphrases = new Keyphrase[1]; in getValidKeyphraseSoundModelForUser() local
328 keyphrases[0] = new Keyphrase( in getValidKeyphraseSoundModelForUser()
335 UUID.fromString(modelUuid), vendorUuid, data, keyphrases, version); in getValidKeyphraseSoundModelForUser()