1/**
2 * Copyright (C) 2018 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 */
16export enum JobStatus {
17  Ready = 0,
18  Leased,
19  Complete,
20  Infra_err,
21  Expired,
22  Bootup_err,
23}
24
25export enum DeviceStatus {
26  Unknown = 0,
27  Fastboot,
28  Online,
29  Ready,
30  Use,
31  Error,
32  No_response,
33}
34
35export enum SchedulingStatus {
36  Free = 0,
37  Reserved,
38  Use,
39}
40
41/**
42 * bit 0-1  : version related test type
43 *            00 - Unknown
44 *            01 - ToT
45 *            10 - OTA
46 * bit 2    : device signed build
47 * bit 3-4  : reserved for gerrit related test type
48 *            01 - pre-submit
49 * bit 5    : manually created test job
50 */
51export enum TestType {
52  Unknown = 0,
53  ToT = 1,
54  OTA = 1 << 1,
55  Signed = 1 << 2,
56  Presubmit = 1 << 3,
57  Manual = 1 << 5,
58}
59