Searched refs:HasAndroidInjector (Results 1 – 13 of 13) sorted by relevance
47 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 …]
23 public interface HasAndroidInjector { interface
35 public abstract class DaggerFragment extends Fragment implements HasAndroidInjector {
36 public abstract class DaggerDialogFragment extends DialogFragment implements HasAndroidInjector {
31 public abstract class DaggerActivity extends Activity implements HasAndroidInjector {
32 public abstract class DaggerApplication extends Application implements HasAndroidInjector {
26 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()
24 import dagger.android.HasAndroidInjector;34 public abstract class DaggerDialogFragment extends DialogFragment implements HasAndroidInjector {
24 import dagger.android.HasAndroidInjector;35 implements HasAndroidInjector {
25 import dagger.android.HasAndroidInjector;35 public abstract class DaggerFragment extends Fragment implements HasAndroidInjector {
27 import dagger.android.HasAndroidInjector;37 implements HasAndroidInjector {
52 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 {
25 import dagger.android.HasAndroidInjector;48 implements HasAndroidInjector {