Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58ac2ae2 authored by Michael Dooley's avatar Michael Dooley Committed by Android (Google) Code Review
Browse files

Merge "Limit GetModelState API to generic sound models (ie music detector)" into qt-dev

parents 5644a46b baa22c7a
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -558,18 +558,15 @@ public class SoundTriggerService extends SystemService {
                    return ret;
                }
                switch (soundModel.type) {
                    case SoundModel.TYPE_KEYPHRASE:
                        ret = mSoundTriggerHelper.getKeyphraseModelState(soundModel.uuid);
                        break;
                    case SoundModel.TYPE_GENERIC_SOUND:
                        ret = mSoundTriggerHelper.getGenericModelState(soundModel.uuid);
                        break;
                    default:
                        Slog.e(TAG, "Unknown model type");

                        // SoundModel.TYPE_KEYPHRASE is not supported to increase privacy.
                        Slog.e(TAG, "Unsupported model type, " + soundModel.type);
                        sEventLogger.log(new SoundTriggerLogger.StringEvent(
                                "getModelState(): Unknown model type"));

                                "getModelState(): Unsupported model type, "
                                + soundModel.type));
                        break;
                }