aboutsummaryrefslogtreecommitdiff
path: root/brillo/android
diff options
context:
space:
mode:
Diffstat (limited to 'brillo/android')
-rw-r--r--brillo/android/weave/IWeaveClient.aidl27
-rw-r--r--brillo/android/weave/IWeaveCommand.aidl35
-rw-r--r--brillo/android/weave/IWeaveService.aidl23
-rw-r--r--brillo/android/weave/IWeaveServiceManager.aidl41
-rw-r--r--brillo/android/weave/IWeaveServiceManagerNotificationListener.aidl36
5 files changed, 162 insertions, 0 deletions
diff --git a/brillo/android/weave/IWeaveClient.aidl b/brillo/android/weave/IWeaveClient.aidl
new file mode 100644
index 0000000..7712c9d
--- /dev/null
+++ b/brillo/android/weave/IWeaveClient.aidl
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.weave;
+
+import android.weave.IWeaveCommand;
+import android.weave.IWeaveService;
+
+interface IWeaveClient {
+ oneway void onServiceConnected(in IWeaveService service);
+ oneway void onCommand(in String componentName,
+ in String commandName,
+ in IWeaveCommand command);
+}
diff --git a/brillo/android/weave/IWeaveCommand.aidl b/brillo/android/weave/IWeaveCommand.aidl
new file mode 100644
index 0000000..b445fb0
--- /dev/null
+++ b/brillo/android/weave/IWeaveCommand.aidl
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.weave;
+
+interface IWeaveCommand {
+ String getId();
+ String getName();
+ String getComponent();
+ String getState();
+ String getOrigin();
+ String getParameters();
+ String getProgress();
+ String getResults();
+
+ void setProgress(in String progress);
+ void complete(in String results);
+ void abort(in String errorCode, in String errorMessage);
+ void cancel();
+ void pause();
+ void setError(in String errorCode, in String errorMessage);
+}
diff --git a/brillo/android/weave/IWeaveService.aidl b/brillo/android/weave/IWeaveService.aidl
new file mode 100644
index 0000000..0fcc422
--- /dev/null
+++ b/brillo/android/weave/IWeaveService.aidl
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.weave;
+
+interface IWeaveService {
+ void addComponent(in String name, in List<String> traits);
+ void registerCommandHandler(in String component, in String command);
+ void updateState(in String component, in String state);
+}
diff --git a/brillo/android/weave/IWeaveServiceManager.aidl b/brillo/android/weave/IWeaveServiceManager.aidl
new file mode 100644
index 0000000..ff8a4c6
--- /dev/null
+++ b/brillo/android/weave/IWeaveServiceManager.aidl
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.weave;
+
+import android.weave.IWeaveClient;
+import android.weave.IWeaveServiceManagerNotificationListener;
+
+interface IWeaveServiceManager {
+ oneway void connect(in IWeaveClient client);
+ oneway void registerNotificationListener(
+ in IWeaveServiceManagerNotificationListener listener);
+
+ String getCloudId();
+ String getDeviceId();
+ String getDeviceName();
+ String getDeviceDescription();
+ String getDeviceLocation();
+ String getOemName();
+ String getModelName();
+ String getModelId();
+ String getPairingSessionId();
+ String getPairingMode();
+ String getPairingCode();
+ String getState();
+ String getTraits();
+ String getComponents();
+}
diff --git a/brillo/android/weave/IWeaveServiceManagerNotificationListener.aidl b/brillo/android/weave/IWeaveServiceManagerNotificationListener.aidl
new file mode 100644
index 0000000..a3b91a3
--- /dev/null
+++ b/brillo/android/weave/IWeaveServiceManagerNotificationListener.aidl
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package android.weave;
+
+oneway interface IWeaveServiceManagerNotificationListener {
+ const int CLOUD_ID = 1;
+ const int DEVICE_ID = 2;
+ const int DEVICE_NAME = 3;
+ const int DEVICE_DESCRIPTION = 4;
+ const int DEVICE_LOCATION = 5;
+ const int OEM_NAME = 6;
+ const int MODEL_NAME = 7;
+ const int MODEL_ID = 8;
+ const int PAIRING_SESSION_ID = 9;
+ const int PAIRING_MODE = 10;
+ const int PAIRING_CODE = 11;
+ const int TRAITS = 12;
+ const int COMPONENTS = 13;
+ const int STATE = 14;
+
+ void notifyServiceManagerChange(in int[] notificationIds);
+}