blob: a922491495a80077c91eec29b9183ee56efce5a0 [file] [log] [blame]
Alex Vakulenko12e2c1a2014-11-21 08:57:57 -08001<?xml version="1.0" encoding="UTF-8" ?>
2
Alex Vakulenko63bdf082015-08-21 09:27:12 -07003<node name="/com/android/Weave/Manager"
Alex Vakulenko12e2c1a2014-11-21 08:57:57 -08004 xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
Alex Vakulenko63bdf082015-08-21 09:27:12 -07005 <interface name="com.android.Weave.Manager">
Alex Vakulenko12e2c1a2014-11-21 08:57:57 -08006 <tp:docstring>
7 The Manager is responsible for global state of Buffet. It exposes
8 interfaces which affect the entire device such as device registration and
9 device state.
10 </tp:docstring>
Alex Vakulenko12e2c1a2014-11-21 08:57:57 -080011 <method name="RegisterDevice">
Vitaly Bukacbadabe2015-05-14 23:33:32 -070012 <arg name="ticket_id" type="s" direction="in"/>
Alex Vakulenko12e2c1a2014-11-21 08:57:57 -080013 <arg name="device_id" type="s" direction="out"/>
14 <annotation name="org.chromium.DBus.Method.Kind" value="async"/>
15 </method>
16 <method name="UpdateState">
17 <arg name="property_set" type="a{sv}" direction="in"/>
18 <annotation name="org.chromium.DBus.Method.Kind" value="async"/>
19 </method>
Alex Vakulenkoceab1772015-01-20 10:50:04 -080020 <method name="GetState">
21 <arg name="device_info" type="s" direction="out"/>
22 <annotation name="org.chromium.DBus.Method.Kind" value="normal"/>
23 </method>
Alex Vakulenko12e2c1a2014-11-21 08:57:57 -080024 <method name="AddCommand">
25 <arg name="json_command" type="s" direction="in"/>
Vitaly Buka59af7ac2015-03-24 12:42:24 -070026 <arg name="id" type="s" direction="out"/>
Alex Vakulenko12e2c1a2014-11-21 08:57:57 -080027 <annotation name="org.chromium.DBus.Method.Kind" value="async"/>
28 </method>
29 <method name="TestMethod">
30 <arg name="message" type="s" direction="in"/>
31 <arg name="echoed_message" type="s" direction="out"/>
32 <annotation name="org.chromium.DBus.Method.Kind" value="simple"/>
33 </method>
Christopher Wiley2f772932015-02-15 15:42:04 -080034 <property name="Status" type="s" access="read">
35 <tp:docstring>
36 State of Buffet's cloud registration.
37 Possible values include:
Vitaly Buka4a421832015-03-12 13:41:43 -070038 "unconfigured": Buffet has no credentials, either from an out of box
39 state, or because device was unregistered.
Christopher Wiley2f772932015-02-15 15:42:04 -080040
Vitaly Buka4a421832015-03-12 13:41:43 -070041 "connecting": Buffet is registered and attempting to connect to the
42 cloud.
43
44 "connected": Buffet is online and connected to the cloud. Note that
45 only this state requires internet connectivity.
46
47 "invalid_credentials": Buffet has credentials, but they are no longer
48 valid.
Christopher Wiley2f772932015-02-15 15:42:04 -080049 </tp:docstring>
50 </property>
Vitaly Buka6ea3bff2015-03-16 01:07:01 -070051 <property name="DeviceId" type="s" access="read">
52 <tp:docstring>
53 GCD ID if the device is registered or empty otherwise.
54 </tp:docstring>
55 </property>
Vitaly Buka2b30e7a2015-05-27 09:27:08 -070056 <property name="State" type="s" access="read">
57 <tp:docstring>
58 JSON with state of the devices.
59 </tp:docstring>
60 </property>
Vitaly Buka760d6322015-04-17 00:41:31 -070061 <property name="OemName" type="s" access="read">
62 <tp:docstring>
63 Name of the device maker.
64 </tp:docstring>
65 </property>
66 <property name="ModelName" type="s" access="read">
67 <tp:docstring>
68 Name of the device model.
69 </tp:docstring>
70 </property>
71 <property name="ModelId" type="s" access="read">
72 <tp:docstring>
73 Five character code assigned by the cloud registry of device models.
74 </tp:docstring>
75 </property>
76 <property name="Name" type="s" access="read">
77 <tp:docstring>
78 Human readable name of the device. Must not be empty.
79 </tp:docstring>
80 </property>
81 <property name="Description" type="s" access="read">
82 <tp:docstring>
83 Human readable description of the device.
84 </tp:docstring>
85 </property>
86 <property name="Location" type="s" access="read">
87 <tp:docstring>
88 Location of the device.
89 </tp:docstring>
90 </property>
Vitaly Buka7b3ba792015-06-09 17:01:54 -070091 <property name="GCDBootstrapState" type="s" access="read">
92 <tp:docstring>
93 Contains one of the following values describing the state of GCD
94 bootstrapping:
95 “disabled” - GCD registration has been disabled in the config file.
96 “offline” - GCD registration is unknown because the device is offline.
97 “connecting” - GCD registration is unknown because the device is still
98 connecting to the cloud.
99 “waiting” - Waiting to be configured with GCD credentials.
100 “registering” - Registering the device with the GCD servers.
101 “online” - Device is online and registered with GCD servers.
102
103 Note: more values may be added later to this list.
104
105 Clients that wish to present a single linear bootstrapping flow to users
106 may treat GCD bootstrapping states as a suffix to WiFi bootstrapping
107 states. If we have no cloud connectivity, we cannot possibly do GCD
108 registration/credential verification.
109 </tp:docstring>
110 </property>
111 <property name="PairingInfo" type="a{sv}" access="read">
112 <tp:docstring>
113 Describes the state of device pairing. While no pairing attempt is in
114 progress, this dictionary will be empty. When a client initiates a
115 pairing transaction via /privet/v3/pairing/start, dictionary will
116 contain the following keys:
117 “sessionId” - ID of the pairing session; generated by device
118 “pairingMode” - Selected type of pairing from /privet/v3/pairing/start
119 (e.g. “pinCode” or “embeddedCode”)
120 “code” - The pin code or embedded code as appropriate to the
121 “pairingMode” value. See design document.
122 This value will be a string.
123 </tp:docstring>
124 </property>
Alex Vakulenko12e2c1a2014-11-21 08:57:57 -0800125 </interface>
126</node>