Lines Matching refs:key
93 const char *key; member
96 static bool remove_pair(void *key, void *value, void *context) in remove_pair() argument
109 if (!ctxt->key) { in remove_pair()
112 } else if (!strcmp(ctxt->key, key)) { in remove_pair()
120 hashmapRemove(ctxt->str_parms->map, key); in remove_pair()
121 free(key); in remove_pair()
126 void str_parms_del(struct str_parms *str_parms, const char *key) in str_parms_del() argument
130 .key = key, in str_parms_del()
168 char *key; in str_parms_create_str() local
175 key = strndup(kvpair, eq - kvpair); in str_parms_create_str()
181 key = strdup(kvpair); in str_parms_create_str()
186 old_val = hashmapPut(str_parms->map, key, value); in str_parms_create_str()
190 free(key); in str_parms_create_str()
192 RELEASE_OWNERSHIP(key); in str_parms_create_str()
213 int str_parms_add_str(struct str_parms *str_parms, const char *key, in str_parms_add_str() argument
225 tmp_key = strdup(key); in str_parms_add_str()
261 int str_parms_add_int(struct str_parms *str_parms, const char *key, int value) in str_parms_add_int() argument
270 ret = str_parms_add_str(str_parms, key, val_str); in str_parms_add_int()
274 int str_parms_add_float(struct str_parms *str_parms, const char *key, in str_parms_add_float() argument
284 ret = str_parms_add_str(str_parms, key, val_str); in str_parms_add_float()
288 int str_parms_has_key(struct str_parms *str_parms, const char *key) { in str_parms_has_key() argument
289 return hashmapGet(str_parms->map, (void *)key) != NULL; in str_parms_has_key()
292 int str_parms_get_str(struct str_parms *str_parms, const char *key, char *val, in str_parms_get_str() argument
297 value = hashmapGet(str_parms->map, (void *)key); in str_parms_get_str()
304 int str_parms_get_int(struct str_parms *str_parms, const char *key, int *val) in str_parms_get_int() argument
309 value = hashmapGet(str_parms->map, (void *)key); in str_parms_get_int()
320 int str_parms_get_float(struct str_parms *str_parms, const char *key, in str_parms_get_float() argument
327 value = hashmapGet(str_parms->map, (void *)key); in str_parms_get_float()
339 static bool combine_strings(void *key, void *value, void *context) in combine_strings() argument
348 (char *)key, in combine_strings()
373 static bool dump_entry(void *key, void *value, void *context UNUSED) in dump_entry() argument
375 ALOGI("key: '%s' value: '%s'\n", (char *)key, (char *)value); in dump_entry()