Save picker behavior related to launch and apply

- Define key for SharedPreference.
 KEY_APP_LAUNCH_COUNT
 KEY_FIRST_LAUNCH_DATE_SINCE_SETUP
 KEY_FIRST_WALLPAPER_APPLY_DATE_SINCE_SETUP
- Save picker launch count and first launch date.
- Save wallpaper first apply date.

Test: Manual
Bug: 151130766
Change-Id: Id332d97f49763b65d3279e7d1ca5584dd7c38661
diff --git a/src/com/android/wallpaper/module/WallpaperPreferences.java b/src/com/android/wallpaper/module/WallpaperPreferences.java
index 27cd89e..2a0fc39 100755
--- a/src/com/android/wallpaper/module/WallpaperPreferences.java
+++ b/src/com/android/wallpaper/module/WallpaperPreferences.java
@@ -21,6 +21,8 @@
 import androidx.annotation.IntDef;
 import androidx.annotation.Nullable;
 
+import com.android.wallpaper.module.WallpaperPersister.Destination;
+
 import java.util.List;
 
 /**
@@ -455,6 +457,36 @@
     void resetNumDaysDailyRotationNotAttempted();
 
     /**
+     * Return the count of wallpaper picker launch.
+     */
+    int getAppLaunchCount();
+
+    /**
+     * Return the date for the first time to launch wallpaper picker.
+     */
+    int getFirstLaunchDateSinceSetup();
+
+    /**
+     * Increments the number of wallpaper picker launch.
+     */
+    void incrementAppLaunched();
+
+    /**
+     * Returns the date for the first time to apply a wallpaper.
+     */
+    int getFirstWallpaperApplyDateSinceSetup();
+
+    /**
+     * Update currently set daily wallpaper info.
+     *
+     * @param destination  The wallpaper destination, 1: home, 2: lockscreen, 3: both.
+     * @param collectionId wallpaper category.
+     * @param wallpaperId  wallpaper id.
+     */
+    void updateDailyWallpaperSet(@Destination int destination, String collectionId,
+            String wallpaperId);
+
+    /**
      * The possible wallpaper presentation modes, i.e., either "static" or "rotating".
      */
     @IntDef({