{SYSTEM_EVENT_DATA_ROAMING_STATE, EVENT_KEY_DATA_ROAMING_STATE},
{SYSTEM_EVENT_FONT_SET, EVENT_KEY_FONT_SET}};
-#ifdef TIZEN_MOBILE
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
const int kMaximumBatteryRetrievedObjects = 30;
const int kMaximumAppsRetrievedObjects = 10;
const int kDefaultPeriodOfTime = 30;
ReportSuccess(result, *out);
}
-#ifdef TIZEN_MOBILE
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
PlatformResult ApplicationManager::BatteryUsageFilter(const picojson::value& args,
const context_history_filter_h filter,
context_history_data_e* data_type_out) {
void ApplicationManager::GetBatteryUsageInfo(const picojson::value& args, picojson::object* out) {
LoggerD("Entered");
-#ifdef TIZEN_MOBILE
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
int callback_id = -1;
const auto& callback = args.get(kCallbackId);
if (callback.is<double>()) {
void ApplicationManager::GetAppsUsageInfo(const picojson::value& args, picojson::object* out) {
LoggerD("Entered");
-#ifdef TIZEN_MOBILE
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
int callback_id = static_cast<int>(args.get(kCallbackId).get<double>());
auto get_apps_usage = [args](const std::shared_ptr<picojson::value>& response) -> void {
manager->status_callback_(&event);
}
-#ifdef TIZEN_MOBILE
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
PlatformResult ApplicationManager::GetContextHistory(
const picojson::value& args, picojson::object* out,
common::PlatformResult (*modify_filter_cb)(const picojson::value&,
#include <functional>
#include <memory>
#include <string>
-#ifdef TIZEN_MOBILE
+#if defined(TIZEN_MOBILE)
#include <context-service/context_history.h>
+#elif defined(TIZEN_WEARABLE)
+#include <context-service/wearable/context_history.h>
#endif
#include "common/picojson.h"
app_manager_event_state_e event_state, app_manager_event_h handle,
void* user_data);
-#ifdef TIZEN_MOBILE
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
static common::PlatformResult GetContextHistory(
const picojson::value& args, picojson::object* out,
common::PlatformResult (*)(const picojson::value&, const context_history_filter_h,