2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __CONTEXT_STATS_COMMON_TYPES_H__
18 #define __CONTEXT_STATS_COMMON_TYPES_H__
20 #define DEFAULT_TIMESPAN 30
21 #define DEFAULT_LIMIT 10
23 #define STATS_QUERY_RESULT "QueryResult"
24 #define STATS_RESULT_SIZE "ResultSize"
25 #define STATS_COL_ROW_ID "row_id"
27 #define STATS_TIMESPAN "TimeSpan"
28 #define STATS_START_TIME "StartTime"
29 #define STATS_END_TIME "EndTime"
30 #define STATS_LAST_TIME "LastTime"
31 #define STATS_TOTAL_COUNT "TotalCount"
32 #define STATS_AVERAGE_COUNT "AvgCount"
33 #define STATS_DURATION "Duration"
34 #define STATS_TOTAL_DURATION "TotalDuration"
35 #define STATS_DAY_OF_WEEK "DayOfWeek"
36 #define STATS_HOUR_OF_DAY "HourOfDay"
37 #define STATS_TIME_OF_DAY "TimeOfDay"
38 #define STATS_TOTAL_COUNT "TotalCount"
39 #define STATS_APP_ID "AppId"
40 #define STATS_PKG_ID "PkgId"
41 #define STATS_AUDIO_JACK "AudioJack"
42 #define STATS_SYSTEM_VOLUME "SystemVolume"
43 #define STATS_MEDIA_VOLUME "MediaVolume"
44 #define STATS_BSSID "BSSID"
45 #define STATS_UNIV_TIME "UTC"
46 #define STATS_LOCAL_TIME "LocalTime"
47 #define STATS_RANK "Rank"
49 #define STATS_SUN "Sun"
50 #define STATS_MON "Mon"
51 #define STATS_TUE "Tue"
52 #define STATS_WED "Wed"
53 #define STATS_THU "Thu"
54 #define STATS_FRI "Fri"
55 #define STATS_SAT "Sat"
56 #define STATS_WEEKDAY "Weekday"
57 #define STATS_WEEKEND "Weekend"
59 enum stats_day_of_week_e {
60 STATS_DAY_OF_WEEK_WEEKDAY = 1,
61 STATS_DAY_OF_WEEK_WEEKEND,
62 STATS_DAY_OF_WEEK_ALL,
63 STATS_DAY_OF_WEEK_SUN,
64 STATS_DAY_OF_WEEK_MON,
65 STATS_DAY_OF_WEEK_TUE,
66 STATS_DAY_OF_WEEK_WED,
67 STATS_DAY_OF_WEEK_THU,
68 STATS_DAY_OF_WEEK_FRI,
69 STATS_DAY_OF_WEEK_SAT,