Loading services/core/java/com/android/server/location/contexthub/ContextHubService.java +4 −1 Original line number Diff line number Diff line Loading @@ -297,7 +297,10 @@ public class ContextHubService extends IContextHubService.Stub { } public boolean isExpired() { return mTimestamp + ContextHubTransactionManager.RELIABLE_MESSAGE_TIMEOUT.toNanos() return mTimestamp + ContextHubTransactionManager .RELIABLE_MESSAGE_DUPLICATE_DETECTION_TIMEOUT .toNanos() < SystemClock.elapsedRealtimeNanos(); } } Loading services/core/java/com/android/server/location/contexthub/ContextHubTransactionManager.java +3 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,9 @@ import java.util.concurrent.atomic.AtomicInteger; public static final Duration RELIABLE_MESSAGE_TIMEOUT = Duration.ofSeconds(1); public static final Duration RELIABLE_MESSAGE_DUPLICATE_DETECTION_TIMEOUT = RELIABLE_MESSAGE_TIMEOUT.multipliedBy(3); private static final int MAX_PENDING_REQUESTS = 10000; private static final int RELIABLE_MESSAGE_MAX_NUM_RETRY = 3; Loading Loading
services/core/java/com/android/server/location/contexthub/ContextHubService.java +4 −1 Original line number Diff line number Diff line Loading @@ -297,7 +297,10 @@ public class ContextHubService extends IContextHubService.Stub { } public boolean isExpired() { return mTimestamp + ContextHubTransactionManager.RELIABLE_MESSAGE_TIMEOUT.toNanos() return mTimestamp + ContextHubTransactionManager .RELIABLE_MESSAGE_DUPLICATE_DETECTION_TIMEOUT .toNanos() < SystemClock.elapsedRealtimeNanos(); } } Loading
services/core/java/com/android/server/location/contexthub/ContextHubTransactionManager.java +3 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,9 @@ import java.util.concurrent.atomic.AtomicInteger; public static final Duration RELIABLE_MESSAGE_TIMEOUT = Duration.ofSeconds(1); public static final Duration RELIABLE_MESSAGE_DUPLICATE_DETECTION_TIMEOUT = RELIABLE_MESSAGE_TIMEOUT.multipliedBy(3); private static final int MAX_PENDING_REQUESTS = 10000; private static final int RELIABLE_MESSAGE_MAX_NUM_RETRY = 3; Loading