Loading core/java/android/speech/hotword/HotwordRecognitionService.java +1 −1 Original line number Diff line number Diff line Loading @@ -152,7 +152,7 @@ public abstract class HotwordRecognitionService extends Service { } try { Log.e(TAG, "Recognition service called without RECORD_AUDIO permissions"); listener.onHotwordError(HotwordRecognizer.ERROR_INSUFFICIENT_PERMISSIONS); listener.onHotwordError(HotwordRecognizer.ERROR_FAILED); } catch (RemoteException e) { Log.e(TAG, "onHotwordError(ERROR_INSUFFICIENT_PERMISSIONS) message failed", e); } Loading core/java/android/speech/hotword/HotwordRecognizer.java +4 −4 Original line number Diff line number Diff line Loading @@ -67,8 +67,8 @@ public class HotwordRecognizer { /** RecognitionService busy. */ public static final int ERROR_RECOGNIZER_BUSY = 2; /** Insufficient permissions */ public static final int ERROR_INSUFFICIENT_PERMISSIONS = 3; /** This indicates a permanent failure and the clients shouldn't retry on this */ public static final int ERROR_FAILED = 3; /** Client-side errors */ public static final int ERROR_CLIENT = 4; Loading @@ -77,7 +77,7 @@ public class HotwordRecognizer { public static final int ERROR_TIMEOUT = 5; /** The service received concurrent start calls */ public static final int WARNING_SERVICE_ALREADY_STARTED = 6; public static final int ERROR_SERVICE_ALREADY_STARTED = 6; /** action codes */ private static final int MSG_START = 1; Loading Loading @@ -223,7 +223,7 @@ public class HotwordRecognizer { return; } } else { mListener.onHotwordError(WARNING_SERVICE_ALREADY_STARTED); mListener.onHotwordError(ERROR_SERVICE_ALREADY_STARTED); return; } putMessage(Message.obtain(mHandler, MSG_START)); Loading Loading
core/java/android/speech/hotword/HotwordRecognitionService.java +1 −1 Original line number Diff line number Diff line Loading @@ -152,7 +152,7 @@ public abstract class HotwordRecognitionService extends Service { } try { Log.e(TAG, "Recognition service called without RECORD_AUDIO permissions"); listener.onHotwordError(HotwordRecognizer.ERROR_INSUFFICIENT_PERMISSIONS); listener.onHotwordError(HotwordRecognizer.ERROR_FAILED); } catch (RemoteException e) { Log.e(TAG, "onHotwordError(ERROR_INSUFFICIENT_PERMISSIONS) message failed", e); } Loading
core/java/android/speech/hotword/HotwordRecognizer.java +4 −4 Original line number Diff line number Diff line Loading @@ -67,8 +67,8 @@ public class HotwordRecognizer { /** RecognitionService busy. */ public static final int ERROR_RECOGNIZER_BUSY = 2; /** Insufficient permissions */ public static final int ERROR_INSUFFICIENT_PERMISSIONS = 3; /** This indicates a permanent failure and the clients shouldn't retry on this */ public static final int ERROR_FAILED = 3; /** Client-side errors */ public static final int ERROR_CLIENT = 4; Loading @@ -77,7 +77,7 @@ public class HotwordRecognizer { public static final int ERROR_TIMEOUT = 5; /** The service received concurrent start calls */ public static final int WARNING_SERVICE_ALREADY_STARTED = 6; public static final int ERROR_SERVICE_ALREADY_STARTED = 6; /** action codes */ private static final int MSG_START = 1; Loading Loading @@ -223,7 +223,7 @@ public class HotwordRecognizer { return; } } else { mListener.onHotwordError(WARNING_SERVICE_ALREADY_STARTED); mListener.onHotwordError(ERROR_SERVICE_ALREADY_STARTED); return; } putMessage(Message.obtain(mHandler, MSG_START)); Loading