Lines Matching refs:wallpaper
27 * Tries to change wallpaper to a new one in the background. May fail due to a
46 * Retries changing the wallpaper 1 hour later. This is called when fetching the
47 * rss or wallpaper from server fails.
73 * Starts to change wallpaper. Called after rss is fetched.
75 * a random wallpaper.
105 // No surprise wallpaper for today at current locale or fetching rss feed
106 // fails. Fallback to use a random one from wallpaper server.
111 * Sets a new random wallpaper if one has not already been set today.
119 // At most one random wallpaper per day.
127 * Sets wallpaper to one of the wallpapers displayed in wallpaper picker. If
128 * the wallpaper download fails, retry one hour later. Wallpapers that are
141 // In this case, no wallpaper should be filtered out.
146 var wallpaper = filtered[index];
147 var wallpaperURL = wallpaper.base_url + Constants.HighResolutionSuffix;
154 WallpaperUtil.setOnlineWallpaper(wallpaperURL, wallpaper.default_layout,
161 * Sets wallpaper to the wallpaper specified by item from rss. If downloading
162 * the wallpaper fails, retry one hour later.
163 * @param {Element} item The wallpaper rss item element.
187 * Disables the wallpaper surprise me feature. Clear all alarms and states.
197 * Changes current wallpaper and sets up an alarm to schedule next change around
207 * Calculates when the next wallpaper change should be triggered.
209 * @return {number} The time when next wallpaper change should happen.
235 WallpaperUtil.testSendMessage('wallpaper-window-created');
252 // Normally, the wallpaper info saved in local storage and sync storage
254 // different. In that case, change wallpaper to the one saved in sync
262 // TODO(bshe): Consider schedule an alarm to set online wallpaper
264 // set another wallpaper before retry alarm invoked.