Home
last modified time | relevance | path

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

/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DConversionUtil.java162 int hidlModes = 0; in aidl2hidlRecognitionModes() local
165 hidlModes |= android.hardware.soundtrigger.V2_0.RecognitionMode.VOICE_TRIGGER; in aidl2hidlRecognitionModes()
168 hidlModes |= android.hardware.soundtrigger.V2_0.RecognitionMode.USER_IDENTIFICATION; in aidl2hidlRecognitionModes()
171 hidlModes |= android.hardware.soundtrigger.V2_0.RecognitionMode.USER_AUTHENTICATION; in aidl2hidlRecognitionModes()
174 hidlModes |= android.hardware.soundtrigger.V2_0.RecognitionMode.GENERIC_TRIGGER; in aidl2hidlRecognitionModes()
176 return hidlModes; in aidl2hidlRecognitionModes()
179 static int hidl2aidlRecognitionModes(int hidlModes) { in hidl2aidlRecognitionModes() argument
181 if ((hidlModes & android.hardware.soundtrigger.V2_0.RecognitionMode.VOICE_TRIGGER) != 0) { in hidl2aidlRecognitionModes()
184 if ((hidlModes & android.hardware.soundtrigger.V2_0.RecognitionMode.USER_IDENTIFICATION) in hidl2aidlRecognitionModes()
188 if ((hidlModes & android.hardware.soundtrigger.V2_0.RecognitionMode.USER_AUTHENTICATION) in hidl2aidlRecognitionModes()
[all …]
/frameworks/av/media/libaudiohal/impl/
DStreamHalHidl.cpp916 [&](Result r, hidl_vec<LatencyMode> hidlModes) { in getRecommendedLatencyModes() argument
918 for (size_t i = 0; i < hidlModes.size(); i++) { in getRecommendedLatencyModes()
919 modes->push_back(static_cast<audio_latency_mode_t>(hidlModes[i])); in getRecommendedLatencyModes()
934 Return<void> onRecommendedLatencyModeChanged(const hidl_vec<LatencyMode>& hidlModes) override { in onRecommendedLatencyModeChanged()
938 for (size_t i = 0; i < hidlModes.size(); i++) { in onRecommendedLatencyModeChanged()
939 modes.push_back(static_cast<audio_latency_mode_t>(hidlModes[i])); in onRecommendedLatencyModeChanged()