Home
last modified time | relevance | path

Searched refs:ExtensionBuilder (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DExtensionController.java29 <T> ExtensionBuilder<T> newExtension(Class<T> cls); in newExtension()
50 interface ExtensionBuilder<T> { interface
51 ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory); in withTunerFactory()
52 <P extends T> ExtensionBuilder<T> withPlugin(Class<P> cls); in withPlugin()
53 <P extends T> ExtensionBuilder<T> withPlugin(Class<P> cls, String action); in withPlugin()
54 <P> ExtensionBuilder<T> withPlugin(Class<P> cls, String action, in withPlugin()
56 ExtensionBuilder<T> withDefault(Supplier<T> def); in withDefault()
57 ExtensionBuilder<T> withCallback(Consumer<T> callback); in withCallback()
58 ExtensionBuilder<T> withUiMode(int mode, Supplier<T> def); in withUiMode()
59 ExtensionBuilder<T> withFeature(String feature, Supplier<T> def); in withFeature()
DExtensionControllerImpl.java73 public <T> ExtensionBuilder<T> newExtension(Class<T> cls) { in newExtension()
74 return new ExtensionBuilder<>(); in newExtension()
83 private class ExtensionBuilder<T> implements ExtensionController.ExtensionBuilder<T> { class in ExtensionControllerImpl
88 public ExtensionController.ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory) { in withTunerFactory()
94 public <P extends T> ExtensionController.ExtensionBuilder<T> withPlugin(Class<P> cls) { in withPlugin()
99 public <P extends T> ExtensionController.ExtensionBuilder<T> withPlugin(Class<P> cls, in withPlugin()
105 public <P> ExtensionController.ExtensionBuilder<T> withPlugin(Class<P> cls, in withPlugin()
112 public ExtensionController.ExtensionBuilder<T> withDefault(Supplier<T> def) { in withDefault()
118 public ExtensionController.ExtensionBuilder<T> withUiMode(int uiMode, in withUiMode()
125 public ExtensionController.ExtensionBuilder<T> withFeature(String feature, in withFeature()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeExtensionController.java35 public <T> ExtensionBuilder<T> newExtension(Class<T> cls) { in newExtension()
41 private class FakeExtensionBuilder<T> implements ExtensionBuilder<T> {
49 public ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory) { in withTunerFactory()
54 public <P extends T> ExtensionBuilder<T> withPlugin(Class<P> cls) { in withPlugin()
59 public <P extends T> ExtensionBuilder<T> withPlugin(Class<P> cls, String action) { in withPlugin()
64 …public <P> ExtensionBuilder<T> withPlugin(Class<P> cls, String action, PluginConverter<T, P> conve… in withPlugin()
69 public ExtensionBuilder<T> withDefault(Supplier<T> def) { in withDefault()
74 public ExtensionBuilder<T> withCallback(Consumer<T> callback) { in withCallback()
79 public ExtensionBuilder<T> withUiMode(int mode, Supplier<T> def) { in withUiMode()
84 public ExtensionBuilder<T> withFeature(String feature, Supplier<T> def) { in withFeature()