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

Commit e571ca55 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove soundtrigger permission checks for cancelation operations"

parents 0577d83c 105ce49b
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -236,7 +236,8 @@ public class SoundTriggerMiddlewarePermission implements ISoundTriggerMiddleware

        @Override
        public void unloadModel(int modelHandle) throws RemoteException {
            enforcePermissions();
            // Unloading a model does not require special permissions. Having a handle to the
            // session is sufficient.
            mDelegate.unloadModel(modelHandle);

        }
@@ -250,7 +251,8 @@ public class SoundTriggerMiddlewarePermission implements ISoundTriggerMiddleware

        @Override
        public void stopRecognition(int modelHandle) throws RemoteException {
            enforcePermissions();
            // Stopping a model does not require special permissions. Having a handle to the
            // session is sufficient.
            mDelegate.stopRecognition(modelHandle);
        }

@@ -284,7 +286,8 @@ public class SoundTriggerMiddlewarePermission implements ISoundTriggerMiddleware

        @Override
        public void detach() throws RemoteException {
            enforcePermissions();
            // Detaching does not require special permissions. Having a handle to the session is
            // sufficient.
            mDelegate.detach();
        }