Loading android/pandora/server/src/A2dp.kt +2 −2 Original line number Diff line number Diff line Loading @@ -59,12 +59,12 @@ class A2dp(val context: Context) : A2DPImplBase(), Closeable { private var audioTrack: AudioTrack? = null init { scope = CoroutineScope(Dispatchers.Default) scope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) val intentFilter = IntentFilter() intentFilter.addAction(BluetoothA2dp.ACTION_PLAYING_STATE_CHANGED) intentFilter.addAction(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED) flow = intentFlow(context, intentFilter).shareIn(scope, SharingStarted.Eagerly) flow = intentFlow(context, intentFilter, scope).shareIn(scope, SharingStarted.Eagerly) } override fun close() { Loading android/pandora/server/src/A2dpSink.kt +2 −2 Original line number Diff line number Diff line Loading @@ -52,11 +52,11 @@ class A2dpSink(val context: Context) : A2DPImplBase(), Closeable { getProfileProxy<BluetoothA2dpSink>(context, BluetoothProfile.A2DP_SINK) init { scope = CoroutineScope(Dispatchers.Default) scope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) val intentFilter = IntentFilter() intentFilter.addAction(BluetoothA2dpSink.ACTION_CONNECTION_STATE_CHANGED) flow = intentFlow(context, intentFilter).shareIn(scope, SharingStarted.Eagerly) flow = intentFlow(context, intentFilter, scope).shareIn(scope, SharingStarted.Eagerly) } override fun close() { Loading android/pandora/server/src/AndroidInternal.kt +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ private const val TAG = "PandoraAndroidInternal" @kotlinx.coroutines.ExperimentalCoroutinesApi class AndroidInternal(val context: Context) : AndroidImplBase(), Closeable { private val scope: CoroutineScope = CoroutineScope(Dispatchers.Default) private val scope: CoroutineScope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) private val INCOMING_FILE_ACCEPT_BTN = "ACCEPT" private val INCOMING_FILE_TITLE = "Incoming file" private val INCOMING_FILE_WAIT_TIMEOUT = 2000L Loading android/pandora/server/src/Asha.kt +2 −2 Original line number Diff line number Diff line Loading @@ -66,10 +66,10 @@ class Asha(val context: Context) : AshaImplBase(), Closeable { init { // Init the CoroutineScope scope = CoroutineScope(Dispatchers.Default) scope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) val intentFilter = IntentFilter() intentFilter.addAction(BluetoothHearingAid.ACTION_CONNECTION_STATE_CHANGED) flow = intentFlow(context, intentFilter).shareIn(scope, SharingStarted.Eagerly) flow = intentFlow(context, intentFilter, scope).shareIn(scope, SharingStarted.Eagerly) } override fun close() { Loading android/pandora/server/src/Avrcp.kt +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ class Avrcp(val context: Context) : AVRCPImplBase(), Closeable { init { // Init the CoroutineScope scope = CoroutineScope(Dispatchers.Default) scope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) } override fun close() { Loading Loading
android/pandora/server/src/A2dp.kt +2 −2 Original line number Diff line number Diff line Loading @@ -59,12 +59,12 @@ class A2dp(val context: Context) : A2DPImplBase(), Closeable { private var audioTrack: AudioTrack? = null init { scope = CoroutineScope(Dispatchers.Default) scope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) val intentFilter = IntentFilter() intentFilter.addAction(BluetoothA2dp.ACTION_PLAYING_STATE_CHANGED) intentFilter.addAction(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED) flow = intentFlow(context, intentFilter).shareIn(scope, SharingStarted.Eagerly) flow = intentFlow(context, intentFilter, scope).shareIn(scope, SharingStarted.Eagerly) } override fun close() { Loading
android/pandora/server/src/A2dpSink.kt +2 −2 Original line number Diff line number Diff line Loading @@ -52,11 +52,11 @@ class A2dpSink(val context: Context) : A2DPImplBase(), Closeable { getProfileProxy<BluetoothA2dpSink>(context, BluetoothProfile.A2DP_SINK) init { scope = CoroutineScope(Dispatchers.Default) scope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) val intentFilter = IntentFilter() intentFilter.addAction(BluetoothA2dpSink.ACTION_CONNECTION_STATE_CHANGED) flow = intentFlow(context, intentFilter).shareIn(scope, SharingStarted.Eagerly) flow = intentFlow(context, intentFilter, scope).shareIn(scope, SharingStarted.Eagerly) } override fun close() { Loading
android/pandora/server/src/AndroidInternal.kt +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ private const val TAG = "PandoraAndroidInternal" @kotlinx.coroutines.ExperimentalCoroutinesApi class AndroidInternal(val context: Context) : AndroidImplBase(), Closeable { private val scope: CoroutineScope = CoroutineScope(Dispatchers.Default) private val scope: CoroutineScope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) private val INCOMING_FILE_ACCEPT_BTN = "ACCEPT" private val INCOMING_FILE_TITLE = "Incoming file" private val INCOMING_FILE_WAIT_TIMEOUT = 2000L Loading
android/pandora/server/src/Asha.kt +2 −2 Original line number Diff line number Diff line Loading @@ -66,10 +66,10 @@ class Asha(val context: Context) : AshaImplBase(), Closeable { init { // Init the CoroutineScope scope = CoroutineScope(Dispatchers.Default) scope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) val intentFilter = IntentFilter() intentFilter.addAction(BluetoothHearingAid.ACTION_CONNECTION_STATE_CHANGED) flow = intentFlow(context, intentFilter).shareIn(scope, SharingStarted.Eagerly) flow = intentFlow(context, intentFilter, scope).shareIn(scope, SharingStarted.Eagerly) } override fun close() { Loading
android/pandora/server/src/Avrcp.kt +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ class Avrcp(val context: Context) : AVRCPImplBase(), Closeable { init { // Init the CoroutineScope scope = CoroutineScope(Dispatchers.Default) scope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) } override fun close() { Loading