Home
last modified time | relevance | path

Searched refs:HasAndroidInjector (Results 1 – 13 of 13) sorted by relevance

/external/dagger2/java/dagger/android/
DAndroidInjection.java47 if (!(application instanceof HasAndroidInjector)) { in inject()
52 HasAndroidInjector.class.getCanonicalName())); in inject()
55 inject(activity, (HasAndroidInjector) application); in inject()
81 HasAndroidInjector hasAndroidInjector = findHasAndroidInjectorForFragment(fragment); in inject()
94 private static HasAndroidInjector findHasAndroidInjectorForFragment(Fragment fragment) { in findHasAndroidInjectorForFragment()
97 if (parentFragment instanceof HasAndroidInjector) { in findHasAndroidInjectorForFragment()
98 return (HasAndroidInjector) parentFragment; in findHasAndroidInjectorForFragment()
102 if (activity instanceof HasAndroidInjector) { in findHasAndroidInjectorForFragment()
103 return (HasAndroidInjector) activity; in findHasAndroidInjectorForFragment()
105 if (activity.getApplication() instanceof HasAndroidInjector) { in findHasAndroidInjectorForFragment()
[all …]
DHasAndroidInjector.java23 public interface HasAndroidInjector { interface
DDaggerFragment.java35 public abstract class DaggerFragment extends Fragment implements HasAndroidInjector {
DDaggerDialogFragment.java36 public abstract class DaggerDialogFragment extends DialogFragment implements HasAndroidInjector {
DDaggerActivity.java31 public abstract class DaggerActivity extends Activity implements HasAndroidInjector {
DDaggerApplication.java32 public abstract class DaggerApplication extends Application implements HasAndroidInjector {
/external/dagger2/java/dagger/android/support/
DAndroidSupportInjection.java26 import dagger.android.HasAndroidInjector;
57 HasAndroidInjector hasAndroidInjector = findHasAndroidInjectorForFragment(fragment); in inject()
70 private static void inject(Object target, HasAndroidInjector hasAndroidInjector) { in inject()
78 private static HasAndroidInjector findHasAndroidInjectorForFragment(Fragment fragment) { in findHasAndroidInjectorForFragment()
81 if (parentFragment instanceof HasAndroidInjector) { in findHasAndroidInjectorForFragment()
82 return (HasAndroidInjector) parentFragment; in findHasAndroidInjectorForFragment()
86 if (activity instanceof HasAndroidInjector) { in findHasAndroidInjectorForFragment()
87 return (HasAndroidInjector) activity; in findHasAndroidInjectorForFragment()
89 if (activity.getApplication() instanceof HasAndroidInjector) { in findHasAndroidInjectorForFragment()
90 return (HasAndroidInjector) activity.getApplication(); in findHasAndroidInjectorForFragment()
DDaggerDialogFragment.java24 import dagger.android.HasAndroidInjector;
34 public abstract class DaggerDialogFragment extends DialogFragment implements HasAndroidInjector {
DDaggerAppCompatDialogFragment.java24 import dagger.android.HasAndroidInjector;
35 implements HasAndroidInjector {
DDaggerFragment.java25 import dagger.android.HasAndroidInjector;
35 public abstract class DaggerFragment extends Fragment implements HasAndroidInjector {
DDaggerAppCompatActivity.java27 import dagger.android.HasAndroidInjector;
37 implements HasAndroidInjector {
/external/dagger2/javatests/dagger/android/
DAndroidInjectionTest.java52 public static class ApplicationInjectsFragment extends Application implements HasAndroidInjector {
71 public static class ActivityInjectsFragment extends Activity implements HasAndroidInjector {
91 implements HasAndroidInjector {
143 private static class ApplicationReturnsNull extends Application implements HasAndroidInjector {
/external/dagger2/javatests/dagger/android/support/
DAndroidSupportInjectionTest.java25 import dagger.android.HasAndroidInjector;
48 implements HasAndroidInjector {