Home
last modified time | relevance | path

Searched full:provides (Results 1 – 25 of 17126) sorted by relevance

12345678910>>...686

/external/dagger2/javatests/dagger/functional/multibindings/
DMultibindingModule.java21 import dagger.Provides;
40 @Provides
47 @Provides
54 @Provides
61 @Provides
68 @Provides
74 @Provides
80 @Provides
89 @Provides
94 @Provides
[all …]
/external/dagger2/javatests/dagger/functional/kotlinsrc/multibindings/
DMultibindingModule.kt20 import dagger.Provides
36 @Provides
41 @Provides @IntoMap @StringKey("bar") fun provideBarKey(): String = "bar value"
43 @Provides
50 @Provides
55 @Provides @IntoSet fun provideFiveToSet(): Int = 5
57 @Provides @IntoSet fun provideSixToSet(): Int = 6
59 @Provides @ElementsIntoSet fun provideElementsIntoSet(): Set<Int> = setOf(-101, -102)
61 @Provides
65 @Provides fun provideMapValues(map: Map<String, String>): Collection<String> = map.values
[all …]
/external/dagger2/javatests/dagger/internal/codegen/
DModuleFactoryGeneratorTest.java49 assertThatMethodInUnannotatedClass("@Provides String provideString() { return null; }") in providesMethodNotInModule()
50 .hasError("@Provides methods can only be present within a @Module or @ProducerModule"); in providesMethodNotInModule()
54 assertThatModuleMethod("@Provides abstract String abstractMethod();") in providesMethodAbstract()
55 .hasError("@Provides methods cannot be abstract"); in providesMethodAbstract()
59 assertThatModuleMethod("@Provides private String privateMethod() { return null; }") in providesMethodPrivate()
60 .hasError("@Provides methods cannot be private"); in providesMethodPrivate()
64 assertThatModuleMethod("@Provides void voidMethod() {}") in providesMethodReturnVoid()
65 .hasError("@Provides methods must return a value (not void)"); in providesMethodReturnVoid()
70 assertThatModuleMethod("@Provides Provider<String> provideProvider() {}") in providesMethodReturnsProvider()
71 .hasError("@Provides methods must not return framework types"); in providesMethodReturnsProvider()
[all …]
DDuplicateBindingsValidationTest.java56 "import dagger.Provides;", in duplicateExplicitBindings_ProvidesAndComponentProvision()
65 " @Provides String provideString() { return \"\"; }", in duplicateExplicitBindings_ProvidesAndComponentProvision()
66 " @Provides A provideA(String s) { return new A() {}; }", in duplicateExplicitBindings_ProvidesAndComponentProvision()
76 " @Provides B provideB(A a) { return new B() {}; }", in duplicateExplicitBindings_ProvidesAndComponentProvision()
96 " @Provides Outer.A Outer.AModule.provideA(String)", in duplicateExplicitBindings_ProvidesAndComponentProvision()
111 "import dagger.Provides;", in duplicateExplicitBindings_TwoProvidesMethods()
123 " @Provides A provideA1() { return new A() {}; }", in duplicateExplicitBindings_TwoProvidesMethods()
128 " @Provides String provideString() { return \"\"; }", in duplicateExplicitBindings_TwoProvidesMethods()
129 " @Provides A provideA2(String s) { return new A() {}; }", in duplicateExplicitBindings_TwoProvidesMethods()
156 " @Provides Outer.A Outer.Module1.provideA1()", in duplicateExplicitBindings_TwoProvidesMethods()
[all …]
DIgnoreProvisionKeyWildcardsTest.java74 " @Provides static Foo<? extends Bar> fooExtends() { return null; }", in testProvidesUniqueBindingsWithDifferentTypeVariances()
75 " @Provides static Foo<Bar> foo() { return null; }", in testProvidesUniqueBindingsWithDifferentTypeVariances()
86 " @Provides fun fooExtends(): Foo<out Bar> = TODO()", in testProvidesUniqueBindingsWithDifferentTypeVariances()
87 " @Provides fun foo(): Foo<Bar> = TODO()", in testProvidesUniqueBindingsWithDifferentTypeVariances()
95 " @Provides Foo<Bar> MyModule.foo()", in testProvidesUniqueBindingsWithDifferentTypeVariances()
96 " @Provides Foo<? extends Bar> MyModule.fooExtends()", in testProvidesUniqueBindingsWithDifferentTypeVariances()
118 " @Provides", in testProvidesUniqueBindingsWithMatchingWildcardArguments()
122 " @Provides", in testProvidesUniqueBindingsWithMatchingWildcardArguments()
126 " @Provides", in testProvidesUniqueBindingsWithMatchingWildcardArguments()
130 " @Provides", in testProvidesUniqueBindingsWithMatchingWildcardArguments()
[all …]
DMissingBindingValidationTest.java87 "Bar cannot be provided without an @Provides-annotated method.") in dependOnInterface()
117 + "without an @Provides-annotated method.") in entryPointDependsOnInterface()
149 + "provided without an @Provides-annotated method.") in entryPointDependsOnQualifiedInterface()
162 "import dagger.Provides;", in constructorInjectionWithoutAnnotation()
183 + "@Provides-annotated method.") in constructorInjectionWithoutAnnotation()
197 "import dagger.Provides;", in membersInjectWithoutProvision()
222 + "@Provides-annotated method. This type supports members injection but " in membersInjectWithoutProvision()
295 + "without an @Provides-annotated method"); in genericInjectClassWithWildcardDependencies()
308 "import dagger.Provides;", in longChainOfDependencies()
337 " @Provides @Named(\"slim shady\") D d(X x1, DImpl impl, X x2) { return impl; }", in longChainOfDependencies()
[all …]
DMultibindingTest.java47 "import dagger.Provides", in multibindingContributedWithKotlinProperty_compilesSucessfully()
53 "@get:Provides", in multibindingContributedWithKotlinProperty_compilesSucessfully()
69 "import dagger.Provides;", in providesWithTwoMultibindingAnnotations_failsToCompile()
75 " @Provides", in providesWithTwoMultibindingAnnotations_failsToCompile()
88 "@Provides methods cannot have more than one multibinding annotation") in providesWithTwoMultibindingAnnotations_failsToCompile()
92 "@Provides methods cannot have more than one multibinding annotation") in providesWithTwoMultibindingAnnotations_failsToCompile()
95 subject.hasErrorContaining("@Provides methods of type map must declare a map key") in providesWithTwoMultibindingAnnotations_failsToCompile()
126 "Multibinding annotations may only be on @Provides, @Produces, or @Binds methods"; in appliedOnInvalidMethods_failsToCompile()
141 "import dagger.Provides;", in concreteBindingForMultibindingAlias()
148 " @Provides", in concreteBindingForMultibindingAlias()
[all …]
/external/dagger2/javatests/dagger/functional/kotlinsrc/basic/
DPrimitivesModule.kt20 import dagger.Provides
46 @Provides fun provideByte(): Byte = BOUND_BYTE
47 @Provides fun provideChar(): Char = BOUND_CHAR
48 @Provides fun provideShort(): Short = BOUND_SHORT
49 @Provides fun provideInt(): Int = BOUND_INT
50 @Provides fun provideLong(): Long = BOUND_LONG
51 @Provides fun provideBoolean(): Boolean = BOUND_BOOLEAN
52 @Provides fun provideFloat(): Float = BOUND_FLOAT
53 @Provides fun boundDouble(): Double = BOUND_DOUBLE
54 @Provides fun provideByteArray(): ByteArray = BOUND_BYTE_ARRAY
[all …]
/external/dagger2/javatests/dagger/functional/basic/
DPrimitivesModule.java20 import dagger.Provides;
46 @Provides static byte provideByte() { in provideByte()
50 @Provides static char provideChar() { in provideChar()
54 @Provides static short provideShort() { in provideShort()
58 @Provides static int provideInt() { in provideInt()
62 @Provides static long provideLong() { in provideLong()
66 @Provides static boolean provideBoolean() { in provideBoolean()
70 @Provides static float provideFloat() { in provideFloat()
74 @Provides static double boundDouble() { in boundDouble()
78 @Provides static byte[] provideByteArray() { in provideByteArray()
[all …]
/external/guice/core/test/com/google/inject/spi/
DProviderMethodsTest.java37 import com.google.inject.Provides;
99 @Provides
114 @Provides
131 @Provides
152 @Provides
168 @Provides
208 @Provides
255 @Provides
261 @Provides
266 @Provides
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DExperimentingRunnerModule.java41 import dagger.Provides;
64 @Provides
70 @Provides
76 @Provides
81 @Provides
86 @Provides
93 @Provides
108 @Provides
115 @Provides
122 @Provides static ImmutableSet<ResultProcessor> provideResultProcessors( in provideResultProcessors()
[all …]
DTrialModule.java32 import dagger.Provides;
53 @Provides
60 @Provides
67 @Provides
73 @Provides
82 @Provides
90 @Provides
95 @Provides
101 @Provides
111 @Provides
[all …]
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/dagger/
DMainMddLibModule.java43 import dagger.Provides;
96 @Provides
103 @Provides
110 @Provides
117 @Provides
130 @Provides
137 @Provides
143 @Provides
151 @Provides
158 @Provides
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DWorkerModule.java28 import dagger.Provides;
58 @Provides
64 @Provides
83 @Provides
90 @Provides
97 @Provides
104 @Provides
111 @Provides
118 @Provides
125 @Provides
[all …]
/external/dagger2/javatests/dagger/internal/codegen/bindinggraphvalidation/
DNullableBindingValidationKotlinTest.java60 "import dagger.Provides", in nullCheckForConstructorParameters()
64 " @Provides fun provideString(): String? = null", in nullCheckForConstructorParameters()
85 "@Provides @Nullable String TestModule.provideString()")); in nullCheckForConstructorParameters()
116 "import dagger.Provides", in nullCheckForMembersInjectParam()
120 " @Provides fun provideString(): String? = null", in nullCheckForMembersInjectParam()
141 "@Provides @Nullable String TestModule.provideString()")); in nullCheckForMembersInjectParam()
172 "import dagger.Provides", in nullCheckForVariable()
176 " @Provides fun provideString():String? = null", in nullCheckForVariable()
197 "@Provides @Nullable String TestModule.provideString()")); in nullCheckForVariable()
217 "import dagger.Provides", in nullCheckForComponentReturn()
[all …]
DNullableBindingValidationTest.java67 "import dagger.Provides;", in nullCheckForConstructorParameters()
72 " @Nullable @Provides String provideString() { return null; }", in nullCheckForConstructorParameters()
93 "@Nullable @Provides String TestModule.provideString()")); in nullCheckForConstructorParameters()
123 "import dagger.Provides;", in nullCheckForMembersInjectParam()
128 " @Nullable @Provides String provideString() { return null; }", in nullCheckForMembersInjectParam()
149 "@Nullable @Provides String TestModule.provideString()")); in nullCheckForMembersInjectParam()
179 "import dagger.Provides;", in nullCheckForVariable()
184 " @Nullable @Provides String provideString() { return null; }", in nullCheckForVariable()
205 "@Nullable @Provides String TestModule.provideString()")); in nullCheckForVariable()
224 "import dagger.Provides;", in nullCheckForComponentReturn()
[all …]
/external/dagger2/javatests/dagger/functional/kotlinsrc/generictypes/
DBoundedGenericModule.kt20 import dagger.Provides
26 @Provides fun provideInteger(): Int = 1
28 @Provides fun provideDouble(): Double = 2.0
30 @Provides fun provideArrayListString(): ArrayList<String> = arrayListOf("arrayListOfString")
32 @Provides
35 @Provides
39 @Provides
43 @Provides fun provideListOfInteger(): List<Int> = listOf(3)
45 @Provides fun provideSetOfDouble(): Set<Double> = setOf(4.0)
/external/dagger2/javatests/dagger/functional/kotlin/
DCompanionModuleClasses.kt22 import dagger.Provides
53 @Provides in getDataA()
57 @Provides in getDataA()
60 @Provides in getDataA()
68 @Provides
73 @Provides in provideNamedString()
85 @Provides in bindInterface()
93 @Provides
98 @Provides in provideDouble()
107 @Provides
/external/dagger2/javatests/dagger/hilt/android/testing/testinstallin/
DTestInstallInModules.java22 import dagger.Provides;
59 @Provides
68 @Provides
77 @Provides
86 @Provides
89 throw new AssertionError("This provides method should never be called."); in provideFoo()
96 @Provides
107 @Provides
118 @Provides
121 throw new AssertionError("This provides method should never be called."); in provideFoo()
[all …]
/external/dagger2/javatests/dagger/android/support/functional/
DUsesGeneratedModulesApplication.java23 import dagger.Provides;
45 @Provides
89 @Provides
99 @Provides
110 @Provides
121 @Provides
132 @Provides
143 @Provides
154 @Provides
165 @Provides
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/json/
DGsonModule.java25 import dagger.Provides;
37 @Provides
43 @Provides
49 @Provides
55 @Provides
61 @Provides
66 @Provides
73 @Provides static InstantTypeAdapter provideInstantTypeAdapter() { in provideInstantTypeAdapter()
77 @Provides static Gson provideGson(Set<TypeAdapterFactory> typeAdapterFactories, in provideGson()
/external/dagger2/javatests/dagger/functional/generictypes/
DBoundedGenericModule.java20 import dagger.Provides;
30 @Provides
35 @Provides
40 @Provides
47 @Provides
54 @Provides
61 @Provides
68 @Provides
75 @Provides
/external/aws-sdk-java-v2/core/sdk-core/src/main/java/software/amazon/awssdk/core/document/
DDocument.java42 …* This interface specifies all the methods to access a Document, also provides constructor methods…
173 …* Provides Builder methods of {@link ListBuilder} to directly create Document with List of Documen…
302 * @return Builder which provides APIs to put Key Value pair to a Document Map.
310 * @return Builder which provides APIs to put Key Value pair to a Document Map.
318 * @return Builder which provides APIs to put Key Value pair to a Document Map.
326 * @return Builder which provides APIs to put Key Value pair to a Document Map.
334 * @return Builder which provides APIs to put Key Value pair to a Document Map.
342 * @return Builder which provides APIs to put Key Value pair to a Document Map.
350 * @return Builder which provides APIs to put Key Value pair to a Document Map.
358 * @return Builder which provides APIs to put Key Value pair to a Document Map.
[all …]
/external/google-cloud-java/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/
DKubernetesOrBuilder.java87 * Provides Kubernetes Node information.
97 * Provides Kubernetes Node information.
107 * Provides Kubernetes Node information.
117 * Provides Kubernetes Node information.
128 * Provides Kubernetes Node information.
196 * Provides Kubernetes role information for findings that involve
207 * Provides Kubernetes role information for findings that involve
218 * Provides Kubernetes role information for findings that involve
229 * Provides Kubernetes role information for findings that involve
241 * Provides Kubernetes role information for findings that involve
[all …]
/external/dagger2/javatests/dagger/lint/
DDaggerKotlinIssueDetectorTest.kt44 annotation class Provides
78 import dagger.Provides in getDetector()
100 @Provides in getDetector()
106 @Provides in getDetector()
117 @Provides in getDetector()
130 @Provides in getDetector()
142 @Provides in getDetector()
155 @Provides in getDetector()
166 @Provides in getDetector()
177 @Provides in getDetector()
[all …]

12345678910>>...686