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 */ 16 #pragma once 17 18 namespace cuttlefish { 19 20 inline constexpr char kLogcatSerialMode[] = "serial"; 21 inline constexpr char kLogcatVsockMode[] = "vsock"; 22 23 inline constexpr char kDefaultUuidPrefix[] = 24 "699acfc4-c8c4-11e7-882b-5065f31dc1"; 25 inline constexpr char kCuttlefishConfigEnvVarName[] = "CUTTLEFISH_CONFIG_FILE"; 26 inline constexpr char kCuttlefishInstanceEnvVarName[] = "CUTTLEFISH_INSTANCE"; 27 inline constexpr char kVsocUserPrefix[] = "vsoc-"; 28 inline constexpr char kCvdNamePrefix[] = "cvd-"; 29 inline constexpr char kBootStartedMessage[] = "VIRTUAL_DEVICE_BOOT_STARTED"; 30 inline constexpr char kBootPendingMessage[] = "VIRTUAL_DEVICE_BOOT_PENDING"; 31 inline constexpr char kBootCompletedMessage[] = "VIRTUAL_DEVICE_BOOT_COMPLETED"; 32 inline constexpr char kBootFailedMessage[] = "VIRTUAL_DEVICE_BOOT_FAILED"; 33 inline constexpr char kMobileNetworkConnectedMessage[] = 34 "VIRTUAL_DEVICE_NETWORK_MOBILE_CONNECTED"; 35 inline constexpr char kWifiConnectedMessage[] = 36 "VIRTUAL_DEVICE_NETWORK_WIFI_CONNECTED"; 37 inline constexpr char kEthernetConnectedMessage[] = 38 "VIRTUAL_DEVICE_NETWORK_ETHERNET_CONNECTED"; 39 // TODO(b/131864854): Replace this with a string less likely to change 40 inline constexpr char kAdbdStartedMessage[] = 41 "init: starting service 'adbd'..."; 42 inline constexpr char kFastbootdStartedMessage[] = 43 "init: starting service 'fastbootd'..."; 44 inline constexpr char kFastbootStartedMessage[] = 45 "Listening for fastboot command on tcp"; 46 inline constexpr char kScreenChangedMessage[] = "VIRTUAL_DEVICE_SCREEN_CHANGED"; 47 inline constexpr char kDisplayPowerModeChangedMessage[] = 48 "VIRTUAL_DEVICE_DISPLAY_POWER_MODE_CHANGED"; 49 inline constexpr char kInternalDirName[] = "internal"; 50 inline constexpr char kGrpcSocketDirName[] = "grpc_socket"; 51 inline constexpr char kSharedDirName[] = "shared"; 52 inline constexpr char kLogDirName[] = "logs"; 53 inline constexpr char kCrosvmVarEmptyDir[] = "/var/empty"; 54 inline constexpr char kKernelLoadedMessage[] = "] Linux version"; 55 inline constexpr char kBootloaderLoadedMessage[] = "U-Boot 20"; 56 inline constexpr char kApName[] = "crosvm_openwrt"; 57 58 inline constexpr int kDefaultInstance = 1; 59 60 } 61