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

Commit a8c0b801 authored by Michael Dooley's avatar Michael Dooley Committed by android-build-merger
Browse files

Merge "Limit GetModelState API to generic sound models (ie music detector)"...

Merge "Limit GetModelState API to generic sound models (ie music detector)" into qt-dev am: 58ac2ae2
am: 656f3556

Change-Id: Iad9fd69b5170da8b8b0c808032d5644377e41183
parents 0fbaef40 656f3556
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;
                }