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

Commit 0ed8ea93 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Headset: Remove RuntimeException in SystemServer" into main

parents 4c65c83b 51f0dac6
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -819,7 +819,6 @@ public final class BluetoothHeadset implements BluetoothProfile {
                return service.getAudioState(device, mAttributionSource);
                return service.getAudioState(device, mAttributionSource);
            } catch (RemoteException e) {
            } catch (RemoteException e) {
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                throw e.rethrowAsRuntimeException();
            }
            }
        }
        }
        return BluetoothHeadset.STATE_AUDIO_DISCONNECTED;
        return BluetoothHeadset.STATE_AUDIO_DISCONNECTED;
@@ -878,7 +877,6 @@ public final class BluetoothHeadset implements BluetoothProfile {
                return BluetoothStatusCodes.SUCCESS;
                return BluetoothStatusCodes.SUCCESS;
            } catch (RemoteException e) {
            } catch (RemoteException e) {
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                throw e.rethrowAsRuntimeException();
            }
            }
        }
        }


@@ -913,7 +911,6 @@ public final class BluetoothHeadset implements BluetoothProfile {
                        : BluetoothStatusCodes.NOT_ALLOWED;
                        : BluetoothStatusCodes.NOT_ALLOWED;
            } catch (RemoteException e) {
            } catch (RemoteException e) {
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                throw e.rethrowAsRuntimeException();
            }
            }
        }
        }


@@ -995,7 +992,6 @@ public final class BluetoothHeadset implements BluetoothProfile {
                return service.connectAudio(mAttributionSource);
                return service.connectAudio(mAttributionSource);
            } catch (RemoteException e) {
            } catch (RemoteException e) {
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                throw e.rethrowAsRuntimeException();
            }
            }
        }
        }


@@ -1046,7 +1042,6 @@ public final class BluetoothHeadset implements BluetoothProfile {
                return service.disconnectAudio(mAttributionSource);
                return service.disconnectAudio(mAttributionSource);
            } catch (RemoteException e) {
            } catch (RemoteException e) {
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                Log.e(TAG, e.toString() + "\n" + Log.getStackTraceString(new Throwable()));
                throw e.rethrowAsRuntimeException();
            }
            }
        }
        }