Improve variable naming style
[platform/core/system/deviced.git] / src / auto-test / test_dbus_interface.c
1 /*
2  * test
3  *
4  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the License);
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19 #include "test.h"
20 #include "test_dbus_interface.h"
21
22 // /
23
24 // /Org
25
26 // /Org/Tizen
27
28 // /Org/Tizen/System
29
30 // /Org/Tizen/System/DeviceD
31
32 // /Org/Tizen/System/DeviceD/Tzip
33 // org.tizen.system.deviced.Tzip
34
35 // IsMounted : in s, out i
36
37 gint test_deviced_Tzip_IsMounted(const gchar *param1)
38 {
39         gint val1;
40         GVariant *reply;
41         int ret_dbus;
42
43         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
44                         "/Org/Tizen/System/DeviceD/Tzip",
45                         "org.tizen.system.deviced.Tzip",
46                         "IsMounted",
47                         g_variant_new("(s)", param1),
48                         &reply);;
49         if (ret_dbus < 0) {
50                 _E("failed IsMounted");
51                 return 0;
52         }
53
54         g_variant_get(reply, "(i)", &val1);
55         g_variant_unref(reply);
56
57         return val1;
58 }
59
60 // UnmountSync : in s, out i
61
62 gint test_deviced_Tzip_UnmountSync(const gchar *param1)
63 {
64         gint val1;
65         GVariant *reply;
66         int ret_dbus;
67
68         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
69                         "/Org/Tizen/System/DeviceD/Tzip",
70                         "org.tizen.system.deviced.Tzip",
71                         "UnmountSync",
72                         g_variant_new("(s)", param1),
73                         &reply);;
74         if (ret_dbus < 0) {
75                 _E("failed UnmountSync");
76                 return 0;
77         }
78
79         g_variant_get(reply, "(i)", &val1);
80         g_variant_unref(reply);
81
82         return val1;
83 }
84
85 // MountSync : in sss, out i
86
87 gint test_deviced_Tzip_MountSync(const gchar *param1, const gchar *param2, const gchar *param3)
88 {
89         gint val1;
90         GVariant *reply;
91         int ret_dbus;
92
93         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
94                         "/Org/Tizen/System/DeviceD/Tzip",
95                         "org.tizen.system.deviced.Tzip",
96                         "MountSync",
97                         g_variant_new("(sss)", param1, param2, param3),
98                         &reply);;
99         if (ret_dbus < 0) {
100                 _E("failed MountSync");
101                 return 0;
102         }
103
104         g_variant_get(reply, "(i)", &val1);
105         g_variant_unref(reply);
106
107         return val1;
108 }
109
110 // Unmount : in s, out i
111
112 gint test_deviced_Tzip_Unmount(const gchar *param1)
113 {
114         gint val1;
115         GVariant *reply;
116         int ret_dbus;
117
118         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
119                         "/Org/Tizen/System/DeviceD/Tzip",
120                         "org.tizen.system.deviced.Tzip",
121                         "Unmount",
122                         g_variant_new("(s)", param1),
123                         &reply);;
124         if (ret_dbus < 0) {
125                 _E("failed Unmount");
126                 return 0;
127         }
128
129         g_variant_get(reply, "(i)", &val1);
130         g_variant_unref(reply);
131
132         return val1;
133 }
134
135 // Mount : in sss, out i
136
137 gint test_deviced_Tzip_Mount(const gchar *param1, const gchar *param2, const gchar *param3)
138 {
139         gint val1;
140         GVariant *reply;
141         int ret_dbus;
142
143         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
144                         "/Org/Tizen/System/DeviceD/Tzip",
145                         "org.tizen.system.deviced.Tzip",
146                         "Mount",
147                         g_variant_new("(sss)", param1, param2, param3),
148                         &reply);;
149         if (ret_dbus < 0) {
150                 _E("failed Mount");
151                 return 0;
152         }
153
154         g_variant_get(reply, "(i)", &val1);
155         g_variant_unref(reply);
156
157         return val1;
158 }
159
160 // /Org/Tizen/System/DeviceD/ExtCon
161 // org.tizen.system.deviced.ExtCon
162
163 // disable : in s, out i
164
165 gint test_deviced_ExtCon_disable(const gchar *param1)
166 {
167         gint val1;
168         GVariant *reply;
169         int ret_dbus;
170
171         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
172                         "/Org/Tizen/System/DeviceD/ExtCon",
173                         "org.tizen.system.deviced.ExtCon",
174                         "disable",
175                         g_variant_new("(s)", param1),
176                         &reply);;
177         if (ret_dbus < 0) {
178                 _E("failed disable");
179                 return 0;
180         }
181
182         g_variant_get(reply, "(i)", &val1);
183         g_variant_unref(reply);
184
185         return val1;
186 }
187
188 // enable : in s, out i
189
190 gint test_deviced_ExtCon_enable(const gchar *param1)
191 {
192         gint val1;
193         GVariant *reply;
194         int ret_dbus;
195
196         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
197                         "/Org/Tizen/System/DeviceD/ExtCon",
198                         "org.tizen.system.deviced.ExtCon",
199                         "enable",
200                         g_variant_new("(s)", param1),
201                         &reply);;
202         if (ret_dbus < 0) {
203                 _E("failed enable");
204                 return 0;
205         }
206
207         g_variant_get(reply, "(i)", &val1);
208         g_variant_unref(reply);
209
210         return val1;
211 }
212
213 // GetStatus : in s, out i
214
215 gint test_deviced_ExtCon_GetStatus(const gchar *param1)
216 {
217         gint val1;
218         GVariant *reply;
219         int ret_dbus;
220
221         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
222                         "/Org/Tizen/System/DeviceD/ExtCon",
223                         "org.tizen.system.deviced.ExtCon",
224                         "GetStatus",
225                         g_variant_new("(s)", param1),
226                         &reply);;
227         if (ret_dbus < 0) {
228                 _E("failed GetStatus");
229                 return 0;
230         }
231
232         g_variant_get(reply, "(i)", &val1);
233         g_variant_unref(reply);
234
235         return val1;
236 }
237
238 // /Org/Tizen/System/DeviceD/UsbHostTest
239 // org.tizen.system.deviced.UsbHostTest
240
241 // stop : in , out
242
243 void test_deviced_UsbHostTest_stop(void)
244 {
245         int ret_dbus;
246         GVariant *reply;
247         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
248                         "/Org/Tizen/System/DeviceD/UsbHostTest",
249                         "org.tizen.system.deviced.UsbHostTest",
250                         "stop",
251                         NULL,
252                         &reply);;
253         if (ret_dbus < 0)
254                 return;
255         if (reply)
256                 g_variant_unref(reply);
257
258 }
259
260 // start : in , out
261
262 void test_deviced_UsbHostTest_start(void)
263 {
264         int ret_dbus;
265         GVariant *reply;
266         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
267                         "/Org/Tizen/System/DeviceD/UsbHostTest",
268                         "org.tizen.system.deviced.UsbHostTest",
269                         "start",
270                         NULL,
271                         &reply);;
272         if (ret_dbus < 0)
273                 return;
274         if (reply)
275                 g_variant_unref(reply);
276
277 }
278
279 // /Org/Tizen/System/DeviceD/LowPower
280 // org.tizen.system.deviced.lowpower
281
282 // GetState : in , out i
283
284 gint test_deviced_lowpower_GetState(void)
285 {
286         gint val1;
287         GVariant *reply;
288         int ret_dbus;
289
290         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
291                         "/Org/Tizen/System/DeviceD/LowPower",
292                         "org.tizen.system.deviced.lowpower",
293                         "GetState",
294                         NULL,
295                         &reply);;
296         if (ret_dbus < 0) {
297                 _E("failed GetState");
298                 return 0;
299         }
300
301         g_variant_get(reply, "(i)", &val1);
302         g_variant_unref(reply);
303
304         return val1;
305 }
306
307 // Stop : in , out i
308
309 gint test_deviced_lowpower_Stop(void)
310 {
311         gint val1;
312         GVariant *reply;
313         int ret_dbus;
314
315         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
316                         "/Org/Tizen/System/DeviceD/LowPower",
317                         "org.tizen.system.deviced.lowpower",
318                         "Stop",
319                         NULL,
320                         &reply);;
321         if (ret_dbus < 0) {
322                 _E("failed Stop");
323                 return 0;
324         }
325
326         g_variant_get(reply, "(i)", &val1);
327         g_variant_unref(reply);
328
329         return val1;
330 }
331
332 // Start : in , out i
333
334 gint test_deviced_lowpower_Start(void)
335 {
336         gint val1;
337         GVariant *reply;
338         int ret_dbus;
339
340         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
341                         "/Org/Tizen/System/DeviceD/LowPower",
342                         "org.tizen.system.deviced.lowpower",
343                         "Start",
344                         NULL,
345                         &reply);;
346         if (ret_dbus < 0) {
347                 _E("failed Start");
348                 return 0;
349         }
350
351         g_variant_get(reply, "(i)", &val1);
352         g_variant_unref(reply);
353
354         return val1;
355 }
356
357 // /Org/Tizen/System/DeviceD/Ir
358 // org.tizen.system.deviced.ir
359
360 // TransmitIR : in ai, out i
361
362 gint test_deviced_ir_TransmitIR(gint param2)
363 {
364         gint val1;
365         GVariant *reply;
366         int ret_dbus;
367
368         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
369                         "/Org/Tizen/System/DeviceD/Ir",
370                         "org.tizen.system.deviced.ir",
371                         "TransmitIR",
372                         g_variant_new("(ai)", param2),
373                         &reply);;
374         if (ret_dbus < 0) {
375                 _E("failed TransmitIR");
376                 return 0;
377         }
378
379         g_variant_get(reply, "(i)", &val1);
380         g_variant_unref(reply);
381
382         return val1;
383 }
384
385 // IRIsAvailable : in , out i
386
387 gint test_deviced_ir_IRIsAvailable(void)
388 {
389         gint val1;
390         GVariant *reply;
391         int ret_dbus;
392
393         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
394                         "/Org/Tizen/System/DeviceD/Ir",
395                         "org.tizen.system.deviced.ir",
396                         "IRIsAvailable",
397                         NULL,
398                         &reply);;
399         if (ret_dbus < 0) {
400                 _E("failed IRIsAvailable");
401                 return 0;
402         }
403
404         g_variant_get(reply, "(i)", &val1);
405         g_variant_unref(reply);
406
407         return val1;
408 }
409
410 // /Org/Tizen/System/DeviceD/PowerOff
411 // org.tizen.system.deviced.PowerOff
412
413 // RemovePowerOffWait : in , out i
414
415 gint test_deviced_PowerOff_RemovePowerOffWait(void)
416 {
417         gint val1;
418         GVariant *reply;
419         int ret_dbus;
420
421         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
422                         "/Org/Tizen/System/DeviceD/PowerOff",
423                         "org.tizen.system.deviced.PowerOff",
424                         "RemovePowerOffWait",
425                         NULL,
426                         &reply);;
427         if (ret_dbus < 0) {
428                 _E("failed RemovePowerOffWait");
429                 return 0;
430         }
431
432         g_variant_get(reply, "(i)", &val1);
433         g_variant_unref(reply);
434
435         return val1;
436 }
437
438 // AddPowerOffWait : in , out i
439
440 gint test_deviced_PowerOff_AddPowerOffWait(void)
441 {
442         gint val1;
443         GVariant *reply;
444         int ret_dbus;
445
446         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
447                         "/Org/Tizen/System/DeviceD/PowerOff",
448                         "org.tizen.system.deviced.PowerOff",
449                         "AddPowerOffWait",
450                         NULL,
451                         &reply);;
452         if (ret_dbus < 0) {
453                 _E("failed AddPowerOffWait");
454                 return 0;
455         }
456
457         g_variant_get(reply, "(i)", &val1);
458         g_variant_unref(reply);
459
460         return val1;
461 }
462
463 // PowerOffWithOption : in ss, out i
464
465 gint test_deviced_PowerOff_PowerOffWithOption(const gchar *param1, const gchar *param2)
466 {
467         gint val1;
468         GVariant *reply;
469         int ret_dbus;
470
471         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
472                         "/Org/Tizen/System/DeviceD/PowerOff",
473                         "org.tizen.system.deviced.PowerOff",
474                         "PowerOffWithOption",
475                         g_variant_new("(ss)", param1, param2),
476                         &reply);;
477         if (ret_dbus < 0) {
478                 _E("failed PowerOffWithOption");
479                 return 0;
480         }
481
482         g_variant_get(reply, "(i)", &val1);
483         g_variant_unref(reply);
484
485         return val1;
486 }
487
488 // PowerOff : in s, out i
489
490 gint test_deviced_PowerOff_PowerOff(const gchar *param1)
491 {
492         gint val1;
493         GVariant *reply;
494         int ret_dbus;
495
496         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
497                         "/Org/Tizen/System/DeviceD/PowerOff",
498                         "org.tizen.system.deviced.PowerOff",
499                         "PowerOff",
500                         g_variant_new("(s)", param1),
501                         &reply);;
502         if (ret_dbus < 0) {
503                 _E("failed PowerOff");
504                 return 0;
505         }
506
507         g_variant_get(reply, "(i)", &val1);
508         g_variant_unref(reply);
509
510         return val1;
511 }
512
513 // /Org/Tizen/System/DeviceD/Battery
514 // org.tizen.system.deviced.Battery
515
516 // MiscEvent : in , out i
517
518 gint test_deviced_Battery_MiscEvent(void)
519 {
520         gint val1;
521         GVariant *reply;
522         int ret_dbus;
523
524         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
525                         "/Org/Tizen/System/DeviceD/Battery",
526                         "org.tizen.system.deviced.Battery",
527                         "MiscEvent",
528                         NULL,
529                         &reply);;
530         if (ret_dbus < 0) {
531                 _E("failed MiscEvent");
532                 return 0;
533         }
534
535         g_variant_get(reply, "(i)", &val1);
536         g_variant_unref(reply);
537
538         return val1;
539 }
540
541 // BatteryProperties : in , out iiiiii
542
543 GVariant * test_deviced_Battery_BatteryProperties(void)
544 {
545         GVariant *reply;
546         int ret_dbus;
547         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
548                         "/Org/Tizen/System/DeviceD/Battery",
549                         "org.tizen.system.deviced.Battery",
550                         "BatteryProperties",
551                         NULL, &reply);
552         if (ret_dbus < 0)
553                 return NULL;
554         return reply;
555 }
556
557 // ChargerCharging : in i, out i
558
559 gint test_deviced_Battery_ChargerCharging(gint param1)
560 {
561         gint val1;
562         GVariant *reply;
563         int ret_dbus;
564
565         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
566                         "/Org/Tizen/System/DeviceD/Battery",
567                         "org.tizen.system.deviced.Battery",
568                         "ChargerCharging",
569                         g_variant_new("(i)", param1),
570                         &reply);;
571         if (ret_dbus < 0) {
572                 _E("failed ChargerCharging");
573                 return 0;
574         }
575
576         g_variant_get(reply, "(i)", &val1);
577         g_variant_unref(reply);
578
579         return val1;
580 }
581
582 // ChargerType : in , out i
583
584 gint test_deviced_Battery_ChargerType(void)
585 {
586         gint val1;
587         GVariant *reply;
588         int ret_dbus;
589
590         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
591                         "/Org/Tizen/System/DeviceD/Battery",
592                         "org.tizen.system.deviced.Battery",
593                         "ChargerType",
594                         NULL,
595                         &reply);;
596         if (ret_dbus < 0) {
597                 _E("failed ChargerType");
598                 return 0;
599         }
600
601         g_variant_get(reply, "(i)", &val1);
602         g_variant_unref(reply);
603
604         return val1;
605 }
606
607 // GetBatteryInfo : in , out isssiiiiiiii
608
609 GVariant * test_deviced_Battery_GetBatteryInfo(void)
610 {
611         GVariant *reply;
612         int ret_dbus;
613
614         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
615                         "/Org/Tizen/System/DeviceD/Battery",
616                         "org.tizen.system.deviced.Battery",
617                         "GetBatteryInfo",
618                         NULL,
619                         &reply);
620         if (ret_dbus < 0)
621                 return NULL;
622         return reply;
623 }
624
625 // power_supply : in sissssss, out i
626
627 gint test_deviced_Battery_power_supply(const gchar *param1, gint param2, const gchar *param3, const gchar *param4, const gchar *param5, const gchar *param6, const gchar *param7, const gchar *param8)
628 {
629         gint val1;
630         GVariant *reply;
631         int ret_dbus;
632
633         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
634                         "/Org/Tizen/System/DeviceD/Battery",
635                         "org.tizen.system.deviced.Battery",
636                         "power_supply",
637                         g_variant_new("(sissssss)", param1, param2, param3, param4, param5, param6, param7, param8),
638                         &reply);;
639         if (ret_dbus < 0) {
640                 _E("failed power_supply");
641                 return 0;
642         }
643
644         g_variant_get(reply, "(i)", &val1);
645         g_variant_unref(reply);
646
647         return val1;
648 }
649
650 // GetHealth : in , out s
651
652 gchar * test_deviced_Battery_GetHealth(void)
653 {
654         gchar *val1;
655         GVariant *reply;
656         int ret_dbus;
657
658         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
659                         "/Org/Tizen/System/DeviceD/Battery",
660                         "org.tizen.system.deviced.Battery",
661                         "GetHealth",
662                         NULL,
663                         &reply);;
664         if (ret_dbus < 0) {
665                 _E("failed GetHealth");
666                 return 0;
667         }
668
669         g_variant_get(reply, "(s)", &val1);
670         g_variant_unref(reply);
671
672         return val1;
673 }
674
675 // IsFull : in , out i
676
677 gint test_deviced_Battery_IsFull(void)
678 {
679         gint val1;
680         GVariant *reply;
681         int ret_dbus;
682
683         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
684                         "/Org/Tizen/System/DeviceD/Battery",
685                         "org.tizen.system.deviced.Battery",
686                         "IsFull",
687                         NULL,
688                         &reply);;
689         if (ret_dbus < 0) {
690                 _E("failed IsFull");
691                 return 0;
692         }
693
694         g_variant_get(reply, "(i)", &val1);
695         g_variant_unref(reply);
696
697         return val1;
698 }
699
700 // GetPercentRaw : in , out i
701
702 gint test_deviced_Battery_GetPercentRaw(void)
703 {
704         gint val1;
705         GVariant *reply;
706         int ret_dbus;
707
708         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
709                         "/Org/Tizen/System/DeviceD/Battery",
710                         "org.tizen.system.deviced.Battery",
711                         "GetPercentRaw",
712                         NULL,
713                         &reply);;
714         if (ret_dbus < 0) {
715                 _E("failed GetPercentRaw");
716                 return 0;
717         }
718
719         g_variant_get(reply, "(i)", &val1);
720         g_variant_unref(reply);
721
722         return val1;
723 }
724
725 // GetPercent : in , out i
726
727 gint test_deviced_Battery_GetPercent(void)
728 {
729         gint val1;
730         GVariant *reply;
731         int ret_dbus;
732
733         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
734                         "/Org/Tizen/System/DeviceD/Battery",
735                         "org.tizen.system.deviced.Battery",
736                         "GetPercent",
737                         NULL,
738                         &reply);;
739         if (ret_dbus < 0) {
740                 _E("failed GetPercent");
741                 return 0;
742         }
743
744         g_variant_get(reply, "(i)", &val1);
745         g_variant_unref(reply);
746
747         return val1;
748 }
749
750 // BatteryStatusLow : in , out i
751
752 gint test_deviced_Battery_BatteryStatusLow(void)
753 {
754         gint val1;
755         GVariant *reply;
756         int ret_dbus;
757
758         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
759                         "/Org/Tizen/System/DeviceD/Battery",
760                         "org.tizen.system.deviced.Battery",
761                         "BatteryStatusLow",
762                         NULL,
763                         &reply);;
764         if (ret_dbus < 0) {
765                 _E("failed BatteryStatusLow");
766                 return 0;
767         }
768
769         g_variant_get(reply, "(i)", &val1);
770         g_variant_unref(reply);
771
772         return val1;
773 }
774
775 // ChargeNow : in , out i
776
777 gint test_deviced_Battery_ChargeNow(void)
778 {
779         gint val1;
780         GVariant *reply;
781         int ret_dbus;
782
783         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
784                         "/Org/Tizen/System/DeviceD/Battery",
785                         "org.tizen.system.deviced.Battery",
786                         "ChargeNow",
787                         NULL,
788                         &reply);;
789         if (ret_dbus < 0) {
790                 _E("failed ChargeNow");
791                 return 0;
792         }
793
794         g_variant_get(reply, "(i)", &val1);
795         g_variant_unref(reply);
796
797         return val1;
798 }
799
800 // ChargerStatus : in , out i
801
802 gint test_deviced_Battery_ChargerStatus(void)
803 {
804         gint val1;
805         GVariant *reply;
806         int ret_dbus;
807
808         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
809                         "/Org/Tizen/System/DeviceD/Battery",
810                         "org.tizen.system.deviced.Battery",
811                         "ChargerStatus",
812                         NULL,
813                         &reply);;
814         if (ret_dbus < 0) {
815                 _E("failed ChargerStatus");
816                 return 0;
817         }
818
819         g_variant_get(reply, "(i)", &val1);
820         g_variant_unref(reply);
821
822         return val1;
823 }
824
825 // GetLowbatLevel : in , out i
826
827 gint test_deviced_Battery_GetLowbatLevel(void)
828 {
829         gint val1;
830         GVariant *reply;
831         int ret_dbus;
832
833         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
834                         "/Org/Tizen/System/DeviceD/Battery",
835                         "org.tizen.system.deviced.Battery",
836                         "GetLowbatLevel",
837                         NULL,
838                         &reply);;
839         if (ret_dbus < 0) {
840                 _E("failed GetLowbatLevel");
841                 return 0;
842         }
843
844         g_variant_get(reply, "(i)", &val1);
845         g_variant_unref(reply);
846
847         return val1;
848 }
849
850 // SetLowbatLevel : in i, out i
851
852 gint test_deviced_Battery_SetLowbatLevel(gint param1)
853 {
854         gint val1;
855         GVariant *reply;
856         int ret_dbus;
857
858         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
859                         "/Org/Tizen/System/DeviceD/Battery",
860                         "org.tizen.system.deviced.Battery",
861                         "SetLowbatLevel",
862                         g_variant_new("(i)", param1),
863                         &reply);;
864         if (ret_dbus < 0) {
865                 _E("failed SetLowbatLevel");
866                 return 0;
867         }
868
869         g_variant_get(reply, "(i)", &val1);
870         g_variant_unref(reply);
871
872         return val1;
873 }
874
875 // TimeToEmpty : in , out i
876
877 gint test_deviced_Battery_TimeToEmpty(void)
878 {
879         gint val1;
880         GVariant *reply;
881         int ret_dbus;
882
883         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
884                         "/Org/Tizen/System/DeviceD/Battery",
885                         "org.tizen.system.deviced.Battery",
886                         "TimeToEmpty",
887                         NULL,
888                         &reply);;
889         if (ret_dbus < 0) {
890                 _E("failed TimeToEmpty");
891                 return 0;
892         }
893
894         g_variant_get(reply, "(i)", &val1);
895         g_variant_unref(reply);
896
897         return val1;
898 }
899
900 // TimeToFull : in , out i
901
902 gint test_deviced_Battery_TimeToFull(void)
903 {
904         gint val1;
905         GVariant *reply;
906         int ret_dbus;
907
908         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
909                         "/Org/Tizen/System/DeviceD/Battery",
910                         "org.tizen.system.deviced.Battery",
911                         "TimeToFull",
912                         NULL,
913                         &reply);;
914         if (ret_dbus < 0) {
915                 _E("failed TimeToFull");
916                 return 0;
917         }
918
919         g_variant_get(reply, "(i)", &val1);
920         g_variant_unref(reply);
921
922         return val1;
923 }
924
925 // /Org/Tizen/System/DeviceD/Temperature
926 // org.tizen.system.deviced.temperature
927
928 // GetTemperature : in i, out i
929
930 gint test_deviced_temperature_GetTemperature(gint param1)
931 {
932         gint val1;
933         GVariant *reply;
934         int ret_dbus;
935
936         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
937                         "/Org/Tizen/System/DeviceD/Temperature",
938                         "org.tizen.system.deviced.temperature",
939                         "GetTemperature",
940                         g_variant_new("(i)", param1),
941                         &reply);;
942         if (ret_dbus < 0) {
943                 _E("failed GetTemperature");
944                 return 0;
945         }
946
947         g_variant_get(reply, "(i)", &val1);
948         g_variant_unref(reply);
949
950         return val1;
951 }
952
953 // /Org/Tizen/System/DeviceD/BatteryMonitor
954 // org.tizen.system.deviced.BatteryMonitor
955
956 // GetBMData : in , out a(uuuxxa(su))
957
958 GVariant * test_deviced_BatteryMonitor_GetBMData(void)
959 {
960         GVariant *reply;
961         int ret_dbus;
962
963         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
964                         "/Org/Tizen/System/DeviceD/BatteryMonitor",
965                         "org.tizen.system.deviced.BatteryMonitor",
966                         "GetBMData",
967                         NULL,
968                         &reply);
969         if (ret_dbus < 0)
970                 return NULL;
971         return reply;
972 }
973
974 // /Org/Tizen/System/DeviceD/Core
975 // org.tizen.system.deviced.core
976
977 // DeviceList : in , out
978
979 void test_deviced_core_DeviceList(void)
980 {
981         GVariant *reply;
982         int ret_dbus;
983
984         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
985                         "/Org/Tizen/System/DeviceD/Core",
986                         "org.tizen.system.deviced.core",
987                         "DeviceList",
988                         NULL,
989                         &reply);;
990         if (ret_dbus < 0)
991                 return;
992         if (reply)
993                 g_variant_unref(reply);
994 }
995
996 // /Org/Tizen/System/DeviceD/Usbhost
997 // org.tizen.system.deviced.Usbhost
998
999 // OpenDevice : in s, out ih
1000
1001 GVariant * test_deviced_Usbhost_OpenDevice(const gchar *param1)
1002 {
1003         GVariant *reply;
1004         int ret_dbus;
1005
1006         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1007                         "/Org/Tizen/System/DeviceD/Usbhost",
1008                         "org.tizen.system.deviced.Usbhost",
1009                         "OpenDevice",
1010                         g_variant_new("(s)", param1),
1011                         &reply);
1012         if (ret_dbus < 0)
1013                 return NULL;
1014         return reply;
1015 }
1016
1017 // GetDeviceListCount : in i, out i
1018
1019 gint test_deviced_Usbhost_GetDeviceListCount(gint param1)
1020 {
1021         gint val1;
1022         GVariant *reply;
1023         int ret_dbus;
1024
1025         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1026                         "/Org/Tizen/System/DeviceD/Usbhost",
1027                         "org.tizen.system.deviced.Usbhost",
1028                         "GetDeviceListCount",
1029                         g_variant_new("(i)", param1),
1030                         &reply);
1031         if (ret_dbus < 0) {
1032                 _E("failed GetDeviceListCount");
1033                 return 0;
1034         }
1035
1036         g_variant_get(reply, "(i)", &val1);
1037         g_variant_unref(reply);
1038
1039         return val1;
1040 }
1041
1042 // GetDeviceList : in i, out a(siiiiisss)
1043
1044 GVariant * test_deviced_Usbhost_GetDeviceList(gint param1)
1045 {
1046         GVariant *reply;
1047         int ret_dbus;
1048
1049         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1050                         "/Org/Tizen/System/DeviceD/Usbhost",
1051                         "org.tizen.system.deviced.Usbhost",
1052                         "GetDeviceList",
1053                         g_variant_new("(i)", param1),
1054                         &reply);
1055         if (ret_dbus < 0)
1056                 return NULL;
1057         return reply;
1058 }
1059
1060 // PrintPolicy : in , out
1061
1062 void test_deviced_Usbhost_PrintPolicy(void)
1063 {
1064         GVariant *reply;
1065         int ret_dbus;
1066
1067         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1068                         "/Org/Tizen/System/DeviceD/Usbhost",
1069                         "org.tizen.system.deviced.Usbhost",
1070                         "PrintPolicy",
1071                         NULL,
1072                         &reply);
1073         if (ret_dbus < 0)
1074                 return;
1075         if (reply)
1076                 g_variant_unref(reply);
1077
1078 }
1079
1080 // PrintDeviceList : in , out
1081
1082 void test_deviced_Usbhost_PrintDeviceList(void)
1083 {
1084         GVariant *reply;
1085         int ret_dbus;
1086
1087         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1088                         "/Org/Tizen/System/DeviceD/Usbhost",
1089                         "org.tizen.system.deviced.Usbhost",
1090                         "PrintDeviceList",
1091                         NULL,
1092                         &reply);
1093         if (ret_dbus < 0)
1094                 return;
1095         if (reply)
1096                 g_variant_unref(reply);
1097
1098 }
1099
1100 // /Org/Tizen/System/DeviceD/Usb
1101 // org.tizen.system.deviced.Usb
1102
1103 // GetMode : in , out u
1104
1105 guint test_deviced_Usb_GetMode(void)
1106 {
1107         guint val1;
1108         GVariant *reply;
1109         int ret_dbus;
1110
1111         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1112                         "/Org/Tizen/System/DeviceD/Usb",
1113                         "org.tizen.system.deviced.Usb",
1114                         "GetMode",
1115                         NULL,
1116                         &reply);
1117         if (ret_dbus < 0) {
1118                 _E("failed GetMode");
1119                 return 0;
1120         }
1121
1122         g_variant_get(reply, "(u)", &val1);
1123         g_variant_unref(reply);
1124
1125         return val1;
1126 }
1127
1128 // GetState : in , out u
1129
1130 guint test_deviced_Usb_GetState(void)
1131 {
1132         guint val1;
1133         GVariant *reply;
1134         int ret_dbus;
1135
1136         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1137                         "/Org/Tizen/System/DeviceD/Usb",
1138                         "org.tizen.system.deviced.Usb",
1139                         "GetState",
1140                         NULL,
1141                         &reply);
1142         if (ret_dbus < 0) {
1143                 _E("failed GetState");
1144                 return 0;
1145         }
1146
1147         g_variant_get(reply, "(u)", &val1);
1148         g_variant_unref(reply);
1149
1150         return val1;
1151 }
1152
1153 // /Org/Tizen/System/DeviceD/SysNoti
1154 // org.tizen.system.deviced.SysNoti
1155
1156 // GetHDMI : in , out i
1157
1158 gint test_deviced_SysNoti_GetHDMI(void)
1159 {
1160         gint val1;
1161         GVariant *reply;
1162         int ret_dbus;
1163
1164         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1165                         "/Org/Tizen/System/DeviceD/SysNoti",
1166                         "org.tizen.system.deviced.SysNoti",
1167                         "GetHDMI",
1168                         NULL,
1169                         &reply);
1170         if (ret_dbus < 0) {
1171                 _E("failed GetHDMI");
1172                 return 0;
1173         }
1174
1175         g_variant_get(reply, "(i)", &val1);
1176         g_variant_unref(reply);
1177
1178         return val1;
1179 }
1180
1181 // GetCradle : in , out i
1182
1183 gint test_deviced_SysNoti_GetCradle(void)
1184 {
1185         gint val1;
1186         GVariant *reply;
1187         int ret_dbus;
1188
1189         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1190                         "/Org/Tizen/System/DeviceD/SysNoti",
1191                         "org.tizen.system.deviced.SysNoti",
1192                         "GetCradle",
1193                         NULL,
1194                         &reply);
1195         if (ret_dbus < 0) {
1196                 _E("failed GetCradle");
1197                 return 0;
1198         }
1199
1200         g_variant_get(reply, "(i)", &val1);
1201         g_variant_unref(reply);
1202
1203         return val1;
1204 }
1205
1206 // set_timezone : in sis, out i
1207
1208 gint test_deviced_SysNoti_set_timezone(const gchar *param1, gint param2, const gchar *param3)
1209 {
1210         gint val1;
1211         GVariant *reply;
1212         int ret_dbus;
1213
1214         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1215                         "/Org/Tizen/System/DeviceD/SysNoti",
1216                         "org.tizen.system.deviced.SysNoti",
1217                         "set_timezone",
1218                         g_variant_new("(sis)", param1, param2, param3),
1219                         &reply);
1220         if (ret_dbus < 0) {
1221                 _E("failed set_timezone");
1222                 return 0;
1223         }
1224
1225         g_variant_get(reply, "(i)", &val1);
1226         g_variant_unref(reply);
1227
1228         return val1;
1229 }
1230
1231 // set_datetime : in sis, out i
1232
1233 gint test_deviced_SysNoti_set_datetime(const gchar *param1, gint param2, const gchar *param3)
1234 {
1235         gint val1;
1236         GVariant *reply;
1237         int ret_dbus;
1238
1239         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1240                         "/Org/Tizen/System/DeviceD/SysNoti",
1241                         "org.tizen.system.deviced.SysNoti",
1242                         "set_datetime",
1243                         g_variant_new("(sis)", param1, param2, param3),
1244                         &reply);
1245         if (ret_dbus < 0) {
1246                 _E("failed set_datetime");
1247                 return 0;
1248         }
1249
1250         g_variant_get(reply, "(i)", &val1);
1251         g_variant_unref(reply);
1252
1253         return val1;
1254 }
1255
1256 // GetRevision : in , out i
1257
1258 gint test_deviced_SysNoti_GetRevision(void)
1259 {
1260         gint val1;
1261         GVariant *reply;
1262         int ret_dbus;
1263
1264         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1265                         "/Org/Tizen/System/DeviceD/SysNoti",
1266                         "org.tizen.system.deviced.SysNoti",
1267                         "GetRevision",
1268                         NULL,
1269                         &reply);
1270         if (ret_dbus < 0) {
1271                 _E("failed GetRevision");
1272                 return 0;
1273         }
1274
1275         g_variant_get(reply, "(i)", &val1);
1276         g_variant_unref(reply);
1277
1278         return val1;
1279 }
1280
1281 // udev : in sis, out i
1282
1283 gint test_deviced_SysNoti_udev(const gchar *param1, gint param2, const gchar *param3)
1284 {
1285         gint val1;
1286         GVariant *reply;
1287         int ret_dbus;
1288
1289         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1290                         "/Org/Tizen/System/DeviceD/SysNoti",
1291                         "org.tizen.system.deviced.SysNoti",
1292                         "udev",
1293                         g_variant_new("(sis)", param1, param2, param3),
1294                         &reply);
1295         if (ret_dbus < 0) {
1296                 _E("failed udev");
1297                 return 0;
1298         }
1299
1300         g_variant_get(reply, "(i)", &val1);
1301         g_variant_unref(reply);
1302
1303         return val1;
1304 }
1305
1306 // EventStop : in , out i
1307
1308 gint test_deviced_SysNoti_EventStop(void)
1309 {
1310         gint val1;
1311         GVariant *reply;
1312         int ret_dbus;
1313
1314         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1315                         "/Org/Tizen/System/DeviceD/SysNoti",
1316                         "org.tizen.system.deviced.SysNoti",
1317                         "EventStop",
1318                         NULL,
1319                         &reply);
1320         if (ret_dbus < 0) {
1321                 _E("failed EventStop");
1322                 return 0;
1323         }
1324
1325         g_variant_get(reply, "(i)", &val1);
1326         g_variant_unref(reply);
1327
1328         return val1;
1329 }
1330
1331 // EventStart : in , out i
1332
1333 gint test_deviced_SysNoti_EventStart(void)
1334 {
1335         gint val1;
1336         GVariant *reply;
1337         int ret_dbus;
1338
1339         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1340                         "/Org/Tizen/System/DeviceD/SysNoti",
1341                         "org.tizen.system.deviced.SysNoti",
1342                         "EventStart",
1343                         NULL,
1344                         &reply);
1345         if (ret_dbus < 0) {
1346                 _E("failed EventStart");
1347                 return 0;
1348         }
1349
1350         g_variant_get(reply, "(i)", &val1);
1351         g_variant_unref(reply);
1352
1353         return val1;
1354 }
1355
1356 // getcontrol : in siss, out i
1357
1358 gint test_deviced_SysNoti_getcontrol(const gchar *param1, gint param2, const gchar *param3, const gchar *param4)
1359 {
1360         gint val1;
1361         GVariant *reply;
1362         int ret_dbus;
1363
1364         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1365                         "/Org/Tizen/System/DeviceD/SysNoti",
1366                         "org.tizen.system.deviced.SysNoti",
1367                         "getcontrol",
1368                         g_variant_new("(siss)", param1, param2, param3, param4),
1369                         &reply);
1370         if (ret_dbus < 0) {
1371                 _E("failed getcontrol");
1372                 return 0;
1373         }
1374
1375         g_variant_get(reply, "(i)", &val1);
1376         g_variant_unref(reply);
1377
1378         return val1;
1379 }
1380
1381 // control : in sisss, out i
1382
1383 gint test_deviced_SysNoti_control(const gchar *param1, gint param2, const gchar *param3, const gchar *param4, const gchar *param5)
1384 {
1385         gint val1;
1386         GVariant *reply;
1387         int ret_dbus;
1388
1389         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1390                         "/Org/Tizen/System/DeviceD/SysNoti",
1391                         "org.tizen.system.deviced.SysNoti",
1392                         "control",
1393                         g_variant_new("(sisss)", param1, param2, param3, param4, param5),
1394                         &reply);
1395         if (ret_dbus < 0) {
1396                 _E("failed control");
1397                 return 0;
1398         }
1399
1400         g_variant_get(reply, "(i)", &val1);
1401         g_variant_unref(reply);
1402
1403         return val1;
1404 }
1405
1406 // /Org/Tizen/System/DeviceD/Led
1407 // org.tizen.system.deviced.Led
1408
1409 // SetIrCommand : in s, out i
1410
1411 gint test_deviced_Led_SetIrCommand(const gchar *param1)
1412 {
1413         gint val1;
1414         GVariant *reply;
1415         int ret_dbus;
1416
1417         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1418                         "/Org/Tizen/System/DeviceD/Led",
1419                         "org.tizen.system.deviced.Led",
1420                         "SetIrCommand",
1421                         g_variant_new("(s)", param1),
1422                         &reply);
1423         if (ret_dbus < 0) {
1424                 _E("failed SetIrCommand");
1425                 return 0;
1426         }
1427
1428         g_variant_get(reply, "(i)", &val1);
1429         g_variant_unref(reply);
1430
1431         return val1;
1432 }
1433
1434 // SetBrightness : in ii, out i
1435
1436 gint test_deviced_Led_SetBrightness(gint param1, gint param2)
1437 {
1438         gint val1;
1439         GVariant *reply;
1440         int ret_dbus;
1441
1442         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1443                         "/Org/Tizen/System/DeviceD/Led",
1444                         "org.tizen.system.deviced.Led",
1445                         "SetBrightness",
1446                         g_variant_new("(ii)", param1, param2),
1447                         &reply);
1448         if (ret_dbus < 0) {
1449                 _E("failed SetBrightness");
1450                 return 0;
1451         }
1452
1453         g_variant_get(reply, "(i)", &val1);
1454         g_variant_unref(reply);
1455
1456         return val1;
1457 }
1458
1459 // GetMaxBrightness : in , out i
1460
1461 gint test_deviced_Led_GetMaxBrightness(void)
1462 {
1463         gint val1;
1464         GVariant *reply;
1465         int ret_dbus;
1466
1467         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1468                         "/Org/Tizen/System/DeviceD/Led",
1469                         "org.tizen.system.deviced.Led",
1470                         "GetMaxBrightness",
1471                         NULL,
1472                         &reply);
1473         if (ret_dbus < 0) {
1474                 _E("failed GetMaxBrightness");
1475                 return 0;
1476         }
1477
1478         g_variant_get(reply, "(i)", &val1);
1479         g_variant_unref(reply);
1480
1481         return val1;
1482 }
1483
1484 // GetBrightness : in , out i
1485
1486 gint test_deviced_Led_GetBrightness(void)
1487 {
1488         gint val1;
1489         GVariant *reply;
1490         int ret_dbus;
1491
1492         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1493                         "/Org/Tizen/System/DeviceD/Led",
1494                         "org.tizen.system.deviced.Led",
1495                         "GetBrightness",
1496                         NULL,
1497                         &reply);
1498         if (ret_dbus < 0) {
1499                 _E("failed GetBrightness");
1500                 return 0;
1501         }
1502
1503         g_variant_get(reply, "(i)", &val1);
1504         g_variant_unref(reply);
1505
1506         return val1;
1507 }
1508
1509 // GetBrightnessForCamera : in , out i
1510
1511 gint test_deviced_Led_GetBrightnessForCamera(void)
1512 {
1513         gint val1;
1514         GVariant *reply;
1515         int ret_dbus;
1516
1517         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1518                         "/Org/Tizen/System/DeviceD/Led",
1519                         "org.tizen.system.deviced.Led",
1520                         "GetBrightnessForCamera",
1521                         NULL,
1522                         &reply);
1523         if (ret_dbus < 0) {
1524                 _E("failed GetBrightnessForCamera");
1525                 return 0;
1526         }
1527
1528         g_variant_get(reply, "(i)", &val1);
1529         g_variant_unref(reply);
1530
1531         return val1;
1532 }
1533
1534 // /Org/Tizen/System/DeviceD/Display
1535 // org.tizen.system.deviced.display
1536
1537 // LockTimeoutInput : in si, out i
1538
1539 gint test_deviced_display_LockTimeoutInput(const gchar *param1, gint param2)
1540 {
1541         gint val1;
1542         GVariant *reply;
1543         int ret_dbus;
1544
1545         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1546                         "/Org/Tizen/System/DeviceD/Display",
1547                         "org.tizen.system.deviced.display",
1548                         "LockTimeoutInput",
1549                         g_variant_new("(si)", param1, param2),
1550                         &reply);
1551         if (ret_dbus < 0) {
1552                 _E("failed LockTimeoutInput");
1553                 return 0;
1554         }
1555
1556         g_variant_get(reply, "(i)", &val1);
1557         g_variant_unref(reply);
1558
1559         return val1;
1560 }
1561
1562 // LockTimeoutExpired : in s, out i
1563
1564 gint test_deviced_display_LockTimeoutExpired(const gchar *param1)
1565 {
1566         gint val1;
1567         GVariant *reply;
1568         int ret_dbus;
1569
1570         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1571                         "/Org/Tizen/System/DeviceD/Display",
1572                         "org.tizen.system.deviced.display",
1573                         "LockTimeoutExpired",
1574                         g_variant_new("(s)", param1),
1575                         &reply);
1576         if (ret_dbus < 0) {
1577                 _E("failed LockTimeoutExpired");
1578                 return 0;
1579         }
1580
1581         g_variant_get(reply, "(i)", &val1);
1582         g_variant_unref(reply);
1583
1584         return val1;
1585 }
1586
1587 // CurrentBrightness : in i, out i
1588
1589 gint test_deviced_display_CurrentBrightness(gint param1)
1590 {
1591         gint val1;
1592         GVariant *reply;
1593         int ret_dbus;
1594
1595         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1596                         "/Org/Tizen/System/DeviceD/Display",
1597                         "org.tizen.system.deviced.display",
1598                         "CurrentBrightness",
1599                         g_variant_new("(i)", param1),
1600                         &reply);
1601         if (ret_dbus < 0) {
1602                 _E("failed CurrentBrightness");
1603                 return 0;
1604         }
1605
1606         g_variant_get(reply, "(i)", &val1);
1607         g_variant_unref(reply);
1608
1609         return val1;
1610 }
1611
1612 // CustomBrightness : in , out i
1613
1614 gint test_deviced_display_CustomBrightness(void)
1615 {
1616         gint val1;
1617         GVariant *reply;
1618         int ret_dbus;
1619
1620         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1621                         "/Org/Tizen/System/DeviceD/Display",
1622                         "org.tizen.system.deviced.display",
1623                         "CustomBrightness",
1624                         NULL,
1625                         &reply);
1626         if (ret_dbus < 0) {
1627                 _E("failed CustomBrightness");
1628                 return 0;
1629         }
1630
1631         g_variant_get(reply, "(i)", &val1);
1632         g_variant_unref(reply);
1633
1634         return val1;
1635 }
1636
1637 // ActorControl : in sii, out i
1638
1639 gint test_deviced_display_ActorControl(const gchar *param1, gint param2, gint param3)
1640 {
1641         gint val1;
1642         GVariant *reply;
1643         int ret_dbus;
1644
1645         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1646                         "/Org/Tizen/System/DeviceD/Display",
1647                         "org.tizen.system.deviced.display",
1648                         "ActorControl",
1649                         g_variant_new("(sii)", param1, param2, param3),
1650                         &reply);
1651         if (ret_dbus < 0) {
1652                 _E("failed ActorControl");
1653                 return 0;
1654         }
1655
1656         g_variant_get(reply, "(i)", &val1);
1657         g_variant_unref(reply);
1658
1659         return val1;
1660 }
1661
1662 // LCDPanelOffMode : in i, out i
1663
1664 gint test_deviced_display_LCDPanelOffMode(gint param1)
1665 {
1666         gint val1;
1667         GVariant *reply;
1668         int ret_dbus;
1669
1670         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1671                         "/Org/Tizen/System/DeviceD/Display",
1672                         "org.tizen.system.deviced.display",
1673                         "LCDPanelOffMode",
1674                         g_variant_new("(i)", param1),
1675                         &reply);
1676         if (ret_dbus < 0) {
1677                 _E("failed LCDPanelOffMode");
1678                 return 0;
1679         }
1680
1681         g_variant_get(reply, "(i)", &val1);
1682         g_variant_unref(reply);
1683
1684         return val1;
1685 }
1686
1687 // StayTouchScreenOff : in i, out i
1688
1689 gint test_deviced_display_StayTouchScreenOff(gint param1)
1690 {
1691         gint val1;
1692         GVariant *reply;
1693         int ret_dbus;
1694
1695         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1696                         "/Org/Tizen/System/DeviceD/Display",
1697                         "org.tizen.system.deviced.display",
1698                         "StayTouchScreenOff",
1699                         g_variant_new("(i)", param1),
1700                         &reply);
1701         if (ret_dbus < 0) {
1702                 _E("failed StayTouchScreenOff");
1703                 return 0;
1704         }
1705
1706         g_variant_get(reply, "(i)", &val1);
1707         g_variant_unref(reply);
1708
1709         return val1;
1710 }
1711
1712 // PlatformLCDControl : in isi, out i
1713
1714 gint test_deviced_display_PlatformLCDControl(gint param1, const gchar *param2, gint param3)
1715 {
1716         gint val1;
1717         GVariant *reply;
1718         int ret_dbus;
1719
1720         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1721                         "/Org/Tizen/System/DeviceD/Display",
1722                         "org.tizen.system.deviced.display",
1723                         "PlatformLCDControl",
1724                         g_variant_new("(isi)", param1, param2, param3),
1725                         &reply);
1726         if (ret_dbus < 0) {
1727                 _E("failed PlatformLCDControl");
1728                 return 0;
1729         }
1730
1731         g_variant_get(reply, "(i)", &val1);
1732         g_variant_unref(reply);
1733
1734         return val1;
1735 }
1736
1737 // CustomLCDOff : in s, out i
1738
1739 gint test_deviced_display_CustomLCDOff(const gchar *param1)
1740 {
1741         gint val1;
1742         GVariant *reply;
1743         int ret_dbus;
1744
1745         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1746                         "/Org/Tizen/System/DeviceD/Display",
1747                         "org.tizen.system.deviced.display",
1748                         "CustomLCDOff",
1749                         g_variant_new("(s)", param1),
1750                         &reply);
1751         if (ret_dbus < 0) {
1752                 _E("failed CustomLCDOff");
1753                 return 0;
1754         }
1755
1756         g_variant_get(reply, "(i)", &val1);
1757         g_variant_unref(reply);
1758
1759         return val1;
1760 }
1761
1762 // CustomLCDOn : in i, out i
1763
1764 gint test_deviced_display_CustomLCDOn(gint param1)
1765 {
1766         gint val1;
1767         GVariant *reply;
1768         int ret_dbus;
1769
1770         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1771                         "/Org/Tizen/System/DeviceD/Display",
1772                         "org.tizen.system.deviced.display",
1773                         "CustomLCDOn",
1774                         g_variant_new("(i)", param1),
1775                         &reply);;
1776         if (ret_dbus < 0) {
1777                 _E("failed CustomLCDOn");
1778                 return 0;
1779         }
1780
1781         g_variant_get(reply, "(i)", &val1);
1782         g_variant_unref(reply);
1783
1784         return val1;
1785 }
1786
1787 // PowerKeyLCDOff : in , out i
1788
1789 gint test_deviced_display_PowerKeyLCDOff(void)
1790 {
1791         gint val1;
1792         GVariant *reply;
1793         int ret_dbus;
1794
1795         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1796                         "/Org/Tizen/System/DeviceD/Display",
1797                         "org.tizen.system.deviced.display",
1798                         "PowerKeyLCDOff",
1799                         NULL,
1800                         &reply);;
1801         if (ret_dbus < 0) {
1802                 _E("failed PowerKeyLCDOff");
1803                 return 0;
1804         }
1805
1806         g_variant_get(reply, "(i)", &val1);
1807         g_variant_unref(reply);
1808
1809         return val1;
1810 }
1811
1812 // PowerKeyIgnore : in i, out i
1813
1814 gint test_deviced_display_PowerKeyIgnore(gint param1)
1815 {
1816         gint val1;
1817         GVariant *reply;
1818         int ret_dbus;
1819
1820         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1821                         "/Org/Tizen/System/DeviceD/Display",
1822                         "org.tizen.system.deviced.display",
1823                         "PowerKeyIgnore",
1824                         g_variant_new("(i)", param1),
1825                         &reply);;
1826         if (ret_dbus < 0) {
1827                 _E("failed PowerKeyIgnore");
1828                 return 0;
1829         }
1830
1831         g_variant_get(reply, "(i)", &val1);
1832         g_variant_unref(reply);
1833
1834         return val1;
1835 }
1836
1837 // SaveLog : in , out
1838
1839 void test_deviced_display_SaveLog(void)
1840 {
1841         GVariant *reply;
1842         int ret_dbus;
1843
1844         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1845                         "/Org/Tizen/System/DeviceD/Display",
1846                         "org.tizen.system.deviced.display",
1847                         "SaveLog",
1848                         NULL,
1849                         &reply);;
1850         if (ret_dbus < 0)
1851                 return;
1852         if (reply)
1853                 g_variant_unref(reply);
1854
1855 }
1856
1857 // Dumpmode : in s, out i
1858
1859 gint test_deviced_display_Dumpmode(const gchar *param1)
1860 {
1861         gint val1;
1862         GVariant *reply;
1863         int ret_dbus;
1864
1865         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1866                         "/Org/Tizen/System/DeviceD/Display",
1867                         "org.tizen.system.deviced.display",
1868                         "Dumpmode",
1869                         g_variant_new("(s)", param1),
1870                         &reply);;
1871         if (ret_dbus < 0) {
1872                 _E("failed Dumpmode");
1873                 return 0;
1874         }
1875
1876         g_variant_get(reply, "(i)", &val1);
1877         g_variant_unref(reply);
1878
1879         return val1;
1880 }
1881
1882 // SetRefreshRate : in ii, out i
1883
1884 gint test_deviced_display_SetRefreshRate(gint param1, gint param2)
1885 {
1886         gint val1;
1887         GVariant *reply;
1888         int ret_dbus;
1889
1890         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1891                         "/Org/Tizen/System/DeviceD/Display",
1892                         "org.tizen.system.deviced.display",
1893                         "SetRefreshRate",
1894                         g_variant_new("(ii)", param1, param2),
1895                         &reply);;
1896         if (ret_dbus < 0) {
1897                 _E("failed SetRefreshRate");
1898                 return 0;
1899         }
1900
1901         g_variant_get(reply, "(i)", &val1);
1902         g_variant_unref(reply);
1903
1904         return val1;
1905 }
1906
1907 // ReleaseBrightness : in , out i
1908
1909 gint test_deviced_display_ReleaseBrightness(void)
1910 {
1911         gint val1;
1912         GVariant *reply;
1913         int ret_dbus;
1914
1915         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1916                         "/Org/Tizen/System/DeviceD/Display",
1917                         "org.tizen.system.deviced.display",
1918                         "ReleaseBrightness",
1919                         NULL,
1920                         &reply);;
1921         if (ret_dbus < 0) {
1922                 _E("failed ReleaseBrightness");
1923                 return 0;
1924         }
1925
1926         g_variant_get(reply, "(i)", &val1);
1927         g_variant_unref(reply);
1928
1929         return val1;
1930 }
1931
1932 // HoldBrightness : in i, out i
1933
1934 gint test_deviced_display_HoldBrightness(gint param1)
1935 {
1936         gint val1;
1937         GVariant *reply;
1938         int ret_dbus;
1939
1940         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1941                         "/Org/Tizen/System/DeviceD/Display",
1942                         "org.tizen.system.deviced.display",
1943                         "HoldBrightness",
1944                         g_variant_new("(i)", param1),
1945                         &reply);;
1946         if (ret_dbus < 0) {
1947                 _E("failed HoldBrightness");
1948                 return 0;
1949         }
1950
1951         g_variant_get(reply, "(i)", &val1);
1952         g_variant_unref(reply);
1953
1954         return val1;
1955 }
1956
1957 // SetBrightness : in ii, out i
1958
1959 gint test_deviced_display_SetBrightness(gint param1, gint param2)
1960 {
1961         gint val1;
1962         GVariant *reply;
1963         int ret_dbus;
1964
1965         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1966                         "/Org/Tizen/System/DeviceD/Display",
1967                         "org.tizen.system.deviced.display",
1968                         "SetBrightness",
1969                         g_variant_new("(ii)", param1, param2),
1970                         &reply);;
1971         if (ret_dbus < 0) {
1972                 _E("failed SetBrightness");
1973                 return 0;
1974         }
1975
1976         g_variant_get(reply, "(i)", &val1);
1977         g_variant_unref(reply);
1978
1979         return val1;
1980 }
1981
1982 // GetBrightness : in i, out i
1983
1984 gint test_deviced_display_GetBrightness(gint param1)
1985 {
1986         gint val1;
1987         GVariant *reply;
1988         int ret_dbus;
1989
1990         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
1991                         "/Org/Tizen/System/DeviceD/Display",
1992                         "org.tizen.system.deviced.display",
1993                         "GetBrightness",
1994                         g_variant_new("(i)", param1),
1995                         &reply);;
1996         if (ret_dbus < 0) {
1997                 _E("failed GetBrightness");
1998                 return 0;
1999         }
2000
2001         g_variant_get(reply, "(i)", &val1);
2002         g_variant_unref(reply);
2003
2004         return val1;
2005 }
2006
2007 // SetMaxBrightness : in i, out i
2008
2009 gint test_deviced_display_SetMaxBrightness(gint param1)
2010 {
2011         gint val1;
2012         GVariant *reply;
2013         int ret_dbus;
2014
2015         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2016                         "/Org/Tizen/System/DeviceD/Display",
2017                         "org.tizen.system.deviced.display",
2018                         "SetMaxBrightness",
2019                         g_variant_new("(i)", param1),
2020                         &reply);;
2021         if (ret_dbus < 0) {
2022                 _E("failed SetMaxBrightness");
2023                 return 0;
2024         }
2025
2026         g_variant_get(reply, "(i)", &val1);
2027         g_variant_unref(reply);
2028
2029         return val1;
2030 }
2031
2032 // GetMaxBrightness : in i, out i
2033
2034 gint test_deviced_display_GetMaxBrightness(gint param1)
2035 {
2036         gint val1;
2037         GVariant *reply;
2038         int ret_dbus;
2039
2040         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2041                         "/Org/Tizen/System/DeviceD/Display",
2042                         "org.tizen.system.deviced.display",
2043                         "GetMaxBrightness",
2044                         g_variant_new("(i)", param1),
2045                         &reply);;
2046         if (ret_dbus < 0) {
2047                 _E("failed GetMaxBrightness");
2048                 return 0;
2049         }
2050
2051         g_variant_get(reply, "(i)", &val1);
2052         g_variant_unref(reply);
2053
2054         return val1;
2055 }
2056
2057 // GetDisplayCount : in , out i
2058
2059 gint test_deviced_display_GetDisplayCount(void)
2060 {
2061         gint val1;
2062         GVariant *reply;
2063         int ret_dbus;
2064
2065         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2066                         "/Org/Tizen/System/DeviceD/Display",
2067                         "org.tizen.system.deviced.display",
2068                         "GetDisplayCount",
2069                         NULL,
2070                         &reply);;
2071         if (ret_dbus < 0) {
2072                 _E("failed GetDisplayCount");
2073                 return 0;
2074         }
2075
2076         g_variant_get(reply, "(i)", &val1);
2077         g_variant_unref(reply);
2078
2079         return val1;
2080 }
2081
2082 // LockScreenBgOn : in s, out i
2083
2084 gint test_deviced_display_LockScreenBgOn(const gchar *param1)
2085 {
2086         gint val1;
2087         GVariant *reply;
2088         int ret_dbus;
2089
2090         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2091                         "/Org/Tizen/System/DeviceD/Display",
2092                         "org.tizen.system.deviced.display",
2093                         "LockScreenBgOn",
2094                         g_variant_new("(s)", param1),
2095                         &reply);;
2096         if (ret_dbus < 0) {
2097                 _E("failed LockScreenBgOn");
2098                 return 0;
2099         }
2100
2101         g_variant_get(reply, "(i)", &val1);
2102         g_variant_unref(reply);
2103
2104         return val1;
2105 }
2106
2107 // setlcdtimeout : in iii, out i
2108
2109 gint test_deviced_display_setlcdtimeout(gint param1, gint param2, gint param3)
2110 {
2111         gint val1;
2112         GVariant *reply;
2113         int ret_dbus;
2114
2115         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2116                         "/Org/Tizen/System/DeviceD/Display",
2117                         "org.tizen.system.deviced.display",
2118                         "setlcdtimeout",
2119                         g_variant_new("(iii)", param1, param2, param3),
2120                         &reply);;
2121         if (ret_dbus < 0) {
2122                 _E("failed setlcdtimeout");
2123                 return 0;
2124         }
2125
2126         g_variant_get(reply, "(i)", &val1);
2127         g_variant_unref(reply);
2128
2129         return val1;
2130 }
2131
2132 // setautobrightnessmin : in i, out i
2133
2134 gint test_deviced_display_setautobrightnessmin(gint param1)
2135 {
2136         gint val1;
2137         GVariant *reply;
2138         int ret_dbus;
2139
2140         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2141                         "/Org/Tizen/System/DeviceD/Display",
2142                         "org.tizen.system.deviced.display",
2143                         "setautobrightnessmin",
2144                         g_variant_new("(i)", param1),
2145                         &reply);;
2146         if (ret_dbus < 0) {
2147                 _E("failed setautobrightnessmin");
2148                 return 0;
2149         }
2150
2151         g_variant_get(reply, "(i)", &val1);
2152         g_variant_unref(reply);
2153
2154         return val1;
2155 }
2156
2157 // setframerate : in ii, out i
2158
2159 gint test_deviced_display_setframerate(gint param1, gint param2)
2160 {
2161         gint val1;
2162         GVariant *reply;
2163         int ret_dbus;
2164
2165         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2166                         "/Org/Tizen/System/DeviceD/Display",
2167                         "org.tizen.system.deviced.display",
2168                         "setframerate",
2169                         g_variant_new("(ii)", param1, param2),
2170                         &reply);;
2171         if (ret_dbus < 0) {
2172                 _E("failed setframerate");
2173                 return 0;
2174         }
2175
2176         g_variant_get(reply, "(i)", &val1);
2177         g_variant_unref(reply);
2178
2179         return val1;
2180 }
2181
2182 // setbrightness : in ii, out i
2183
2184 gint test_deviced_display_setbrightness(gint param1, gint param2)
2185 {
2186         gint val1;
2187         GVariant *reply;
2188         int ret_dbus;
2189
2190         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2191                         "/Org/Tizen/System/DeviceD/Display",
2192                         "org.tizen.system.deviced.display",
2193                         "setbrightness",
2194                         g_variant_new("(ii)", param1, param2),
2195                         &reply);;
2196         if (ret_dbus < 0) {
2197                 _E("failed setbrightness");
2198                 return 0;
2199         }
2200
2201         g_variant_get(reply, "(i)", &val1);
2202         g_variant_unref(reply);
2203
2204         return val1;
2205 }
2206
2207 // getbrightness : in i, out i
2208
2209 gint test_deviced_display_getbrightness(gint param1)
2210 {
2211         gint val1;
2212         GVariant *reply;
2213         int ret_dbus;
2214
2215         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2216                         "/Org/Tizen/System/DeviceD/Display",
2217                         "org.tizen.system.deviced.display",
2218                         "getbrightness",
2219                         g_variant_new("(i)", param1),
2220                         &reply);;
2221         if (ret_dbus < 0) {
2222                 _E("failed getbrightness");
2223                 return 0;
2224         }
2225
2226         g_variant_get(reply, "(i)", &val1);
2227         g_variant_unref(reply);
2228
2229         return val1;
2230 }
2231
2232 // ChangeState : in s, out i
2233
2234 gint test_deviced_display_ChangeState(const gchar *param1)
2235 {
2236         gint val1;
2237         GVariant *reply;
2238         int ret_dbus;
2239
2240         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2241                         "/Org/Tizen/System/DeviceD/Display",
2242                         "org.tizen.system.deviced.display",
2243                         "ChangeState",
2244                         g_variant_new("(s)", param1),
2245                         &reply);;
2246         if (ret_dbus < 0) {
2247                 _E("failed ChangeState");
2248                 return 0;
2249         }
2250
2251         g_variant_get(reply, "(i)", &val1);
2252         g_variant_unref(reply);
2253
2254         return val1;
2255 }
2256
2257 // changestate : in s, out i
2258
2259 gint test_deviced_display_changestate(const gchar *param1)
2260 {
2261         gint val1;
2262         GVariant *reply;
2263         int ret_dbus;
2264
2265         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2266                         "/Org/Tizen/System/DeviceD/Display",
2267                         "org.tizen.system.deviced.display",
2268                         "changestate",
2269                         g_variant_new("(s)", param1),
2270                         &reply);;
2271         if (ret_dbus < 0) {
2272                 _E("failed changestate");
2273                 return 0;
2274         }
2275
2276         g_variant_get(reply, "(i)", &val1);
2277         g_variant_unref(reply);
2278
2279         return val1;
2280 }
2281
2282 // unlockstate : in ss, out i
2283
2284 gint test_deviced_display_unlockstate(const gchar *param1, const gchar *param2)
2285 {
2286         gint val1;
2287         GVariant *reply;
2288         int ret_dbus;
2289
2290         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2291                         "/Org/Tizen/System/DeviceD/Display",
2292                         "org.tizen.system.deviced.display",
2293                         "unlockstate",
2294                         g_variant_new("(ss)", param1, param2),
2295                         &reply);;
2296         if (ret_dbus < 0) {
2297                 _E("failed unlockstate");
2298                 return 0;
2299         }
2300
2301         g_variant_get(reply, "(i)", &val1);
2302         g_variant_unref(reply);
2303
2304         return val1;
2305 }
2306
2307 // lockstate : in sssi, out i
2308
2309 gint test_deviced_display_lockstate(const gchar *param1, const gchar *param2, const gchar *param3, gint param4)
2310 {
2311         gint val1;
2312         GVariant *reply;
2313         int ret_dbus;
2314
2315         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2316                         "/Org/Tizen/System/DeviceD/Display",
2317                         "org.tizen.system.deviced.display",
2318                         "lockstate",
2319                         g_variant_new("(sssi)", param1, param2, param3, param4),
2320                         &reply);;
2321         if (ret_dbus < 0) {
2322                 _E("failed lockstate");
2323                 return 0;
2324         }
2325
2326         g_variant_get(reply, "(i)", &val1);
2327         g_variant_unref(reply);
2328
2329         return val1;
2330 }
2331
2332 // stop : in , out
2333
2334 void test_deviced_display_stop(void)
2335 {
2336         GVariant *reply;
2337         int ret_dbus;
2338
2339         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2340                         "/Org/Tizen/System/DeviceD/Display",
2341                         "org.tizen.system.deviced.display",
2342                         "stop",
2343                         NULL,
2344                         &reply);;
2345         if (ret_dbus < 0)
2346                 return;
2347         if (reply)
2348                 g_variant_unref(reply);
2349
2350 }
2351
2352 // start : in , out
2353
2354 void test_deviced_display_start(void)
2355 {
2356         GVariant *reply;
2357         int ret_dbus;
2358
2359         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2360                         "/Org/Tizen/System/DeviceD/Display",
2361                         "org.tizen.system.deviced.display",
2362                         "start",
2363                         NULL,
2364                         &reply);;
2365         if (ret_dbus < 0)
2366                 return;
2367         if (reply)
2368                 g_variant_unref(reply);
2369
2370 }
2371
2372 // /Org/Tizen/System/DeviceD/Board
2373 // org.tizen.system.deviced.Board
2374
2375 // GetNum : in , out si
2376
2377 GVariant * test_deviced_Board_GetNum(void)
2378 {
2379         GVariant *reply;
2380         int ret_dbus;
2381         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2382                         "/Org/Tizen/System/DeviceD/Board",
2383                         "org.tizen.system.deviced.Board",
2384                         "GetNum",
2385                         NULL,
2386                         &reply);
2387         if (ret_dbus < 0)
2388                 return NULL;
2389         return reply;
2390 }
2391
2392 // GetHWRev : in , out i
2393
2394 gint test_deviced_Board_GetHWRev(void)
2395 {
2396         gint val1;
2397         GVariant *reply;
2398         int ret_dbus;
2399
2400         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2401                         "/Org/Tizen/System/DeviceD/Board",
2402                         "org.tizen.system.deviced.Board",
2403                         "GetHWRev",
2404                         NULL,
2405                         &reply);;
2406         if (ret_dbus < 0) {
2407                 _E("failed GetHWRev");
2408                 return 0;
2409         }
2410
2411         g_variant_get(reply, "(i)", &val1);
2412         g_variant_unref(reply);
2413
2414         return val1;
2415 }
2416
2417 // GetSerial : in , out si
2418
2419 GVariant * test_deviced_Board_GetSerial(void)
2420 {
2421         GVariant *reply;
2422         int ret_dbus;
2423         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2424                         "/Org/Tizen/System/DeviceD/Board",
2425                         "org.tizen.system.deviced.Board",
2426                         "GetSerial",
2427                         NULL,
2428                         &reply);
2429         if (ret_dbus < 0)
2430                 return NULL;
2431         return reply;
2432 }
2433
2434 // /Org/Tizen/System/DeviceD/PmQos
2435 // org.tizen.system.deviced.PmQos
2436
2437 // MyfilesScroll : in i, out i
2438
2439 gint test_deviced_PmQos_MyfilesScroll(gint param1)
2440 {
2441         gint val1;
2442         GVariant *reply;
2443         int ret_dbus;
2444
2445         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2446                         "/Org/Tizen/System/DeviceD/PmQos",
2447                         "org.tizen.system.deviced.PmQos",
2448                         "MyfilesScroll",
2449                         g_variant_new("(i)", param1),
2450                         &reply);;
2451         if (ret_dbus < 0) {
2452                 _E("failed MyfilesScroll");
2453                 return 0;
2454         }
2455
2456         g_variant_get(reply, "(i)", &val1);
2457         g_variant_unref(reply);
2458
2459         return val1;
2460 }
2461
2462 // CallLogScroll : in i, out i
2463
2464 gint test_deviced_PmQos_CallLogScroll(gint param1)
2465 {
2466         gint val1;
2467         GVariant *reply;
2468         int ret_dbus;
2469
2470         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2471                         "/Org/Tizen/System/DeviceD/PmQos",
2472                         "org.tizen.system.deviced.PmQos",
2473                         "CallLogScroll",
2474                         g_variant_new("(i)", param1),
2475                         &reply);;
2476         if (ret_dbus < 0) {
2477                 _E("failed CallLogScroll");
2478                 return 0;
2479         }
2480
2481         g_variant_get(reply, "(i)", &val1);
2482         g_variant_unref(reply);
2483
2484         return val1;
2485 }
2486
2487 // TizenStoreScroll : in i, out i
2488
2489 gint test_deviced_PmQos_TizenStoreScroll(gint param1)
2490 {
2491         gint val1;
2492         GVariant *reply;
2493         int ret_dbus;
2494
2495         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2496                         "/Org/Tizen/System/DeviceD/PmQos",
2497                         "org.tizen.system.deviced.PmQos",
2498                         "TizenStoreScroll",
2499                         g_variant_new("(i)", param1),
2500                         &reply);;
2501         if (ret_dbus < 0) {
2502                 _E("failed TizenStoreScroll");
2503                 return 0;
2504         }
2505
2506         g_variant_get(reply, "(i)", &val1);
2507         g_variant_unref(reply);
2508
2509         return val1;
2510 }
2511
2512 // ContactScroll : in i, out i
2513
2514 gint test_deviced_PmQos_ContactScroll(gint param1)
2515 {
2516         gint val1;
2517         GVariant *reply;
2518         int ret_dbus;
2519
2520         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2521                         "/Org/Tizen/System/DeviceD/PmQos",
2522                         "org.tizen.system.deviced.PmQos",
2523                         "ContactScroll",
2524                         g_variant_new("(i)", param1),
2525                         &reply);;
2526         if (ret_dbus < 0) {
2527                 _E("failed ContactScroll");
2528                 return 0;
2529         }
2530
2531         g_variant_get(reply, "(i)", &val1);
2532         g_variant_unref(reply);
2533
2534         return val1;
2535 }
2536
2537 // EmailScroll : in i, out i
2538
2539 gint test_deviced_PmQos_EmailScroll(gint param1)
2540 {
2541         gint val1;
2542         GVariant *reply;
2543         int ret_dbus;
2544
2545         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2546                         "/Org/Tizen/System/DeviceD/PmQos",
2547                         "org.tizen.system.deviced.PmQos",
2548                         "EmailScroll",
2549                         g_variant_new("(i)", param1),
2550                         &reply);;
2551         if (ret_dbus < 0) {
2552                 _E("failed EmailScroll");
2553                 return 0;
2554         }
2555
2556         g_variant_get(reply, "(i)", &val1);
2557         g_variant_unref(reply);
2558
2559         return val1;
2560 }
2561
2562 // VideoScroll : in i, out i
2563
2564 gint test_deviced_PmQos_VideoScroll(gint param1)
2565 {
2566         gint val1;
2567         GVariant *reply;
2568         int ret_dbus;
2569
2570         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2571                         "/Org/Tizen/System/DeviceD/PmQos",
2572                         "org.tizen.system.deviced.PmQos",
2573                         "VideoScroll",
2574                         g_variant_new("(i)", param1),
2575                         &reply);;
2576         if (ret_dbus < 0) {
2577                 _E("failed VideoScroll");
2578                 return 0;
2579         }
2580
2581         g_variant_get(reply, "(i)", &val1);
2582         g_variant_unref(reply);
2583
2584         return val1;
2585 }
2586
2587 // FileScroll : in i, out i
2588
2589 gint test_deviced_PmQos_FileScroll(gint param1)
2590 {
2591         gint val1;
2592         GVariant *reply;
2593         int ret_dbus;
2594
2595         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2596                         "/Org/Tizen/System/DeviceD/PmQos",
2597                         "org.tizen.system.deviced.PmQos",
2598                         "FileScroll",
2599                         g_variant_new("(i)", param1),
2600                         &reply);;
2601         if (ret_dbus < 0) {
2602                 _E("failed FileScroll");
2603                 return 0;
2604         }
2605
2606         g_variant_get(reply, "(i)", &val1);
2607         g_variant_unref(reply);
2608
2609         return val1;
2610 }
2611
2612 // MusicScroll : in i, out i
2613
2614 gint test_deviced_PmQos_MusicScroll(gint param1)
2615 {
2616         gint val1;
2617         GVariant *reply;
2618         int ret_dbus;
2619
2620         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2621                         "/Org/Tizen/System/DeviceD/PmQos",
2622                         "org.tizen.system.deviced.PmQos",
2623                         "MusicScroll",
2624                         g_variant_new("(i)", param1),
2625                         &reply);;
2626         if (ret_dbus < 0) {
2627                 _E("failed MusicScroll");
2628                 return 0;
2629         }
2630
2631         g_variant_get(reply, "(i)", &val1);
2632         g_variant_unref(reply);
2633
2634         return val1;
2635 }
2636
2637 // UgLaunch : in i, out i
2638
2639 gint test_deviced_PmQos_UgLaunch(gint param1)
2640 {
2641         gint val1;
2642         GVariant *reply;
2643         int ret_dbus;
2644
2645         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2646                         "/Org/Tizen/System/DeviceD/PmQos",
2647                         "org.tizen.system.deviced.PmQos",
2648                         "UgLaunch",
2649                         g_variant_new("(i)", param1),
2650                         &reply);;
2651         if (ret_dbus < 0) {
2652                 _E("failed UgLaunch");
2653                 return 0;
2654         }
2655
2656         g_variant_get(reply, "(i)", &val1);
2657         g_variant_unref(reply);
2658
2659         return val1;
2660 }
2661
2662 // SensorWakeup : in i, out i
2663
2664 gint test_deviced_PmQos_SensorWakeup(gint param1)
2665 {
2666         gint val1;
2667         GVariant *reply;
2668         int ret_dbus;
2669
2670         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2671                         "/Org/Tizen/System/DeviceD/PmQos",
2672                         "org.tizen.system.deviced.PmQos",
2673                         "SensorWakeup",
2674                         g_variant_new("(i)", param1),
2675                         &reply);;
2676         if (ret_dbus < 0) {
2677                 _E("failed SensorWakeup");
2678                 return 0;
2679         }
2680
2681         g_variant_get(reply, "(i)", &val1);
2682         g_variant_unref(reply);
2683
2684         return val1;
2685 }
2686
2687 // WebAppFlick : in i, out i
2688
2689 gint test_deviced_PmQos_WebAppFlick(gint param1)
2690 {
2691         gint val1;
2692         GVariant *reply;
2693         int ret_dbus;
2694
2695         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2696                         "/Org/Tizen/System/DeviceD/PmQos",
2697                         "org.tizen.system.deviced.PmQos",
2698                         "WebAppFlick",
2699                         g_variant_new("(i)", param1),
2700                         &reply);;
2701         if (ret_dbus < 0) {
2702                 _E("failed WebAppFlick");
2703                 return 0;
2704         }
2705
2706         g_variant_get(reply, "(i)", &val1);
2707         g_variant_unref(reply);
2708
2709         return val1;
2710 }
2711
2712 // WebAppDrag : in i, out i
2713
2714 gint test_deviced_PmQos_WebAppDrag(gint param1)
2715 {
2716         gint val1;
2717         GVariant *reply;
2718         int ret_dbus;
2719
2720         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2721                         "/Org/Tizen/System/DeviceD/PmQos",
2722                         "org.tizen.system.deviced.PmQos",
2723                         "WebAppDrag",
2724                         g_variant_new("(i)", param1),
2725                         &reply);;
2726         if (ret_dbus < 0) {
2727                 _E("failed WebAppDrag");
2728                 return 0;
2729         }
2730
2731         g_variant_get(reply, "(i)", &val1);
2732         g_variant_unref(reply);
2733
2734         return val1;
2735 }
2736
2737 // PowerOff : in i, out i
2738
2739 gint test_deviced_PmQos_PowerOff(gint param1)
2740 {
2741         gint val1;
2742         GVariant *reply;
2743         int ret_dbus;
2744
2745         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2746                         "/Org/Tizen/System/DeviceD/PmQos",
2747                         "org.tizen.system.deviced.PmQos",
2748                         "PowerOff",
2749                         g_variant_new("(i)", param1),
2750                         &reply);;
2751         if (ret_dbus < 0) {
2752                 _E("failed PowerOff");
2753                 return 0;
2754         }
2755
2756         g_variant_get(reply, "(i)", &val1);
2757         g_variant_unref(reply);
2758
2759         return val1;
2760 }
2761
2762 // WifiThroughput : in ii, out i
2763
2764 gint test_deviced_PmQos_WifiThroughput(gint param1, gint param2)
2765 {
2766         gint val1;
2767         GVariant *reply;
2768         int ret_dbus;
2769
2770         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2771                         "/Org/Tizen/System/DeviceD/PmQos",
2772                         "org.tizen.system.deviced.PmQos",
2773                         "WifiThroughput",
2774                         g_variant_new("(ii)", param1, param2),
2775                         &reply);;
2776         if (ret_dbus < 0) {
2777                 _E("failed WifiThroughput");
2778                 return 0;
2779         }
2780
2781         g_variant_get(reply, "(i)", &val1);
2782         g_variant_unref(reply);
2783
2784         return val1;
2785 }
2786
2787 // WebappLaunch : in i, out i
2788
2789 gint test_deviced_PmQos_WebappLaunch(gint param1)
2790 {
2791         gint val1;
2792         GVariant *reply;
2793         int ret_dbus;
2794
2795         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2796                         "/Org/Tizen/System/DeviceD/PmQos",
2797                         "org.tizen.system.deviced.PmQos",
2798                         "WebappLaunch",
2799                         g_variant_new("(i)", param1),
2800                         &reply);;
2801         if (ret_dbus < 0) {
2802                 _E("failed WebappLaunch");
2803                 return 0;
2804         }
2805
2806         g_variant_get(reply, "(i)", &val1);
2807         g_variant_unref(reply);
2808
2809         return val1;
2810 }
2811
2812 // SVoice : in i, out i
2813
2814 gint test_deviced_PmQos_SVoice(gint param1)
2815 {
2816         gint val1;
2817         GVariant *reply;
2818         int ret_dbus;
2819
2820         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2821                         "/Org/Tizen/System/DeviceD/PmQos",
2822                         "org.tizen.system.deviced.PmQos",
2823                         "SVoice",
2824                         g_variant_new("(i)", param1),
2825                         &reply);;
2826         if (ret_dbus < 0) {
2827                 _E("failed SVoice");
2828                 return 0;
2829         }
2830
2831         g_variant_get(reply, "(i)", &val1);
2832         g_variant_unref(reply);
2833
2834         return val1;
2835 }
2836
2837 // SmemoZoom : in i, out i
2838
2839 gint test_deviced_PmQos_SmemoZoom(gint param1)
2840 {
2841         gint val1;
2842         GVariant *reply;
2843         int ret_dbus;
2844
2845         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2846                         "/Org/Tizen/System/DeviceD/PmQos",
2847                         "org.tizen.system.deviced.PmQos",
2848                         "SmemoZoom",
2849                         g_variant_new("(i)", param1),
2850                         &reply);;
2851         if (ret_dbus < 0) {
2852                 _E("failed SmemoZoom");
2853                 return 0;
2854         }
2855
2856         g_variant_get(reply, "(i)", &val1);
2857         g_variant_unref(reply);
2858
2859         return val1;
2860 }
2861
2862 // ScreenMirroring : in i, out i
2863
2864 gint test_deviced_PmQos_ScreenMirroring(gint param1)
2865 {
2866         gint val1;
2867         GVariant *reply;
2868         int ret_dbus;
2869
2870         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2871                         "/Org/Tizen/System/DeviceD/PmQos",
2872                         "org.tizen.system.deviced.PmQos",
2873                         "ScreenMirroring",
2874                         g_variant_new("(i)", param1),
2875                         &reply);;
2876         if (ret_dbus < 0) {
2877                 _E("failed ScreenMirroring");
2878                 return 0;
2879         }
2880
2881         g_variant_get(reply, "(i)", &val1);
2882         g_variant_unref(reply);
2883
2884         return val1;
2885 }
2886
2887 // ReservedMode : in i, out i
2888
2889 gint test_deviced_PmQos_ReservedMode(gint param1)
2890 {
2891         gint val1;
2892         GVariant *reply;
2893         int ret_dbus;
2894
2895         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2896                         "/Org/Tizen/System/DeviceD/PmQos",
2897                         "org.tizen.system.deviced.PmQos",
2898                         "ReservedMode",
2899                         g_variant_new("(i)", param1),
2900                         &reply);;
2901         if (ret_dbus < 0) {
2902                 _E("failed ReservedMode");
2903                 return 0;
2904         }
2905
2906         g_variant_get(reply, "(i)", &val1);
2907         g_variant_unref(reply);
2908
2909         return val1;
2910 }
2911
2912 // ProcessCrashed : in i, out i
2913
2914 gint test_deviced_PmQos_ProcessCrashed(gint param1)
2915 {
2916         gint val1;
2917         GVariant *reply;
2918         int ret_dbus;
2919
2920         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2921                         "/Org/Tizen/System/DeviceD/PmQos",
2922                         "org.tizen.system.deviced.PmQos",
2923                         "ProcessCrashed",
2924                         g_variant_new("(i)", param1),
2925                         &reply);;
2926         if (ret_dbus < 0) {
2927                 _E("failed ProcessCrashed");
2928                 return 0;
2929         }
2930
2931         g_variant_get(reply, "(i)", &val1);
2932         g_variant_unref(reply);
2933
2934         return val1;
2935 }
2936
2937 // PowerSaving : in i, out i
2938
2939 gint test_deviced_PmQos_PowerSaving(gint param1)
2940 {
2941         gint val1;
2942         GVariant *reply;
2943         int ret_dbus;
2944
2945         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2946                         "/Org/Tizen/System/DeviceD/PmQos",
2947                         "org.tizen.system.deviced.PmQos",
2948                         "PowerSaving",
2949                         g_variant_new("(i)", param1),
2950                         &reply);;
2951         if (ret_dbus < 0) {
2952                 _E("failed PowerSaving");
2953                 return 0;
2954         }
2955
2956         g_variant_get(reply, "(i)", &val1);
2957         g_variant_unref(reply);
2958
2959         return val1;
2960 }
2961
2962 // MusicPlayLcdOn : in i, out i
2963
2964 gint test_deviced_PmQos_MusicPlayLcdOn(gint param1)
2965 {
2966         gint val1;
2967         GVariant *reply;
2968         int ret_dbus;
2969
2970         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2971                         "/Org/Tizen/System/DeviceD/PmQos",
2972                         "org.tizen.system.deviced.PmQos",
2973                         "MusicPlayLcdOn",
2974                         g_variant_new("(i)", param1),
2975                         &reply);;
2976         if (ret_dbus < 0) {
2977                 _E("failed MusicPlayLcdOn");
2978                 return 0;
2979         }
2980
2981         g_variant_get(reply, "(i)", &val1);
2982         g_variant_unref(reply);
2983
2984         return val1;
2985 }
2986
2987 // MtpSendFile : in i, out i
2988
2989 gint test_deviced_PmQos_MtpSendFile(gint param1)
2990 {
2991         gint val1;
2992         GVariant *reply;
2993         int ret_dbus;
2994
2995         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
2996                         "/Org/Tizen/System/DeviceD/PmQos",
2997                         "org.tizen.system.deviced.PmQos",
2998                         "MtpSendFile",
2999                         g_variant_new("(i)", param1),
3000                         &reply);;
3001         if (ret_dbus < 0) {
3002                 _E("failed MtpSendFile");
3003                 return 0;
3004         }
3005
3006         g_variant_get(reply, "(i)", &val1);
3007         g_variant_unref(reply);
3008
3009         return val1;
3010 }
3011
3012 // LowBattery : in i, out i
3013
3014 gint test_deviced_PmQos_LowBattery(gint param1)
3015 {
3016         gint val1;
3017         GVariant *reply;
3018         int ret_dbus;
3019
3020         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3021                         "/Org/Tizen/System/DeviceD/PmQos",
3022                         "org.tizen.system.deviced.PmQos",
3023                         "LowBattery",
3024                         g_variant_new("(i)", param1),
3025                         &reply);;
3026         if (ret_dbus < 0) {
3027                 _E("failed LowBattery");
3028                 return 0;
3029         }
3030
3031         g_variant_get(reply, "(i)", &val1);
3032         g_variant_unref(reply);
3033
3034         return val1;
3035 }
3036
3037 // LockScreen : in i, out i
3038
3039 gint test_deviced_PmQos_LockScreen(gint param1)
3040 {
3041         gint val1;
3042         GVariant *reply;
3043         int ret_dbus;
3044
3045         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3046                         "/Org/Tizen/System/DeviceD/PmQos",
3047                         "org.tizen.system.deviced.PmQos",
3048                         "LockScreen",
3049                         g_variant_new("(i)", param1),
3050                         &reply);;
3051         if (ret_dbus < 0) {
3052                 _E("failed LockScreen");
3053                 return 0;
3054         }
3055
3056         g_variant_get(reply, "(i)", &val1);
3057         g_variant_unref(reply);
3058
3059         return val1;
3060 }
3061
3062 // IMEInput : in i, out i
3063
3064 gint test_deviced_PmQos_IMEInput(gint param1)
3065 {
3066         gint val1;
3067         GVariant *reply;
3068         int ret_dbus;
3069
3070         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3071                         "/Org/Tizen/System/DeviceD/PmQos",
3072                         "org.tizen.system.deviced.PmQos",
3073                         "IMEInput",
3074                         g_variant_new("(i)", param1),
3075                         &reply);;
3076         if (ret_dbus < 0) {
3077                 _E("failed IMEInput");
3078                 return 0;
3079         }
3080
3081         g_variant_get(reply, "(i)", &val1);
3082         g_variant_unref(reply);
3083
3084         return val1;
3085 }
3086
3087 // ImageViewer : in i, out i
3088
3089 gint test_deviced_PmQos_ImageViewer(gint param1)
3090 {
3091         gint val1;
3092         GVariant *reply;
3093         int ret_dbus;
3094
3095         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3096                         "/Org/Tizen/System/DeviceD/PmQos",
3097                         "org.tizen.system.deviced.PmQos",
3098                         "ImageViewer",
3099                         g_variant_new("(i)", param1),
3100                         &reply);;
3101         if (ret_dbus < 0) {
3102                 _E("failed ImageViewer");
3103                 return 0;
3104         }
3105
3106         g_variant_get(reply, "(i)", &val1);
3107         g_variant_unref(reply);
3108
3109         return val1;
3110 }
3111
3112 // HomeScreen : in i, out i
3113
3114 gint test_deviced_PmQos_HomeScreen(gint param1)
3115 {
3116         gint val1;
3117         GVariant *reply;
3118         int ret_dbus;
3119
3120         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3121                         "/Org/Tizen/System/DeviceD/PmQos",
3122                         "org.tizen.system.deviced.PmQos",
3123                         "HomeScreen",
3124                         g_variant_new("(i)", param1),
3125                         &reply);;
3126         if (ret_dbus < 0) {
3127                 _E("failed HomeScreen");
3128                 return 0;
3129         }
3130
3131         g_variant_get(reply, "(i)", &val1);
3132         g_variant_unref(reply);
3133
3134         return val1;
3135 }
3136
3137 // GpuWakeup : in i, out i
3138
3139 gint test_deviced_PmQos_GpuWakeup(gint param1)
3140 {
3141         gint val1;
3142         GVariant *reply;
3143         int ret_dbus;
3144
3145         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3146                         "/Org/Tizen/System/DeviceD/PmQos",
3147                         "org.tizen.system.deviced.PmQos",
3148                         "GpuWakeup",
3149                         g_variant_new("(i)", param1),
3150                         &reply);;
3151         if (ret_dbus < 0) {
3152                 _E("failed GpuWakeup");
3153                 return 0;
3154         }
3155
3156         g_variant_get(reply, "(i)", &val1);
3157         g_variant_unref(reply);
3158
3159         return val1;
3160 }
3161
3162 // GpuBoost : in i, out i
3163
3164 gint test_deviced_PmQos_GpuBoost(gint param1)
3165 {
3166         gint val1;
3167         GVariant *reply;
3168         int ret_dbus;
3169
3170         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3171                         "/Org/Tizen/System/DeviceD/PmQos",
3172                         "org.tizen.system.deviced.PmQos",
3173                         "GpuBoost",
3174                         g_variant_new("(i)", param1),
3175                         &reply);;
3176         if (ret_dbus < 0) {
3177                 _E("failed GpuBoost");
3178                 return 0;
3179         }
3180
3181         g_variant_get(reply, "(i)", &val1);
3182         g_variant_unref(reply);
3183
3184         return val1;
3185 }
3186
3187 // GpsSerialCno : in i, out i
3188
3189 gint test_deviced_PmQos_GpsSerialCno(gint param1)
3190 {
3191         gint val1;
3192         GVariant *reply;
3193         int ret_dbus;
3194
3195         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3196                         "/Org/Tizen/System/DeviceD/PmQos",
3197                         "org.tizen.system.deviced.PmQos",
3198                         "GpsSerialCno",
3199                         g_variant_new("(i)", param1),
3200                         &reply);;
3201         if (ret_dbus < 0) {
3202                 _E("failed GpsSerialCno");
3203                 return 0;
3204         }
3205
3206         g_variant_get(reply, "(i)", &val1);
3207         g_variant_unref(reply);
3208
3209         return val1;
3210 }
3211
3212 // GetDefaultLockTime : in , out i
3213
3214 gint test_deviced_PmQos_GetDefaultLockTime(void)
3215 {
3216         gint val1;
3217         GVariant *reply;
3218         int ret_dbus;
3219
3220         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3221                         "/Org/Tizen/System/DeviceD/PmQos",
3222                         "org.tizen.system.deviced.PmQos",
3223                         "GetDefaultLockTime",
3224                         NULL,
3225                         &reply);;
3226         if (ret_dbus < 0) {
3227                 _E("failed GetDefaultLockTime");
3228                 return 0;
3229         }
3230
3231         g_variant_get(reply, "(i)", &val1);
3232         g_variant_unref(reply);
3233
3234         return val1;
3235 }
3236
3237 // GalleryRotation : in i, out i
3238
3239 gint test_deviced_PmQos_GalleryRotation(gint param1)
3240 {
3241         gint val1;
3242         GVariant *reply;
3243         int ret_dbus;
3244
3245         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3246                         "/Org/Tizen/System/DeviceD/PmQos",
3247                         "org.tizen.system.deviced.PmQos",
3248                         "GalleryRotation",
3249                         g_variant_new("(i)", param1),
3250                         &reply);;
3251         if (ret_dbus < 0) {
3252                 _E("failed GalleryRotation");
3253                 return 0;
3254         }
3255
3256         g_variant_get(reply, "(i)", &val1);
3257         g_variant_unref(reply);
3258
3259         return val1;
3260 }
3261
3262 // GalleryScroll : in i, out i
3263
3264 gint test_deviced_PmQos_GalleryScroll(gint param1)
3265 {
3266         gint val1;
3267         GVariant *reply;
3268         int ret_dbus;
3269
3270         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3271                         "/Org/Tizen/System/DeviceD/PmQos",
3272                         "org.tizen.system.deviced.PmQos",
3273                         "GalleryScroll",
3274                         g_variant_new("(i)", param1),
3275                         &reply);;
3276         if (ret_dbus < 0) {
3277                 _E("failed GalleryScroll");
3278                 return 0;
3279         }
3280
3281         g_variant_get(reply, "(i)", &val1);
3282         g_variant_unref(reply);
3283
3284         return val1;
3285 }
3286
3287 // Emergency : in i, out i
3288
3289 gint test_deviced_PmQos_Emergency(gint param1)
3290 {
3291         gint val1;
3292         GVariant *reply;
3293         int ret_dbus;
3294
3295         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3296                         "/Org/Tizen/System/DeviceD/PmQos",
3297                         "org.tizen.system.deviced.PmQos",
3298                         "Emergency",
3299                         g_variant_new("(i)", param1),
3300                         &reply);;
3301         if (ret_dbus < 0) {
3302                 _E("failed Emergency");
3303                 return 0;
3304         }
3305
3306         g_variant_get(reply, "(i)", &val1);
3307         g_variant_unref(reply);
3308
3309         return val1;
3310 }
3311
3312 // ContactSearch : in i, out i
3313
3314 gint test_deviced_PmQos_ContactSearch(gint param1)
3315 {
3316         gint val1;
3317         GVariant *reply;
3318         int ret_dbus;
3319
3320         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3321                         "/Org/Tizen/System/DeviceD/PmQos",
3322                         "org.tizen.system.deviced.PmQos",
3323                         "ContactSearch",
3324                         g_variant_new("(i)", param1),
3325                         &reply);;
3326         if (ret_dbus < 0) {
3327                 _E("failed ContactSearch");
3328                 return 0;
3329         }
3330
3331         g_variant_get(reply, "(i)", &val1);
3332         g_variant_unref(reply);
3333
3334         return val1;
3335 }
3336
3337 // CameraSoundAndShot : in i, out i
3338
3339 gint test_deviced_PmQos_CameraSoundAndShot(gint param1)
3340 {
3341         gint val1;
3342         GVariant *reply;
3343         int ret_dbus;
3344
3345         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3346                         "/Org/Tizen/System/DeviceD/PmQos",
3347                         "org.tizen.system.deviced.PmQos",
3348                         "CameraSoundAndShot",
3349                         g_variant_new("(i)", param1),
3350                         &reply);;
3351         if (ret_dbus < 0) {
3352                 _E("failed CameraSoundAndShot");
3353                 return 0;
3354         }
3355
3356         g_variant_get(reply, "(i)", &val1);
3357         g_variant_unref(reply);
3358
3359         return val1;
3360 }
3361
3362 // CameraRecording : in i, out i
3363
3364 gint test_deviced_PmQos_CameraRecording(gint param1)
3365 {
3366         gint val1;
3367         GVariant *reply;
3368         int ret_dbus;
3369
3370         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3371                         "/Org/Tizen/System/DeviceD/PmQos",
3372                         "org.tizen.system.deviced.PmQos",
3373                         "CameraRecording",
3374                         g_variant_new("(i)", param1),
3375                         &reply);;
3376         if (ret_dbus < 0) {
3377                 _E("failed CameraRecording");
3378                 return 0;
3379         }
3380
3381         g_variant_get(reply, "(i)", &val1);
3382         g_variant_unref(reply);
3383
3384         return val1;
3385 }
3386
3387 // CameraPreview : in i, out i
3388
3389 gint test_deviced_PmQos_CameraPreview(gint param1)
3390 {
3391         gint val1;
3392         GVariant *reply;
3393         int ret_dbus;
3394
3395         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3396                         "/Org/Tizen/System/DeviceD/PmQos",
3397                         "org.tizen.system.deviced.PmQos",
3398                         "CameraPreview",
3399                         g_variant_new("(i)", param1),
3400                         &reply);;
3401         if (ret_dbus < 0) {
3402                 _E("failed CameraPreview");
3403                 return 0;
3404         }
3405
3406         g_variant_get(reply, "(i)", &val1);
3407         g_variant_unref(reply);
3408
3409         return val1;
3410 }
3411
3412 // CameraCaptureAtRec : in i, out i
3413
3414 gint test_deviced_PmQos_CameraCaptureAtRec(gint param1)
3415 {
3416         gint val1;
3417         GVariant *reply;
3418         int ret_dbus;
3419
3420         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3421                         "/Org/Tizen/System/DeviceD/PmQos",
3422                         "org.tizen.system.deviced.PmQos",
3423                         "CameraCaptureAtRec",
3424                         g_variant_new("(i)", param1),
3425                         &reply);;
3426         if (ret_dbus < 0) {
3427                 _E("failed CameraCaptureAtRec");
3428                 return 0;
3429         }
3430
3431         g_variant_get(reply, "(i)", &val1);
3432         g_variant_unref(reply);
3433
3434         return val1;
3435 }
3436
3437 // CameraBurstShot : in i, out i
3438
3439 gint test_deviced_PmQos_CameraBurstShot(gint param1)
3440 {
3441         gint val1;
3442         GVariant *reply;
3443         int ret_dbus;
3444
3445         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3446                         "/Org/Tizen/System/DeviceD/PmQos",
3447                         "org.tizen.system.deviced.PmQos",
3448                         "CameraBurstShot",
3449                         g_variant_new("(i)", param1),
3450                         &reply);;
3451         if (ret_dbus < 0) {
3452                 _E("failed CameraBurstShot");
3453                 return 0;
3454         }
3455
3456         g_variant_get(reply, "(i)", &val1);
3457         g_variant_unref(reply);
3458
3459         return val1;
3460 }
3461
3462 // CallSound : in i, out i
3463
3464 gint test_deviced_PmQos_CallSound(gint param1)
3465 {
3466         gint val1;
3467         GVariant *reply;
3468         int ret_dbus;
3469
3470         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3471                         "/Org/Tizen/System/DeviceD/PmQos",
3472                         "org.tizen.system.deviced.PmQos",
3473                         "CallSound",
3474                         g_variant_new("(i)", param1),
3475                         &reply);;
3476         if (ret_dbus < 0) {
3477                 _E("failed CallSound");
3478                 return 0;
3479         }
3480
3481         g_variant_get(reply, "(i)", &val1);
3482         g_variant_unref(reply);
3483
3484         return val1;
3485 }
3486
3487 // BrowserScroll : in i, out i
3488
3489 gint test_deviced_PmQos_BrowserScroll(gint param1)
3490 {
3491         gint val1;
3492         GVariant *reply;
3493         int ret_dbus;
3494
3495         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3496                         "/Org/Tizen/System/DeviceD/PmQos",
3497                         "org.tizen.system.deviced.PmQos",
3498                         "BrowserScroll",
3499                         g_variant_new("(i)", param1),
3500                         &reply);;
3501         if (ret_dbus < 0) {
3502                 _E("failed BrowserScroll");
3503                 return 0;
3504         }
3505
3506         g_variant_get(reply, "(i)", &val1);
3507         g_variant_unref(reply);
3508
3509         return val1;
3510 }
3511
3512 // BrowserLoading : in i, out i
3513
3514 gint test_deviced_PmQos_BrowserLoading(gint param1)
3515 {
3516         gint val1;
3517         GVariant *reply;
3518         int ret_dbus;
3519
3520         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3521                         "/Org/Tizen/System/DeviceD/PmQos",
3522                         "org.tizen.system.deviced.PmQos",
3523                         "BrowserLoading",
3524                         g_variant_new("(i)", param1),
3525                         &reply);;
3526         if (ret_dbus < 0) {
3527                 _E("failed BrowserLoading");
3528                 return 0;
3529         }
3530
3531         g_variant_get(reply, "(i)", &val1);
3532         g_variant_unref(reply);
3533
3534         return val1;
3535 }
3536
3537 // BrowserJavaScript : in i, out i
3538
3539 gint test_deviced_PmQos_BrowserJavaScript(gint param1)
3540 {
3541         gint val1;
3542         GVariant *reply;
3543         int ret_dbus;
3544
3545         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3546                         "/Org/Tizen/System/DeviceD/PmQos",
3547                         "org.tizen.system.deviced.PmQos",
3548                         "BrowserJavaScript",
3549                         g_variant_new("(i)", param1),
3550                         &reply);;
3551         if (ret_dbus < 0) {
3552                 _E("failed BrowserJavaScript");
3553                 return 0;
3554         }
3555
3556         g_variant_get(reply, "(i)", &val1);
3557         g_variant_unref(reply);
3558
3559         return val1;
3560 }
3561
3562 // BrowserDash : in i, out i
3563
3564 gint test_deviced_PmQos_BrowserDash(gint param1)
3565 {
3566         gint val1;
3567         GVariant *reply;
3568         int ret_dbus;
3569
3570         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3571                         "/Org/Tizen/System/DeviceD/PmQos",
3572                         "org.tizen.system.deviced.PmQos",
3573                         "BrowserDash",
3574                         g_variant_new("(i)", param1),
3575                         &reply);;
3576         if (ret_dbus < 0) {
3577                 _E("failed BrowserDash");
3578                 return 0;
3579         }
3580
3581         g_variant_get(reply, "(i)", &val1);
3582         g_variant_unref(reply);
3583
3584         return val1;
3585 }
3586
3587 // Browser : in i, out i
3588
3589 gint test_deviced_PmQos_Browser(gint param1)
3590 {
3591         gint val1;
3592         GVariant *reply;
3593         int ret_dbus;
3594
3595         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3596                         "/Org/Tizen/System/DeviceD/PmQos",
3597                         "org.tizen.system.deviced.PmQos",
3598                         "Browser",
3599                         g_variant_new("(i)", param1),
3600                         &reply);;
3601         if (ret_dbus < 0) {
3602                 _E("failed Browser");
3603                 return 0;
3604         }
3605
3606         g_variant_get(reply, "(i)", &val1);
3607         g_variant_unref(reply);
3608
3609         return val1;
3610 }
3611
3612 // BeautyShot : in i, out i
3613
3614 gint test_deviced_PmQos_BeautyShot(gint param1)
3615 {
3616         gint val1;
3617         GVariant *reply;
3618         int ret_dbus;
3619
3620         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3621                         "/Org/Tizen/System/DeviceD/PmQos",
3622                         "org.tizen.system.deviced.PmQos",
3623                         "BeautyShot",
3624                         g_variant_new("(i)", param1),
3625                         &reply);;
3626         if (ret_dbus < 0) {
3627                 _E("failed BeautyShot");
3628                 return 0;
3629         }
3630
3631         g_variant_get(reply, "(i)", &val1);
3632         g_variant_unref(reply);
3633
3634         return val1;
3635 }
3636
3637 // AppLaunchHome : in i, out i
3638
3639 gint test_deviced_PmQos_AppLaunchHome(gint param1)
3640 {
3641         gint val1;
3642         GVariant *reply;
3643         int ret_dbus;
3644
3645         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3646                         "/Org/Tizen/System/DeviceD/PmQos",
3647                         "org.tizen.system.deviced.PmQos",
3648                         "AppLaunchHome",
3649                         g_variant_new("(i)", param1),
3650                         &reply);;
3651         if (ret_dbus < 0) {
3652                 _E("failed AppLaunchHome");
3653                 return 0;
3654         }
3655
3656         g_variant_get(reply, "(i)", &val1);
3657         g_variant_unref(reply);
3658
3659         return val1;
3660 }
3661
3662 // AppLaunch : in i, out i
3663
3664 gint test_deviced_PmQos_AppLaunch(gint param1)
3665 {
3666         gint val1;
3667         GVariant *reply;
3668         int ret_dbus;
3669
3670         ret_dbus = dbus_handle_method_sync_with_reply_var("org.tizen.system.deviced",
3671                         "/Org/Tizen/System/DeviceD/PmQos",
3672                         "org.tizen.system.deviced.PmQos",
3673                         "AppLaunch",
3674                         g_variant_new("(i)", param1),
3675                         &reply);;
3676         if (ret_dbus < 0) {
3677                 _E("failed AppLaunch");
3678                 return 0;
3679         }
3680
3681         g_variant_get(reply, "(i)", &val1);
3682         g_variant_unref(reply);
3683
3684         return val1;
3685 }