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

Commit d5ccf2c4 authored by Sal Savage's avatar Sal Savage
Browse files

Let the logging framework enforce state machine log levels

Tag: #refactor
Bug: 315046089
Flag: EXEMPT, logging only change
Test: m com.android.btservices
Change-Id: I501b345c850e5b04b9fa3a76675dd28d4e25a137
parent 946b94aa
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -105,7 +105,11 @@ final class A2dpStateMachine extends StateMachine {
    A2dpStateMachine(BluetoothDevice device, A2dpService a2dpService,
                     A2dpNativeInterface a2dpNativeInterface, Looper looper) {
        super(TAG, looper);
        setDbg(DBG);

        // Let the logging framework enforce the log level. TAG is set above in the parent
        // constructor.
        setDbg(true);

        mDevice = device;
        mA2dpService = a2dpService;
        mA2dpNativeInterface = a2dpNativeInterface;
+5 −2
Original line number Diff line number Diff line
@@ -207,8 +207,11 @@ public class HeadsetStateMachine extends StateMachine {
            HeadsetService headsetService, AdapterService adapterService,
            HeadsetNativeInterface nativeInterface, HeadsetSystemInterface systemInterface) {
        super(TAG, Objects.requireNonNull(looper, "looper cannot be null"));
        // Enable/Disable StateMachine debug logs
        setDbg(DBG);

        // Let the logging framework enforce the log level. TAG is set above in the parent
        // constructor.
        setDbg(true);

        mDevice = Objects.requireNonNull(device, "device cannot be null");
        mHeadsetService = Objects.requireNonNull(headsetService, "headsetService cannot be null");
        mNativeInterface =