Walter Jang | 823b83c | 2016-01-20 18:37:40 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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.contacts.common.logging; |
| 17 | |
Walter Jang | 823b83c | 2016-01-20 18:37:40 -0800 | [diff] [blame] | 18 | /** |
| 19 | * Stores constants identifying individual screens/dialogs/fragments in the application, and also |
| 20 | * provides a mapping of integer id -> screen name mappings for analytics purposes. |
| 21 | */ |
John Shao | babaa78 | 2016-05-19 16:03:43 -0700 | [diff] [blame] | 22 | public class ScreenEvent { |
Walter Jang | 823b83c | 2016-01-20 18:37:40 -0800 | [diff] [blame] | 23 | |
Walter Jang | 4a45918 | 2016-01-20 12:53:55 -0800 | [diff] [blame] | 24 | // Should match ContactsExtension.ScreenEvent.ScreenType values in |
| 25 | // http://cs/google3/logs/proto/wireless/android/contacts/contacts_extensions.proto |
John Shao | babaa78 | 2016-05-19 16:03:43 -0700 | [diff] [blame] | 26 | public static class ScreenType { |
Walter Jang | 13d4dbc | 2016-02-24 17:05:10 -0800 | [diff] [blame] | 27 | public static final int UNKNOWN = 0; |
| 28 | public static final int SEARCH = 1; |
| 29 | public static final int SEARCH_EXIT = 2; |
| 30 | public static final int FAVORITES = 3; |
| 31 | public static final int ALL_CONTACTS = 4; |
| 32 | public static final int QUICK_CONTACT = 5; |
| 33 | public static final int EDITOR = 6; |
Wenyi Wang | c9ad9b1 | 2016-05-20 15:10:12 -0700 | [diff] [blame] | 34 | public static final int LIST_ACCOUNT = 7; |
| 35 | public static final int LIST_GROUP = 8; |
| 36 | public static final int ME_CONTACT = 9; |
Walter Jang | 13d4dbc | 2016-02-24 17:05:10 -0800 | [diff] [blame] | 37 | } |
Walter Jang | 823b83c | 2016-01-20 18:37:40 -0800 | [diff] [blame] | 38 | } |