common_library: gettid is multiple declaration in cl_error
[staging/basesystem.git] / video_in_hal / stub / clock / client_display_time / src / DTime_Api.cpp
1 /*
2  * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 /*
18  * Information.
19  * This source code is a sample source code .
20  * Implementation of the function must be performed by the vendor.
21  */
22
23 #include <stub/DTime_Api.h>
24 #include <native_service/frameworkunified_framework_if.h>
25
26 #define DTIME_PARAM_NG      FALSE
27 #define DTIME_PARAM_OK      TRUE
28
29 /******************************************************************************
30  *  API name : DTime_loadDisplaySetting
31  *  Function : Load display setting
32  *  Outline  :
33  ******************************************************************************/
34 EFrameworkunifiedStatus  DTime_loadDisplaySetting(HANDLE h_app, T_DisplaySetting *setting ) {
35   /*
36    *  Note.
37    *  This feature needs to be implemented by the vendor.
38    */
39     return eFrameworkunifiedStatusOK;
40 }
41
42 /******************************************************************************
43  *  API name : DTime_getDisplaySetting
44  *  Function : Get display setting
45  *  Outline  :
46  ******************************************************************************/
47 EFrameworkunifiedStatus  DTime_getDisplaySetting(HANDLE h_app, T_DisplaySetting *setting ) {
48   /*
49    *  Note.
50    *  This feature needs to be implemented by the vendor.
51    */
52     return eFrameworkunifiedStatusOK;
53 }
54
55 /******************************************************************************
56  *  API name : DTime_setGpsTime
57  *  Function : GPS time setting
58  *  Outline  :
59  ******************************************************************************/
60 EFrameworkunifiedStatus  DTime_setGpsTime(HANDLE h_app, T_DTIME_MSG_GPSTIME *gps_time ) {
61   /*
62    *  Note.
63    *  This feature needs to be implemented by the vendor.
64    */
65     return eFrameworkunifiedStatusOK;
66 }
67
68 /******************************************************************************
69  *  API name : DTime_registerListener_DTime
70  *  Function : Display time delivery registration
71  *  Outline  :
72  ******************************************************************************/
73 EFrameworkunifiedStatus  DTime_registerListener_DTime(HANDLE h_app, PCSTR notify_name) {
74   /*
75    *  Note.
76    *  This feature needs to be implemented by the vendor.
77    */
78     return eFrameworkunifiedStatusOK;
79 }
80
81 /******************************************************************************
82  *  API name : DTime_UnregisterListener_DTime
83  *  Function : Release time delivery registration
84  *  Outline  :
85  ******************************************************************************/
86 EFrameworkunifiedStatus  DTime_UnregisterListener_DTime(HANDLE h_app, PCSTR notify_name) {
87   /*
88    *  Note.
89    *  This feature needs to be implemented by the vendor.
90    */
91     return eFrameworkunifiedStatusOK;
92 }
93
94 /******************************************************************************
95  *  API name : DTime_setAutoAdjust
96  *  Function : GPS auto adjust setting
97  *  Outline  :
98  ******************************************************************************/
99 EFrameworkunifiedStatus  DTime_setAutoAdjust(HANDLE h_app, BOOL setting, T_TimeOffset *offset) {
100   /*
101    *  Note.
102    *  This feature needs to be implemented by the vendor.
103    */
104     return eFrameworkunifiedStatusOK;
105 }
106
107 /******************************************************************************
108  *  API name : DTime_increaseHour
109  *  Function : Adjust the time (hour increaase)
110  *  Outline  :
111  ******************************************************************************/
112 EFrameworkunifiedStatus  DTime_increaseHour(HANDLE h_app) {
113   /*
114    *  Note.
115    *  This feature needs to be implemented by the vendor.
116    */
117     return eFrameworkunifiedStatusOK;
118 }
119
120 /******************************************************************************
121  *  API name : DTime_decreaseHour
122  *  Function : Adjust the time (hour decrease)
123  *  Outline  :
124  ******************************************************************************/
125 EFrameworkunifiedStatus  DTime_decreaseHour(HANDLE h_app) {
126   /*
127    *  Note.
128    *  This feature needs to be implemented by the vendor.
129    */
130     return eFrameworkunifiedStatusOK;
131 }
132
133 /******************************************************************************
134  *  API name : DTime_increaseMinute
135  *  Function : Adjust the time (minute increaase)
136  *  Outline  :
137  ******************************************************************************/
138 EFrameworkunifiedStatus  DTime_increaseMinute(HANDLE h_app) {
139   /*
140    *  Note.
141    *  This feature needs to be implemented by the vendor.
142    */
143     return eFrameworkunifiedStatusOK;
144 }
145
146 /******************************************************************************
147  *  API name : DTime_decreaseMinute
148  *  Function : Adjust the time (minute decrease)
149  *  Outline  :
150  ******************************************************************************/
151 EFrameworkunifiedStatus  DTime_decreaseMinute(HANDLE h_app) {
152   /*
153    *  Note.
154    *  This feature needs to be implemented by the vendor.
155    */
156     return eFrameworkunifiedStatusOK;
157 }
158
159 /******************************************************************************
160  *  API name : DTime_clearMinute
161  *  Function : Adjust the time (minute clear)
162  *  Outline  :
163  ******************************************************************************/
164 EFrameworkunifiedStatus  DTime_clearMinute(HANDLE h_app) {
165   /*
166    *  Note.
167    *  This feature needs to be implemented by the vendor.
168    */
169     return eFrameworkunifiedStatusOK;
170 }
171
172 /******************************************************************************
173  *  API name : DTime_setAMPM
174  *  Function : AM/PM setting
175  *  Outline  :
176  ******************************************************************************/
177 EFrameworkunifiedStatus  DTime_setAMPM(HANDLE h_app, BOOL meridiem) {
178   /*
179    *  Note.
180    *  This feature needs to be implemented by the vendor.
181    */
182     return eFrameworkunifiedStatusOK;
183 }
184
185 /******************************************************************************
186  *  API name : DTime_setFormat
187  *  Function : Format setting
188  *  Outline  :
189  ******************************************************************************/
190 EFrameworkunifiedStatus  DTime_setFormat(HANDLE h_app, BOOL setting ) {
191   /*
192    *  Note.
193    *  This feature needs to be implemented by the vendor.
194    */
195     return eFrameworkunifiedStatusOK;
196 }
197
198 /******************************************************************************
199  *  API name : DTime_setTimeZone
200  *  Function : Time zone setting
201  *  Outline  :
202  ******************************************************************************/
203 EFrameworkunifiedStatus  DTime_setTimeZone(HANDLE h_app, BOOL b_auto, T_TimeDiff *diff ) {
204   /*
205    *  Note.
206    *  This feature needs to be implemented by the vendor.
207    */
208     return eFrameworkunifiedStatusOK;
209 }
210
211 /******************************************************************************
212  *  API name : DTime_setDST
213  *  Function : DST setting
214  *  Outline  :
215  ******************************************************************************/
216 EFrameworkunifiedStatus  DTime_setDST(HANDLE h_app, BOOL b_auto, BOOL setting ) {
217   /*
218    *  Note.
219    *  This feature needs to be implemented by the vendor.
220    */
221     return eFrameworkunifiedStatusOK;
222 }
223
224
225 /******************************************************************************
226  *  API name : DTime_notifySwOff
227  *  Function : SW OFF notification
228  *  Outline  :
229  *  Note     : Used to notify the SW OFF of on-screen operations.
230  ******************************************************************************/
231 EFrameworkunifiedStatus DTime_notifySwOff(HANDLE h_app) {
232   /*
233    *  Note.
234    *  This feature needs to be implemented by the vendor.
235    */
236     return eFrameworkunifiedStatusOK;
237 }
238
239 /** Parameter check functions **/
240 BOOL CheckParamTimeZone(T_TimeDiff *diff) {
241   /*
242    *  Note.
243    *  This feature needs to be implemented by the vendor.
244    */
245     return DTIME_PARAM_OK;
246 }