extern int utc_location_manager_get_velocity_n(void);
extern int utc_location_manager_get_accuracy_p(void);
extern int utc_location_manager_get_accuracy_n(void);
+extern int utc_location_manager_get_velocity_accuracy_p(void);
+extern int utc_location_manager_get_velocity_accuracy_n(void);
extern int utc_location_manager_get_last_accuracy_p(void);
extern int utc_location_manager_get_last_accuracy_n(void);
extern int utc_location_manager_get_accessibility_state_p(void);
{"utc_location_manager_get_velocity_n",utc_location_manager_get_velocity_n,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_accuracy_p",utc_location_manager_get_accuracy_p,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_accuracy_n",utc_location_manager_get_accuracy_n,utc_location_manager_startup,utc_location_manager_cleanup},
+ {"utc_location_manager_get_velocity_accuracy_p",utc_location_manager_get_velocity_accuracy_p,utc_location_manager_startup,utc_location_manager_cleanup},
+ {"utc_location_manager_get_velocity_accuracy_n",utc_location_manager_get_velocity_accuracy_n,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_last_accuracy_p",utc_location_manager_get_last_accuracy_p,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_last_accuracy_n",utc_location_manager_get_last_accuracy_n,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_accessibility_state_p",utc_location_manager_get_accessibility_state_p,utc_location_manager_startup,utc_location_manager_cleanup},
extern int utc_location_manager_get_velocity_n(void);
extern int utc_location_manager_get_accuracy_p(void);
extern int utc_location_manager_get_accuracy_n(void);
+extern int utc_location_manager_get_velocity_accuracy_p(void);
+extern int utc_location_manager_get_velocity_accuracy_n(void);
extern int utc_location_manager_get_last_accuracy_p(void);
extern int utc_location_manager_get_last_accuracy_n(void);
extern int utc_location_manager_get_accessibility_state_p(void);
{"utc_location_manager_get_velocity_n",utc_location_manager_get_velocity_n,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_accuracy_p",utc_location_manager_get_accuracy_p,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_accuracy_n",utc_location_manager_get_accuracy_n,utc_location_manager_startup,utc_location_manager_cleanup},
+ {"utc_location_manager_get_velocity_accuracy_p",utc_location_manager_get_velocity_accuracy_p,utc_location_manager_startup,utc_location_manager_cleanup},
+ {"utc_location_manager_get_velocity_accuracy_n",utc_location_manager_get_velocity_accuracy_n,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_last_accuracy_p",utc_location_manager_get_last_accuracy_p,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_last_accuracy_n",utc_location_manager_get_last_accuracy_n,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_accessibility_state_p",utc_location_manager_get_accessibility_state_p,utc_location_manager_startup,utc_location_manager_cleanup},
extern int utc_location_manager_get_velocity_n(void);
extern int utc_location_manager_get_accuracy_p(void);
extern int utc_location_manager_get_accuracy_n(void);
+extern int utc_location_manager_get_velocity_accuracy_p(void);
+extern int utc_location_manager_get_velocity_accuracy_n(void);
extern int utc_location_manager_get_last_accuracy_p(void);
extern int utc_location_manager_get_last_accuracy_n(void);
extern int utc_location_manager_get_accessibility_state_p(void);
{"utc_location_manager_get_velocity_n",utc_location_manager_get_velocity_n,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_accuracy_p",utc_location_manager_get_accuracy_p,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_accuracy_n",utc_location_manager_get_accuracy_n,utc_location_manager_startup,utc_location_manager_cleanup},
+ {"utc_location_manager_get_velocity_accuracy_p",utc_location_manager_get_velocity_accuracy_p,utc_location_manager_startup,utc_location_manager_cleanup},
+ {"utc_location_manager_get_velocity_accuracy_n",utc_location_manager_get_velocity_accuracy_n,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_last_accuracy_p",utc_location_manager_get_last_accuracy_p,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_last_accuracy_n",utc_location_manager_get_last_accuracy_n,utc_location_manager_startup,utc_location_manager_cleanup},
{"utc_location_manager_get_accessibility_state_p",utc_location_manager_get_accessibility_state_p,utc_location_manager_startup,utc_location_manager_cleanup},
return 0;
}
+/**
+ * @testcase utc_location_manager_get_velocity_accuracy_p
+ * @since_tizen 6.0
+ * @description Gets the current velocity accuracy information
+ */
+int utc_location_manager_get_velocity_accuracy_p(void)
+{
+ double velocity_accuracy = 0.0;
+ service_enabled = false;
+
+ if (is_location_supported) {
+ ret = location_manager_set_service_state_changed_cb(manager, __service_state_changed_cb, NULL);
+ assert_eq(ret, LOCATIONS_ERROR_NONE);
+
+ ret = location_manager_start(manager);
+ assert_eq(ret, LOCATIONS_ERROR_NONE);
+
+ wait_for_service();
+ assert(service_enabled);
+
+ ret = location_manager_get_velocity_accuracy(manager, &velocity_accuracy);
+ assert_eq(ret, LOCATIONS_ERROR_NONE);
+
+ ret = location_manager_stop(manager);
+ assert_eq(ret, LOCATIONS_ERROR_NONE);
+
+ ret = location_manager_unset_service_state_changed_cb(manager);
+ assert_eq(ret, LOCATIONS_ERROR_NONE);
+ } else {
+ ret = location_manager_get_velocity_accuracy(manager, &velocity_accuracy);
+ assert_eq(ret, LOCATIONS_ERROR_NOT_SUPPORTED);
+ }
+
+ return 0;
+}
+
+/**
+ * @testcase utc_location_manager_get_velocity_accuracy_n
+ * @since_tizen 6.0
+ * @description Gets the current velocity accuracy information with invalid parameters
+ */
+int utc_location_manager_get_velocity_accuracy_n(void)
+{
+ double velocity_accuracy = 0.0;
+
+ ret = location_manager_get_velocity_accuracy(NULL, &velocity_accuracy);
+ CHECK_INVALID_PARAMETER(is_location_supported, ret);
+
+ ret = location_manager_get_velocity_accuracy(manager, NULL);
+ CHECK_INVALID_PARAMETER(is_location_supported, ret);
+
+ return 0;
+}
+
/**
* @testcase utc_location_manager_get_last_accuracy_p
* @since_tizen 2.3