Fix spelling errata 33/187733/1 accepted/tizen/unified/20180829.142709 submit/tizen/20180828.101453
authorsooyeon.kim <sooyeon.kim@samsung.com>
Tue, 28 Aug 2018 06:03:03 +0000 (15:03 +0900)
committersooyeon.kim <sooyeon.kim@samsung.com>
Tue, 28 Aug 2018 06:03:03 +0000 (15:03 +0900)
Change-Id: Id319e2d0e7f37231dbe06d4af604a2210da5d9a9
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
20 files changed:
client/vc.c
client/vc_dbus.c
client/vc_mgr.c
client/vc_mgr_client.c
client/vc_mgr_dbus.c
client/vc_setting_dbus.c
client/vc_widget_dbus.c
common/vc_cmd_db.c
common/vc_command.c
common/vc_json_parser.c
common/vc_regex_rule.h
doc/uix_vc_mgr_doc.h
engine-parser/src/vc-engine-parser.c
include/voice_control_command_expand.h
include/voice_control_manager.h
include/voice_control_setting.h
server/vcd_client_data.c
server/vcd_engine_agent.c
server/vcd_recorder.c
server/vcd_server.c

index dd813d5..594c2ef 100644 (file)
@@ -1083,7 +1083,7 @@ static int __vc_get_invocation_name(char** invocation_name)
 
                ret = vc_get_current_language(&lang);
                if (0 != ret || NULL == lang) {
-                       SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to get current laguage, ret(%d)", ret); //LCOV_EXCL_LINE
+                       SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to get current language, ret(%d)", ret); //LCOV_EXCL_LINE
                        free(appid);
                        appid = NULL;
                        if (NULL != lang) {
@@ -2499,7 +2499,7 @@ int vc_auth_disable(void)
                return VC_ERROR_INVALID_STATE;
        }
 
-       /* check autority */
+       /* check authority */
        vc_auth_state_e auth_state = VC_AUTH_STATE_NONE;
        if (0 != vc_client_get_auth_state(g_vc, &auth_state)) {
                SLOG(LOG_ERROR, TAG_VCC, "[ERROR] handle is not available");
@@ -2523,7 +2523,7 @@ int vc_auth_disable(void)
        }
 
        if (0 != vc_dbus_request_auth_disable(g_vc->handle, mgr_pid)) {
-               SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to authority disble");
+               SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to authority disable");
                return VC_ERROR_OPERATION_FAILED;
        }
 
@@ -2554,7 +2554,7 @@ int vc_auth_get_state(vc_auth_state_e* state)
                return VC_ERROR_INVALID_STATE;
        }
 
-       /* get autority */
+       /* get authority */
        vc_auth_state_e temp = VC_AUTH_STATE_NONE;
        if (0 != vc_client_get_auth_state(g_vc, &temp)) {
                SLOG(LOG_ERROR, TAG_VCC, "[ERROR] handle is not available");
index 1be3aea..fb2af05 100644 (file)
@@ -213,7 +213,7 @@ int vc_dbus_open_connection()
        DBusError err;
        int ret;
 
-       /* initialise the error value */
+       /* initialize the error value */
        dbus_error_init(&err);
 
        /* connect to the DBUS system bus, and check for errors */
index bdc2028..d47002d 100644 (file)
@@ -2034,7 +2034,7 @@ int vc_mgr_start(bool exclusive_command_option)
        vc_internal_state_e internal_state = -1;
        vc_mgr_client_get_internal_state(g_vc_m, &internal_state);
        if (internal_state != VC_INTERNAL_STATE_NONE) {
-               SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Invaid State : Internal state is NOT none : %d", internal_state);
+               SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Invalid State : Internal state is NOT none : %d", internal_state);
                return VC_ERROR_IN_PROGRESS_TO_RECORDING;
        }
 
@@ -2362,7 +2362,7 @@ int vc_mgr_set_selected_results(vc_cmd_list_h vc_cmd_list)
                return VC_ERROR_PERMISSION_DENIED;
        }
 
-       /* Do not check state for 'restart continusly' mode */
+       /* Do not check state for 'restart continuously' mode */
 
        vc_service_state_e service_state = -1;
        vc_mgr_client_get_service_state(g_vc_m, &service_state);
@@ -2371,7 +2371,7 @@ int vc_mgr_set_selected_results(vc_cmd_list_h vc_cmd_list)
                vc_mgr_get_recognition_mode(&recognition_mode);
 
                if (VC_RECOGNITION_MODE_RESTART_CONTINUOUSLY != recognition_mode) {
-                       SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Invalid State: service state is not 'PROCESSING' and mode is not 'Restart continously'");
+                       SLOG(LOG_ERROR, TAG_VCM, "[ERROR] Invalid State: service state is not 'PROCESSING' and mode is not 'Restart continuously'");
                        SLOG(LOG_DEBUG, TAG_VCM, "@@@");
                        return VC_ERROR_INVALID_STATE;
                }
@@ -3047,7 +3047,7 @@ int vc_mgr_set_service_state_changed_cb(vc_service_state_changed_cb callback, vo
 
        vc_mgr_client_set_service_state_changed_cb(g_vc_m, callback, user_data);
 
-       SLOG(LOG_DEBUG, TAG_VCM, "[SUCCESS] Set sevice state changed callback");
+       SLOG(LOG_DEBUG, TAG_VCM, "[SUCCESS] Set service state changed callback");
        return 0;
 }
 
@@ -3267,7 +3267,7 @@ int __vc_mgr_cb_dialog(int pid, const char* disp_text, const char* utt_text, boo
                vc_mgr_client_use_callback(g_vc_m);
                callback(pid, disp_text, utt_text, continuous, user_data);
                vc_mgr_client_not_use_callback(g_vc_m);
-               SLOG(LOG_DEBUG, TAG_VCM, "Dialog callback is called, disp_text(%s), utt)text(%s), continous(%d)", disp_text, utt_text, continuous);
+               SLOG(LOG_DEBUG, TAG_VCM, "Dialog callback is called, disp_text(%s), utt)text(%s), continuous(%d)", disp_text, utt_text, continuous);
        } else {
                SLOG(LOG_WARN, TAG_VCM, "[WARNING] Error callback is null");
        }
index f6b9603..861c64d 100644 (file)
@@ -216,7 +216,7 @@ int vc_mgr_client_create(vc_h* vc)
 
        client->cb_ref_count = 0;
 
-       /* Authoriry */
+       /* Authority */
        client->authorized_client_list = NULL;
        client->valid_authorized_pid = -1;
        client->start_by_client = false;
index bc69307..3ee9075 100644 (file)
@@ -323,7 +323,7 @@ static Eina_Bool vc_mgr_listener_event_callback(void* data, Ecore_Fd_Handler *fd
                                SLOG(LOG_DEBUG, TAG_VCM, "@@ vc mgr get request set private data : pid(%d) ", pid);
                                ret = __vc_mgr_cb_private_data_set(key, private_data);
                        } else {
-                               SLOG(LOG_ERROR, TAG_VCM, "@@ vc mgr get requset set private data : invalid pid ");
+                               SLOG(LOG_ERROR, TAG_VCM, "@@ vc mgr get request set private data : invalid pid ");
                        }
 
                        DBusMessage *reply = NULL;
@@ -616,7 +616,7 @@ static Eina_Bool vc_mgr_listener_event_callback(void* data, Ecore_Fd_Handler *fd
                        SLOG(LOG_DEBUG, TAG_VCM, "@@@ Owner Changed");
                        /* remove a rule for daemon error */
                        DBusError err;
-                       /* initialise the error value */
+                       /* initialize the error value */
                        dbus_error_init(&err);
                        char rule_err[256] = {0, };
                        snprintf(rule_err, 256, "sender='org.freedesktop.DBus',path='/org/freedesktop/DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',type='signal',arg0='%s'", VC_SERVER_SERVICE_INTERFACE);
@@ -668,7 +668,7 @@ int vc_mgr_dbus_open_connection()
        DBusError err;
        int ret;
 
-       /* initialise the error value */
+       /* initialize the error value */
        dbus_error_init(&err);
 
        /* connect to the DBUS system bus, and check for errors */
index 1f88a64..d82c436 100755 (executable)
@@ -121,7 +121,7 @@ int vc_setting_dbus_open_connection()
        DBusError err;
        int ret;
 
-       /* initialise the error value */
+       /* initialize the error value */
        dbus_error_init(&err);
 
        /* connect to the DBUS system bus, and check for errors */
index 8dbca3c..2289060 100644 (file)
@@ -294,7 +294,7 @@ int vc_widget_dbus_open_connection()
        DBusError err;
        int ret;
 
-       /* initialise the error value */
+       /* initialize the error value */
        dbus_error_init(&err);
 
        /* connect to the DBUS system bus, and check for errors */
index 928dfac..164dff8 100644 (file)
@@ -975,7 +975,7 @@ static int __vc_db_get_appid(sqlite3* db_handle, const char* result, GSList** ap
                vc_deactivated_app_s* temp_app = NULL;
                temp_app = (vc_deactivated_app_s*)calloc(1, sizeof(vc_deactivated_app_s));
                if (NULL == temp_app) {
-                       SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] memory allcation fail");
+                       SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] memory allocation fail");
 
                        if (NULL != temp_app_list) {
                                g_slist_free_full(temp_app_list, __vc_db_demandable_client_free);
@@ -1042,7 +1042,7 @@ int __vc_db_get_result_pid_list(sqlite3* db_handle, const char* result, GSList**
                vc_cmd_s* temp_cmd = NULL;
                temp_cmd = (vc_cmd_s*)calloc(1, sizeof(vc_cmd_s));
                if (NULL == temp_cmd) {
-                       SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] memory allcation fail");
+                       SLOG(LOG_ERROR, vc_db_tag(), "[ERROR] memory allocation fail");
 
                        if (NULL != temp_pid_list) {
                                g_slist_free_full(temp_pid_list, free);
@@ -1814,7 +1814,7 @@ static int __vc_db_insert_commands_list(sqlite3* db_handle, int pid, vc_cmd_type
                temp_cmd = iter->data;
 
                if (NULL == temp_cmd) {
-                       SLOG(LOG_ERROR, vc_db_tag(), "comamnd is NULL");
+                       SLOG(LOG_ERROR, vc_db_tag(), "command is NULL");
                        break;
                }
 
index 282f9a4..08f5c9f 100644 (file)
@@ -1884,7 +1884,7 @@ static int __vc_cmd_tabsolute_check(const char *str, struct tm *td, int *exist)
                }
 
                if (0 > hour || 24 <= hour || (0 == flag && 12 < hour)) {
-                       SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+                       SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
                        return VC_ERROR_NONE;
                }
 
@@ -1896,7 +1896,7 @@ static int __vc_cmd_tabsolute_check(const char *str, struct tm *td, int *exist)
                if (0 > sidx || pmatch[0].rm_so < sidx) sidx = pmatch[0].rm_so;
                if (0 > eidx || pmatch[0].rm_eo > eidx) eidx = pmatch[0].rm_eo;
        } else if (0 < flag) {
-               SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+               SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
                return VC_ERROR_NONE;
        }
 
@@ -1915,7 +1915,7 @@ static int __vc_cmd_tabsolute_check(const char *str, struct tm *td, int *exist)
                        min = atoi(tempstr);
 
                        if (0 > min || 60 <= min) {
-                               SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+                               SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
                                return VC_ERROR_NONE;
                        }
 
@@ -1952,7 +1952,7 @@ static int __vc_cmd_tabsolute_check(const char *str, struct tm *td, int *exist)
                }
 
                if (!strcmp("en_US", lang)) {
-                       SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+                       SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
                        free(lang);
                        lang = NULL;
                        return VC_ERROR_NONE;
@@ -2076,7 +2076,7 @@ static int __vc_cmd_dabsolute_check(const char *str, struct tm *td, int *exist)
                sidx = pmatch[0].rm_so;
                eidx = pmatch[0].rm_eo;
        } else {
-               SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+               SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
                return VC_ERROR_NONE;
        }
 
@@ -2106,7 +2106,7 @@ static int __vc_cmd_dabsolute_check(const char *str, struct tm *td, int *exist)
                }
 
                if (!strcmp("en_US", lang)) {
-                       SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+                       SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
                        free(lang);
                        lang = NULL;
                        return VC_ERROR_NONE;
@@ -2155,7 +2155,7 @@ static int __vc_cmd_dabsolute_check(const char *str, struct tm *td, int *exist)
                td->tm_min = 0;
                td->tm_sec = 0;
        } else if (2 == g_time_flag) {
-               SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+               SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
                return VC_ERROR_NONE;
        }
 
@@ -2163,7 +2163,7 @@ static int __vc_cmd_dabsolute_check(const char *str, struct tm *td, int *exist)
        if ((0 == (year + 1900) % 4 && 0 != (year + 1900) % 100) || 0 == (year + 1900) % 400) max_day[1] = 29;
 
        if (max_day[mon] < day || 1 > day) {
-               SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incomming sentence is weird");
+               SLOG(LOG_DEBUG, TAG_VCCMD, "[REGEX] Incoming sentence is weird");
                return VC_ERROR_NONE;
        }
 
@@ -2201,7 +2201,7 @@ static int __vc_cmd_time_check(const char *str, struct tm *td)
                SLOG(LOG_DEBUG, TAG_VCCMD, "@@@ Time value is exist");
                return ret;
        } else if (VC_ERROR_NONE != ret) {
-               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured > (%d)", ret);
+               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred > (%d)", ret);
                return ret;
        }
 
@@ -2212,7 +2212,7 @@ static int __vc_cmd_time_check(const char *str, struct tm *td)
                SLOG(LOG_DEBUG, TAG_VCCMD, "@@@ Time value is exist");
                return ret;
        } else if (VC_ERROR_NONE != ret) {
-               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured > (%d)", ret);
+               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred > (%d)", ret);
                return ret;
        }
 
@@ -2223,7 +2223,7 @@ static int __vc_cmd_time_check(const char *str, struct tm *td)
                SLOG(LOG_DEBUG, TAG_VCCMD, "@@@ Time value is exist");
                return ret;
        } else if (VC_ERROR_NONE != ret) {
-               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured > (%d)", ret);
+               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred > (%d)", ret);
                return ret;
        }
 
@@ -2245,7 +2245,7 @@ static int __vc_cmd_date_check(const char *str, struct tm *td)
                SLOG(LOG_DEBUG, TAG_VCCMD, "@@@ Date value is exist");
                return ret;
        } else if (VC_ERROR_NONE != ret) {
-               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured > (%d)", ret);
+               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred > (%d)", ret);
                return ret;
        }
 
@@ -2256,7 +2256,7 @@ static int __vc_cmd_date_check(const char *str, struct tm *td)
                SLOG(LOG_DEBUG, TAG_VCCMD, "@@@ Date value is exist");
                return ret;
        } else if (VC_ERROR_NONE != ret) {
-               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured > (%d)", ret);
+               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred > (%d)", ret);
                return ret;
        }
 
@@ -2298,13 +2298,13 @@ int vc_cmd_get_datetime(const char *text, time_t *result, char **remain)
 
        ret = __vc_cmd_time_check(text, &td);
        if (VC_ERROR_NONE != ret) {
-               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured in the check > (%d)", ret);
+               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred in the check > (%d)", ret);
                return ret;
        }
 
        ret = __vc_cmd_date_check(text, &td);
        if (VC_ERROR_NONE != ret) {
-               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occured in the check > (%d)", ret);
+               SLOG(LOG_ERROR, TAG_VCCMD, "[ERROR] Error is occurred in the check > (%d)", ret);
                return ret;
        }
 
index 06386f4..65957db 100644 (file)
@@ -40,7 +40,7 @@ static int __vc_json_get_invocation_name(const char* appid, char** invocation_na
 
                ret = vc_config_mgr_get_default_language(&lang);
                if (0 != ret || NULL == lang) {
-                       SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Fail to get current laguage, ret(%d) lang(%s)", ret, lang);
+                       SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Fail to get current language, ret(%d) lang(%s)", ret, lang);
                        return ret;
                }
                ret = app_info_get_localed_label(appid, lang, &temp_lable);
@@ -69,12 +69,12 @@ static int __vc_json_get_invocation_name(const char* appid, char** invocation_na
 static int __vc_json_set_commands(JsonObject *root_obj, int type, char* invocation_name)
 {
        if (NULL == root_obj) {
-               SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Invalid paramget");
+               SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Invalid parameter");
                return VC_ERROR_INVALID_PARAMETER;
        }
 
        if (VC_COMMAND_TYPE_NONE > type || VC_COMMAND_TYPE_EXCLUSIVE < type) {
-               SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Invalid paramget, type(%d)", type);
+               SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Invalid parameter, type(%d)", type);
                return VC_ERROR_INVALID_PARAMETER;
        }
 
@@ -277,7 +277,7 @@ static int __vc_json_set_commands(JsonObject *root_obj, int type, char* invocati
                        }
 
                        if (0 != strncmp(cmd->appid, prev_appid, strlen(cmd->appid))) {
-                               //delete bacground commands with appid and type
+                               //delete background commands with appid and type
                                ret = vc_db_delete_commands(cmd->pid, type, cmd->appid);
                                if (VC_ERROR_NONE != ret) {
                                        SLOG(LOG_ERROR, vc_json_tag(), "[ERROR] Fail to insert command into db, ret(%d) pid(%d) type(%d), appid(%s)", ret, cmd->pid, type, cmd->appid);
index 973cbe4..95ab6c7 100755 (executable)
@@ -38,13 +38,13 @@ const char *DATE_ABS2_REGEX[2] = {"(1월)|(2월)|(3월)|(4월)|(5월)|(6월)|(7
                                "(January)|(February)|(March)|(April)|(May)|(June)|(July)|(August)|(September)|(October)|(November)|(December)"};
 const char *DATE_ABS3_REGEX[2] = {"([1-9]|[1-2][0-9]|3[0-1])일",
                                "([1-9]|[1-2][0-9]|3[0-1])(st|nd|rd|th)"};
-//today / tommorow / the day after tommorow
+//today / tomorrow / the day after tomorrow
 const char *DATE_PHR1_REGEX[2] = {"(오늘)|(내일)|(모레)|(글피)",
-                               "(today)|(tommorow)|(the day after tommorow)"};
+                               "(today)|(tomorrow)|(the day after tomorrow)"};
 const char *DATE_PHR2_REGEX[2] = {"(이틀)|(사흘)|(나흘)|(닷새)|(엿새)|(이레)|(여드레)|(아흐레)|(열흘)",
                                "(이틀)|(사흘)|(나흘)|(닷새)|(엿새)|(이레)|(여드레)|(아흐레)|(열흘)"};
 
-//Monday / Tuesday / Wednesday / Thursday / Satruday / Sunday
+//Monday / Tuesday / Wednesday / Thursday / Saturday / Sunday
 const char *DATE_PHR3_REGEX[2] = {"(월|화|수|목|금|토|일)(요일)?",
                                "(Mon|Tues|Wednes|Thurs|Fri|Satur|Sun)(day)?"};
 
@@ -54,4 +54,4 @@ const char *DATE_PHR3_REGEX[2] = {"(월|화|수|목|금|토|일)(요일)?",
 #endif
 
 
-#endif
\ No newline at end of file
+#endif
index 0a659fd..0fa61eb 100644 (file)
@@ -30,8 +30,8 @@
  * A main function of Voice Control Manager API records voice and gives responses for recognized voice commands.
  * A Voice Control Manager application can start recording user's utterance and get responses from Voice Control engine service.
  * The responses are dependent on the Voice Control engine service. For example, the engine service may send ASR(Automatic Speech Recognition) results or NLU(Natural Language Understanding) results.
- * Also, it may send plural results. Therefore, the application can get various recognition results from the engine service and handle them by showing responses to users or controling Voice Control applications.
- * Like this, the Voice Control Manager application takes a role of controlling Voice Control applcations.
+ * Also, it may send plural results. Therefore, the application can get various recognition results from the engine service and handle them by showing responses to users or controlling Voice Control applications.
+ * Like this, the Voice Control Manager application takes a role of controlling Voice Control applications.
  * For this reason, developers who have an authority granted by Tizen platform can make the Voice Control Manager application.<br><br>
  * To use of Voice Control Manager, use the following steps: <br>
  * 1. Initialize <br>
index 0e4a92a..8af3cd4 100644 (file)
@@ -304,7 +304,7 @@ static int __remove_engine_info_xml(const char *pkgid, gchar *ut, uid_t uid)
        if (0 == access(path, F_OK)) {
                LOGD("Remove engine info xml(%s)", path);
                if (0 != remove(path)) {
-                       LOGE("[ERROR] Fail to emove engine info xml(%s)", path);
+                       LOGE("[ERROR] Fail to remove engine info xml(%s)", path);
                }
        }
 
index c188e77..d8d02c3 100755 (executable)
@@ -184,7 +184,7 @@ int vc_cmd_set_unfixed_command(vc_cmd_h vc_command, const char* command);
 int vc_cmd_get_nlu_json(vc_cmd_h vc_cmd, char** json);
 
 /**
-* @brief Gets the datetime value from the setence.
+* @brief Gets the datetime value from the sentence.
 * @since_tizen 3.0
 *
 * @param[in] text The sentence to analyze
@@ -216,7 +216,7 @@ int vc_cmd_get_datetime(const char *text, time_t *result, char **remain);
 *
 * @remark This function can modify @a src_list by the result, So if you want to keep the content of @a src_list,
 *      make a copy of @a src_list before running this function. And also, you need to create the list handle of
-*      @a dst_list before runnig this function, because this function does not create the handle internally.
+*      @a dst_list before running this function, because this function does not create the handle internally.
 *
 * @return 0 on success, otherwise a negative error value
 * @retval #VC_ERROR_NONE Successful
index f906607..574fccb 100644 (file)
@@ -772,7 +772,7 @@ int vc_mgr_get_private_data(const char *key, char **data);
 
 /**
  * @platform
- * @brief Requests to do action as if utterence is spoken.
+ * @brief Requests to do action as if utterance is spoken.
  * @since_tizen 5.0
  *
  * @privlevel platform
index bb35f8e..348593e 100755 (executable)
@@ -77,7 +77,7 @@ typedef bool(*vc_setting_supported_language_cb)(const char* language, void* user
 typedef void (*vc_setting_current_language_changed_cb)(const char* previous, const char* current, void* user_data);
 
 /**
-* @brief Initialize voice control setting
+* @brief Initializes voice control setting
 *
 * @remarks If the function succeeds, @a vc mgr must be released with vc_setting_finalize().
 *
@@ -91,7 +91,7 @@ typedef void (*vc_setting_current_language_changed_cb)(const char* previous, con
 int vc_setting_initialize(void);
 
 /**
-* @brief Deinitialize vc setting
+* @brief Deinitializes vc setting
 *
 * @return 0 on success, otherwise a negative error value.
 * @retval #VC_ERROR_NONE Success.
@@ -103,7 +103,7 @@ int vc_setting_initialize(void);
 int vc_setting_deinitialize(void);
 
 /**
-* @brief Get supported languages of current engine
+* @brief Gets supported languages of current engine
 *
 * @param[in] callback callback function
 * @param[in] user_data User data to be passed to the callback function
@@ -121,7 +121,7 @@ int vc_setting_deinitialize(void);
 int vc_setting_foreach_supported_languages(vc_setting_supported_language_cb callback, void* user_data);
 
 /**
-* @brief Get the default language.
+* @brief Gets the default language.
 *
 * @remark If the function is success, @a language must be released with free() by you.
 *
@@ -139,7 +139,7 @@ int vc_setting_foreach_supported_languages(vc_setting_supported_language_cb call
 int vc_setting_get_language(char** language);
 
 /**
-* @brief Set the default language.
+* @brief Sets the default language.
 *
 * @param[in] language language
 *
@@ -154,7 +154,7 @@ int vc_setting_get_language(char** language);
 int vc_setting_set_language(const char* language);
 
 /**
-* @brief Set a automatic option of language.
+* @brief Sets a automatic option of language.
 *
 * @param[in] value The automatic option
 *
@@ -169,7 +169,7 @@ int vc_setting_set_language(const char* language);
 int vc_setting_set_auto_language(bool value);
 
 /**
-* @brief Get a automatic option of voice.
+* @brief Gets a automatic option of voice.
 *
 * @param[out] value The automatic option
 *
@@ -184,7 +184,7 @@ int vc_setting_set_auto_language(bool value);
 int vc_setting_get_auto_language(bool* value);
 
 /**
-* @brief Set voice control service enabled.
+* @brief Sets voice control service enabled.
 *
 * @param[in] value The enabled option
 *
@@ -199,7 +199,7 @@ int vc_setting_get_auto_language(bool* value);
 int vc_setting_set_enabled(bool value);
 
 /**
-* @brief Get voice control service enabled.
+* @brief Gets voice control service enabled.
 *
 * @param[out] value The enabled option
 *
index 6953e17..8639155 100644 (file)
@@ -137,7 +137,7 @@ bool vcd_client_manager_is_system_command_valid(int pid)
 int vcd_client_manager_set_demandable_client(int pid, GSList* client_list)
 {
        if (0 != g_slist_length(g_demandable_client)) {
-               /* releaes data */
+               /* release data */
                GSList *iter = NULL;
                vc_demandable_client_s* temp_client;
                iter = g_slist_nth(g_demandable_client, 0);
@@ -1500,7 +1500,7 @@ int vcd_client_widget_set_waiting_for_recording(int pid, bool waiting)
 {
 
        if (TRUE == waiting && pid != vcd_client_widget_get_foreground_pid()) {
-               SLOG(LOG_ERROR, TAG_VCD, "[Client Data ERROR] pid(%d) is NOT forground pid", pid);
+               SLOG(LOG_ERROR, TAG_VCD, "[Client Data ERROR] pid(%d) is NOT foreground pid", pid);
                return -1;
        }
 
index da79346..27aa722 100644 (file)
@@ -277,7 +277,7 @@ int vcd_engine_agent_load_current_engine(vce_request_callback_s* callback)
                return VCD_ERROR_ENGINE_NOT_FOUND;
        }
 
-       /* initalize engine */
+       /* initialize engine */
        ret = g_dynamic_engine.callbacks->initialize();
        if (0 != ret) {
                SLOG(LOG_ERROR, TAG_VCD, "[Engine Agent ERROR] Fail to initialize vc engine service");
index 5d1f689..ca49fb9 100644 (file)
@@ -241,7 +241,7 @@ static void __recorder_focus_state_cb(sound_stream_info_h stream_info, sound_str
                return;
        }
 
-       SLOG(LOG_WARN, TAG_VCD, "[Recorder] focus state chagned to (%d) with reason (%s)", (int)focus_state, __get_focus_changed_reason_code(reason));
+       SLOG(LOG_WARN, TAG_VCD, "[Recorder] focus state changed to (%d) with reason (%s)", (int)focus_state, __get_focus_changed_reason_code(reason));
 
        if (VCD_RECORDER_STATE_RECORDING == g_recorder_state && SOUND_STREAM_FOCUS_STATE_RELEASED == focus_state) {
                SLOG(LOG_WARN, TAG_VCD, "[Recorder] Focus released as interrupt");
@@ -267,7 +267,7 @@ static int __apply_device_for_stream_routing()
        int ret = -1;
        while (0 == sound_manager_get_next_device(device_list, &device)) {
                if (0 != sound_manager_get_device_type(device, &type)) {
-                       SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Fail to get device tyep");
+                       SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Fail to get device type");
                        continue;
                }
                if (0 != sound_manager_get_device_io_direction(device, &io_direction)) {
@@ -304,7 +304,7 @@ static void __device_connection_changed_cb(sound_device_h device, bool is_connec
        sound_device_type_e type;
        if (is_connected) {
                if (0 != sound_manager_get_device_type(device, &type)) {
-                       SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Fail to get device tyep");
+                       SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Fail to get device type");
                        return;
                }
                if (type == SOUND_DEVICE_USB_AUDIO) {
@@ -369,7 +369,7 @@ int vcd_recorder_create(vcd_recoder_audio_cb audio_cb, vcd_recorder_interrupt_cb
        audio_channel_e audio_ch;
        audio_sample_type_e audio_type;
 
-       SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] AUdio type(%d) rate(%d) channel(%d)", g_audio_type, g_audio_rate, g_audio_channel);
+       SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] Audio type(%d) rate(%d) channel(%d)", g_audio_type, g_audio_rate, g_audio_channel);
 
        switch (g_audio_channel) {
        case 1: audio_ch = AUDIO_CHANNEL_MONO;          break;
index 3c468c9..f949962 100644 (file)
@@ -311,7 +311,7 @@ static bool __vcd_launch_app(const char* result)
        }
 
        if (0 != g_slist_length(app_list)) {
-               /* releaes data */
+               /* release data */
                GSList *iter = NULL;
                vc_deactivated_app_s* temp_app = NULL;
                iter = g_slist_nth(app_list, 0);
@@ -514,7 +514,7 @@ int vcd_send_result(vce_result_event_e event, int* result_id, int count, const c
        }
 
        /* priority filter */
-       /* system > exclusive > widget > foreground > system_background > widget partial > foreground paritial > background */
+       /* system > exclusive > widget > foreground > system_background > widget partial > foreground partial > background */
        int i = 0;
        int* filtered_id = (int*)calloc(count, sizeof(int));
        if (!filtered_id) {
@@ -633,7 +633,7 @@ int vcd_send_result(vce_result_event_e event, int* result_id, int count, const c
                                temp_cmd = NULL;
                        }
                } else {
-                       SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] NOT found matached result(%d)", filtered_id[i]);
+                       SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] NOT found matched result(%d)", filtered_id[i]);
                }
        }
 
@@ -972,7 +972,7 @@ int vcd_send_result(vce_result_event_e event, int* result_id, int count, const c
                                                temp_cmd->parameter = strdup(non_fixed_result);
                                        }
                                } else {
-                                       SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] Command type is NOT vaild. Parameter (%s)", temp_cmd->parameter);
+                                       SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] Command type is NOT valid. Parameter (%s)", temp_cmd->parameter);
                                }
                                break;
                        case VC_CMD_FORMAT_NONFIXED_AND_FIXED:
@@ -981,7 +981,7 @@ int vcd_send_result(vce_result_event_e event, int* result_id, int count, const c
                                                temp_cmd->command = strdup(non_fixed_result);
                                        }
                                } else {
-                                       SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] Command type is NOT vaild. Command (%s)", temp_cmd->command);
+                                       SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] Command type is NOT valid. Command (%s)", temp_cmd->command);
                                }
 
                                break;
@@ -995,7 +995,7 @@ int vcd_send_result(vce_result_event_e event, int* result_id, int count, const c
                                vc_cmd_destroy((vc_cmd_h)temp_cmd);
                        }
                } else {
-                       SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] NOT found matached result(%d)", result_id[i]);
+                       SLOG(LOG_WARN, TAG_VCD, "[Server WARNING] NOT found matched result(%d)", result_id[i]);
                }
        }
 
@@ -1673,7 +1673,7 @@ int vcd_server_mgr_set_client_info(int pid)
 
 static int __reset_waiting_for_widget_recording(void)
 {
-       SLOG(LOG_ERROR, TAG_VCD, "[Server] Reet waiting for widget recording");
+       SLOG(LOG_ERROR, TAG_VCD, "[Server] Reset waiting for widget recording");
        // Delete timer to check that widget client is terminated
        if (g_check_widget_client_timer) {
                ecore_timer_del(g_check_widget_client_timer);
@@ -1704,7 +1704,7 @@ static Eina_Bool __send_waiting_timeout_start_recording(void* data)
 
        int ret = __start_internal_recognition();
        if (0 != ret) {
-               SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recongition : %d", ret);
+               SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recognition : %d", ret);
                return ret;
        }
        return EINA_FALSE;
@@ -1857,7 +1857,7 @@ int vcd_server_mgr_start(vcd_recognition_mode_e recognition_mode, bool exclusive
 
        int ret = __start_internal_recognition();
        if (0 != ret) {
-               SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recongition : %d", ret);
+               SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recognition : %d", ret);
                return ret;
        }
 
@@ -2088,7 +2088,7 @@ int vcd_server_mgr_do_action(int pid, int type, const char* action)
                return VCD_ERROR_INVALID_STATE;
        }
 
-       /* Reqeust do action to engine */
+       /* Request do action to engine */
        if (VCD_SEND_EVENT_TYPE_TEXT == type)
                ret = vcd_engine_process_text(pid, action);
        else if (VCD_SEND_EVENT_TYPE_LIST_EVENT == type)
@@ -2448,7 +2448,7 @@ int vcd_server_request_start(int pid, bool stop_by_silence)
 {
        /* check if pid is valid */
        if (false == vcd_client_is_available(pid)) {
-               SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] pid(%d) is NOT forground client", pid);
+               SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] pid(%d) is NOT foreground client", pid);
                return VCD_ERROR_INVALID_PARAMETER;
        }
 
@@ -2570,7 +2570,7 @@ static void __vcd_server_widget_start_recording(void *data)
        SLOG(LOG_ERROR, TAG_VCD, "[Server INFO] start recording");
 
        if (0 != __start_internal_recognition()) {
-               SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recongition");
+               SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recognition");
        }
 }
 
@@ -2627,10 +2627,10 @@ int vcd_server_widget_start_recording(int pid, bool widget_command)
                SLOG(LOG_WARN, TAG_VCD, "[Server] widget command is NOT available");
        }
 
-       SLOG(LOG_ERROR, TAG_VCD, "[Server] start internal recongition : %d", widget_command);
+       SLOG(LOG_ERROR, TAG_VCD, "[Server] start internal recognition : %d", widget_command);
        int ret = __start_internal_recognition();
        if (0 != ret) {
-               SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recongition : %d", ret);
+               SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to start recognition : %d", ret);
                ecore_timer_add(0, __vcd_request_show_tooltip, (void*)false);
        }