Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/soundtrigger/
DConversionUtil.java160 PhraseRecognitionExtra aidlExtra = new PhraseRecognitionExtra(); in api2aidlPhraseRecognitionExtra() local
161 aidlExtra.id = apiExtra.id; in api2aidlPhraseRecognitionExtra()
162 aidlExtra.recognitionModes = api2aidlRecognitionModes(apiExtra.recognitionModes); in api2aidlPhraseRecognitionExtra()
163 aidlExtra.confidenceLevel = apiExtra.coarseConfidenceLevel; in api2aidlPhraseRecognitionExtra()
164 aidlExtra.levels = new ConfidenceLevel[apiExtra.confidenceLevels.length]; in api2aidlPhraseRecognitionExtra()
166 aidlExtra.levels[i] = api2aidlConfidenceLevel(apiExtra.confidenceLevels[i]); in api2aidlPhraseRecognitionExtra()
168 return aidlExtra; in api2aidlPhraseRecognitionExtra()
172 PhraseRecognitionExtra aidlExtra) { in aidl2apiPhraseRecognitionExtra() argument
174 new SoundTrigger.ConfidenceLevel[aidlExtra.levels.length]; in aidl2apiPhraseRecognitionExtra()
175 for (int i = 0; i < aidlExtra.levels.length; ++i) { in aidl2apiPhraseRecognitionExtra()
[all …]
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DConversionUtil.java231 @NonNull PhraseRecognitionExtra aidlExtra) { in aidl2hidlPhraseRecognitionExtra()
234 hidlExtra.id = aidlExtra.id; in aidl2hidlPhraseRecognitionExtra()
235 hidlExtra.recognitionModes = aidl2hidlRecognitionModes(aidlExtra.recognitionModes); in aidl2hidlPhraseRecognitionExtra()
236 hidlExtra.confidenceLevel = aidlExtra.confidenceLevel; in aidl2hidlPhraseRecognitionExtra()
237 hidlExtra.levels.ensureCapacity(aidlExtra.levels.length); in aidl2hidlPhraseRecognitionExtra()
238 for (ConfidenceLevel aidlLevel : aidlExtra.levels) { in aidl2hidlPhraseRecognitionExtra()
247 PhraseRecognitionExtra aidlExtra = new PhraseRecognitionExtra(); in hidl2aidlPhraseRecognitionExtra() local
248 aidlExtra.id = hidlExtra.id; in hidl2aidlPhraseRecognitionExtra()
249 aidlExtra.recognitionModes = hidl2aidlRecognitionModes(hidlExtra.recognitionModes); in hidl2aidlPhraseRecognitionExtra()
250 aidlExtra.confidenceLevel = hidlExtra.confidenceLevel; in hidl2aidlPhraseRecognitionExtra()
[all …]