summaryrefslogtreecommitdiff
path: root/packages/SystemUI/plugin
diff options
context:
space:
mode:
author Matt Pietal <mpietal@google.com> 2019-08-21 13:03:12 -0400
committer Matt Pietal <mpietal@google.com> 2019-08-21 13:40:12 -0400
commit50c8b50b37743383f73ccf02ba14f5106b551cdf (patch)
treef8d06a1655d7050025c2d0fb39683b36ddf0d0ef /packages/SystemUI/plugin
parent1bd1a784308854e9a9674e24751d0bc0a5074b33 (diff)
Controls: Add a temporary space for home controls integration
This space will only be visible by setting a flag to enable split status-bar functionality: adb shell device_config put systemui qs_split_enabled true To populate the view, you will also need to build and install an experimental plugin from google3, coming shortly. Test: manual Change-Id: Iccf712a0355ebf8d9c6da2dac63874820270d405
Diffstat (limited to 'packages/SystemUI/plugin')
-rw-r--r--packages/SystemUI/plugin/src/com/android/systemui/plugins/HomeControlsPlugin.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/SystemUI/plugin/src/com/android/systemui/plugins/HomeControlsPlugin.java b/packages/SystemUI/plugin/src/com/android/systemui/plugins/HomeControlsPlugin.java
new file mode 100644
index 000000000000..cac673fdbf0b
--- /dev/null
+++ b/packages/SystemUI/plugin/src/com/android/systemui/plugins/HomeControlsPlugin.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2019 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 com.android.systemui.plugins;
+
+import android.view.ViewGroup;
+
+import com.android.systemui.plugins.annotations.ProvidesInterface;
+
+/**
+ * Test plugin for home controls
+ */
+@ProvidesInterface(action = HomeControlsPlugin.ACTION, version = HomeControlsPlugin.VERSION)
+public interface HomeControlsPlugin extends Plugin {
+
+ String ACTION = "com.android.systemui.action.PLUGIN_HOME_CONTROLS";
+ int VERSION = 1;
+
+ /**
+ * Pass the container for the plugin to use however it wants. Ideally the plugin impl
+ * will add home controls to this space.
+ */
+ void sendParentGroup(ViewGroup group);
+}