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

Commit 586ce998 authored by Andre Eisenbach's avatar Andre Eisenbach
Browse files

Reduce AdaperService and HeadsetStateMachine log levels

Bug: 20460314
Change-Id: I6d1750845ccd0995800a8f82d2122cb1f3bc108d
parent 4b00567e
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -81,8 +81,8 @@ import android.os.ServiceManager;

public class AdapterService extends Service {
    private static final String TAG = "BluetoothAdapterService";
    private static final boolean DBG = true;
    private static final boolean TRACE_REF = true;
    private static final boolean DBG = false;
    private static final boolean TRACE_REF = false;
    private static final int MIN_ADVT_INSTANCES_FOR_MA = 5;
    private static final int MIN_OFFLOADED_FILTERS = 10;
    private static final int MIN_OFFLOADED_SCAN_STORAGE_BYTES = 1024;
@@ -636,7 +636,6 @@ public class AdapterService extends Service {
            String simpleName = services[i].getSimpleName();

            if (simpleName.equals("GattService")) {
                if (DBG) Log.d(TAG, "It is gaTT service");
                Integer serviceState = mProfileServicesState.get(serviceName);

                if(serviceState != null && serviceState != expectedCurrentState) {
@@ -679,10 +678,8 @@ public class AdapterService extends Service {
            String serviceName = services[i].getName();
            String simpleName = services[i].getSimpleName();

            if (simpleName.equals("GattService")) {
                if (DBG) Log.d(TAG, "It is gaTT service. SKIP IT");
                continue;
            }
            if (simpleName.equals("GattService")) continue;

            Integer serviceState = mProfileServicesState.get(serviceName);
            if(serviceState != null && serviceState != expectedCurrentState) {
                debugLog("setProfileServiceState() - Unable to "
@@ -2027,8 +2024,7 @@ public class AdapterService extends Service {
            mEnergyUsedTotalVoltAmpSecMicro += energy_used;
        }

        if (DBG) {
            Log.d(TAG, "energyInfoCallback  " + "status = " + status +
        debugLog("energyInfoCallback() status = " + status +
            "tx_time = " + tx_time + "rx_time = " + rx_time +
            "idle_time = " + idle_time + "energy_used = " + energy_used +
            "ctrl_state = " + ctrl_state);
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ import android.os.SystemProperties;

final class HeadsetStateMachine extends StateMachine {
    private static final String TAG = "HeadsetStateMachine";
    private static final boolean DBG = true;
    private static final boolean DBG = false;
    //For Debugging only
    private static int sRefCount=0;