Loading services/core/java/com/android/server/location/contexthub/ContextHubService.java +24 −20 Original line number Diff line number Diff line Loading @@ -1058,11 +1058,14 @@ public class ContextHubService extends IContextHubService.Stub { } int msgVersion = 0; // Synchronize access to mCallbacksList to prevent more than one outstanding broadcast as // that will cause a crash. synchronized (mCallbacksList) { int callbacksCount = mCallbacksList.beginBroadcast(); if (DEBUG_LOG_ENABLED) { Log.v(TAG, "Sending message " + msgType + " version " + msgVersion + " from hubHandle " + contextHubHandle + ", appInstance " + appInstance + ", callBackCount " + callbacksCount); Log.v(TAG, "Sending message " + msgType + " version " + msgVersion + " from hubHandle " + contextHubHandle + ", appInstance " + appInstance + ", callBackCount " + callbacksCount); } if (callbacksCount < 1) { Loading @@ -1083,6 +1086,7 @@ public class ContextHubService extends IContextHubService.Stub { } } mCallbacksList.finishBroadcast(); } return 0; } Loading Loading
services/core/java/com/android/server/location/contexthub/ContextHubService.java +24 −20 Original line number Diff line number Diff line Loading @@ -1058,11 +1058,14 @@ public class ContextHubService extends IContextHubService.Stub { } int msgVersion = 0; // Synchronize access to mCallbacksList to prevent more than one outstanding broadcast as // that will cause a crash. synchronized (mCallbacksList) { int callbacksCount = mCallbacksList.beginBroadcast(); if (DEBUG_LOG_ENABLED) { Log.v(TAG, "Sending message " + msgType + " version " + msgVersion + " from hubHandle " + contextHubHandle + ", appInstance " + appInstance + ", callBackCount " + callbacksCount); Log.v(TAG, "Sending message " + msgType + " version " + msgVersion + " from hubHandle " + contextHubHandle + ", appInstance " + appInstance + ", callBackCount " + callbacksCount); } if (callbacksCount < 1) { Loading @@ -1083,6 +1086,7 @@ public class ContextHubService extends IContextHubService.Stub { } } mCallbacksList.finishBroadcast(); } return 0; } Loading