Lines Matching refs:key
86 const char *key; member
89 static bool remove_pair(void *key, void *value, void *context) in remove_pair() argument
102 if (!ctxt->key) { in remove_pair()
105 } else if (!strcmp(ctxt->key, static_cast<const char*>(key))) { in remove_pair()
113 hashmapRemove(ctxt->str_parms->map, key); in remove_pair()
114 free(key); in remove_pair()
119 void str_parms_del(struct str_parms *str_parms, const char *key) in str_parms_del() argument
123 .key = key, in str_parms_del()
161 char *key; in str_parms_create_str() local
168 key = strndup(kvpair, eq - kvpair); in str_parms_create_str()
174 key = strdup(kvpair); in str_parms_create_str()
179 old_val = hashmapPut(str_parms->map, key, value); in str_parms_create_str()
183 free(key); in str_parms_create_str()
185 RELEASE_OWNERSHIP(key); in str_parms_create_str()
206 int str_parms_add_str(struct str_parms *str_parms, const char *key, in str_parms_add_str() argument
218 tmp_key = strdup(key); in str_parms_add_str()
254 int str_parms_add_int(struct str_parms *str_parms, const char *key, int value) in str_parms_add_int() argument
263 ret = str_parms_add_str(str_parms, key, val_str); in str_parms_add_int()
267 int str_parms_add_float(struct str_parms *str_parms, const char *key, in str_parms_add_float() argument
277 ret = str_parms_add_str(str_parms, key, val_str); in str_parms_add_float()
281 int str_parms_has_key(struct str_parms *str_parms, const char *key) { in str_parms_has_key() argument
282 return hashmapGet(str_parms->map, (void *)key) != NULL; in str_parms_has_key()
285 int str_parms_get_str(struct str_parms *str_parms, const char *key, char *val, in str_parms_get_str() argument
289 char* value = static_cast<char*>(hashmapGet(str_parms->map, (void*)key)); in str_parms_get_str()
296 int str_parms_get_int(struct str_parms *str_parms, const char *key, int *val) in str_parms_get_int() argument
301 char* value = static_cast<char*>(hashmapGet(str_parms->map, (void*)key)); in str_parms_get_int()
312 int str_parms_get_float(struct str_parms *str_parms, const char *key, in str_parms_get_float() argument
319 char* value = static_cast<char*>(hashmapGet(str_parms->map, (void*)(key))); in str_parms_get_float()
331 static bool combine_strings(void *key, void *value, void *context) in combine_strings() argument
340 (char *)key, in combine_strings()
361 static bool dump_entry(void* key, void* value, void* /*context*/) { in dump_entry() argument
362 ALOGI("key: '%s' value: '%s'\n", (char *)key, (char *)value); in dump_entry()