• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2020 The Android Open Source Project
2 //
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 
15 #pragma once
16 
17 /* Keys of the properties found in avd/name.ini and config.ini files.
18  *
19  * These keys must match their counterpart defined in
20  * sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/avd/AvdManager.java
21  */
22 
23 
24 /* -- Keys used in avd/name.ini -- */
25 
26 /* Absolute path of the AVD content directory.
27  */
28 #define  ROOT_ABS_PATH_KEY    "path"
29 
30 /* Relative path of the AVD content directory.
31  * Path is relative to the bufprint_config_path().
32  */
33 #define  ROOT_REL_PATH_KEY    "path.rel"
34 
35 
36 /* -- Keys used in config.ini -- */
37 
38 /* AVD/config.ini key name representing the abi type of the specific avd
39  */
40 #define ABI_TYPE "abi.type"
41 
42 /* AVD/config.ini key name representing the CPU architecture of the specific avd
43  */
44 #define CPU_ARCH "hw.cpu.arch"
45 /* the prefix of config.ini keys that will be used for search directories
46  * of system images.
47  */
48 #define  SEARCH_PREFIX   "image.sysdir."
49 
50 /* the maximum number of search path keys we're going to read from the
51  * config.ini file
52  */
53 #define  MAX_SEARCH_PATHS  2
54 
55 /* the config.ini key that will be used to indicate the full relative
56  * path to the skin directory (including the skin name).
57  */
58 #define  SKIN_PATH       "skin.path"
59 
60 /* the config.ini key that will be used to indicate the default skin's name.
61  * this is ignored if there is a valid SKIN_PATH entry in the file.
62  */
63 #define  SKIN_NAME       "skin.name"
64 
65 /* default skin name */
66 #define  SKIN_DEFAULT    "HVGA"
67 
68 /* the config.ini key that is used to indicate the absolute path
69  * to the SD Card image file, if you don't want to place it in
70  * the content directory.
71  */
72 #define  SDCARD_PATH     "sdcard.path"
73 
74 /* The config.ini key name representing the second path where the emulator looks
75  * for system images. Typically this is the path to the platform system image.
76  */
77 #define IMAGES_2 "image.sysdir.2"
78 
79 /* AVD/config.ini key name representing the presence of the snapshots file.
80  */
81 #define SNAPSHOT_PRESENT "snapshot.present"
82 
83 /* AVD/config.ini key name representing the size of the SD card.
84  */
85 #define SDCARD_SIZE "sdcard.size"
86 
87 /* AVD/config.ini key name representing the tag id of the specific avd
88  */
89 #define TAG_ID "tag.id"
90 
91 /* AVD/config.ini value for tag id of Chrome OS.
92  */
93 #define TAG_ID_CHROMEOS "chromeos"
94 
95 /* AVD/config.ini key name representing the tag display of the specific avd
96  */
97 #define TAG_DISPLAY "tag.display"
98