Loading services/core/java/com/android/server/location/contexthub/ContextHubEndpointBroker.java +4 −1 Original line number Diff line number Diff line Loading @@ -184,9 +184,12 @@ public class ContextHubEndpointBroker extends IContextHubEndpoint.Stub long expiryMillis = RELIABLE_MESSAGE_DUPLICATE_DETECTION_TIMEOUT.toMillis(); if (nowMillis >= nextEntry.getValue() + expiryMillis) { iterator.remove(); } } else { // Safe to break since LinkedHashMap is insertion-ordered, so the next entry // will have a later timestamp and will not be expired. break; } } return mRxMessageHistoryMap.containsKey(message.getMessageSequenceNumber()); } Loading Loading
services/core/java/com/android/server/location/contexthub/ContextHubEndpointBroker.java +4 −1 Original line number Diff line number Diff line Loading @@ -184,9 +184,12 @@ public class ContextHubEndpointBroker extends IContextHubEndpoint.Stub long expiryMillis = RELIABLE_MESSAGE_DUPLICATE_DETECTION_TIMEOUT.toMillis(); if (nowMillis >= nextEntry.getValue() + expiryMillis) { iterator.remove(); } } else { // Safe to break since LinkedHashMap is insertion-ordered, so the next entry // will have a later timestamp and will not be expired. break; } } return mRxMessageHistoryMap.containsKey(message.getMessageSequenceNumber()); } Loading