2 * Copyright (c) 2016 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_SENSOR_RECORDER_TYPES_INTERNAL_H__
18 #define __CONTEXT_SENSOR_RECORDER_TYPES_INTERNAL_H__
21 #define PEDOMETER_RECORD "SensorPedometerRecord"
22 #define PRESSURE_RECORD "SensorPressureRecord"
23 #define CLIENT_INFO "SensorClientInfo"
26 #define PRIV_HEALTHINFO "healthinfo"
29 #define SECONDS_PER_MINUTE 60
30 #define SECONDS_PER_HOUR 3600
31 #define SECONDS_PER_DAY 86400
33 /* Default Parameters */
34 #define DEFAULT_RETENTION SECONDS_PER_HOUR /* 1 hour */
35 #define DEFAULT_QUERY_PERIOD SECONDS_PER_DAY /* 1 day */
37 /* Time Conversions */
38 #define SEC_TO_MS(X) ((X) * 1000)
40 #endif /* __CONTEXT_SENSOR_RECORDER_TYPES_INTERNAL_H__ */