1 /* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.android.wallpaper.module; 17 18 /** 19 * Key constants used to index into implementations of {@link WallpaperPreferences}. 20 */ 21 public class WallpaperPreferenceKeys { 22 public static final String KEY_WALLPAPER_PRESENTATION_MODE = "wallpaper_presentation_mode"; 23 24 public static final String KEY_HOME_WALLPAPER_ATTRIB_1 = "home_wallpaper_attribution_line_1"; 25 public static final String KEY_HOME_WALLPAPER_ATTRIB_2 = "home_wallpaper_attribution_line_2"; 26 public static final String KEY_HOME_WALLPAPER_ATTRIB_3 = "home_wallpaper_attribution_line_3"; 27 public static final String KEY_HOME_WALLPAPER_ACTION_URL = "home_wallpaper_action_url"; 28 public static final String KEY_HOME_WALLPAPER_ACTION_LABEL_RES = "home_wallpaper_action_label"; 29 public static final String KEY_HOME_WALLPAPER_ACTION_ICON_RES = "home_wallpaper_action_icon"; 30 public static final String KEY_HOME_WALLPAPER_COLLECTION_ID = "home_wallpaper_collection_id"; 31 public static final String KEY_HOME_WALLPAPER_HASH_CODE = "home_wallpaper_hash_code"; 32 33 public static final String KEY_LOCK_WALLPAPER_ATTRIB_1 = "lock_wallpaper_attribution_line_1"; 34 public static final String KEY_LOCK_WALLPAPER_ATTRIB_2 = "lock_wallpaper_attribution_line_2"; 35 public static final String KEY_LOCK_WALLPAPER_ATTRIB_3 = "lock_wallpaper_attribution_line_3"; 36 public static final String KEY_LOCK_WALLPAPER_ACTION_URL = "lock_wallpaper_action_url"; 37 public static final String KEY_LOCK_WALLPAPER_ACTION_LABEL_RES = "lock_wallpaper_action_label"; 38 public static final String KEY_LOCK_WALLPAPER_ACTION_ICON_RES = "lock_wallpaper_action_icon"; 39 public static final String KEY_LOCK_WALLPAPER_HASH_CODE = "lock_wallpaper_hash_code"; 40 public static final String KEY_LOCK_WALLPAPER_COLLECTION_ID = "lock_wallpaper_collection_id"; 41 42 /** 43 * Preferences with these keys should not be backed up 44 */ 45 public interface NoBackupKeys { 46 String KEY_APP_LAUNCH_COUNT = "app_launch_count"; 47 String KEY_FIRST_LAUNCH_DATE_SINCE_SETUP = 48 "first_launch_date_since_setup"; 49 String KEY_FIRST_WALLPAPER_APPLY_DATE_SINCE_SETUP = 50 "first_wallpaper_apply_date_since_setup"; 51 String KEY_HOME_WALLPAPER_BASE_IMAGE_URL = 52 "home_wallpaper_base_image_url"; 53 String KEY_HOME_WALLPAPER_MANAGER_ID = "home_wallpaper_id"; 54 String KEY_HOME_WALLPAPER_REMOTE_ID = "home_wallpaper_remote_id"; 55 String KEY_HOME_WALLPAPER_BACKING_FILE = "home_wallpaper_backing_file"; 56 String KEY_LOCK_WALLPAPER_MANAGER_ID = "lock_wallpaper_id"; 57 String KEY_LOCK_WALLPAPER_REMOTE_ID = "lock_wallpaper_remote_id"; 58 String KEY_LOCK_WALLPAPER_BACKING_FILE = "lock_wallpaper_backing_file"; 59 String KEY_DAILY_ROTATION_TIMESTAMPS = "daily_rotation_timestamps"; 60 String KEY_DAILY_WALLPAPER_ENABLED_TIMESTAMP = 61 "daily_wallpaper_enabled_timestamp"; 62 String KEY_LAST_DAILY_LOG_TIMESTAMP = "last_daily_log_timestamp"; 63 String KEY_LAST_APP_ACTIVE_TIMESTAMP = "last_app_active_timestamp"; 64 String KEY_LAST_ROTATION_STATUS = "last_rotation_status"; 65 String KEY_LAST_ROTATION_STATUS_TIMESTAMP = 66 "last_rotation_status_timestamp"; 67 String KEY_LAST_SYNC_TIMESTAMP = "last_sync_timestamp"; 68 String KEY_PENDING_WALLPAPER_SET_STATUS = 69 "pending_wallpaper_set_status"; 70 String KEY_PENDING_DAILY_WALLPAPER_UPDATE_STATUS = 71 "pending_daily_wallpaper_update_status"; 72 String KEY_NUM_DAYS_DAILY_ROTATION_FAILED = 73 "num_days_daily_rotation_failed"; 74 String KEY_NUM_DAYS_DAILY_ROTATION_NOT_ATTEMPTED = 75 "num_days_daily_rotation_not_attempted"; 76 String KEY_HOME_WALLPAPER_PACKAGE_NAME = "home_wallpaper_package_name"; 77 String KEY_HOME_WALLPAPER_SERVICE_NAME = "home_wallpaper_service_name"; 78 } 79 } 80