if (sender_client)
rpc_port_AutofillAppPort_autofill_error_info_received_cb_invoke(sender_client->error_info_cb, error_info_h);
- LOGD("error code : %x", error_code);
+ LOGD("error code : %#x, message : '%s'", error_code, get_error_message(error_code));
if (app_id)
free(app_id);
static void __on_connected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data)
{
- LOGI("[__RPC_PORT__] connected");
+ LOGI("Autofill service connected");
if (fill_response_received_cb_h) {
free(fill_response_received_cb_h);
rpc_port_proxy_AutofillSvcPort_invoke_request_terminate(svc_rpc_h);
int ret = rpc_port_proxy_AutofillSvcPort_destroy(svc_rpc_h);
- LOGD("ret : %d", ret);
+ LOGD("ret : %#x", ret);
}
svc_rpc_h = NULL;
int ret = app_info_get_app_id(app_info, &app_id);
if (ret != APP_MANAGER_ERROR_NONE) {
- LOGW("app_info_get_app_id failed (%d)", ret);
+ LOGW("app_info_get_app_id failed (%#x)", ret);
return true;
}
// Get the Autofill service list
ret = app_info_metadata_filter_create(&handle);
if (ret != APP_MANAGER_ERROR_NONE) {
- LOGW("app_info_metadata_filter_create failed (%d)", ret);
+ LOGW("app_info_metadata_filter_create failed (%#x)", ret);
app_info_metadata_filter_destroy(handle);
return false;
}
ret = app_info_metadata_filter_add(handle, "autofill-service", "true");
if (ret != APP_MANAGER_ERROR_NONE) {
- LOGW("app_info_metadata_filter_add failed (%d)", ret);
+ LOGW("app_info_metadata_filter_add failed (%#x)", ret);
app_info_metadata_filter_destroy(handle);
return false;
}
ret = app_info_metadata_filter_foreach(handle, add_autofill_service_cb, app_id_list_h);
if (ret != APP_MANAGER_ERROR_NONE) {
- LOGW("app_info_metadata_filter_foreach failed (%d)", ret);
+ LOGW("app_info_metadata_filter_foreach failed (%#x)", ret);
}
*service_info_list = app_id_list_h;
char *active_autofill_service_id = NULL;
bool sys_config = false;
autofill_config_get_autofill_service_app_id(&active_autofill_service_id, &sys_config);
- LOGD("autofill service : '%s'", active_autofill_service_id);
+ LOGD("active autofill service app id: '%s'", active_autofill_service_id);
if (!active_autofill_service_id) {
active_autofill_service_id = strdup(AUTOFILL_SERVICE_APP_ID);
}
if (ret != RPC_PORT_ERROR_NONE) {
- LOGW("Failed to create rpc port. err = %d", ret);
+ LOGW("Failed to create rpc port. err = %#x", ret);
return false;
}
}
ret = rpc_port_proxy_AutofillSvcPort_connect(svc_rpc_h);
if (ret != RPC_PORT_ERROR_NONE) {
- LOGW("Failed to connect. err = %d", ret);
+ LOGW("Failed to connect. err = %#x", ret);
return false;
}