Home
last modified time | relevance | path

Searched refs:aidlPhrase (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java138 Phrase aidlPhrase = new Phrase(); in api2aidlPhrase() local
139 aidlPhrase.id = apiPhrase.getId(); in api2aidlPhrase()
140 aidlPhrase.recognitionModes = api2aidlRecognitionModes(apiPhrase.getRecognitionModes()); in api2aidlPhrase()
141 aidlPhrase.users = Arrays.copyOf(apiPhrase.getUsers(), apiPhrase.getUsers().length); in api2aidlPhrase()
142 aidlPhrase.locale = apiPhrase.getLocale().toLanguageTag(); in api2aidlPhrase()
143 aidlPhrase.text = apiPhrase.getText(); in api2aidlPhrase()
144 return aidlPhrase; in api2aidlPhrase()
147 public static SoundTrigger.Keyphrase aidl2apiPhrase(Phrase aidlPhrase) { in aidl2apiPhrase() argument
148 return new SoundTrigger.Keyphrase(aidlPhrase.id, in aidl2apiPhrase()
149 aidl2apiRecognitionModes(aidlPhrase.recognitionModes), in aidl2apiPhrase()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DConversionUtil.java149 ISoundTriggerHw.Phrase aidl2hidlPhrase(@NonNull Phrase aidlPhrase) { in aidl2hidlPhrase() argument
151 hidlPhrase.id = aidlPhrase.id; in aidl2hidlPhrase()
152 hidlPhrase.recognitionModes = aidl2hidlRecognitionModes(aidlPhrase.recognitionModes); in aidl2hidlPhrase()
153 for (int aidlUser : aidlPhrase.users) { in aidl2hidlPhrase()
156 hidlPhrase.locale = aidlPhrase.locale; in aidl2hidlPhrase()
157 hidlPhrase.text = aidlPhrase.text; in aidl2hidlPhrase()
213 for (Phrase aidlPhrase : aidlModel.phrases) { in aidl2hidlPhraseSoundModel()
214 hidlModel.phrases.add(aidl2hidlPhrase(aidlPhrase)); in aidl2hidlPhraseSoundModel()