Loading services/core/java/com/android/server/soundtrigger_middleware/SoundTriggerMiddlewareValidation.java +12 −9 Original line number Diff line number Diff line Loading @@ -203,9 +203,13 @@ public class SoundTriggerMiddlewareValidation implements ISoundTriggerMiddleware checkPreemptPermissions(); // Input validation (always valid). synchronized (this) { // State validation (always valid). // Normally, we would acquire a lock here. However, we do not access any state here so it // is safe to not lock. This call is typically done from a different context than all the // other calls and may result in a deadlock if we lock here (between the audio server and // the system server). // From here on, every exception isn't client's fault. try { mDelegate.setExternalCaptureState(active); Loading @@ -213,7 +217,6 @@ public class SoundTriggerMiddlewareValidation implements ISoundTriggerMiddleware throw handleException(e); } } } // Override toString() in order to have the delegate's ID in it. @Override Loading Loading
services/core/java/com/android/server/soundtrigger_middleware/SoundTriggerMiddlewareValidation.java +12 −9 Original line number Diff line number Diff line Loading @@ -203,9 +203,13 @@ public class SoundTriggerMiddlewareValidation implements ISoundTriggerMiddleware checkPreemptPermissions(); // Input validation (always valid). synchronized (this) { // State validation (always valid). // Normally, we would acquire a lock here. However, we do not access any state here so it // is safe to not lock. This call is typically done from a different context than all the // other calls and may result in a deadlock if we lock here (between the audio server and // the system server). // From here on, every exception isn't client's fault. try { mDelegate.setExternalCaptureState(active); Loading @@ -213,7 +217,6 @@ public class SoundTriggerMiddlewareValidation implements ISoundTriggerMiddleware throw handleException(e); } } } // Override toString() in order to have the delegate's ID in it. @Override Loading