1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 package ohos.devtools.views.common; 17 18 /** 19 * ut constants 20 * 21 * @since 2021/5/19 16:39 22 */ 23 public class UtConstant { 24 /** 25 * New task button 26 */ 27 public static final String UT_WELCOME_PANEL_NEW_TASK_BTN = "newTaskBtn"; 28 29 /** 30 * connect Type ComboBox 31 */ 32 public static final String UT_DEVICE_PROCESS_PANEL_CONNECT_TYPE = "connectType"; 33 34 /** 35 * Gpu connect Type ComboBox 36 */ 37 public static final String UT_DEVICE_GPU_CONNECT_TYPE = "gpuConnectType"; 38 39 /** 40 * device name comboBox 41 */ 42 public static final String UT_DEVICE_PROCESS_PANEL_DEVICE_NAME = "deviceNameComboBox"; 43 44 /** 45 * gpu device name comboBox 46 */ 47 public static final String UT_DEVICE_GPU_DEVICE_NAME = "gpuDeviceNameComboBox"; 48 49 /** 50 * Click to expand the secondary chart interface 51 */ 52 public static final String UT_MEMORY_ITEM_VIEW_FOLD = "foldBtn"; 53 54 /** 55 * Click to expand the secondary chart interface 56 */ 57 public static final String UT_CPU_ITEM_VIEW_FOLD = "cpuFoldBtn"; 58 59 /** 60 * cpu combo box type 61 */ 62 public static final String UT_CPU_ITEM_VIEW_COMBO = "cpuComboBoxType"; 63 64 /** 65 * Click to expand the secondary chart interface 66 */ 67 public static final String UT_DISK_IO_VIEW_FOLD = "diskIoFoldBtn"; 68 69 /** 70 * Click to expand the secondary chart interface 71 */ 72 public static final String UT_NETWORK_VIEW_FOLD = "networkFoldBtn"; 73 74 /** 75 * Click to expand the secondary chart interface 76 */ 77 public static final String UT_ENERGY_VIEW_FOLD = "energyFoldBtn"; 78 79 /** 80 * Zoom in to the left 81 */ 82 public static final String UT_TASK_SCENE_PANEL_CHART_LEFT = "jButtonLeft"; 83 84 /** 85 * Speed switch button 86 */ 87 public static final String UT_TASK_SCENE_PANEL_CHART_TIME = "timeJComboBox"; 88 89 /** 90 * Speed switch button 91 */ 92 public static final String UT_TASK_SCENE_PANEL_CHART_CONFIG = "configButton"; 93 94 /** 95 * Button stop 96 */ 97 public static final String UT_TASK_SCENE_PANEL_CHART_STOP_BUTTON = "jButtonStop"; 98 99 /** 100 * Button run 101 */ 102 public static final String UT_TASK_SCENE_PANEL_CHART_RUN_BUTTON = "jButtonRun"; 103 104 /** 105 * Button save 106 */ 107 public static final String UT_TASK_SCENE_PANEL_CHART_SAVE_BUTTON = "jButtonSave"; 108 109 /** 110 * Button delete 111 */ 112 public static final String UT_TASK_SCENE_PANEL_CHART_DELETE_BUTTON = "jButtonDelete"; 113 114 /** 115 * export file dialog 116 */ 117 public static final String UT_EXPORT_FILE_FILE_NAME = "fileName"; 118 119 /** 120 * hiLog Menu 121 */ 122 public static final String UT_HOME_PANEL_HILOG_MENU = "hiLogMenu"; 123 124 /** 125 * Content to the left of the title(hiLog) 126 */ 127 public static final String UT_HILOG_PANEL_TITLE_LEFT = "tabLeftPanel"; 128 129 /** 130 * Content to the right of the title(hiLog) 131 */ 132 public static final String UT_HILOG_PANEL_CLOSE_RIGHT = "tabRightPanel"; 133 134 /** 135 * Select device 136 */ 137 public static final String UT_HILOG_PANEL_DEVICE = "deviceBox"; 138 139 /** 140 * Select log type 141 */ 142 public static final String UT_HILOG_PANEL_LOG_TYPE = "logTypeBox"; 143 144 /** 145 * collect box 146 */ 147 public static final String UT_MEMORY_ITEM_VIEW_COLLECT_BOX = "collectBox"; 148 149 /** 150 * heap dump button 151 */ 152 public static final String UT_MEMORY_ITEM_VIEW_HEAP_DUMP = "heapDumpBtn"; 153 154 /** 155 * Display device process name 156 */ 157 public static final String UT_TASK_SCENE_PANEL_CHART_SESSION_MANAGE = "sessionManageLabel"; 158 159 /** 160 * Close button above chart 161 */ 162 public static final String UT_TASK_PANEL_CLOSE = "chartTopClose"; 163 164 /** 165 * task scene 166 */ 167 public static final String UT_TASK_PANEL_APPLICATION = "Application Tuning"; 168 169 /** 170 * task scene 171 */ 172 public static final String UT_TASK_PANEL_SYSTEM = "System Tuning"; 173 174 /** 175 * task scene 176 */ 177 public static final String UT_TASK_PANEL_DISTRIBUTED = "Distributed Scenario"; 178 179 /** 180 * task scene 181 */ 182 public static final String UT_TASK_PANEL_GPU = "GPU Counter"; 183 184 /** 185 * task scene choose button 186 */ 187 public static final String UT_TASK_PANEL_CHOOSE = "Choose"; 188 189 /** 190 * start task 191 */ 192 public static final String UT_TASK_SCENE_PANE_START = "Start Task"; 193 194 /** 195 * Last Step 196 */ 197 public static final String UT_TASK_SCENE_PANE_LAST = "Last Step"; 198 199 /** 200 * Open file 201 */ 202 public static final String UT_TASK_PANEL_OPEN_FILE = "Open File"; 203 204 /** 205 * detail Cfg Btn 206 */ 207 public static final String UT_MEMORY_ITEM_VIEW_DETAIL = "detailCfgBtn"; 208 209 /** 210 * process Table 211 */ 212 public static final String UT_DEVICE_PROCESS_PANEL_TABLE = "processTable"; 213 214 /** 215 * selected Process Name 216 */ 217 public static final String UT_DEVICE_PROCESS_PANEL_PROCESS_NAME = "selectedProcessName"; 218 219 /** 220 * search Field 221 */ 222 public static final String UT_DEVICE_PROCESS_PANEL_SEARCH_FIELD = "searchField"; 223 224 /** 225 * help Menu 226 */ 227 public static final String UT_HOME_PANEL_HELP_MENU = "helpMenu"; 228 229 /** 230 * checkBox Native Memory 231 */ 232 public static final String UT_MEMORY_ITEM_POPUP_NATIVE = "Native"; 233 234 /** 235 * checkBox Stack Memory 236 */ 237 public static final String UT_MEMORY_ITEM_POPUP_STACK = "Stack"; 238 239 /** 240 * Memory Item View 241 */ 242 public static final String UT_MEMORY_ITEM_VIEW = "MemoryItemView"; 243 244 /** 245 * network Item View 246 */ 247 public static final String UT_NETWORK_ITEM_VIEW = "NetworkItemView"; 248 249 /** 250 * diskIo Item View 251 */ 252 public static final String UT_DISK_IO_ITEM_VIEW = "DiskIoItemView"; 253 254 /** 255 * view Box 256 */ 257 public static final String UT_MEMORY_TREE_TABLE_VIEW = "viewBox"; 258 259 /** 260 * energy view Box 261 */ 262 public static final String UT_ENERGY_VIEW_BOX = "energyViewBox"; 263 264 /** 265 * arrange Box 266 */ 267 public static final String UT_MEMORY_TREE_TABLE_ARRANGE = "arrangeBox"; 268 269 /** 270 * Cpu Item View 271 */ 272 public static final String UT_CPU_ITEM_VIEW = "CpuItemView"; 273 274 /** 275 * hprof file type 276 */ 277 public static final String FILE_TYPE_HPROF = "hprof"; 278 279 /** 280 * trace file type 281 */ 282 public static final String FILE_TYPE_TRACE = "trace"; 283 284 /** 285 * ComboBox Filter 286 */ 287 public static final String UT_FILTER_HEAPS_FILTER = "jComboBoxFilter"; 288 289 /** 290 * ComboBox Filter 291 */ 292 public static final String UT_FILTER_HEAPS_ARRAY = "jComboBoxArray"; 293 294 /** 295 * ComboBox Filter 296 */ 297 public static final String UT_FILTER_HEAPS_CLASS = "jComboBoxClass"; 298 299 /** 300 * heap Dump Search 301 */ 302 public static final String UT_FILTER_HEAPS_SEARCH = "heapDumpSearch"; 303 304 /** 305 * heap dump close table button 306 */ 307 public static final String UT_HEAP_TABLE_CLOSE_BUTTON = "closeLabel"; 308 309 /** 310 * heap dump close third panel 311 */ 312 public static final String UT_HEAP_DUMP_THIRD_PANEL_CLOSE = "closeThirdPanel"; 313 314 /** 315 * system tuning device name combobox 316 */ 317 public static final String UT_SYSTEM_TUNING_DEVICE_NAME = "deviceComboBox"; 318 319 /** 320 * system tuning connect type combobox 321 */ 322 public static final String UT_SYSTEM_TUNING_CONNECT_TYPE = "connectTypeComboBox"; 323 324 /** 325 * metric Select 326 */ 327 public static final String UT_METRICS_PANEL_SELECT = "metricSelect"; 328 329 /** 330 * ability Slice 331 */ 332 public static final String UT_PROFILER_ABILITY_SLICE = "abilitySlice"; 333 334 /** 335 * hiLog tab close 336 */ 337 public static final String UT_HILOG_TAB_CLOSE = "tabClose"; 338 339 /** 340 * Probes 341 */ 342 public static final String UT_SYSTEM_TUNING_LABEL = "Probes"; 343 344 /** 345 * Bytrace categories 346 */ 347 public static final String UT_SYSTEM_TUNING_CATEGORIES = "Bytrace categories"; 348 349 /** 350 * metrics Button 351 */ 352 public static final String UT_SYSTEM_TUNING_METRICS = "metricsButton"; 353 354 /** 355 * metrics run Button 356 */ 357 public static final String UT_SYSTEM_TUNING_METRICS_RUN = "metricsRun"; 358 359 /** 360 * queryButton 361 */ 362 public static final String UT_SYSTEM_TUNING_QUERY = "queryButton"; 363 364 /** 365 * infoButton 366 */ 367 public static final String UT_SYSTEM_TUNING_INFO = "infoButton"; 368 } 369