*
*/
-#define _BSD_SOURCE /*localtime_r requires */
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
due_time = mktime(&duetime_tm);
localtime_r(&due_time, &tmp_tm);
- ALARM_MGR_EXCEPTION_PRINT("%d:%d:%d. duetime = %d, isdst = %d", tmp_tm.tm_hour, tmp_tm.tm_min, tmp_tm.tm_sec, due_time, tmp_tm.tm_isdst);
+ ALARM_MGR_LOG_PRINT("%d:%d:%d. duetime = %d, isdst = %d", tmp_tm.tm_hour, tmp_tm.tm_min, tmp_tm.tm_sec, due_time, tmp_tm.tm_isdst);
if (due_time <= current_time) {
ALARM_MGR_EXCEPTION_PRINT("duetime is less than or equal to current time. current_dst = %d", current_dst);
duetime_tm.tm_sec = start->sec;
duetime_tm.tm_isdst = -1;
due_time = mktime(&duetime_tm);
- ALARM_MGR_EXCEPTION_PRINT("due_time = %d",due_time);
+ ALARM_MGR_LOG_PRINT("due_time = %d", due_time);
}
}
else {
// When the calculated duetime is forwarded 1hour due to DST, Adds 23hours.
due_time += 60 * 60 * 23;
localtime_r(&due_time, &duetime_tm);
- ALARM_MGR_EXCEPTION_PRINT("due_time = %d",due_time);
+ ALARM_MGR_LOG_PRINT("due_time = %d", due_time);
}
}
wday = duetime_tm.tm_wday;
- ALARM_MGR_EXCEPTION_PRINT("current_time(%d) due_time(%d)", current_time, due_time);
+ ALARM_MGR_LOG_PRINT("current_time(%d) due_time(%d)", current_time, due_time);
/* CQ defect(72810) : only one time alarm function is not working
under all recurrence_disabled. */
due_time -= 60 * 60; // Subtract an hour
}
- ALARM_MGR_EXCEPTION_PRINT("Final due_time = %d", due_time);
+ ALARM_MGR_LOG_PRINT("Final due_time = %d", due_time);
return due_time;
}
due_time = mktime(due_tm);
}
- ALARM_MGR_EXCEPTION_PRINT("alarm_id: %d, next duetime: %d", __alarm_info->alarm_id, due_time);
+ ALARM_MGR_LOG_PRINT("alarm_id: %d, next duetime: %d", __alarm_info->alarm_id, due_time);
if (__alarm_info->end != 0 && __alarm_info->end < due_time) {
ALARM_MGR_LOG_PRINT("due time > end time");
__find_next_alarm_to_be_scheduled(&min_time);
if (min_time == -1) {
- ALARM_MGR_LOG_PRINT("[alarm-server][schedule]: There is no alarm to be scheduled.");
+ ALARM_MGR_EXCEPTION_PRINT("[alarm-server][schedule]: There is no alarm to be scheduled.");
} else {
for (iter = alarm_context.alarms; iter != NULL; iter = g_slist_next(iter)) {
entry = iter->data;
*
*/
-
-
-#define _BSD_SOURCE /*for localtime_r*/
+#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/time.h>
#include <unistd.h>
#include <sys/timerfd.h>
#include <poll.h>
static const char default_rtc[] = "/dev/rtc";
-static int gfd = 0;
+static int gfd = -1;
#endif /*__WAKEUP_USING_RTC__*/
return;
#endif
- if (gfd == 0) {
+ if (gfd < 0) {
gfd = open(rtc, O_RDWR);
- if (gfd == -1) {
+ if (gfd < 0) {
ALARM_MGR_EXCEPTION_PRINT("RTC open failed.");
return;
}
int retval = 0;
#ifdef _APPFW_FEATURE_ALARM_MANAGER_MODULE_LOG
char *timebuf = ctime(&alarm_context.c_due_time);
- if (timebuf)
+ if (timebuf) {
timebuf[strlen(timebuf) - 1] = '\0'; // to avoid new line
- snprintf(log_message, sizeof(log_message), "wakeup time: %d, %s", (int)alarm_context.c_due_time, timebuf);
+ snprintf(log_message, sizeof(log_message), "wakeup time: %d, %s", (int)alarm_context.c_due_time, timebuf);
+ }
#endif
ALARM_MGR_LOG_PRINT("alarm_context.c_due_time is %d.", (int)alarm_context.c_due_time);
ALARM_MGR_EXCEPTION_PRINT("RTC_WKALM_SET disabled ioctl is failed. errno = %s", strerror(errno));
return;
}
- ALARM_MGR_EXCEPTION_PRINT("[alarm-server]RTC_WKALM_SET disabled ioctl is successfully done.");
+ ALARM_MGR_LOG_PRINT("[alarm-server]RTC_WKALM_SET disabled ioctl is successfully done.");
time_t due_time = alarm_context.c_due_time;
localtime_r(&due_time, &due_tm);
- ALARM_MGR_EXCEPTION_PRINT("Setted RTC Alarm date/time is %d-%d-%d, %02d:%02d:%02d (UTC).",
+ ALARM_MGR_LOG_PRINT("Setted RTC Alarm date/time is %d-%d-%d, %02d:%02d:%02d (UTC).",
due_tm.tm_mday, due_tm.tm_mon + 1, due_tm.tm_year + 1900,
due_tm.tm_hour, due_tm.tm_min, due_tm.tm_sec);
#endif
return;
}
- ALARM_MGR_EXCEPTION_PRINT("[alarm-server]RTC ALARM_SET ioctl is successfully done.");
+ ALARM_MGR_LOG_PRINT("[alarm-server]RTC ALARM_SET ioctl is successfully done.");
#ifdef _APPFW_FEATURE_ALARM_MANAGER_MODULE_LOG
__save_module_log("SET RTC", log_message);
#endif
char log_message[ALARMMGR_LOG_MESSAGE_SIZE] = {0,};
#endif
- if (gfd == 0) {
+ if (gfd < 0) {
gfd = open(rtc0, O_RDWR);
- if (gfd == -1) {
+ if (gfd < 0) {
ALARM_MGR_EXCEPTION_PRINT("Opening the /dev/alarm is failed.");
perror("\t");
+ return 1;
}
}
}
char *timebuf = ctime(&_time);
- if (timebuf)
+ if (timebuf) {
timebuf[strlen(timebuf) - 1] = '\0'; // to avoid new line
- snprintf(log_message, sizeof(log_message), "RTC & OS =%d, %s", (int)_time, timebuf);
+ snprintf(log_message, sizeof(log_message), "RTC & OS =%d, %s", (int)_time, timebuf);
+ }
__save_module_log(log_tag, log_message);
#endif
ALARM_MGR_LOG_PRINT("[alarm-server]: Before add alarm_id(%d)", __alarm_info->alarm_id);
alarm_context.alarms = g_slist_append(alarm_context.alarms, __alarm_info);
- ALARM_MGR_EXCEPTION_PRINT("[alarm-server]: After add alarm_id(%d)", __alarm_info->alarm_id);
+ ALARM_MGR_LOG_PRINT("[alarm-server]: After add alarm_id(%d)", __alarm_info->alarm_id);
// alarm list
for (iter = alarm_context.alarms; iter != NULL; iter = g_slist_next(iter)) {
if (entry->uid == uid && entry->alarm_id == alarm_id) {
alarm_info = &entry->alarm_info;
- ALARM_MGR_EXCEPTION_PRINT("[alarm-server]:Remove alarm id(%d)", entry->alarm_id);
+ ALARM_MGR_LOG_PRINT("[alarm-server]:Remove alarm id(%d)", entry->alarm_id);
if (!(alarm_info->alarm_type & ALARM_TYPE_VOLATILE)) {
_delete_alarms(alarm_id);
g_quark_to_string(__alarm_info->quark_caller_pkgid), g_quark_to_string(__alarm_info->quark_callee_pkgid));
bundle_encode(b, &b_data, &datalen);
- __alarm_info->quark_bundle=g_quark_from_string(b_data);
+ __alarm_info->quark_bundle = g_quark_from_string((const gchar *)b_data);
__alarm_info->quark_app_service_name = g_quark_from_string("null");
__alarm_info->quark_dst_service_name = g_quark_from_string("null");
__alarm_info->quark_app_service_name_mod = g_quark_from_string("null");
due_time_r);
}
- ALARM_MGR_EXCEPTION_PRINT("[alarm-server]:alarm_context.c_due_time(%d), due_time(%d)", alarm_context.c_due_time, due_time);
+ ALARM_MGR_LOG_PRINT("[alarm-server]:alarm_context.c_due_time(%d), due_time(%d)", alarm_context.c_due_time, due_time);
if (alarm_context.c_due_time == -1 || due_time < alarm_context.c_due_time) {
_clear_scheduled_alarm_list();
SECURE_LOGD("[alarm-server]:Create a new alarm: alarm(%d) due_time(%s)", *alarm_id, due_time_r);
}
- ALARM_MGR_EXCEPTION_PRINT("[alarm-server]:alarm_context.c_due_time(%d), due_time(%d)", alarm_context.c_due_time, due_time);
+ ALARM_MGR_LOG_PRINT("[alarm-server]:alarm_context.c_due_time(%d), due_time(%d)", alarm_context.c_due_time, due_time);
if (alarm_context.c_due_time == -1 || due_time < alarm_context.c_due_time) {
_clear_scheduled_alarm_list();
"due_time(%s)\n", alarm_id, due_time_r);
}
- ALARM_MGR_EXCEPTION_PRINT("[alarm-server]:alarm_context.c_due_time(%d), due_time(%d)", alarm_context.c_due_time, due_time);
+ ALARM_MGR_LOG_PRINT("[alarm-server]:alarm_context.c_due_time(%d), due_time(%d)", alarm_context.c_due_time, due_time);
if (alarm_context.c_due_time == -1 || due_time < alarm_context.c_due_time) {
_clear_scheduled_alarm_list();
ALARM_MGR_EXCEPTION_PRINT("Unable to run app svc\n");
}
else {
- ALARM_MGR_LOG_PRINT("Successfuly ran app svc\n");
+ ALARM_MGR_LOG_PRINT("Successfuly run app svc\n");
}
} else { /* since 2.4 */
appid = (char *)appsvc_get_appid(b);
g_variant_get (result, "(b)", &name_has_owner_reply);
}
- if (strncmp(g_quark_to_string(__alarm_info->quark_dst_service_name), "null",4) == 0) {
- strncpy(appid,g_quark_to_string(__alarm_info->quark_app_service_name)+6,strlen(g_quark_to_string(__alarm_info->quark_app_service_name))-6);
+ if (g_quark_to_string(__alarm_info->quark_dst_service_name) != NULL && strncmp(g_quark_to_string(__alarm_info->quark_dst_service_name), "null", 4) == 0) {
+ if (g_quark_to_string(__alarm_info->quark_app_service_name) != NULL && strlen(g_quark_to_string(__alarm_info->quark_app_service_name)) > 6)
+ strncpy(appid, g_quark_to_string(__alarm_info->quark_app_service_name) + 6, strlen(g_quark_to_string(__alarm_info->quark_app_service_name)) - 6);
} else {
- strncpy(appid,g_quark_to_string(__alarm_info->quark_dst_service_name)+6,strlen(g_quark_to_string(__alarm_info->quark_dst_service_name))-6);
+ if (g_quark_to_string(__alarm_info->quark_dst_service_name) != NULL && strlen(g_quark_to_string(__alarm_info->quark_dst_service_name)) > 6)
+ strncpy(appid, g_quark_to_string(__alarm_info->quark_dst_service_name) + 6, strlen(g_quark_to_string(__alarm_info->quark_dst_service_name)) - 6);
}
ret = pkgmgrinfo_appinfo_get_usr_appinfo(appid, __alarm_info->uid, &appinfo_handle);
}
}
- ALARM_MGR_EXCEPTION_PRINT("alarm_id[%d] is expired.", alarm_id);
+ ALARM_MGR_LOG_PRINT("alarm_id[%d] is expired.", alarm_id);
#ifdef _APPFW_FEATURE_ALARM_MANAGER_MODULE_LOG
snprintf(log_message, sizeof(log_message), "alarmID: %d, pid: %d, duetime: %d", alarm_id, app_pid, (int)__alarm_info->due_time);
return false;
}
- ALARM_MGR_EXCEPTION_PRINT("Lock the display not to enter LCD OFF");
+ ALARM_MGR_LOG_PRINT("Lock the display not to enter LCD OFF");
if (__display_lock_state(DEVICED_LCD_OFF, DEVICED_STAY_CUR_STATE, 0) != ALARMMGR_RESULT_SUCCESS) {
ALARM_MGR_EXCEPTION_PRINT("__display_lock_state() is failed");
}
__rtc_set();
- ALARM_MGR_EXCEPTION_PRINT("Unlock the display from LCD OFF");
+ ALARM_MGR_LOG_PRINT("Unlock the display from LCD OFF");
if (__display_unlock_state(DEVICED_LCD_OFF, DEVICED_SLEEP_MARGIN) != ALARMMGR_RESULT_SUCCESS) {
ALARM_MGR_EXCEPTION_PRINT("__display_unlock_state() is failed");
}
tzset();
time(&cur_time);
- ALARM_MGR_EXCEPTION_PRINT("diff_time is %f, New time is %s\n", diff_time, ctime(&cur_time));
+ ALARM_MGR_LOG_PRINT("diff_time is %f, New time is %s\n", diff_time, ctime(&cur_time));
ALARM_MGR_LOG_PRINT("[alarm-server] System time has been changed externally\n");
ALARM_MGR_LOG_PRINT("1.alarm_context.c_due_time is %d\n",
ALARM_MGR_EXCEPTION_PRINT("Failed to lock display");
ret = ERR_ALARM_SYSTEM_FAIL;
} else {
- ALARM_MGR_EXCEPTION_PRINT("Lock LCD OFF is successfully done");
+ ALARM_MGR_LOG_PRINT("Lock LCD OFF is successfully done");
}
}
}
ALARM_MGR_EXCEPTION_PRINT("Failed to unlock display");
ret = ERR_ALARM_SYSTEM_FAIL;
} else {
- ALARM_MGR_EXCEPTION_PRINT("Unlock LCD OFF is successfully done");
+ ALARM_MGR_LOG_PRINT("Unlock LCD OFF is successfully done");
}
}
}
__rtc_set();
#ifdef _APPFW_FEATURE_ALARM_MANAGER_MODULE_LOG
- char *timebuf = ctime(&new_time);
- if (timebuf)
+ char *timebuf = ctime((const time_t *)&new_time);
+ if (timebuf) {
timebuf[strlen(timebuf) - 1] = '\0'; // to avoid newline
- snprintf(log_message, sizeof(log_message), "Current: %d, New: %d, %s, diff: %f", cur_time, new_time, timebuf, diff_time);
+ snprintf(log_message, sizeof(log_message), "Current: %d, New: %d, %s, diff: %f", cur_time, new_time, timebuf, diff_time);
+ }
__save_module_log("CHANGE TIME", log_message);
#endif
/*convert to calendar time representation*/
time_t rtc_time = mktime(alarm_tm);
- if (gfd == 0) {
+ if (gfd < 0) {
gfd = open(rtc, O_RDWR);
- if (gfd == -1) {
+ if (gfd < 0) {
ALARM_MGR_EXCEPTION_PRINT("RTC open failed.");
return_code = ERR_ALARM_SYSTEM_FAIL;
g_dbus_method_invocation_return_value(invoc, g_variant_new("(i)", return_code));
}
__set_time(time_sec); // Change both OS time and RTC
- ALARM_MGR_EXCEPTION_PRINT("[TIMESTAMP]Current time(%d), New time(%d)(%s), diff_time(%f)",
- cur_time.tv_sec, time_sec, ctime(&time_sec), diff_time);
+ ALARM_MGR_LOG_PRINT("[TIMESTAMP]Current time(%d), New time(%d)(%s), diff_time(%f)",
+ cur_time.tv_sec, time_sec, ctime((const time_t *)&time_sec), diff_time);
__reschedule_alarms_with_newtime(cur_time.tv_sec, time_sec, diff_time);
g_dbus_method_invocation_return_value(invoc, g_variant_new("(i)", return_code));
__set_time(real_newtime); // Change both OS time and RTC
diff_time = difftime(real_newtime, cur_time.tv_sec);
- ALARM_MGR_EXCEPTION_PRINT("[TIMESTAMP]Current time(%d.%09d), New time(%d.%09d), Real Newtime(%d), diff_time(%f)",
+ ALARM_MGR_LOG_PRINT("[TIMESTAMP]Current time(%d.%09d), New time(%d.%09d), Real Newtime(%d), diff_time(%f)",
cur_time.tv_sec, cur_time.tv_nsec, new_sec, new_nsec, real_newtime, diff_time);
ALARM_MGR_LOG_PRINT("Requested(%d.%09d) Delay(%d.%09d) Sleep(%09d)", req_sec, req_nsec, delay.tv_sec, delay.tv_nsec, sleep_time.tv_nsec);
__reschedule_alarms_with_newtime(cur_time.tv_sec, real_newtime, diff_time);
char log_message[ALARMMGR_LOG_MESSAGE_SIZE] = {0,};
#endif
- ALARM_MGR_EXCEPTION_PRINT("[TIMESTAMP]Set the timezone to %s.", tzpath_str);
+ ALARM_MGR_LOG_PRINT("[TIMESTAMP]Set the timezone to %s.", tzpath_str);
if (stat(tzpath_str, &statbuf) == -1 && errno == ENOENT) {
ALARM_MGR_EXCEPTION_PRINT("Invalid tzpath, %s", tzpath_str);
#endif
ret = false;
} else {
- ALARM_MGR_EXCEPTION_PRINT("alarm_id[%d] is removed.", alarm_id);
+ ALARM_MGR_LOG_PRINT("alarm_id[%d] is removed.", alarm_id);
#ifdef _APPFW_FEATURE_ALARM_MANAGER_MODULE_LOG
strncpy(log_tag, "DELETE", strlen("DELETE"));
#endif
if (is_found)
{
- ALARM_MGR_EXCEPTION_PRINT("alarm_id[%d] is removed.", entry->alarm_id);
+ ALARM_MGR_LOG_PRINT("alarm_id[%d] is removed.", entry->alarm_id);
SECURE_LOGD("Removing is done. app_name[%s], alarm_id [%d]\n", tmp_appname, entry->alarm_id);
alarm_context.alarms = g_slist_remove(alarm_context.alarms, entry);
g_free(entry);
static void on_bus_acquired(GDBusConnection *connection, const gchar *name, gpointer user_data)
{
- ALARM_MGR_EXCEPTION_PRINT("on_bus_acquired");
+ ALARM_MGR_LOG_PRINT("on_bus_acquired");
interface = alarm_manager_skeleton_new();
if (interface == NULL) {
static void __initialize()
{
+#if !(GLIB_CHECK_VERSION(2, 36, 0))
g_type_init();
+#endif
__initialize_timer();
if (__initialize_dbus() == false) { /* because dbus's initialize
*
*/
+#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/time.h>
#include <string.h>
#include <glib.h>
#include <fcntl.h>
ALARM_MGR_EXCEPTION_PRINT("[alarm-lib] : unexpected signal");
g_variant_get(param, "(is)", &alarm_id, &package_name);
- ALARM_MGR_EXCEPTION_PRINT("[alarm-lib] : Alarm expired for [%s] : Alarm id [%d]", package_name, alarm_id);
+ ALARM_MGR_LOG_PRINT("[alarm-lib] : Alarm expired for [%s] : Alarm id [%d]", package_name, alarm_id);
if (alarm_context.alarm_handler != NULL) {
alarm_context.alarm_handler(alarm_id, alarm_context.user_param);
return ALARMMGR_RESULT_SUCCESS;
}
-#if !GLIB_CHECK_VERSION(2,32,0)
+#if !(GLIB_CHECK_VERSION(2, 32, 0))
g_thread_init(NULL);
#endif
+#if !(GLIB_CHECK_VERSION(2, 36, 0))
g_type_init();
+#endif
alarm_context.connection = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &error);
if (alarm_context.connection == NULL) {
if (ret < 0)
return ret;
- ALARM_MGR_EXCEPTION_PRINT("start(%d-%d-%d, %02d:%02d:%02d), end(%d-%d-%d), repeat(%d), interval(%d), type(%d)",
+ ALARM_MGR_LOG_PRINT("start(%d-%d-%d, %02d:%02d:%02d), end(%d-%d-%d), repeat(%d), interval(%d), type(%d)",
alarm_info->start.day, alarm_info->start.month, alarm_info->start.year,
alarm_info->start.hour, alarm_info->start.min, alarm_info->start.sec,
alarm_info->end.year, alarm_info->end.month, alarm_info->end.day,
alarm_info.mode.u_interval.interval = interval;
}
- ALARM_MGR_EXCEPTION_PRINT("trigger_at_time(%d), start(%d-%d-%d, %02d:%02d:%02d), repeat(%d), interval(%d), type(%d)",
+ ALARM_MGR_LOG_PRINT("trigger_at_time(%d), start(%d-%d-%d, %02d:%02d:%02d), repeat(%d), interval(%d), type(%d)",
trigger_at_time, alarm_info.start.day, alarm_info.start.month, alarm_info.start.year,
alarm_info.start.hour, alarm_info.start.min, alarm_info.start.sec,
alarm_info.mode.repeat, alarm_info.mode.u_interval.interval, alarm_info.alarm_type);
alarm_info.mode.u_interval.interval = interval;
}
- ALARM_MGR_EXCEPTION_PRINT("trigger_at_time(%d), start(%d-%d-%d, %02d:%02d:%02d), repeat(%d), interval(%d), type(%d)",
+ ALARM_MGR_LOG_PRINT("trigger_at_time(%d), start(%d-%d-%d, %02d:%02d:%02d), repeat(%d), interval(%d), type(%d)",
trigger_at_time, alarm_info.start.day, alarm_info.start.month, alarm_info.start.year,
alarm_info.start.hour, alarm_info.start.min, alarm_info.start.sec,
alarm_info.mode.repeat, alarm_info.mode.u_interval, alarm_info.alarm_type);
char appid[256] = {0,};
if (aul_app_get_appid_bypid(getpid(), appid, sizeof(appid)) != AUL_R_OK) {
- ALARM_MGR_LOG_PRINT("aul_app_get_appid_bypid() is failed. PID %d may not be app.", getpid());
+ ALARM_MGR_EXCEPTION_PRINT("aul_app_get_appid_bypid() is failed. PID %d may not be app.", getpid());
}
ret = alarmmgr_init(appid);
alarm_info.mode.u_interval.interval = interval;
}
- ALARM_MGR_EXCEPTION_PRINT("trigger_at_time(%d), start(%d-%d-%d, %02d:%02d:%02d), repeat(%d), interval(%d), type(%d)",
+ ALARM_MGR_LOG_PRINT("trigger_at_time(%d), start(%d-%d-%d, %02d:%02d:%02d), repeat(%d), interval(%d), type(%d)",
trigger_at_time, alarm_info.start.day, alarm_info.start.month, alarm_info.start.year,
alarm_info.start.hour, alarm_info.start.min, alarm_info.start.sec,
alarm_info.mode.repeat, alarm_info.mode.u_interval.interval, alarm_info.alarm_type);
}
if (error != NULL) {
- ALARM_MGR_LOG_PRINT("Alarm server is not ready dbus. error message %s.", error->message);
+ ALARM_MGR_EXCEPTION_PRINT("Alarm server is not ready dbus. error message %s.", error->message);
return ERR_ALARM_SYSTEM_FAIL;
}
if (alarm_array == NULL) {
- ALARM_MGR_LOG_PRINT("alarm server is not initilized.");
+ ALARM_MGR_EXCEPTION_PRINT("alarm server is not initilized.");
return ERR_ALARM_SYSTEM_FAIL;
}
char appid[256] = {0,};
if (aul_app_get_appid_bypid(getpid(), appid, sizeof(appid)) != AUL_R_OK) {
- ALARM_MGR_LOG_PRINT("aul_app_get_appid_bypid() is failed. PID %d may not be app.",
+ ALARM_MGR_EXCEPTION_PRINT("aul_app_get_appid_bypid() is failed. PID %d may not be app.",
getpid());
}
char appid[256] = {0,};
if (aul_app_get_appid_bypid(getpid(), appid, sizeof(appid)) != AUL_R_OK) {
- ALARM_MGR_LOG_PRINT("aul_app_get_appid_bypid() is failed. PID %d may not be app.",
+ ALARM_MGR_EXCEPTION_PRINT("aul_app_get_appid_bypid() is failed. PID %d may not be app.",
getpid());
}