Home | History | Annotate | Download | only in plugins

Lines Matching refs:Plugin

30  * plugin.onCreate(Context sysuiContext, Context pluginContext);
33 * pluginListener.onPluginConnected(Plugin p);
34 * --- This lets the plugin hook know that a plugin is now connected.
36 * ** Any other calls back and forth between sysui/plugin **
38 * pluginListener.onPluginDisconnected(Plugin p);
39 * --- Lets the plugin hook know that it should stop interacting with
40 * this plugin and drop all references to it.
42 * plugin.onDestroy();
43 * --- Finally the plugin can perform any cleanup to ensure that its not
46 * Any time a plugin APK is updated the plugin is destroyed and recreated
51 * Creating plugin hooks:
53 * To create a plugin hook, first create an interface in
54 * frameworks/base/packages/SystemUI/plugin that extends Plugin.
57 * pass through into the plugin.
59 * Then to attach to any plugins simply add a plugin listener and
68 * public void onPluginConnected(OverlayPlugin plugin) {
71 * plugin.setup(phoneStatusBar.getStatusBarWindow(),
80 * aren't accidentally loaded. Since the plugin library is provided by
84 * Implementing a Plugin:
87 * a plugin. Note that SystemUILib is not static for plugins, its classes
90 * Plugin security is based around a signature permission, so plugins must
95 * <uses-permission android:name="com.android.systemui.permission.PLUGIN" />
99 * A plugin is found through a querying for services, so to let SysUI know
101 * of the plugin interface with the action accompanying it:
113 public interface Plugin {
120 // Default of -1 indicates the plugin supports the new Requires model.