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_BASE_IMAGE_URL = "home_wallpaper_base_image_url"; 32 public static final String KEY_HOME_WALLPAPER_HASH_CODE = "home_wallpaper_hash_code"; 33 public static final String KEY_HOME_WALLPAPER_MANAGER_ID = "home_wallpaper_id"; 34 public static final String KEY_HOME_WALLPAPER_PACKAGE_NAME = "home_wallpaper_package_name"; 35 public static final String KEY_HOME_WALLPAPER_REMOTE_ID = "home_wallpaper_remote_id"; 36 public static final String KEY_HOME_WALLPAPER_BACKING_FILE = "home_wallpaper_backing_file"; 37 38 public static final String KEY_LOCK_WALLPAPER_ATTRIB_1 = "lock_wallpaper_attribution_line_1"; 39 public static final String KEY_LOCK_WALLPAPER_ATTRIB_2 = "lock_wallpaper_attribution_line_2"; 40 public static final String KEY_LOCK_WALLPAPER_ATTRIB_3 = "lock_wallpaper_attribution_line_3"; 41 public static final String KEY_LOCK_WALLPAPER_ACTION_URL = "lock_wallpaper_action_url"; 42 public static final String KEY_LOCK_WALLPAPER_ACTION_LABEL_RES = "lock_wallpaper_action_label"; 43 public static final String KEY_LOCK_WALLPAPER_ACTION_ICON_RES = "lock_wallpaper_action_icon"; 44 public static final String KEY_LOCK_WALLPAPER_HASH_CODE = "lock_wallpaper_hash_code"; 45 public static final String KEY_LOCK_WALLPAPER_COLLECTION_ID = "lock_wallpaper_collection_id"; 46 public static final String KEY_LOCK_WALLPAPER_MANAGER_ID = "lock_wallpaper_id"; 47 public static final String KEY_LOCK_WALLPAPER_BACKING_FILE = "lock_wallpaper_backing_file"; 48 49 public static final String KEY_DAILY_ROTATION_TIMESTAMPS = "daily_rotation_timestamps"; 50 public static final String KEY_DAILY_WALLPAPER_ENABLED_TIMESTAMP = 51 "daily_wallpaper_enabled_timestamp"; 52 53 public static final String KEY_LAST_DAILY_LOG_TIMESTAMP = "last_daily_log_timestamp"; 54 public static final String KEY_LAST_APP_ACTIVE_TIMESTAMP = "last_app_active_timestamp"; 55 public static final String KEY_LAST_ROTATION_STATUS = "last_rotation_status"; 56 public static final String KEY_LAST_ROTATION_STATUS_TIMESTAMP = "last_rotation_status_timestamp"; 57 public static final String KEY_LAST_SYNC_TIMESTAMP = "last_sync_timestamp"; 58 59 public static final String KEY_PENDING_WALLPAPER_SET_STATUS = "pending_wallpaper_set_status"; 60 public static final String KEY_PENDING_DAILY_WALLPAPER_UPDATE_STATUS = 61 "pending_daily_wallpaper_update_status"; 62 63 public static final String KEY_NUM_DAYS_DAILY_ROTATION_FAILED = "num_days_daily_rotation_failed"; 64 public static final String KEY_NUM_DAYS_DAILY_ROTATION_NOT_ATTEMPTED = 65 "num_days_daily_rotation_not_attempted"; 66 } 67