• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2024 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 */
15export class Constants {
16    static NODE_PORT = 19099;
17    static INTERVAL_TIME = 30000;
18    static LOGIN_PARAM = { type: 0, cmd: 1 };
19    static LOGIN_CMD = 2;// cmd 2 有效 3无效
20    static SESSION_EXCEED = 3; // session满了
21    static GET_CMD = 1;
22    static UPDATE_CMD = 3;
23    static GET_VERSION_CMD = 1;
24    static UPDATE_SUCCESS_CMD = 2; // 升级成功
25    static UPDATE_FAIL_CMD = 4; // 升级失败
26    static DISASSEMBLY_SAVE_CMD = 1;
27    static DISASSEMBLY_SAVE_BACK_CMD = 2;
28    static DISASSEMBLY_QUERY_CMD = 3;
29    static DISASSEMBLY_QUERY_BACK_CMD = 4;
30}
31
32export class TypeConstants {
33    static LOGIN_TYPE = 0;
34    static HEARTBEAT_TYPE = 1;
35    static UPDATE_TYPE = 2;
36    static DIAGNOSIS_TYPE = 8;
37    static SENDDB_CMD = 1;
38    static DIAGNOSIS_CMD = 3;
39    static DISASSEMBLY_TYPE = 12;
40    static ARKTS_TYPE = 9;
41    static PROCESS_TYPE = 3;
42    static USB_TYPE = 10;
43    static USB_SN_CMD = 1;
44    static USB_GET_PROCESS = 2;
45    static USB_GET_CPU_COUNT = 3;
46    static USB_GET_EVENT = 4;
47    static USB_GET_APP = 5;
48    static USB_GET_VERSION = 6;
49}