Home
last modified time | relevance | path

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

12345678910>>...338

/external/dagger2/javatests/dagger/functional/
DMultibindingModule.java20 import dagger.Provides;
39 @Provides
46 @Provides
53 @Provides
60 @Provides
67 @Provides
73 @Provides
79 @Provides
88 @Provides
93 @Provides
[all …]
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 …]
DBoundedGenericModule.java20 import dagger.Provides;
30 @Provides
35 @Provides
40 @Provides
47 @Provides
54 @Provides
61 @Provides
69 @Provides
76 @Provides
/external/dagger2/javatests/dagger/internal/codegen/
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()
94 " @Provides Outer.A Outer.AModule.provideA(String)", in duplicateExplicitBindings_ProvidesAndComponentProvision()
108 "import dagger.Provides;", in duplicateExplicitBindings_TwoProvidesMethods()
120 " @Provides A provideA1() { return new A() {}; }", in duplicateExplicitBindings_TwoProvidesMethods()
125 " @Provides String provideString() { return \"\"; }", in duplicateExplicitBindings_TwoProvidesMethods()
126 " @Provides A provideA2(String s) { return new A() {}; }", in duplicateExplicitBindings_TwoProvidesMethods()
148 " @Provides Outer.A Outer.Module1.provideA1()", in duplicateExplicitBindings_TwoProvidesMethods()
[all …]
DModuleFactoryGeneratorTest.java47 assertThatMethodInUnannotatedClass("@Provides String provideString() { return null; }") in providesMethodNotInModule()
48 .hasError("@Provides methods can only be present within a @Module or @ProducerModule"); in providesMethodNotInModule()
52 assertThatModuleMethod("@Provides abstract String abstractMethod();") in providesMethodAbstract()
53 .hasError("@Provides methods cannot be abstract"); in providesMethodAbstract()
57 assertThatModuleMethod("@Provides private String privateMethod() { return null; }") in providesMethodPrivate()
58 .hasError("@Provides methods cannot be private"); in providesMethodPrivate()
62 assertThatModuleMethod("@Provides void voidMethod() {}") in providesMethodReturnVoid()
63 .hasError("@Provides methods must return a value (not void)"); in providesMethodReturnVoid()
68 assertThatModuleMethod("@Provides Provider<String> provideProvider() {}") in providesMethodReturnsProvider()
69 .hasError("@Provides methods must not return framework types"); in providesMethodReturnsProvider()
[all …]
DMissingBindingValidationTest.java61 .hadErrorContaining("Bar cannot be provided without an @Provides-annotated method.") in dependOnInterface()
89 + "without an @Provides-annotated method.") in entryPointDependsOnInterface()
119 + "without an @Provides-annotated method.") in entryPointDependsOnQualifiedInterface()
130 "import dagger.Provides;", in constructorInjectionWithoutAnnotation()
150 + "@Provides-annotated method.") in constructorInjectionWithoutAnnotation()
161 "import dagger.Provides;", in membersInjectWithoutProvision()
185 + "@Provides-annotated method. This type supports members injection but cannot be " in membersInjectWithoutProvision()
254 + "without an @Provides-annotated method"); in genericInjectClassWithWildcardDependencies()
266 "import dagger.Provides;", in longChainOfDependencies()
295 " @Provides @Named(\"slim shady\") D d(X x1, DImpl impl, X x2) { return impl; }", in longChainOfDependencies()
[all …]
DMultibindingTest.java40 "import dagger.Provides;", in providesWithTwoMultibindingAnnotations_failsToCompile()
46 " @Provides @IntoSet @IntoMap Integer provideInt() { ", in providesWithTwoMultibindingAnnotations_failsToCompile()
54 .hadErrorContaining("@Provides methods cannot have more than one multibinding annotation") in providesWithTwoMultibindingAnnotations_failsToCompile()
83 "Multibinding annotations may only be on @Provides, @Produces, or @Binds methods") in appliedOnInvalidMethods_failsToCompile()
88 "Multibinding annotations may only be on @Provides, @Produces, or @Binds methods") in appliedOnInvalidMethods_failsToCompile()
93 "Multibinding annotations may only be on @Provides, @Produces, or @Binds methods") in appliedOnInvalidMethods_failsToCompile()
106 "import dagger.Provides;", in concreteBindingForMultibindingAlias()
113 " @Provides", in concreteBindingForMultibindingAlias()
135 + "cannot be provided without an @Provides-annotated method") in concreteBindingForMultibindingAlias()
187 + "cannot be provided without an @Provides- or @Produces-annotated method") in produceConcreteSet_andRequestSetOfProduced()
[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/dagger2/javatests/dagger/functional/kotlin/
DTestComponentWithCompanionModule.kt6 import dagger.Provides
36 @Provides in getDataA()
40 @Provides in getDataA()
43 @Provides in getDataA()
51 @Provides
56 @Provides in provideNamedString()
68 @Provides in bindInterface()
76 @Provides
81 @Provides in provideDouble()
90 @Provides
/external/dagger2/javatests/dagger/internal/codegen/bindinggraphvalidation/
DNullableBindingValidationTest.java52 "import dagger.Provides;", in nullCheckForConstructorParameters()
57 " @Nullable @Provides String provideString() { return null; }", in nullCheckForConstructorParameters()
74 "@Nullable @Provides String TestModule.provideString()")); in nullCheckForConstructorParameters()
96 "import dagger.Provides;", in nullCheckForMembersInjectParam()
101 " @Nullable @Provides String provideString() { return null; }", in nullCheckForMembersInjectParam()
118 "@Nullable @Provides String TestModule.provideString()")); in nullCheckForMembersInjectParam()
140 "import dagger.Provides;", in nullCheckForVariable()
145 " @Nullable @Provides String provideString() { return null; }", in nullCheckForVariable()
162 "@Nullable @Provides String TestModule.provideString()")); in nullCheckForVariable()
175 "import dagger.Provides;", in nullCheckForComponentReturn()
[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/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/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 …]
/external/dagger2/javatests/dagger/functional/subcomponent/
DSubcomponentBuilderMultibindingsTest.java23 import dagger.Provides;
87 @Provides
93 @Provides
103 @Provides
109 @Provides
149 @Provides
155 @Provides
165 @Provides
171 @Provides
208 @Provides
[all …]
DMultibindingSubcomponents.java22 import dagger.Provides;
90 @Provides
96 @Provides
103 @Provides
109 @Provides
128 @Provides
134 @Provides
141 @Provides
147 @Provides
157 @Provides
[all …]
/external/python/google-api-python-client/docs/dyn/
Dcalendar_v3.acl.html136 # - &quot;none&quot; - Provides no access.
137 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
138 …# - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users…
139 …# - &quot;writer&quot; - Provides read and write access to the calendar. Private events will appea…
140 …# - &quot;owner&quot; - Provides ownership of the calendar. This role has all of the permissions o…
166 # - &quot;none&quot; - Provides no access.
167 # - &quot;freeBusyReader&quot; - Provides read access to free/busy information.
168 …# - &quot;reader&quot; - Provides read access to the calendar. Private events will appear to users…
169 …# - &quot;writer&quot; - Provides read and write access to the calendar. Private events will appea…
170 …# - &quot;owner&quot; - Provides ownership of the calendar. This role has all of the permissions o…
[all …]
/external/dagger2/javatests/dagger/functional/binds/
DSimpleBindingModule.java21 import dagger.Provides;
64 @Provides
69 @Provides
90 @Provides
95 @Provides
100 @Provides
127 @Provides
147 @Provides
158 @Provides
164 @Provides
/external/guice/extensions/mini/test/com/google/inject/mini/
DMiniGuiceTest.java18 import com.google.inject.Provides;
35 @Provides in testBasicInjection()
40 @Provides in testBasicInjection()
119 @Provides in testSingletons()
151 @Provides in testBindingAnnotations()
157 @Provides in testBindingAnnotations()
189 @Provides in testSingletonBindingAnnotationAndProvider()
219 @Provides in testSingletonInGraph()
267 @Provides in testSubclasses()
292 @Provides in testSingletonsAreEager()
[all …]
/external/autotest/client/common_lib/
Dsoftware_manager.py201 def provides(self, file): member in SoftwareManager
203 Returns a list of packages that provides a given capability to the
208 return self.backend.provides(file)
213 Installs package that provides [file].
217 provides = self.provides(file)
218 if provides is not None:
219 self.install(provides)
478 def provides(self, name): member in YumBackend
480 Returns a list of packages that provides a given capability.
487 logging.info("Package %s provides %s", provides_list[0], name)
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/provider/
DDataLoadProviderRegistry.java22 * @param dataClass The class of the data that the provider provides encoders and decoders for.
23 …* @param resourceClass The class of the resource that the provider provides encoders and decoders …
25 * @param <T> The type of the data that the provider provides encoders and decoders for.
26 * @param <Z> The type of the resource that the provider provides encoders and decoders for.
36 * @param dataClass The class of the data that the provider provides encoders and decoders for.
37 …* @param resourceClass The class of the resource that the provider provides encoders and decoders …
38 * @param <T> The type of the data that the provider provides encoders and decoders for.
39 * @param <Z> The type of the resource that the provider provides encoders and decoders for.
/external/robolectric/robolectric/src/main/java/org/robolectric/
DRobolectric.java73 * <p>Consider using {@link androidx.test.core.app.ActivityScenario} instead, which provides
86 * <p>Consider using {@link androidx.test.core.app.ActivityScenario} instead, which provides
103 * <p>Consider using {@link androidx.test.core.app.ActivityScenario} instead, which provides
133 * <p>FragmentController provides low-level APIs to control its lifecycle. Please consider using
134 * {@link androidx.fragment.app.testing.FragmentScenario} instead, which provides higher level
148 * <p>FragmentController provides low-level APIs to control its lifecycle. Please consider using
149 * {@link androidx.fragment.app.testing.FragmentScenario} instead, which provides higher level
168 * <p>FragmentController provides low-level APIs to control its lifecycle. Please consider using
169 * {@link androidx.fragment.app.testing.FragmentScenario} instead, which provides higher level
187 * <p>FragmentController provides low-level APIs to control its lifecycle. Please consider using
[all …]

12345678910>>...338