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

Commit afb7296e authored by Ajay Panicker's avatar Ajay Panicker
Browse files

Remove logspam in service state changes

Bug: 37803501
Test: Code still compiles
Change-Id: I9b2055476f74486a3d57957d2c9e6cf7946a139e
(cherry picked from commit edbf12256878f7d1a01c12f44342ec4ffe3405ba)
parent 9b1318ee
Loading
Loading
Loading
Loading
+4 −12
Original line number Original line Diff line number Diff line
@@ -259,8 +259,6 @@ public class AdapterService extends Service {
                doUpdate=true;
                doUpdate=true;
            }
            }
        }
        }
        debugLog("processProfileServiceStateChanged() serviceName=" + serviceName
            + ", state=" + state +", doUpdate=" + doUpdate);


        if (!doUpdate) {
        if (!doUpdate) {
            return;
            return;
@@ -299,11 +297,8 @@ public class AdapterService extends Service {
                Iterator<Map.Entry<String,Integer>> i = mProfileServicesState.entrySet().iterator();
                Iterator<Map.Entry<String,Integer>> i = mProfileServicesState.entrySet().iterator();
                while (i.hasNext()) {
                while (i.hasNext()) {
                    Map.Entry<String,Integer> entry = i.next();
                    Map.Entry<String,Integer> entry = i.next();
                    debugLog("Service: " + entry.getKey());
                    if (entry.getKey().equals("com.android.bluetooth.gatt.GattService")) continue;
                    if (entry.getKey().equals("com.android.bluetooth.gatt.GattService")) {

                        debugLog("Skip GATT service - already started before");
                        continue;
                    }
                    if (BluetoothAdapter.STATE_OFF != entry.getValue()) {
                    if (BluetoothAdapter.STATE_OFF != entry.getValue()) {
                        debugLog("onProfileServiceStateChange() - Profile still running: "
                        debugLog("onProfileServiceStateChange() - Profile still running: "
                            + entry.getKey());
                            + entry.getKey());
@@ -325,11 +320,8 @@ public class AdapterService extends Service {
                Iterator<Map.Entry<String,Integer>> i = mProfileServicesState.entrySet().iterator();
                Iterator<Map.Entry<String,Integer>> i = mProfileServicesState.entrySet().iterator();
                while (i.hasNext()) {
                while (i.hasNext()) {
                    Map.Entry<String,Integer> entry = i.next();
                    Map.Entry<String,Integer> entry = i.next();
                    debugLog("Service: " + entry.getKey());
                    if (entry.getKey().equals("com.android.bluetooth.gatt.GattService")) continue;
                    if (entry.getKey().equals("com.android.bluetooth.gatt.GattService")) {

                        debugLog("Skip GATT service - already started before");
                        continue;
                    }
                    if (BluetoothAdapter.STATE_ON != entry.getValue()) {
                    if (BluetoothAdapter.STATE_ON != entry.getValue()) {
                        debugLog("onProfileServiceStateChange() - Profile still not running:"
                        debugLog("onProfileServiceStateChange() - Profile still not running:"
                            + entry.getKey());
                            + entry.getKey());