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. |
| 16 | |
| 17 | """This module holds constants used by the driver.""" |
| 18 | BRANCH_PREFIX = "git_" |
| 19 | BUILD_TARGET_MAPPING = { |
| 20 | "phone": "gce_x86_phone-userdebug", |
| 21 | "tablet": "gce_x86_tablet-userdebug", |
| 22 | "tablet_mobile": "gce_x86_tablet_mobile-userdebug", |
| 23 | "aosp_phone": "aosp_gce_x86_phone-userdebug", |
| 24 | "aosp_tablet": "aosp_gce_x86_tablet-userdebug", |
| 25 | } |
| 26 | SPEC_NAMES = {"nexus5", "nexus6", "nexus7_2012", "nexus7_2013", "nexus9", |
| 27 | "nexus10"} |
| 28 | |
| 29 | DEFAULT_SERIAL_PORT = 1 |
| 30 | LOGCAT_SERIAL_PORT = 2 |