Loading services/core/java/com/android/server/location/ContextHubClientManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ import java.util.function.Consumer; /* * Local flag to enable debug logging. */ private static final boolean DEBUG_LOG_ENABLED = true; private static final boolean DEBUG_LOG_ENABLED = false; /* * The context of the service. Loading services/core/java/com/android/server/location/ContextHubService.java +13 −4 Original line number Diff line number Diff line Loading @@ -77,6 +77,11 @@ public class ContextHubService extends IContextHubService.Stub { private static final int OS_APP_INSTANCE = -1; /* * Local flag to enable debug logging. */ private static final boolean DEBUG_LOG_ENABLED = false; private final Context mContext; private final Map<Integer, ContextHubInfo> mContextHubIdToInfoMap; Loading Loading @@ -779,12 +784,16 @@ public class ContextHubService extends IContextHubService.Stub { int msgVersion = 0; int callbacksCount = mCallbacksList.beginBroadcast(); Log.d(TAG, "Sending message " + msgType + " version " + msgVersion + " from hubHandle " + contextHubHandle + ", appInstance " + appInstance + ", callBackCount " if (DEBUG_LOG_ENABLED) { Log.v(TAG, "Sending message " + msgType + " version " + msgVersion + " from hubHandle " + contextHubHandle + ", appInstance " + appInstance + ", callBackCount " + callbacksCount); } if (callbacksCount < 1) { if (DEBUG_LOG_ENABLED) { Log.v(TAG, "No message callbacks registered."); } return 0; } Loading Loading
services/core/java/com/android/server/location/ContextHubClientManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ import java.util.function.Consumer; /* * Local flag to enable debug logging. */ private static final boolean DEBUG_LOG_ENABLED = true; private static final boolean DEBUG_LOG_ENABLED = false; /* * The context of the service. Loading
services/core/java/com/android/server/location/ContextHubService.java +13 −4 Original line number Diff line number Diff line Loading @@ -77,6 +77,11 @@ public class ContextHubService extends IContextHubService.Stub { private static final int OS_APP_INSTANCE = -1; /* * Local flag to enable debug logging. */ private static final boolean DEBUG_LOG_ENABLED = false; private final Context mContext; private final Map<Integer, ContextHubInfo> mContextHubIdToInfoMap; Loading Loading @@ -779,12 +784,16 @@ public class ContextHubService extends IContextHubService.Stub { int msgVersion = 0; int callbacksCount = mCallbacksList.beginBroadcast(); Log.d(TAG, "Sending message " + msgType + " version " + msgVersion + " from hubHandle " + contextHubHandle + ", appInstance " + appInstance + ", callBackCount " if (DEBUG_LOG_ENABLED) { Log.v(TAG, "Sending message " + msgType + " version " + msgVersion + " from hubHandle " + contextHubHandle + ", appInstance " + appInstance + ", callBackCount " + callbacksCount); } if (callbacksCount < 1) { if (DEBUG_LOG_ENABLED) { Log.v(TAG, "No message callbacks registered."); } return 0; } Loading