/external/guice/core/src/com/google/inject/ |
D | PrivateModule.java | 21 import com.google.inject.binder.AnnotatedBindingBuilder; 22 import com.google.inject.binder.AnnotatedConstantBindingBuilder; 23 import com.google.inject.binder.AnnotatedElementBuilder; 24 import com.google.inject.binder.LinkedBindingBuilder; 92 private PrivateBinder binder; field in PrivateModule 95 public final synchronized void configure(Binder binder) { in configure() argument 96 checkState(this.binder == null, "Re-entry is not allowed."); in configure() 99 this.binder = (PrivateBinder) binder.skipSources(PrivateModule.class); in configure() 103 this.binder = null; in configure() 115 binder().expose(key); in expose() [all …]
|
D | AbstractModule.java | 22 import com.google.inject.binder.AnnotatedBindingBuilder; 23 import com.google.inject.binder.AnnotatedConstantBindingBuilder; 24 import com.google.inject.binder.LinkedBindingBuilder; 53 Binder binder; field in AbstractModule 57 checkState(this.binder == null, "Re-entry is not allowed."); in configure() 59 this.binder = checkNotNull(builder, "builder"); in configure() 63 this.binder = null; in configure() 71 protected Binder binder() { in binder() method in AbstractModule 72 checkState(binder != null, "The binder can only be used inside configure()"); in binder() 73 return binder; in binder() [all …]
|
/external/mesa3d/src/gallium/drivers/iris/ |
D | iris_binder.c | 62 binder_has_space(struct iris_binder *binder, unsigned size) in binder_has_space() argument 64 return binder->insert_point + size <= IRIS_BINDER_SIZE; in binder_has_space() 72 struct iris_binder *binder = &ice->state.binder; in binder_realloc() local 76 if (binder->bo) { in binder_realloc() 80 next_address = binder->bo->gtt_offset + IRIS_BINDER_SIZE; in binder_realloc() 84 iris_bo_unreference(binder->bo); in binder_realloc() 88 binder->bo = in binder_realloc() 90 binder->bo->gtt_offset = next_address; in binder_realloc() 91 binder->map = iris_bo_map(NULL, binder->bo, MAP_WRITE); in binder_realloc() 92 binder->insert_point = INIT_INSERT_POINT; in binder_realloc() [all …]
|
/external/dokka/core/src/main/kotlin/Utilities/ |
D | DokkaModules.kt | 6 import com.google.inject.binder.AnnotatedBindingBuilder 21 override fun configure(binder: Binder) { in configure() 22 binder.bind<DokkaLogger>().toInstance(logger) in configure() 25 binder.bind<KotlinCoreEnvironment>().toInstance(coreEnvironment) in configure() 28 binder.bind<DokkaResolutionFacade>().toInstance(dokkaResolutionFacade) in configure() 29 …binder.bind<DokkaResolutionFacade>().annotatedWith(Names.named("libraryResolutionFacade")).toInsta… in configure() 31 binder.bind<DocumentationOptions>().toInstance(options) in configure() 33 binder.bind<DefaultPlatformsProvider>().toInstance(defaultPlatformsProvider) in configure() 35 binder.bind<NodeReferenceGraph>().toInstance(nodeReferenceGraph) in configure() 38 descriptor.configureAnalysis(binder) in configure() [all …]
|
/external/guice/core/test/com/google/inject/ |
D | ModuleTest.java | 16 public void configure(Binder binder) { in configure() argument 17 binder.bind(X.class); in configure() 18 binder.install(new B()); in configure() 19 binder.install(new C()); in configure() 25 public void configure(Binder binder) { in configure() argument 26 binder.bind(Y.class); in configure() 27 binder.install(new D()); in configure() 33 public void configure(Binder binder) { in configure() argument 34 binder.bind(Z.class); in configure() 35 binder.install(new D()); in configure() [all …]
|
D | JitBindingsTest.java | 62 binder().requireExplicitBindings(); in testLinkedBindingWorks() 80 binder().requireExplicitBindings(); in testMoreBasicsWork() 100 binder().requireExplicitBindings(); in testLinkedEagerSingleton() 118 binder().requireExplicitBindings(); in testBasicsWithEagerSingleton() 138 binder.requireExplicitBindings(); in testLinkedToScoped() 156 binder().requireExplicitBindings(); in testBasicsWithScoped() 176 binder().requireExplicitBindings(); in testFailsIfInjectingScopedDirectlyWhenItIsntBound() 194 binder().requireExplicitBindings(); in testLinkedProviderBindingWorks() 211 binder().requireExplicitBindings(); in testJitGetFails() 228 binder().requireExplicitBindings(); in testJitInjectionFails() [all …]
|
/external/guice/core/src/com/google/inject/multibindings/ |
D | Multibinder.java | 24 import com.google.inject.binder.LinkedBindingBuilder; 90 public static <T> Multibinder<T> newSetBinder(Binder binder, TypeLiteral<T> type) { in newSetBinder() argument 91 return newSetBinder(binder, Key.get(type)); in newSetBinder() 98 public static <T> Multibinder<T> newSetBinder(Binder binder, Class<T> type) { in newSetBinder() argument 99 return newSetBinder(binder, Key.get(type)); in newSetBinder() 107 Binder binder, TypeLiteral<T> type, Annotation annotation) { in newSetBinder() argument 108 return newSetBinder(binder, Key.get(type, annotation)); in newSetBinder() 116 Binder binder, Class<T> type, Annotation annotation) { in newSetBinder() argument 117 return newSetBinder(binder, Key.get(type, annotation)); in newSetBinder() 125 Binder binder, TypeLiteral<T> type, Class<? extends Annotation> annotationType) { in newSetBinder() argument [all …]
|
D | MapBinder.java | 24 import com.google.inject.binder.LinkedBindingBuilder; 101 Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType) { in newMapBinder() argument 103 newMapRealBinder(binder.skipSources(MapBinder.class), keyType, valueType)); in newMapBinder() 111 Binder binder, Class<K> keyType, Class<V> valueType) { in newMapBinder() argument 112 return newMapBinder(binder, TypeLiteral.get(keyType), TypeLiteral.get(valueType)); in newMapBinder() 120 Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, Annotation annotation) { in newMapBinder() argument 122 newRealMapBinder(binder.skipSources(MapBinder.class), keyType, valueType, annotation)); in newMapBinder() 130 Binder binder, Class<K> keyType, Class<V> valueType, Annotation annotation) { in newMapBinder() argument 131 return newMapBinder(binder, TypeLiteral.get(keyType), TypeLiteral.get(valueType), annotation); in newMapBinder() 139 Binder binder, in newMapBinder() argument [all …]
|
D | OptionalBinder.java | 25 import com.google.inject.binder.LinkedBindingBuilder; 142 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, Class<T> type) { in newOptionalBinder() argument 144 newRealOptionalBinder(binder.skipSources(OptionalBinder.class), Key.get(type))); in newOptionalBinder() 147 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, TypeLiteral<T> type) { in newOptionalBinder() argument 149 newRealOptionalBinder(binder.skipSources(OptionalBinder.class), Key.get(type))); in newOptionalBinder() 152 public static <T> OptionalBinder<T> newOptionalBinder(Binder binder, Key<T> type) { in newOptionalBinder() argument 154 newRealOptionalBinder(binder.skipSources(OptionalBinder.class), type)); in newOptionalBinder()
|
/external/turbine/javatests/com/google/turbine/binder/ |
D | JimageClassBinderTest.java | 17 package com.google.turbine.binder; 24 import com.google.turbine.binder.bytecode.BytecodeBoundClass; 25 import com.google.turbine.binder.lookup.LookupKey; 26 import com.google.turbine.binder.lookup.LookupResult; 27 import com.google.turbine.binder.sym.ClassSymbol; 42 ClassPath binder = JimageClassBinder.bindDefault(); in testDefaultJimage() local 44 BytecodeBoundClass objectInfo = binder.env().get(new ClassSymbol("java/lang/Object")); in testDefaultJimage() 47 assertThat(binder.env().get(new ClassSymbol("java/lang/NoSuch"))).isNull(); in testDefaultJimage() 49 assertThat(binder.index().lookupPackage(ImmutableList.of("java", "nosuch"))).isNull(); in testDefaultJimage() 52 binder in testDefaultJimage() [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | ProvidesMethodScanner.java | 58 Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint) { in prepareMethod() argument 60 AnnotationOrError mapKey = findMapKeyAnnotation(binder, method); in prepareMethod() 63 binder.addError("Found a MapKey annotation on non map binding at %s.", method); in prepareMethod() 70 binder.addError("Found a MapKey annotation on non map binding at %s.", method); in prepareMethod() 72 return RealMultibinder.newRealSetBinder(binder, key).getKeyForNewItem(); in prepareMethod() 80 binder.addError("No MapKey found for map binding at %s.", method); in prepareMethod() 84 return RealMapBinder.newRealMapBinder(binder, typeAndValue.type, key) in prepareMethod() 88 binder.addError("Found a MapKey annotation on non map binding at %s.", method); in prepareMethod() 92 return RealOptionalBinder.newRealOptionalBinder(binder, key).getKeyForDefaultBinding(); in prepareMethod() 94 return RealOptionalBinder.newRealOptionalBinder(binder, key).getKeyForActualBinding(); in prepareMethod() [all …]
|
D | ProviderMethodsModule.java | 99 public void configure(Binder binder) { in configure() argument 100 for (ProviderMethod<?> providerMethod : getProviderMethods(binder)) { in configure() 101 providerMethod.configure(binder); in configure() 105 public List<ProviderMethod<?>> getProviderMethods(Binder binder) { in getProviderMethods() argument 111 Annotation annotation = getAnnotation(binder, method); in getProviderMethods() 116 result.add(createProviderMethod(binder, method, annotation)); in getProviderMethods() 163 binder.addError( in getProviderMethods() 181 private Annotation getAnnotation(Binder binder, Method method) { in getAnnotation() argument 190 binder.addError( in getAnnotation() 253 Binder binder, Method method, Annotation annotation) { in createProviderMethod() argument [all …]
|
/external/guice/core/src/com/google/inject/name/ |
D | Names.java | 40 public static void bindProperties(Binder binder, Map<String, String> properties) { in bindProperties() argument 41 binder = binder.skipSources(Names.class); in bindProperties() 45 binder.bind(Key.get(String.class, new NamedImpl(key))).toInstance(value); in bindProperties() 53 public static void bindProperties(Binder binder, Properties properties) { in bindProperties() argument 54 binder = binder.skipSources(Names.class); in bindProperties() 60 binder.bind(Key.get(String.class, new NamedImpl(propertyName))).toInstance(value); in bindProperties()
|
/external/guice/extensions/dagger-adapter/src/com/google/inject/daggeradapter/ |
D | DaggerMethodScanner.java | 51 Binder binder, Annotation rawAnnotation, Key<T> key, InjectionPoint injectionPoint) { in prepareMethod() argument 55 return processSetBinding(binder, key); in prepareMethod() 57 binder.addError("@ElementsIntoSet contributions are not suppored by Guice.", providesMethod); in prepareMethod() 61 binder.addError("Map bindings are not yet supported."); in prepareMethod() 69 return processSetBinding(binder, key); in prepareMethod() 71 binder.addError( in prepareMethod() 75 binder.addError("Unknown @Provides type " + annotation.type() + ".", providesMethod); in prepareMethod() 80 private static <T> Key<T> processSetBinding(Binder binder, Key<T> key) { in processSetBinding() argument 84 ? Multibinder.newSetBinder(binder, key.getTypeLiteral(), annotation) in processSetBinding() 85 : Multibinder.newSetBinder(binder, key.getTypeLiteral()); in processSetBinding()
|
/external/guice/core/src/com/google/inject/util/ |
D | Modules.java | 62 public void configure(Binder binder) {} in configure() argument 125 public void configure(Binder binder) { in configure() argument 126 binder = binder.skipSources(getClass()); in configure() 128 binder.install(module); in configure() 172 Binder baseBinder = binder(); in configure() 192 final Binder binder = baseBinder.skipSources(this.getClass()); in configure() local 205 new ModuleWriter(binder) { in configure() argument 230 new ModuleWriter(binder) { in configure() argument 251 void rewrite(Binder binder, PrivateElements privateElements, Set<Key<?>> keysToSkip) { in configure() argument 253 binder.withSource(privateElements.getSource()).newPrivateBinder(); in configure() [all …]
|
/external/turbine/java/com/google/turbine/binder/ |
D | ClassPath.java | 17 package com.google.turbine.binder; 20 import com.google.turbine.binder.bound.ModuleInfo; 21 import com.google.turbine.binder.bytecode.BytecodeBoundClass; 22 import com.google.turbine.binder.env.Env; 23 import com.google.turbine.binder.lookup.TopLevelIndex; 24 import com.google.turbine.binder.sym.ClassSymbol; 25 import com.google.turbine.binder.sym.ModuleSymbol;
|
D | ModuleBinder.java | 17 package com.google.turbine.binder; 24 import com.google.turbine.binder.bound.ModuleInfo; 25 import com.google.turbine.binder.bound.ModuleInfo.ExportInfo; 26 import com.google.turbine.binder.bound.ModuleInfo.OpenInfo; 27 import com.google.turbine.binder.bound.ModuleInfo.ProvideInfo; 28 import com.google.turbine.binder.bound.ModuleInfo.RequireInfo; 29 import com.google.turbine.binder.bound.ModuleInfo.UseInfo; 30 import com.google.turbine.binder.bound.PackageSourceBoundModule; 31 import com.google.turbine.binder.bound.SourceModuleInfo; 32 import com.google.turbine.binder.bound.TypeBoundClass; [all …]
|
D | Binder.java | 17 package com.google.turbine.binder; 24 import com.google.turbine.binder.CompUnitPreprocessor.PreprocessedCompUnit; 25 import com.google.turbine.binder.Processing.ProcessorInfo; 26 import com.google.turbine.binder.Resolve.CanonicalResolver; 27 import com.google.turbine.binder.bound.BoundClass; 28 import com.google.turbine.binder.bound.HeaderBoundClass; 29 import com.google.turbine.binder.bound.ModuleInfo; 30 import com.google.turbine.binder.bound.PackageSourceBoundClass; 31 import com.google.turbine.binder.bound.PackageSourceBoundModule; 32 import com.google.turbine.binder.bound.SourceBoundClass; [all …]
|
D | CtSymClassBinder.java | 17 package com.google.turbine.binder; 24 import com.google.turbine.binder.bound.ModuleInfo; 25 import com.google.turbine.binder.bytecode.BytecodeBinder; 26 import com.google.turbine.binder.bytecode.BytecodeBoundClass; 27 import com.google.turbine.binder.env.Env; 28 import com.google.turbine.binder.env.SimpleEnv; 29 import com.google.turbine.binder.lookup.SimpleTopLevelIndex; 30 import com.google.turbine.binder.lookup.TopLevelIndex; 31 import com.google.turbine.binder.sym.ClassSymbol; 32 import com.google.turbine.binder.sym.ModuleSymbol;
|
/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/ |
D | PermissionsImpl.java | 25 private final ConnectionBinder binder; field in PermissionsImpl 27 PermissionsImpl(Context context, ConnectionBinder binder) { in PermissionsImpl() argument 28 if (context == null || binder == null) { in PermissionsImpl() 33 this.binder = binder; in PermissionsImpl() 41 return binder.hasPermissionToBind(context); in canMakeCrossProfileCalls()
|
D | AbstractProfileConnector.java | 41 private final ConnectionBinder binder; field in AbstractProfileConnector 57 if (builder.binder == null) { in AbstractProfileConnector() 58 binder = new DefaultProfileBinder(); in AbstractProfileConnector() 60 binder = builder.binder; in AbstractProfileConnector() 108 binder, in crossProfileSender() 186 return new PermissionsImpl(context, binder); in permissions() 215 @Nullable ConnectionBinder binder; field in AbstractProfileConnector.Builder 231 public Builder setBinder(ConnectionBinder binder) { in setBinder() argument 232 this.binder = binder; in setBinder()
|
/external/guice/core/src/com/google/inject/spi/ |
D | Elements.java | 38 import com.google.inject.binder.AnnotatedBindingBuilder; 39 import com.google.inject.binder.AnnotatedConstantBindingBuilder; 40 import com.google.inject.binder.AnnotatedElementBuilder; 101 RecordingBinder binder = new RecordingBinder(stage); in getElements() local 103 binder.install(module); in getElements() 105 binder.scanForAnnotatedMethods(); in getElements() 106 for (RecordingBinder child : binder.privateBinders) { in getElements() 111 return Collections.unmodifiableList(binder.elements); in getElements() 122 public void configure(Binder binder) { in configure() argument 124 element.applyTo(binder); in configure() [all …]
|
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/ |
D | ThrowingProviderBinder.java | 32 import com.google.inject.binder.ScopedBindingBuilder; 95 private final Binder binder; field in ThrowingProviderBinder 97 private ThrowingProviderBinder(Binder binder) { in ThrowingProviderBinder() argument 98 this.binder = binder; in ThrowingProviderBinder() 101 public static ThrowingProviderBinder create(Binder binder) { in create() argument 103 binder.skipSources( in create() 195 binder.bind(targetKey).toInstance(target); in to() 213 CheckedProvideUtils.findThrowingConstructor(cxtorLiteral, binder); in providing() 221 binder, cxtorLiteral.getExceptionTypes(cxtor), exceptionTypes, interfaceType); in providing() 224 binder.bind(typeKey).toConstructor((Constructor) cxtor).in(Scopes.NO_SCOPE); in providing() [all …]
|
D | CheckedProviderMethodsModule.java | 68 public synchronized void configure(Binder binder) { in configure() argument 69 for (CheckedProviderMethod<?> throwingProviderMethod : getProviderMethods(binder)) { in configure() 70 throwingProviderMethod.configure(binder); in configure() 74 List<CheckedProviderMethod<?>> getProviderMethods(Binder binder) { in getProviderMethods() argument 80 result.add(createProviderMethod(binder, method, checkedProvides)); in getProviderMethods() 88 Binder binder, final Method method, CheckedProvides checkedProvides) { in createProviderMethod() argument 91 binder = binder.withSource(method); in createProviderMethod() 106 binder.bind(loggerKey).toProvider(new LogProvider(method)); in createProviderMethod() 110 parameterProviders.add(binder.getProvider(key)); in createProviderMethod() 122 binder.addError(message); in createProviderMethod()
|
/external/dokka/core/src/test/kotlin/format/ |
D | DacFormatTestCase.kt | 41 Guice.createInjector(Module { binder -> in <lambda>() method 43 … binder.bind<Boolean>().annotatedWith(Names.named("generateClassIndex")).toInstance(false) in <lambda>() 44 … binder.bind<Boolean>().annotatedWith(Names.named("generatePackageIndex")).toInstance(false) in <lambda>() 46 binder.bind<String>().annotatedWith(Names.named("dacRoot")).toInstance("") in <lambda>() 47 binder.bind<String>().annotatedWith(Names.named("outlineRoot")).toInstance("") in <lambda>() 48 binder.bind<File>().annotatedWith(Names.named("outputDir")).toInstance(folder.root) in <lambda>() 50 binder.bind<DocumentationOptions>().toProvider { options } in <lambda>() 51 binder.bind<DokkaLogger>().toInstance(object : DokkaLogger { in <lambda>() 65 formatDescriptor.configureOutput(binder) in <lambda>()
|