Lines Matching refs:value
78 static bool remove_pair(void *key, void *value, void *context)
104 free(value);
149 char *value;
159 value = strdup(eq);
161 value = strdup("");
164 value = strdup("");
167 /* if we replaced a value, free it */
168 old_val = hashmapPut(str_parms->map, key, value);
193 const char *value)
200 tmp_val = strdup(value);
214 int str_parms_add_int(struct str_parms *str_parms, const char *key, int value)
219 ret = snprintf(val_str, sizeof(val_str), "%d", value);
228 float value)
233 ret = snprintf(val_str, sizeof(val_str), "%.10f", value);
244 char *value;
246 value = hashmapGet(str_parms->map, (void *)key);
247 if (value)
248 return strlcpy(val, value, len);
255 char *value;
258 value = hashmapGet(str_parms->map, (void *)key);
259 if (!value)
262 *val = (int)strtol(value, &end, 0);
263 if (*value != '\0' && *end == '\0')
273 char *value;
276 value = hashmapGet(str_parms->map, (void *)key);
277 if (!value)
280 out = strtof(value, &end);
281 if (*value != '\0' && *end == '\0')
287 static bool combine_strings(void *key, void *value, void *context)
297 (char *)value);
321 static bool dump_entry(void *key, void *value, void *context)
323 ALOGI("key: '%s' value: '%s'\n", (char *)key, (char *)value);