Loading apex/statsd/framework/java/android/app/StatsManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ public final class StatsManager { /** * @hide **/ @VisibleForTesting public static final long DEFAULT_TIMEOUT_MILLIS = 10_000L; // 10 seconds. @VisibleForTesting public static final long DEFAULT_TIMEOUT_MILLIS = 2_000L; // 2 seconds. /** * Constructor for StatsManagerClient. Loading cmds/statsd/tests/external/StatsCallbackPuller_test.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -201,9 +201,9 @@ TEST_F(StatsCallbackPullerTest, RegisterAndTimeout) { int64_t actualPullDurationNs = endTimeNs - startTimeNs; // Pull should take at least the timeout amount of time, but should stop early because the delay // is bigger. // is bigger. Make sure that the time is closer to the timeout, than to the intended delay. EXPECT_LT(pullTimeoutNs, actualPullDurationNs); EXPECT_GT(pullDelayNs, actualPullDurationNs); EXPECT_GT(pullDelayNs / 5, actualPullDurationNs); ASSERT_EQ(0, dataHolder.size()); // Let the pull return and make sure that the dataHolder is not modified. Loading Loading
apex/statsd/framework/java/android/app/StatsManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ public final class StatsManager { /** * @hide **/ @VisibleForTesting public static final long DEFAULT_TIMEOUT_MILLIS = 10_000L; // 10 seconds. @VisibleForTesting public static final long DEFAULT_TIMEOUT_MILLIS = 2_000L; // 2 seconds. /** * Constructor for StatsManagerClient. Loading
cmds/statsd/tests/external/StatsCallbackPuller_test.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -201,9 +201,9 @@ TEST_F(StatsCallbackPullerTest, RegisterAndTimeout) { int64_t actualPullDurationNs = endTimeNs - startTimeNs; // Pull should take at least the timeout amount of time, but should stop early because the delay // is bigger. // is bigger. Make sure that the time is closer to the timeout, than to the intended delay. EXPECT_LT(pullTimeoutNs, actualPullDurationNs); EXPECT_GT(pullDelayNs, actualPullDurationNs); EXPECT_GT(pullDelayNs / 5, actualPullDurationNs); ASSERT_EQ(0, dataHolder.size()); // Let the pull return and make sure that the dataHolder is not modified. Loading