autofill_fill_response_h rh = (autofill_fill_response_h)user_data;
autofill_fill_response_group_h res_group;
- LOGD("");
-
autofill_fill_response_group_create(&res_group);
rpc_port_autofill_response_group_foreach_response_items(response_groups, fill_response_item_cb, res_group);
int r = rpc_port_proxy_AutofillAppPort_invoke_Register(h, ah->context_id, auth_info_received_cb, fill_response_received_cb);
if (r != 0)
- LOGD("Failed to invoke Register");
+ LOGW("[ERROR] Failed to invoke Register");
if (ah->connection_callback)
ah->connection_callback(ah, AUTOFILL_CONNECTION_STATUS_CONNECTED, ah->connection_userdata);
ret = rpc_port_proxy_AutofillAppPort_create(AUTOFILL_DAEMON_APP_ID, &rpc_callback, as, &as->rpc_h);
if (ret != RPC_PORT_ERROR_NONE) {
- LOGW("Failed to create rpc port. err = %d", ret);
+ LOGW("[ERROR] Failed to create rpc port. err = %d", ret);
free(as);
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
ret = rpc_port_proxy_AutofillAppPort_connect(ah->rpc_h);
if (ret != RPC_PORT_ERROR_NONE) {
- LOGW("Failed to connect rpc port. err = %d", ret);
+ LOGW("[ERROR] Failed to connect rpc port. err = %d", ret);
return AUTOFILL_ERROR_OPERATION_FAILED;
}
else {
rpc_port_autofill_save_view_info_destroy(vih);
if (ret != RPC_PORT_ERROR_NONE) {
- LOGW("Failed to commit. rpc err = %d", ret);
+ LOGW("[ERROR] Failed to commit. rpc err = %d", ret);
return AUTOFILL_ERROR_OPERATION_FAILED;
}
else {
rpc_port_autofill_view_info_destroy(vih);
if (ret != RPC_PORT_ERROR_NONE) {
- LOGW("Failed to send auth request. rpc err = %d", ret);
+ LOGW("[ERROR] Failed to send auth request. rpc err = %d", ret);
return AUTOFILL_ERROR_OPERATION_FAILED;
}
else
rpc_port_autofill_view_info_destroy(vih);
if (ret != RPC_PORT_ERROR_NONE) {
- LOGW("Failed to send fill request. rpc err = %d", ret);
+ LOGW("[ERROR] Failed to send fill request. rpc err = %d", ret);
return AUTOFILL_ERROR_OPERATION_FAILED;
}
else
autofill_fill_response_group_h clone;
autofill_fill_response_group_clone(it, &clone);
if (!clone) {
- LOGW("Out of memory");
+ LOGW("[ERROR] Out of memory");
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
autofill_fill_response_group_h handle = NULL;
if (!h || !clone) {
- LOGW("Invalid parameter");
+ LOGW("[ERROR] Invalid parameter");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
autofill_fill_response_group_create(&handle);
if (!handle) {
- LOGW("Failed to create autofill_item handle");
+ LOGW("[ERROR] Failed to create autofill_item handle");
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
EINA_LIST_FOREACH(h->autofill_fill_response_item_list, l, it_h)
{
if (!it_h) {
- LOGW("Can't get response item");
+ LOGW("[ERROR] Failed to get response item");
autofill_fill_response_group_destroy(handle);
return AUTOFILL_ERROR_OPERATION_FAILED;
}
autofill_fill_response_item_clone(it_h, &new_it_h);
if (!new_it_h) {
- LOGW("Failed to duplicate reponse item");
+ LOGW("[ERROR] Failed to duplicate reponse item");
autofill_fill_response_group_destroy(handle);
return AUTOFILL_ERROR_OPERATION_FAILED;
}
int ret;
if (!it || !clone) {
- LOGW("Invalid parameter");
+ LOGW("[ERROR] Invalid parameter");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
return AUTOFILL_ERROR_OUT_OF_MEMORY;
if (!handle) {
- LOGW("Failed to create autofill_item handle");
+ LOGW("[ERROR] Failed to create autofill_item handle");
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
if (it->id) {
handle->id = strdup(it->id);
if (!handle->id) {
- LOGW("Failed to duplicate it->id");
+ LOGW("[ERROR] Failed to duplicate it->id");
autofill_fill_response_item_destroy(handle);
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
if (it->presentation_text) {
handle->presentation_text = strdup(it->presentation_text);
if (!handle->presentation_text) {
- LOGW("Failed to duplicate it->presentation_text");
+ LOGW("[ERROR] Failed to duplicate it->presentation_text");
autofill_fill_response_item_destroy(handle);
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
if (it->value) {
handle->value = strdup(it->value);
if (!handle->value) {
- LOGW("Failed to duplicate it->value");
+ LOGW("[ERROR] Failed to duplicate it->value");
autofill_fill_response_item_destroy(handle);
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
autofill_item_h handle;
if (!h || !clone) {
- LOGW("Invalid parameter");
+ LOGW("[ERROR] Invalid parameter");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
autofill_item_create(&handle);
if (!handle) {
- LOGW("Failed to create autofill_item handle");
+ LOGW("[ERROR] Failed to create autofill_item handle");
return AUTOFILL_ERROR_OPERATION_FAILED;
}
if (h->id) {
handle->id = strdup(h->id);
if (!handle->id) {
- LOGW("Failed to duplicate h->id");
+ LOGW("[ERROR] Failed to duplicate h->id");
autofill_item_destroy(handle);
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
if (h->label) {
handle->label = strdup(h->label);
if (!handle->label) {
- LOGW("Failed to duplicate h->label");
+ LOGW("[ERROR] Failed to duplicate h->label");
autofill_item_destroy(handle);
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
if (h->value) {
handle->value = strdup(h->value);
if (!handle->value) {
- LOGW("Failed to duplicate h->value");
+ LOGW("[ERROR] Failed to duplicate h->value");
autofill_item_destroy(handle);
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
EXPORT_API int autofill_item_get_sensitive_data(autofill_item_h it, bool *sensitive)
{
if (!it || !sensitive) {
- LOGW("AUTOFILL_ERROR_INVALID_PARAMETER");
+ LOGW("[ERROR] AUTOFILL_ERROR_INVALID_PARAMETER");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
EXPORT_API int autofill_item_set_value(autofill_item_h it, const char *value)
{
if (!it || !value) {
- LOGW("AUTOFILL_ERROR_INVALID_PARAMETER");
+ LOGW("[ERROR] AUTOFILL_ERROR_INVALID_PARAMETER");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
EXPORT_API int autofill_item_get_value(autofill_item_h it, char **value)
{
if (!it || !value) {
- LOGW("AUTOFILL_ERROR_INVALID_PARAMETER");
+ LOGW("[ERROR] AUTOFILL_ERROR_INVALID_PARAMETER");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
int ret;
if (!it || !clone) {
- LOGW("Invalid parameter");
+ LOGW("[ERROR] Invalid parameter");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
return AUTOFILL_ERROR_OUT_OF_MEMORY;
if (!handle) {
- LOGW("Failed to create autofill_save_item handle");
+ LOGW("[ERROR] Failed to create autofill_save_item handle");
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
if (it->id) {
handle->id = strdup(it->id);
if (!handle->id) {
- LOGW("Failed to duplicate it->id");
+ LOGW("[ERROR] Failed to duplicate it->id");
autofill_save_item_destroy(handle);
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
if (it->label) {
handle->label = strdup(it->label);
if (!handle->label) {
- LOGW("Failed to duplicate it->label");
+ LOGW("[ERROR] Failed to duplicate it->label");
autofill_save_item_destroy(handle);
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
if (it->value) {
handle->value = strdup(it->value);
if (!handle->value) {
- LOGW("Failed to duplicate it->value");
+ LOGW("[ERROR] Failed to duplicate it->value");
autofill_save_item_destroy(handle);
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
EXPORT_API int autofill_save_item_get_sensitive_data(autofill_save_item_h it, bool *sensitive)
{
if (!it || !sensitive) {
- LOGW("AUTOFILL_ERROR_INVALID_PARAMETER");
+ LOGW("[ERROR] AUTOFILL_ERROR_INVALID_PARAMETER");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
EXPORT_API int autofill_save_item_set_value(autofill_save_item_h it, const char *value)
{
if (!it || !value) {
- LOGW("AUTOFILL_ERROR_INVALID_PARAMETER");
+ LOGW("[ERROR] AUTOFILL_ERROR_INVALID_PARAMETER");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
EXPORT_API int autofill_save_item_get_value(autofill_save_item_h it, char **value)
{
if (!it || !value) {
- LOGW("AUTOFILL_ERROR_INVALID_PARAMETER");
+ LOGW("[ERROR] AUTOFILL_ERROR_INVALID_PARAMETER");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
autofill_save_item_clone(it, &clone);
if (!clone) {
- LOGW("Out of memory");
+ LOGW("[ERROR] Out of memory");
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
autofill_item_clone(it, &clone);
if (!clone) {
- LOGW("Out of memory");
+ LOGW("[ERROR] Out of memory");
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
LOGD("autofill manager initialize");
if (!amh) {
- LOGW("Invalid paramater");
+ LOGW("[ERROR] Invalid paramater");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
if (!check_privilege(AUTOFILL_MANAGER_PRIVILEGE)) {
- LOGW("Permission denied");
+ LOGW("[ERROR] Permission denied");
return AUTOFILL_ERROR_PERMISSION_DENIED;
}
else {
ret = rpc_port_proxy_AutofillManagerPort_create(AUTOFILL_DAEMON_APP_ID, &rpc_callback, ams, &ams->rpc_h);
if (ret != RPC_PORT_ERROR_NONE) {
- LOGW("Failed to create rpc port. err = %d", ret);
+ LOGW("[ERROR] Failed to create rpc port. err = %d", ret);
free(ams);
return AUTOFILL_ERROR_OUT_OF_MEMORY;
}
LOGD("autofill manager deinitialize");
if (!amh) {
- LOGW("Invalid paramater");
+ LOGW("[ERROR] Invalid paramater");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
amh->connection_callback = NULL;
if (!check_privilege(AUTOFILL_MANAGER_PRIVILEGE)) {
- LOGW("Permission denied");
+ LOGW("[ERROR] Permission denied");
return AUTOFILL_ERROR_PERMISSION_DENIED;
}
else {
int ret;
if (!amh || !callback) {
- LOGW("parameter is NULL\n");
+ LOGW("[ERROR] parameter is NULL\n");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
if (!check_privilege(AUTOFILL_MANAGER_PRIVILEGE)) {
- LOGW("Permission denied");
+ LOGW("[ERROR] Permission denied");
return AUTOFILL_ERROR_PERMISSION_DENIED;
}
if (!amh->rpc_h) {
- LOGW("rpc handle is NULL");
+ LOGW("[ERROR] rpc handle is NULL");
return AUTOFILL_ERROR_OPERATION_FAILED;
}
ret = rpc_port_proxy_AutofillManagerPort_connect(amh->rpc_h);
switch (ret) {
case RPC_PORT_ERROR_PERMISSION_DENIED:
- LOGW("permission error");
+ LOGW("[ERROR] permission error");
break;
}
if (ret != RPC_PORT_ERROR_NONE) {
- LOGW("Failed to connect rpc port. err = %d", ret);
+ LOGW("[ERROR] Failed to connect rpc port. err = %d", ret);
return AUTOFILL_ERROR_OPERATION_FAILED;
}
LOGD("autofill manager set autofill service");
if (!amh || !app_id) {
- LOGW("parameter is NULL");
+ LOGW("[ERROR] parameter is NULL");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
if (!check_privilege(AUTOFILL_MANAGER_PRIVILEGE)) {
- LOGW("Permission denied");
+ LOGW("[ERROR] Permission denied");
return AUTOFILL_ERROR_PERMISSION_DENIED;
}
if (!amh->rpc_h) {
- LOGW("rpc handle is NULL");
+ LOGW("[ERROR] rpc handle is NULL");
return AUTOFILL_ERROR_OPERATION_FAILED;
}
bool ret = rpc_port_proxy_AutofillManagerPort_invoke_set_autofill_service(amh->rpc_h, app_id);
if (ret == false) {
- LOGW("Failed to send rpc port. err = %d", ret);
+ LOGW("[ERROR] Failed to send rpc port. err = %d", ret);
return AUTOFILL_ERROR_OPERATION_FAILED;
}
return AUTOFILL_ERROR_NONE;
LOGD("autofill manager get autofill service");
if (!amh || !service_app_id) {
- LOGW("parameter is NULL");
+ LOGW("[ERROR] parameter is NULL");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
if (!check_privilege(AUTOFILL_MANAGER_PRIVILEGE)) {
- LOGW("Permission denied");
+ LOGW("[ERROR] Permission denied");
return AUTOFILL_ERROR_PERMISSION_DENIED;
}
if (!amh->rpc_h) {
- LOGW("Not initialized");
+ LOGW("[ERROR] Not initialized");
return AUTOFILL_ERROR_OPERATION_FAILED;
}
int ret;
if (!amh || !callback) {
- LOGW("parameter is NULL");
+ LOGW("[ERROR] parameter is NULL");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
if (!check_privilege(AUTOFILL_MANAGER_PRIVILEGE)) {
- LOGW("Permission denied");
+ LOGW("[ERROR] Permission denied");
return AUTOFILL_ERROR_PERMISSION_DENIED;
}
if (!amh->rpc_h) {
- LOGW("rpc handle is NULL\n");
+ LOGW("[ERROR] rpc handle is NULL\n");
return AUTOFILL_ERROR_OPERATION_FAILED;
}
rpc_port_list_string_create(&app_id_list);
ret = rpc_port_proxy_AutofillManagerPort_invoke_get_autofill_service_list(amh->rpc_h, &app_id_list);
if (ret == false) {
- LOGW("Failed to send rpc port. err = %d", ret);
+ LOGW("[ERROR] Failed to send rpc port. err = %d", ret);
return AUTOFILL_ERROR_OPERATION_FAILED;
}
rpc_port_list_string_foreach_list_strings(app_id_list, callback, user_data);