Home
last modified time | relevance | path

Searched refs:AndroidClassNames (Results 1 – 15 of 15) sorted by relevance

/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/
DFragmentGenerator.java25 import dagger.hilt.android.processor.internal.AndroidClassNames;
35 FieldSpec.builder(AndroidClassNames.CONTEXT_WRAPPER, "componentContext")
74 Generators.addGeneratedBaseClassJavadoc(builder, AndroidClassNames.ANDROID_ENTRY_POINT); in createTypeSpec()
104 .addAnnotation(AndroidClassNames.CALL_SUPER) in onAttachContextMethod()
106 .addParameter(AndroidClassNames.CONTEXT, "context") in onAttachContextMethod()
124 .addAnnotation(AndroidClassNames.CALL_SUPER) in onAttachActivityMethod()
125 .addAnnotation(AndroidClassNames.MAIN_THREAD) in onAttachActivityMethod()
127 .addParameter(AndroidClassNames.ACTIVITY, "activity") in onAttachActivityMethod()
133 AndroidClassNames.FRAGMENT_COMPONENT_MANAGER, in onAttachActivityMethod()
175 .returns(AndroidClassNames.CONTEXT) in getContextMethod()
[all …]
DAndroidEntryPointMetadata.java34 import dagger.hilt.android.processor.internal.AndroidClassNames;
101 return Processors.hasAnnotation(element(), AndroidClassNames.OPTIONAL_INJECT); in allowsOptionalInjection()
167 AndroidClassNames.HILT_ANDROID_APP,
168 AndroidClassNames.ANDROID_ENTRY_POINT);
385 AndroidClassNames.SINGLETON_COMPONENT,
387 AndroidClassNames.APPLICATION_COMPONENT_MANAGER,
391 AndroidClassNames.SERVICE_COMPONENT,
393 AndroidClassNames.SERVICE_COMPONENT_MANAGER,
397 AndroidClassNames.SINGLETON_COMPONENT,
399 AndroidClassNames.BROADCAST_RECEIVER_COMPONENT_MANAGER,
[all …]
DActivityGenerator.java25 import dagger.hilt.android.processor.internal.AndroidClassNames;
56 Generators.addGeneratedBaseClassJavadoc(builder, AndroidClassNames.ANDROID_ENTRY_POINT); in generate()
72 if (Processors.isAssignableFrom(metadata.baseElement(), AndroidClassNames.COMPONENT_ACTIVITY) in generate()
90 .addAnnotation(AndroidClassNames.CALL_SUPER) in onCreate()
94 ParameterSpec.builder(AndroidClassNames.BUNDLE, "savedInstanceState") in onCreate()
95 .addAnnotation(AndroidClassNames.NULLABLE) in onCreate()
110 .returns(AndroidClassNames.VIEW_MODEL_PROVIDER_FACTORY) in getDefaultViewModelProviderFactory()
113 AndroidClassNames.DEFAULT_VIEW_MODEL_FACTORIES) in getDefaultViewModelProviderFactory()
DApplicationGenerator.java29 import dagger.hilt.android.processor.internal.AndroidClassNames;
61 Generators.addGeneratedBaseClassJavadoc(typeSpecBuilder, AndroidClassNames.HILT_ANDROID_APP); in generate()
84 .initializer("new $T($L)", AndroidClassNames.APPLICATION_COMPONENT_MANAGER, creatorType()) in componentManagerField()
111 metadata.elementClassName(), AndroidClassNames.SINGLETON_COMPONENT); in creatorType()
113 .addSuperinterface(AndroidClassNames.COMPONENT_SUPPLIER) in creatorType()
124 AndroidClassNames.APPLICATION_CONTEXT_MODULE, in creatorType()
140 .addAnnotation(AndroidClassNames.CALL_SUPER) in onCreateMethod()
DBroadcastReceiverGenerator.java30 import dagger.hilt.android.processor.internal.AndroidClassNames;
71 Generators.addGeneratedBaseClassJavadoc(builder, AndroidClassNames.ANDROID_ENTRY_POINT); in generate()
125 .addAnnotation(AndroidClassNames.CALL_SUPER) in onReceiveMethod()
127 .addParameter(ParameterSpec.builder(AndroidClassNames.CONTEXT, "context").build()) in onReceiveMethod()
128 .addParameter(ParameterSpec.builder(AndroidClassNames.INTENT, "intent").build()) in onReceiveMethod()
142 .getTypeElement(AndroidClassNames.BROADCAST_RECEIVER.toString()), in onReceiveMethod()
DGenerators.java32 import dagger.hilt.android.processor.internal.AndroidClassNames;
92 return AndroidClassNames.NULLABLE_INTERNAL.equals(annotationSpec.type) in getNullableAnnotationSpec()
93 ? Optional.of(AnnotationSpec.builder(AndroidClassNames.NULLABLE).build()) in getNullableAnnotationSpec()
138 .filter(a -> Processors.hasAnnotation(a, AndroidClassNames.TARGET_API)) in copyConstructor()
152 if (Processors.hasAnnotation(element, AndroidClassNames.TARGET_API)) { in copyLintAnnotations()
155 Processors.getAnnotationMirror(element, AndroidClassNames.TARGET_API))); in copyLintAnnotations()
316 AndroidClassNames.INJECTED_BY_HILT, in addInjectMethod()
317 AndroidClassNames.INJECTED_BY_HILT) in addInjectMethod()
350 .addParameter(ParameterSpec.builder(AndroidClassNames.CONTEXT, "context").build()) in addInjectMethod()
385 typeSpecBuilder.addSuperinterface(AndroidClassNames.INJECTED_BY_HILT); in addInjectMethod()
DViewGenerator.java27 import dagger.hilt.android.processor.internal.AndroidClassNames;
70 Generators.addGeneratedBaseClassJavadoc(builder, AndroidClassNames.ANDROID_ENTRY_POINT); in generate()
123 AnnotationSpec.builder(AndroidClassNames.TARGET_API).addMember("value", "21").build()); in constructorMethod()
182 MoreElements.asType(element), AndroidClassNames.ATTRIBUTE_SET); in isSecondRestrictedParameter()
187 && Processors.isAssignableFrom(MoreElements.asType(element), AndroidClassNames.CONTEXT); in isFirstRestrictedParameter()
DAndroidEntryPointProcessor.java23 import dagger.hilt.android.processor.internal.AndroidClassNames;
42 AndroidClassNames.ANDROID_ENTRY_POINT.toString(), in getSupportedAnnotationTypes()
43 AndroidClassNames.HILT_ANDROID_APP.toString()); in getSupportedAnnotationTypes()
DServiceGenerator.java26 import dagger.hilt.android.processor.internal.AndroidClassNames;
61 Generators.addGeneratedBaseClassJavadoc(builder, AndroidClassNames.ANDROID_ENTRY_POINT); in generate()
105 .addAnnotation(AndroidClassNames.CALL_SUPER) in onCreateMethod()
/external/dagger2/java/dagger/hilt/android/processor/internal/viewmodel/
DViewModelModuleGenerator.kt25 import dagger.hilt.android.processor.internal.AndroidClassNames in <lambda>()
93 component = AndroidClassNames.VIEW_MODEL_COMPONENT in <lambda>()
108 .addAnnotation(AndroidClassNames.HILT_VIEW_MODEL_MAP_QUALIFIER) in <lambda>()
110 .returns(AndroidClassNames.VIEW_MODEL) in <lambda>()
116 component = AndroidClassNames.ACTIVITY_RETAINED_COMPONENT in <lambda>()
131 .addAnnotation(AndroidClassNames.HILT_VIEW_MODEL_KEYS_QUALIFIER) in <lambda>()
DViewModelMetadata.kt21 import dagger.hilt.android.processor.internal.AndroidClassNames in <lambda>()
55 elements.getTypeElement(AndroidClassNames.VIEW_MODEL.toString()).asType() in <lambda>()
59 AndroidClassNames.VIEW_MODEL in <lambda>()
DViewModelValidationPlugin.kt24 import dagger.hilt.android.processor.internal.AndroidClassNames in <lambda>()
73 hasAnnotation(asElement(target.key().type()), AndroidClassNames.HILT_VIEW_MODEL) in <lambda>()
89 AndroidClassNames.HILT_VIEW_MODEL_MAP_QUALIFIER && in <lambda>()
DViewModelProcessor.kt21 import dagger.hilt.android.processor.internal.AndroidClassNames in <lambda>()
41 AndroidClassNames.HILT_VIEW_MODEL.toString() in <lambda>()
/external/dagger2/java/dagger/hilt/android/processor/internal/
DAndroidClassNames.java24 public final class AndroidClassNames { class
116 private AndroidClassNames() {} in AndroidClassNames() method in AndroidClassNames
DBUILD23 "AndroidClassNames.java",