Keun Soo Yim | b293fdb | 2016-09-21 16:03:44 -0700 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # |
| 3 | # Copyright 2016 - The Android Open Source Project |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
Keun Soo Yim | b293fdb | 2016-09-21 16:03:44 -0700 | [diff] [blame] | 16 | """This module holds constants used by the driver.""" |
| 17 | BRANCH_PREFIX = "git_" |
| 18 | BUILD_TARGET_MAPPING = { |
Kevin Cheng | b596388 | 2018-05-09 00:06:27 -0700 | [diff] [blame] | 19 | # TODO: Add aosp goldfish targets and internal cf targets to vendor code |
| 20 | # base. |
| 21 | "aosp_phone": "aosp_cf_x86_phone-userdebug", |
| 22 | "aosp_tablet": "aosp_cf_x86_tablet-userdebug", |
Keun Soo Yim | b293fdb | 2016-09-21 16:03:44 -0700 | [diff] [blame] | 23 | } |
Sam Chiu | 81bdc65 | 2018-06-29 18:45:08 +0800 | [diff] [blame] | 24 | SPEC_NAMES = { |
| 25 | "nexus5", "nexus6", "nexus7_2012", "nexus7_2013", "nexus9", "nexus10" |
| 26 | } |
Keun Soo Yim | b293fdb | 2016-09-21 16:03:44 -0700 | [diff] [blame] | 27 | |
| 28 | DEFAULT_SERIAL_PORT = 1 |
| 29 | LOGCAT_SERIAL_PORT = 2 |
Kevin Cheng | 3087af5 | 2018-08-13 13:26:50 -0700 | [diff] [blame] | 30 | |
| 31 | # AVD types |
| 32 | TYPE_GCE = "gce" |
| 33 | TYPE_CF = "cuttlefish" |
| 34 | TYPE_GF = "goldfish" |
Sam Chiu | 81bdc65 | 2018-06-29 18:45:08 +0800 | [diff] [blame] | 35 | |
cylan | abe0a3a | 2018-08-16 18:50:09 +0800 | [diff] [blame^] | 36 | # Instance types |
| 37 | INSTANCE_TYPE_REMOTE = "remote" |
| 38 | INSTANCE_TYPE_LOCAL = "local" |
| 39 | |
| 40 | # Flavor types |
| 41 | FLAVOR_PHONE = "phone" |
| 42 | FLAVOR_AUTO = "auto" |
| 43 | FLAVOR_WEAR = "wear" |
| 44 | FLAVOR_TV = "tv" |
| 45 | FLAVOR_IOT = "iot" |
| 46 | FLAVOR_TABLET = "tablet" |
| 47 | FLAVOR_TABLET_3G = "tablet_3g" |
| 48 | ALL_FLAVORS = [ |
| 49 | FLAVOR_PHONE, FLAVOR_AUTO, FLAVOR_WEAR, FLAVOR_TV, FLAVOR_IOT, |
| 50 | FLAVOR_TABLET, FLAVOR_TABLET_3G |
| 51 | ] |
| 52 | |
Sam Chiu | 81bdc65 | 2018-06-29 18:45:08 +0800 | [diff] [blame] | 53 | USER_ANSWER_YES = {"y", "yes", "Y"} |