1c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell/* 2c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * Copyright (C) 2015 The Android Open Source Project 3c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * 4c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * Licensed under the Apache License, Version 2.0 (the "License"); 5c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * you may not use this file except in compliance with the License. 6c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * You may obtain a copy of the License at 7c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * 8c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * http://www.apache.org/licenses/LICENSE-2.0 9c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * 10c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * Unless required by applicable law or agreed to in writing, software 11c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * distributed under the License is distributed on an "AS IS" BASIS, 12c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * See the License for the specific language governing permissions and 14c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * limitations under the License 15c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 16c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 17c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwellpackage com.android.contacts.list; 18c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 19c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell/** 20c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * Intent actions related to the Contacts app UI. In the past we decided to store these in a single 21c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * location in order to easily expose them via ContactsContract. We eventually decided 22c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * this wasn't useful. 23c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 24c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwellpublic class UiIntentActions { 25c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 26c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * The action for the default contacts list tab. 27c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 28c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String LIST_DEFAULT = 29c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell "com.android.contacts.action.LIST_DEFAULT"; 30c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 31c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 32c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * The action for the contacts list tab. 33c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 34c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String LIST_GROUP_ACTION = 35c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell "com.android.contacts.action.LIST_GROUP"; 36c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 37c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 38c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * When in LIST_GROUP_ACTION mode, this is the group to display. 39c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 40c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String GROUP_NAME_EXTRA_KEY = "com.android.contacts.extra.GROUP"; 41c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 42c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 43c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * The action for the all contacts list tab. 44c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 45c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String LIST_ALL_CONTACTS_ACTION = 46c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell "com.android.contacts.action.LIST_ALL_CONTACTS"; 47c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 48c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 49c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * The action for the contacts with phone numbers list tab. 50c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 51c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String LIST_CONTACTS_WITH_PHONES_ACTION = 52c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell "com.android.contacts.action.LIST_CONTACTS_WITH_PHONES"; 53c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 54c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 55c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * The action for the starred contacts list tab. 56c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 57c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String LIST_STARRED_ACTION = 58c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell "com.android.contacts.action.LIST_STARRED"; 59c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 60c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 61c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * The action for the frequent contacts list tab. 62c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 63c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String LIST_FREQUENT_ACTION = 64c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell "com.android.contacts.action.LIST_FREQUENT"; 65c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 66c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 67c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * The action for the "Join Contact" picker. 68c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 69c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String PICK_JOIN_CONTACT_ACTION = 70c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell "com.android.contacts.action.JOIN_CONTACT"; 71c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 72c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 73c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * The action for the "strequent" contacts list tab. It first lists the starred 74c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * contacts in alphabetical order and then the frequent contacts in descending 75c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * order of the number of times they have been contacted. 76c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 77c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String LIST_STREQUENT_ACTION = 78c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell "com.android.contacts.action.LIST_STREQUENT"; 79c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 80c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 81c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * A key for to be used as an intent extra to set the activity 82c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * title to a custom String value. 83c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 84c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String TITLE_EXTRA_KEY = 85c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell "com.android.contacts.extra.TITLE_EXTRA"; 86c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 87c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 88c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * Used as an int extra field in {@link #FILTER_CONTACTS_ACTION} 89c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * intents to supply the text on which to filter. 90c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 91c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String FILTER_TEXT_EXTRA_KEY = 92c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell "com.android.contacts.extra.FILTER_TEXT"; 93c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell 94c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell /** 95c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * Used with JOIN_CONTACT action to set the target for aggregation. This action type 96c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * uses contact ids instead of contact uris for the sake of backwards compatibility. 97c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * <p> 98c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell * Type: LONG 99c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell */ 100c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell public static final String TARGET_CONTACT_ID_EXTRA_KEY 101c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell = "com.android.contacts.action.CONTACT_ID"; 102c3d202ccbaf93ddd8291672027e59f549c32eee3Brian Attwell}