Commit 691cdf08 authored by wutao's avatar wutao Committed by Commit Bot

ambient: Change photo transition interval to 1 min

Bug: b/139953713, b/162782654
Test: manual
Change-Id: I5d3bda0f2eba4cfc3adaa155d079666b3b33c2d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2337285Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Commit-Queue: Tao Wu <wutao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#794755}
parent 83e1dbb3
...@@ -17,7 +17,7 @@ constexpr base::TimeDelta kAnimationDuration = ...@@ -17,7 +17,7 @@ constexpr base::TimeDelta kAnimationDuration =
// The default interval to refresh photos. // The default interval to refresh photos.
// TODO(b/139953713): Change to a correct time interval. // TODO(b/139953713): Change to a correct time interval.
constexpr base::TimeDelta kPhotoRefreshInterval = constexpr base::TimeDelta kPhotoRefreshInterval =
base::TimeDelta::FromSeconds(5); base::TimeDelta::FromSeconds(60);
// Directory name of ambient mode. // Directory name of ambient mode.
constexpr char kAmbientModeDirectoryName[] = "ambient-mode"; constexpr char kAmbientModeDirectoryName[] = "ambient-mode";
......
...@@ -55,10 +55,8 @@ constexpr int kTopicsBatchSize = 2; ...@@ -55,10 +55,8 @@ constexpr int kTopicsBatchSize = 2;
// The upper bound of delay to the fetch topics. An random value will be // The upper bound of delay to the fetch topics. An random value will be
// generated in the range of |kTopicFetchDelayMax|/2 to |kTopicFetchDelayMax|. // generated in the range of |kTopicFetchDelayMax|/2 to |kTopicFetchDelayMax|.
constexpr base::TimeDelta kTopicFetchDelayMax =
// TODO(b/139953713): Change to a correct time interval. base::TimeDelta::FromSeconds(36);
// E.g. it will be max 36 seconds if we want to fetch 50 batches in 30 mins.
constexpr base::TimeDelta kTopicFetchDelayMax = base::TimeDelta::FromSeconds(3);
constexpr int kMaxImageSizeInBytes = 5 * 1024 * 1024; constexpr int kMaxImageSizeInBytes = 5 * 1024 * 1024;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment