Enabled Application and Alarm features for common build also.
[Verification] Alarm and Application 100% pass with common profile
installed on RPI4
Change-Id: I4f1e992d123e350ba42acc6b9aac38a8f27a82be
Source0: %{name}-%{version}.tar.gz
####################################################################
-# Common Profile : artik #
+# Common Profile : #TODO list devices #
####################################################################
%define tizen_common_privilege_engine CYNARA
-%define tizen_common_feature_account_support 0
+%define tizen_common_feature_account_support 1
%define tizen_common_feature_alarm_support 1
%define tizen_common_feature_app_control_settings_support 1
%define tizen_common_feature_application_support 1
-%define tizen_common_feature_archive_support 0
-%define tizen_common_feature_badge_support 0
+%define tizen_common_feature_archive_support 1
+%define tizen_common_feature_badge_support 1
%define tizen_common_feature_bluetooth_support 1
%define tizen_common_feature_calendar_support 0
%define tizen_common_feature_callhistory_support 0
%define tizen_common_feature_contact_support 0
%define tizen_common_feature_content_support 1
-%define tizen_common_feature_datacontrol_support 0
+%define tizen_common_feature_datacontrol_support 1
%define tizen_common_feature_datasync_support 0
%define tizen_common_feature_download_support 1
%define tizen_common_feature_exif_support 1
-%define tizen_common_feature_feedback_support 0
+%define tizen_common_feature_feedback_support 1
%define tizen_common_feature_filesystem_support 1
%define tizen_common_feature_fm_radio_support 0
%define tizen_common_feature_ham_support 0
-%define tizen_common_feature_inputdevice_support 0
-%define tizen_common_feature_iotcon_support 0
-%define tizen_common_feature_key_manager_support 0
+%define tizen_common_feature_inputdevice_support 1
+%define tizen_common_feature_iotcon_support 1
+%define tizen_common_feature_key_manager_support 1
%define tizen_common_feature_location_batch 0
-%define tizen_common_feature_media_controller_support 0
-%define tizen_common_feature_media_key_support 0
+%define tizen_common_feature_media_controller_support 1
+%define tizen_common_feature_media_key_support 1
%define tizen_common_feature_message_port_support 1
%define tizen_common_feature_messaging_support 0
%define tizen_common_feature_metadata_support 1
%define tizen_common_feature_nbs_support 0
%define tizen_common_feature_nfc_support 0
%define tizen_common_feature_nfc_emulation_support 0
-%define tizen_common_feature_notification_support 0
+%define tizen_common_feature_notification_support 1
%define tizen_common_feature_package_support 1
-%define tizen_common_feature_player_util_support 0
+%define tizen_common_feature_player_util_support 1
%define tizen_common_feature_power_support 0
%define tizen_common_feature_ppm_support 0
-%define tizen_common_feature_preference_support 0
-%define tizen_common_feature_push_support 0
+%define tizen_common_feature_preference_support 1
+%define tizen_common_feature_push_support 1
%define tizen_common_feature_se_support 0
-%define tizen_common_feature_sensor_support 0
+%define tizen_common_feature_sensor_support 1
%define tizen_common_feature_sound_support 1
%define tizen_common_feature_system_info_support 1
-%define tizen_common_feature_system_setting_support 0
+%define tizen_common_feature_system_setting_support 1
%define tizen_common_feature_telephony_support 0
%define tizen_common_feature_time_support 1
%define tizen_common_feature_tvinputdevice_support 0
-%define tizen_common_feature_voicecontrol_support 0
-%define tizen_common_feature_web_setting_support 0
+%define tizen_common_feature_voicecontrol_support 1
+%define tizen_common_feature_web_setting_support 1
%define tizen_common_feature_wi_fi_support 1
-%define tizen_common_feature_widget_service_support 0
+%define tizen_common_feature_widget_service_support 1
####################################################################
# Mobile Profile : TM1(32bit), Redwood(SM-Z910F), KIRAN(Z130H) #
]
},
}],
- ['extension_host_os == "mobile"', {
+ ['extension_host_os == "mobile" or extension_host_os == "wearable" or extension_host_os == "common"', {
'dependencies': [
'../notification/notification.gyp:tizen_notification',
],
- }],
- ['extension_host_os == "wearable"', {
- 'dependencies': [
- '../notification/notification.gyp:tizen_notification',
- ],
}]
],
},
var _profile = ProfileAlarm.getInstance().profile;
// Notifications feature are available on mobile and wearable profile
-if (_profile != 'mobile' && _profile != 'wearable') {
+if (_profile != 'mobile' && _profile != 'wearable' && _profile != 'common') {
delete AlarmManager.prototype.addAlarmNotification;
delete AlarmManager.prototype.getAlarmNotification;
isAlarmAbsolutePeriodDeprecated = false;
REGISTER_METHOD(AlarmManagerGetNextScheduledDate);
// Block of code related to Notification
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
REGISTER_METHOD(AlarmManagerAddAlarmNotification);
REGISTER_METHOD(AlarmManagerGetAlarmNotification);
-#endif // TIZEN_MOBILE or TIZEN_WEARABLE
+#endif // TIZEN_MOBILE or TIZEN_WEARABLE or TIZEN_COMMON
#undef REGISTER_METHOD
}
manager_.GetAll(args, out);
}
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
void AlarmInstance::AlarmManagerAddAlarmNotification(const picojson::value& args,
picojson::object& out) {
ScopeLogger();
ScopeLogger();
manager_.GetAlarmNotification(args, out);
}
-#endif // TIZEN_MOBILE or TIZEN_WEARABLE
+#endif // TIZEN_MOBILE or TIZEN_WEARABLE or TIZEN_COMMON
void AlarmInstance::AlarmManagerGetRemainingSeconds(const picojson::value& args,
picojson::object& out) {
#include <app_alarm.h>
#include <app_control_internal.h>
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
#include <notification_internal.h>
#endif
ReportSuccess(result, out);
}
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
void AlarmManager::AddAlarmNotification(const picojson::value& args, picojson::object& out) {
using namespace extension::notification;
ScopeLogger();
}
}
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
void AlarmManager::GetAlarmNotification(const picojson::value& args, picojson::object& out) {
using namespace extension::notification;
ScopeLogger();
void Get(const picojson::value& args, picojson::object& out);
void GetAll(const picojson::value& args, picojson::object& out);
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
void AddAlarmNotification(const picojson::value& args, picojson::object& out);
void GetAlarmNotification(const picojson::value& args, picojson::object& out);
#endif
]
},
}],
- ['extension_host_os == "mobile" or extension_host_os == "wearable"', {
+ ['extension_host_os == "mobile" or extension_host_os == "wearable" or extension_host_os == "common"', {
'variables': {
'packages': [
'capi-context',
{SYSTEM_EVENT_DATA_ROAMING_STATE, EVENT_KEY_DATA_ROAMING_STATE},
{SYSTEM_EVENT_FONT_SET, EVENT_KEY_FONT_SET}};
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
const int kMaximumBatteryRetrievedObjects = 30;
const int kMaximumAppsRetrievedObjects = 10;
const int kDefaultPeriodOfTime = 30;
ReportSuccess(result, *out);
}
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
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) {
ScopeLogger();
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
int callback_id = -1;
const auto& callback = args.get(kCallbackId);
if (callback.is<double>()) {
void ApplicationManager::GetAppsUsageInfo(const picojson::value& args, picojson::object* out) {
ScopeLogger();
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
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);
}
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
PlatformResult ApplicationManager::GetContextHistory(
const picojson::value& args, picojson::object* out,
common::PlatformResult (*modify_filter_cb)(const picojson::value&,
#include <mutex>
#include <set>
#include <string>
-#if defined(TIZEN_MOBILE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_COMMON)
#include <context-service/context_history.h>
#elif defined(TIZEN_WEARABLE)
#include <context-service/wearable/context_history.h>
app_manager_event_state_e event_state, app_manager_event_h handle,
void* user_data);
-#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
+#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE) || defined(TIZEN_COMMON)
static common::PlatformResult GetContextHistory(
const picojson::value& args, picojson::object* out,
common::PlatformResult (*)(const picojson::value&, const context_history_filter_h,
['extension_host_os == "mobile"', { 'defines': ['TIZEN_MOBILE'] } ],
['extension_host_os == "ivi"', { 'defines': ['TIZEN_IVI'] } ],
['extension_host_os == "desktop"', { 'defines': ['GENERIC_DESKTOP'] } ],
+ ['extension_host_os == "common"', { 'defines': ['TIZEN_COMMON'] } ],
['extension_build_type== "Debug"', {
'defines': ['_DEBUG', 'TIZEN_DEBUG_ENABLE', ],
'cflags': [ '-O0', '-g', ],