1 /* 2 * Copyright (C) 2012 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.motorola.studio.android.common.log; 17 18 /** 19 * Constants used for the UDC component to collect anonymous usage data. 20 * This data is periodically sent to servers if the user 21 * agreed with that. If user does not agree, the data is never 22 * used. 23 * 24 * Example of the use of KIND and DESCRIPTION when logging: 25 * The KIND <emulator> can be used with a set of different WHATs, 26 * thas is, <started>, <stoped>, <refresh> and so on. Which means 27 * that the kind of occurrence emulator can have different events, 28 * such as: the emulator was started. 29 */ 30 public interface UsageDataConstants 31 { 32 public static final String DESCRIPTION_DEFAULT = "operation_executed"; 33 34 public static final String KIND_DOWNLOAD_ADDON = "addondownload"; 35 36 public static final String VALUE_EMULATOR = "emulator"; 37 38 public static final String VALUE_HANDSET = "handset"; 39 40 public static final String KIND_DOWNLOADSDK = "sdkdownload"; 41 42 public static final String KIND_APP_MANAGEMENT = "application_management"; 43 44 public static final String WHAT_APP_MANAGEMENT_CREATE = "created"; 45 46 public static final String WHAT_APP_MANAGEMENT_PACKAGE = "package"; 47 48 public static final String KIND_EMULATOR = "emulator"; 49 50 public static final String WHAT_EMULATOR_STOP = "stopped"; 51 52 public static final String WHAT_EMULATOR_RESET = "reset"; 53 54 public static final String WHAT_EMULATOR_START = "started"; 55 56 public static final String WHAT_EMULATOR_CREATION_WIZARD = "new_device_wizard"; 57 58 public static final String WHAT_EMULATOR_LANGUAGE = "change_language"; 59 60 public static final String KIND_BUILDINGBLOCK = "building_blocks"; 61 62 public static final String WHAT_BUILDINGBLOCK_PROVIDER = "create_content_provider"; 63 64 public static final String WHAT_BUILDINGBLOCK_ACTIVITY = "create_activity"; 65 66 public static final String WHAT_BUILDINGBLOCK_RECEIVER = "create_receiver"; 67 68 public static final String WHAT_BUILDINGBLOCK_SERVICE = "create_service"; 69 70 public static final String WHAT_BUILDINGBLOCK_WIDGET_PROVIDER = "create_widget_provider"; 71 72 public static final String KIND_LOCALIZATION = "localization"; 73 74 public static final String WHAT_LOCALIZATION_AUTOMATICTRANSLATION = "automatic_translator"; 75 76 public static final String KEY_TARGET = "target="; 77 78 public static final String KEY_TRANSLATION_PROVIDER = "provider="; 79 80 public static final String KEY_TRANSLATION_FROM_LANG = "from_lang="; 81 82 public static final String KEY_TRANSLATION_TO_LANG = "to_lang="; 83 84 public static final String VALUE_GOOGLE = "google"; 85 86 public static final String KEY_PRJ_TARGET = "prj_target="; 87 88 public static final String KEY_TARGETLIST = "target_list="; 89 90 public static final String KEY_DEVICE_TYPE = "device="; 91 92 public static final String KEY_USE_VDL = "use_vdl="; 93 94 public static final String KEY_ISOPHONE = "isophone="; 95 96 public static final String VALUE_YES = "y"; 97 98 public static final String VALUE_NO = "n"; 99 100 public static final String SEPARATOR = "|"; 101 102 public static final String WHAT_DATABASE_MANAGMT_CLASSES = "created"; 103 104 public static final String KIND_DATABASE_MANAGMT_CLASSES = "database"; 105 106 public static final String WHAT_CODESNIPPET = "inserted"; 107 108 public static final String KIND_CODESNIPPET = "codesnippet"; 109 110 public static final String WHAT_OPENHELPER = "created"; 111 112 public static final String KIND_OPENHELPER = "codesnippet"; 113 114 public static final String WHAT_TABLEWIZARD = "created"; 115 116 public static final String KIND_TABLEWIZARD = "table_wizard"; 117 118 public static final String WHAT_DBACTION = "created_device"; 119 120 public static final String KIND_DBACTION = "dbcreate_device"; 121 122 public static final String WHAT_INSTALLADDON = "install_addon"; 123 124 public static final String WHAT_INSTALLDOCS = "install_docs"; 125 126 public static final String KIND_INSTALL = "install"; 127 128 public static final String KIND_INSTALLADDON = KIND_INSTALL; 129 130 public static final String WHAT_INSTALLSDK = "install_sdk"; 131 132 public static final String KIND_INSTALLSDK = KIND_INSTALL; 133 134 public static final String KIND_INSTALLDOCS = KIND_INSTALL; 135 136 public static final String WHAT_INSTALLPLATFORM = "install_platform"; 137 138 public static final String KIND_INSTALLPLATFORM = KIND_INSTALL; 139 140 public static final String WHAT_INSTALLPLATFORM_TOOLS = "install_platform_tools"; 141 142 public static final String KIND_INSTALLPLATFORM_TOOLS = KIND_INSTALL; 143 144 public static final String WHAT_INSTALLSAMPLE = "install_sample"; 145 146 public static final String KIND_INSTALLSAMPLE = KIND_INSTALL; 147 148 public static final String WHAT_MONKEY_EXEC = "executed"; 149 150 public static final String KIND_MONKEY_EXEC = "monkey"; 151 152 public static final String WHAT_VIEW_BY_LAYOUT_EXEC = "what_view_by_layout_exec"; 153 154 public static final String KIND_VIEW_BY_LAYOUT_EXEC = "kind_view_by_layout_exec"; 155 156 public static final String WHAT_SAMPLE_ACTIVITY_CREATED = "created"; 157 158 public static final String KIND_SAMPLE_ACTIVITY_CREATED = "activity"; 159 160 public static final String WHAT_BUILDINGBLOCK_PERMISSION = "permission_used"; 161 162 public static final String KIND_BUILDINGBLOCK_PERMISSION = "buildingblock"; 163 164 public static final String WHAT_WIDGETPROVIDER_CREATED = "created"; 165 166 public static final String KIND_WIDGETPROVIDER = "widget_provider"; 167 168 public static final String KIND_REMOTE_DEVICE = "remote_device"; 169 170 public static final String WHAT_REMOTE_WIRELESS = "switched_to_wireless"; 171 172 public static final String WHAT_REMOTE_USB = "switched_to_usb"; 173 174 public static final String WHAT_OBFUSCATE = "obfuscation"; 175 176 public static final String KIND_OBFUSCATE = "obfuscate_project"; 177 178 public static final String KIND_DESOBFUSCATE = "desobfuscate_project"; 179 180 public static final String WHAT_VIDEOS_PLAY = "play"; 181 182 public static final String WHAT_VIDEOS_PLAYER_SUPPORT = "player_support"; 183 184 public static final String WHAT_VIDEOS_FLASH_SUPPORT = "flash_support"; 185 186 public static final String KIND_VIDEOS = "videos"; 187 188 public static final String WHAT_VIEW_BY_MENU_EXEC = "what_view_by_menu_exec"; 189 190 public static final String KIND_VIEW_BY_MENU_EXEC = "kind_view_by_menu_exec"; 191 192 } 193