char *label = NULL;
autofill_hint_e autofill_hint;
bool sensitive_data;
+ char *value = NULL;
if (!ah || !vi) {
LOGW("[ERROR] Invalid parameter");
autofill_item_get_label(it, &label);
autofill_item_get_autofill_hint(it, &autofill_hint);
autofill_item_get_sensitive_data(it, &sensitive_data);
+ autofill_item_get_value(it, &value);
- LOGD("it : %p, id : %s, label : %s, hint : %d, sensitive : %d", it, id, label, autofill_hint, sensitive_data);
+ LOGD("it : %p, id : %s, label : %s, hint : %d, sensitive : %d, value : %s", it, id, label, autofill_hint, sensitive_data, value);
rpc_port_autofill_item_h aih;
rpc_port_autofill_item_create(&aih);
rpc_port_autofill_item_set_label(aih, label);
rpc_port_autofill_item_set_autofill_hint(aih, (int)autofill_hint);
rpc_port_autofill_item_set_is_sensitive_data(aih, sensitive_data);
+ rpc_port_autofill_item_set_value(aih, value);
rpc_port_autofill_view_info_add_items(vih, aih);
if (id) {
label = NULL;
}
+ if (value) {
+ free(value);
+ value = NULL;
+ }
+
rpc_port_autofill_item_destroy(aih);
}
char *label = NULL;
autofill_hint_e autofill_hint;
bool sensitive_data;
+ char *value = NULL;
if (!ah || !vi) {
LOGW("[ERROR] Invalid parameter");
autofill_item_get_label(it, &label);
autofill_item_get_autofill_hint(it, &autofill_hint);
autofill_item_get_sensitive_data(it, &sensitive_data);
+ autofill_item_get_value(it, &value);
- LOGD("it : %p, id : %s, label : %s, hint : %d, sensitive : %d", it, id, label, autofill_hint, sensitive_data);
+ LOGD("it : %p, id : %s, label : %s, hint : %d, sensitive : %d, value : %s", it, id, label, autofill_hint, sensitive_data, value);
rpc_port_autofill_item_h aih;
rpc_port_autofill_item_create(&aih);
rpc_port_autofill_item_set_label(aih, label);
rpc_port_autofill_item_set_autofill_hint(aih, (int)autofill_hint);
rpc_port_autofill_item_set_is_sensitive_data(aih, sensitive_data);
+ rpc_port_autofill_item_set_value(aih, value);
rpc_port_autofill_view_info_add_items(vih, aih);
if (id) {
label = NULL;
}
+ if (value) {
+ free(value);
+ value = NULL;
+ }
+
rpc_port_autofill_item_destroy(aih);
}