Home
last modified time | relevance | path

Searched refs:PluginInstance (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginActionManager.java69 private final PluginInstance.Factory mPluginInstanceFactory;
73 private final ArrayList<PluginInstance<T>> mPluginInstances = new ArrayList<>();
93 PluginInstance.Factory pluginInstanceFactory) { in PluginActionManager()
118 ArrayList<PluginInstance<T>> plugins = new ArrayList<>(mPluginInstances); in destroy()
119 for (PluginInstance<T> plugInstance : plugins) { in destroy()
140 ArrayList<PluginInstance<T>> plugins = new ArrayList<>(mPluginInstances); in checkAndDisable()
141 for (PluginInstance<T> info : plugins) { in checkAndDisable()
151 ArrayList<PluginInstance<T>> plugins = new ArrayList<>(mPluginInstances); in disableAll()
176 PluginInstance<T> pluginInstance, @PluginEnabler.DisableReason int reason) { in disable()
195 ArrayList<PluginInstance<T>> instances = new ArrayList<>(mPluginInstances); in dependsOn()
[all …]
DPluginInstance.java52 public class PluginInstance<T extends Plugin> implements PluginLifecycleManager { class
66 public PluginInstance( in PluginInstance() method in PluginInstance
236 public <T extends Plugin> PluginInstance<T> create( in create()
248 return new PluginInstance<T>( in create()
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/
DPluginsModule.java29 import com.android.systemui.shared.plugins.PluginInstance;
70 static PluginInstance.Factory providesPluginInstanceFactory( in providesPluginInstanceFactory()
73 return new PluginInstance.Factory( in providesPluginInstanceFactory()
75 new PluginInstance.InstanceFactory<>(), in providesPluginInstanceFactory()
76 new PluginInstance.VersionCheckerImpl(), in providesPluginInstanceFactory()
88 PluginInstance.Factory pluginInstanceFactory) { in providePluginInstanceManagerFactory()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
DPluginActionManagerTest.java79 private PluginInstance<TestPlugin> mPluginInstance;
80 private PluginInstance.Factory mPluginInstanceFactory = new PluginInstance.Factory(
82 new PluginInstance.InstanceFactory<>(), new PluginInstance.VersionCheckerImpl(),
85 public <T extends Plugin> PluginInstance<T> create(Context context, ApplicationInfo appInfo,
87 return (PluginInstance<T>) mPluginInstance;
102 mPluginInstance = mock(PluginInstance.class); in setup()
DPluginInstanceTest.java64 private PluginInstance.VersionChecker mVersionChecker;
67 private PluginInstance<TestPlugin> mPluginInstance;
68 private PluginInstance.Factory mPluginInstanceFactory;
84 mVersionChecker = new PluginInstance.VersionChecker() { in setup()
98 mPluginInstanceFactory = new PluginInstance.Factory( in setup()
100 new PluginInstance.InstanceFactory<TestPlugin>() { in setup()
/frameworks/base/packages/SystemUI/plugin/
DAndroid.bp44 // in PluginInstance. That will ensure that loaded plugins have access to the related classes.