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_COLLECTION_ID = "home_wallpaper_collection_id"; 29 public static final String KEY_HOME_WALLPAPER_HASH_CODE = "home_wallpaper_hash_code"; 30 31 public static final String KEY_LOCK_WALLPAPER_ATTRIB_1 = "lock_wallpaper_attribution_line_1"; 32 public static final String KEY_LOCK_WALLPAPER_ATTRIB_2 = "lock_wallpaper_attribution_line_2"; 33 public static final String KEY_LOCK_WALLPAPER_ATTRIB_3 = "lock_wallpaper_attribution_line_3"; 34 public static final String KEY_LOCK_WALLPAPER_ACTION_URL = "lock_wallpaper_action_url"; 35 public static final String KEY_LOCK_WALLPAPER_HASH_CODE = "lock_wallpaper_hash_code"; 36 public static final String KEY_LOCK_WALLPAPER_COLLECTION_ID = "lock_wallpaper_collection_id"; 37 public static final String KEY_HAS_SMALL_PREVIEW_TOOLTIP_BEEN_SHOWN = 38 "has_small_preview_tooltip_been_shown"; 39 public static final String KEY_HAS_FULL_PREVIEW_TOOLTIP_BEEN_SHOWN = 40 "has_full_preview_tooltip_been_shown"; 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_RECENTS_KEY = "home_wallpaper_recents_key"; 55 String KEY_HOME_WALLPAPER_REMOTE_ID = "home_wallpaper_remote_id"; 56 String KEY_HOME_WALLPAPER_BACKING_FILE = "home_wallpaper_backing_file"; 57 String KEY_LOCK_WALLPAPER_MANAGER_ID = "lock_wallpaper_id"; 58 String KEY_LOCK_WALLPAPER_RECENTS_KEY = "lock_wallpaper_recents_key"; 59 String KEY_LOCK_WALLPAPER_REMOTE_ID = "lock_wallpaper_remote_id"; 60 String KEY_LOCK_WALLPAPER_BACKING_FILE = "lock_wallpaper_backing_file"; 61 String KEY_DAILY_ROTATION_TIMESTAMPS = "daily_rotation_timestamps"; 62 String KEY_DAILY_WALLPAPER_ENABLED_TIMESTAMP = 63 "daily_wallpaper_enabled_timestamp"; 64 String KEY_LAST_DAILY_LOG_TIMESTAMP = "last_daily_log_timestamp"; 65 String KEY_LAST_APP_ACTIVE_TIMESTAMP = "last_app_active_timestamp"; 66 String KEY_LAST_ROTATION_STATUS = "last_rotation_status"; 67 String KEY_LAST_ROTATION_STATUS_TIMESTAMP = 68 "last_rotation_status_timestamp"; 69 String KEY_LAST_SYNC_TIMESTAMP = "last_sync_timestamp"; 70 String KEY_PENDING_WALLPAPER_SET_STATUS = 71 "pending_wallpaper_set_status"; 72 String KEY_PENDING_DAILY_WALLPAPER_UPDATE_STATUS = 73 "pending_daily_wallpaper_update_status"; 74 String KEY_NUM_DAYS_DAILY_ROTATION_FAILED = 75 "num_days_daily_rotation_failed"; 76 String KEY_NUM_DAYS_DAILY_ROTATION_NOT_ATTEMPTED = 77 "num_days_daily_rotation_not_attempted"; 78 String KEY_HOME_WALLPAPER_SERVICE_NAME = "home_wallpaper_service_name"; 79 String KEY_LOCK_WALLPAPER_SERVICE_NAME = "lock_wallpaper_service_name"; 80 String KEY_PREVIEW_WALLPAPER_COLOR_ID = "preview_wallpaper_color_id"; 81 String KEY_HOME_WALLPAPER_EFFECTS = "home_wallpaper_effects"; 82 String KEY_LOCK_WALLPAPER_EFFECTS = "lock_wallpaper_effects"; 83 } 84 } 85