1 /* 2 * Copyright (C) 2015 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 17 package com.android.messaging.util; 18 19 /** 20 * List of shared preferences keys and default values. These are all internal 21 * (not user-visible) preferences. Preferences that are exposed via the Settings 22 * activity should be defined in the constants.xml resource file instead. 23 */ 24 public final class BuglePrefsKeys { 25 private BuglePrefsKeys() {} // do not instantiate 26 27 /** 28 * Bugle's shared preferences version 29 */ 30 public static final String SHARED_PREFERENCES_VERSION = 31 "shared_preferences_version"; 32 public static final int SHARED_PREFERENCES_VERSION_DEFAULT = 33 BuglePrefs.NO_SHARED_PREFERENCES_VERSION; 34 35 /** 36 * Last time that we ran a a sync (in millis) 37 */ 38 public static final String LAST_SYNC_TIME 39 = "last_sync_time_millis"; 40 public static final long LAST_SYNC_TIME_DEFAULT 41 = -1; 42 43 /** 44 * Last time that we ran a full sync (in millis) 45 */ 46 public static final String LAST_FULL_SYNC_TIME 47 = "last_full_sync_time_millis"; 48 public static final long LAST_FULL_SYNC_TIME_DEFAULT 49 = -1; 50 51 /** 52 * Timestamp of the message for which we last did a message notification. 53 */ 54 public static final String LATEST_NOTIFICATION_MESSAGE_TIMESTAMP 55 = "latest_notification_message_timestamp"; 56 57 /** 58 * The last selected chooser index in the media picker. 59 */ 60 public static final String SELECTED_MEDIA_PICKER_CHOOSER_INDEX 61 = "selected_media_picker_chooser_index"; 62 public static final int SELECTED_MEDIA_PICKER_CHOOSER_INDEX_DEFAULT 63 = -1; 64 65 /** 66 * The attempt number when retrying ProcessPendingMessagesAction 67 */ 68 public static final String PROCESS_PENDING_MESSAGES_RETRY_COUNT 69 = "process_pending_retry"; 70 71 } 72