Lines Matching refs:to
2 *Dagger 2 is a dependency injection framework that compiles annotations to code
3 to create dependencies without reflection*
17 to use Dagger. Since a lot of SystemUI depends on Dependency, stubs have been added to Dependency
18 to proxy any gets through to the instances provided by dagger, this will allow migration of SystemU…
23 For the classes that we're using in Dependency and are switching to dagger, the
46 - `SystemUIFactory` `@Provides` dependencies that need to be overridden by SystemUI
49 - `DependencyBinder` creates the mapping from interfaces to implementation classes.
53 ### Adding injection to a new SystemUI object
58 object you need injected. The subcomponent also needs to be added to
107 If you have an interface class and an implementation class, dagger needs to know
108 how to map it. The simplest way to do this is to add an `@Provides` method to
123 If you need to access this from Dependency#get, then add an adapter to Dependency
124 that maps to the instance provided by Dagger. The changes should be similar
125 to the following diff.
141 Fragments are created as part of the FragmentManager, so they need to be
142 setup so the manager knows how to create them. To do that, add a method
143 to com.android.systemui.fragments.FragmentService$FragmentCreator that
146 whenever your fragment needs to be created.
154 If you need to create your fragment (i.e. for the add or replace transaction),
163 Generally, you shouldn't need to inject for a view, as the view should
165 moved to a higher level construct such as a Fragment or a top-level SystemUI
166 component, see above for how to do injection for both of which.
169 lot of code that could benefit from injection and will need to be migrated
170 off from Dependency#get uses. Similar to how fragments are injected, the view
171 needs to be added to the interface
180 Presumably you need to inflate that view from XML (otherwise why do you
194 There is one other important thing to note about injecting with views. SysUI
197 theming. Because of this, always ensure to tag views that have @Inject with