Home
last modified time | relevance | path

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

/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/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()
123 Keyphrase[] keyphrases = new Keyphrase[2]; in testKeyphraseSoundModelParcelUnparcel_zeroData() local
124 keyphrases[0] = new Keyphrase(1, 0, Locale.forLanguageTag("en-US"), in testKeyphraseSoundModelParcelUnparcel_zeroData()
126 keyphrases[1] = new Keyphrase(2, 0, Locale.forLanguageTag("fr-FR"), in testKeyphraseSoundModelParcelUnparcel_zeroData()
129 new byte[0], keyphrases); in testKeyphraseSoundModelParcelUnparcel_zeroData()
189 Keyphrase[] keyphrases = new Keyphrase[2]; in testKeyphraseSoundModelParcelUnparcel_largeData() local
190 keyphrases[0] = new Keyphrase(1, 0, Locale.forLanguageTag("en-US"), in testKeyphraseSoundModelParcelUnparcel_largeData()
[all …]
DConversionUtilTest.java65 final var keyphrases = new SoundTrigger.KeyphraseRecognitionExtra[2]; in testRecognitionConfigRoundTrip() local
66 keyphrases[0] = new SoundTrigger.KeyphraseRecognitionExtra(99, in testRecognitionConfigRoundTrip()
70 keyphrases[1] = new SoundTrigger.KeyphraseRecognitionExtra(101, in testRecognitionConfigRoundTrip()
76 keyphrases, data, flags); in testRecognitionConfigRoundTrip()
/frameworks/base/core/java/android/hardware/soundtrigger/
DSoundTrigger.java771 @Nullable Keyphrase[] keyphrases, int version) { in KeyphraseSoundModel() argument
773 this.mKeyphrases = keyphrases != null ? keyphrases : new Keyphrase[0]; in KeyphraseSoundModel()
777 @Nullable byte[] data, @Nullable Keyphrase[] keyphrases) { in KeyphraseSoundModel() argument
778 this(uuid, vendorUuid, data, keyphrases, -1); in KeyphraseSoundModel()
813 Keyphrase[] keyphrases = in.createTypedArray(Keyphrase.CREATOR); in readFromParcel() local
814 return new KeyphraseSoundModel(uuid, vendorUuid, data, keyphrases, version); in readFromParcel()
1520 public final KeyphraseRecognitionExtra keyphrases[]; field in SoundTrigger.RecognitionConfig
1535 @SuppressLint("ArrayReturn") @Nullable KeyphraseRecognitionExtra[] keyphrases, in RecognitionConfig() argument
1539 this.keyphrases = keyphrases != null ? keyphrases : new KeyphraseRecognitionExtra[0]; in RecognitionConfig()
1546 @SuppressLint("ArrayReturn") @Nullable KeyphraseRecognitionExtra[] keyphrases, in RecognitionConfig() argument
[all …]
DConversionUtil.java161 new PhraseRecognitionExtra[apiConfig.keyphrases.length]; in api2aidlRecognitionConfig()
162 for (int i = 0; i < apiConfig.keyphrases.length; ++i) { in api2aidlRecognitionConfig()
164 apiConfig.keyphrases[i]); in api2aidlRecognitionConfig()
173 var keyphrases = in aidl2apiRecognitionConfig() local
177 keyphrases[i++] = aidl2apiPhraseRecognitionExtra(extras); in aidl2apiRecognitionConfig()
181 keyphrases, in aidl2apiRecognitionConfig()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java311 Keyphrase[] keyphrases = new Keyphrase[1]; in getValidKeyphraseSoundModelForUser() local
312 keyphrases[0] = new Keyphrase( in getValidKeyphraseSoundModelForUser()
319 UUID.fromString(modelUuid), vendorUuid, data, keyphrases, version); in getValidKeyphraseSoundModelForUser()
/frameworks/base/core/api/
Dtest-current.txt1884 …ull public final android.hardware.soundtrigger.SoundTrigger.KeyphraseRecognitionExtra[] keyphrases;