Home | History | Annotate | Download | only in avd

Lines Matching refs:config

12 #include "android/avd/hw-config.h"
19 /* the global variable containing the hardware config for this device */
56 androidHwConfig_init( AndroidHwConfig* config,
59 #define HWCFG_BOOL(n,s,d,a,t) config->n = stringToBoolean(d);
60 #define HWCFG_INT(n,s,d,a,t) config->n = d;
61 #define HWCFG_STRING(n,s,d,a,t) config->n = ASTRDUP(d);
62 #define HWCFG_DOUBLE(n,s,d,a,t) config->n = d;
63 #define HWCFG_DISKSIZE(n,s,d,a,t) config->n = diskSizeToInt64(d);
65 #include "android/avd/hw-config-defs.h"
73 config->hw_keyboard_lid = 0;
78 androidHwConfig_read( AndroidHwConfig* config,
86 #define HWCFG_BOOL(n,s,d,a,t) if (iniFile_getValue(ini, s)) { config->n = iniFile_getBoolean(ini, s, d); }
87 #define HWCFG_INT(n,s,d,a,t) if (iniFile_getValue(ini, s)) { config->n = iniFile_getInteger(ini, s, d); }
88 #define HWCFG_STRING(n,s,d,a,t) if (iniFile_getValue(ini, s)) { AFREE(config->n); config->n = iniFile_getString(ini, s, d); }
89 #define HWCFG_DOUBLE(n,s,d,a,t) if (iniFile_getValue(ini, s)) { config->n = iniFile_getDouble(ini, s, d); }
90 #define HWCFG_DISKSIZE(n,s,d,a,t) if (iniFile_getValue(ini, s)) { config->n = iniFile_getDiskSize(ini, s, d); }
92 #include "android/avd/hw-config-defs.h"
98 androidHwConfig_write( AndroidHwConfig* config,
106 #define HWCFG_BOOL(n,s,d,a,t) iniFile_setBoolean(ini, s, config->n);
107 #define HWCFG_INT(n,s,d,a,t) iniFile_setInteger(ini, s, config->n);
108 #define HWCFG_STRING(n,s,d,a,t) iniFile_setValue(ini, s, config->n);
109 #define HWCFG_DOUBLE(n,s,d,a,t) iniFile_setDouble(ini, s, config->n);
110 #define HWCFG_DISKSIZE(n,s,d,a,t) iniFile_setDiskSize(ini, s, config->n);
112 #include "android/avd/hw-config-defs.h"
118 androidHwConfig_done( AndroidHwConfig* config )
120 #define HWCFG_BOOL(n,s,d,a,t) config->n = 0;
121 #define HWCFG_INT(n,s,d,a,t) config->n = 0;
122 #define HWCFG_STRING(n,s,d,a,t) AFREE(config->n);
123 #define HWCFG_DOUBLE(n,s,d,a,t) config->n = 0.0;
124 #define HWCFG_DISKSIZE(n,s,d,a,t) config->n = 0;
126 #include "android/avd/hw-config-defs.h"
130 androidHwConfig_isScreenNoTouch( AndroidHwConfig* config )
132 return strcmp(config->hw_screen, "no-touch") == 0;
136 androidHwConfig_isScreenTouch( AndroidHwConfig* config )
138 return strcmp(config->hw_screen, "touch") == 0;
142 androidHwConfig_isScreenMultiTouch( AndroidHwConfig* config )
144 return strcmp(config->hw_screen, "multi-touch") == 0;