/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/ |
D | FragmentGenerator.java | 25 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 …]
|
D | AndroidEntryPointMetadata.java | 34 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 …]
|
D | ActivityGenerator.java | 25 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()
|
D | ApplicationGenerator.java | 29 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()
|
D | BroadcastReceiverGenerator.java | 30 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()
|
D | Generators.java | 32 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()
|
D | ViewGenerator.java | 27 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()
|
D | AndroidEntryPointProcessor.java | 23 import dagger.hilt.android.processor.internal.AndroidClassNames; 42 AndroidClassNames.ANDROID_ENTRY_POINT.toString(), in getSupportedAnnotationTypes() 43 AndroidClassNames.HILT_ANDROID_APP.toString()); in getSupportedAnnotationTypes()
|
D | ServiceGenerator.java | 26 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/ |
D | ViewModelModuleGenerator.kt | 25 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>()
|
D | ViewModelMetadata.kt | 21 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>()
|
D | ViewModelValidationPlugin.kt | 24 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>()
|
D | ViewModelProcessor.kt | 21 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/ |
D | AndroidClassNames.java | 24 public final class AndroidClassNames { class 116 private AndroidClassNames() {} in AndroidClassNames() method in AndroidClassNames
|
D | BUILD | 23 "AndroidClassNames.java",
|