aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-01build: Add device-side support for the AOSP.android-cts_7.1_r1android-cts-7.1_r9android-cts-7.1_r8android-cts-7.1_r7android-cts-7.1_r6android-cts-7.1_r5android-cts-7.1_r4android-cts-7.1_r3android-cts-7.1_r29android-cts-7.1_r28android-cts-7.1_r27android-cts-7.1_r26android-cts-7.1_r25android-cts-7.1_r24android-cts-7.1_r23android-cts-7.1_r22android-cts-7.1_r21android-cts-7.1_r20android-cts-7.1_r2android-cts-7.1_r19android-cts-7.1_r18android-cts-7.1_r17android-cts-7.1_r16android-cts-7.1_r15android-cts-7.1_r14android-cts-7.1_r13android-cts-7.1_r12android-cts-7.1_r11android-cts-7.1_r10android-cts-7.1_r1android-cts-7.0_r9android-cts-7.0_r8android-cts-7.0_r7android-cts-7.0_r6android-cts-7.0_r5android-cts-7.0_r4android-cts-7.0_r33android-cts-7.0_r32android-cts-7.0_r31android-cts-7.0_r30android-cts-7.0_r3android-cts-7.0_r29android-cts-7.0_r28android-cts-7.0_r27android-cts-7.0_r26android-cts-7.0_r25android-cts-7.0_r24android-cts-7.0_r23android-cts-7.0_r22android-cts-7.0_r21android-cts-7.0_r20android-cts-7.0_r2android-cts-7.0_r19android-cts-7.0_r18android-cts-7.0_r17android-cts-7.0_r16android-cts-7.0_r15android-cts-7.0_r14android-cts-7.0_r13android-cts-7.0_r12android-cts-7.0_r11android-cts-7.0_r10android-cts-7.0_r1android-7.1.2_r9android-7.1.2_r8android-7.1.2_r6android-7.1.2_r5android-7.1.2_r4android-7.1.2_r39android-7.1.2_r38android-7.1.2_r37android-7.1.2_r36android-7.1.2_r33android-7.1.2_r32android-7.1.2_r30android-7.1.2_r3android-7.1.2_r29android-7.1.2_r28android-7.1.2_r27android-7.1.2_r25android-7.1.2_r24android-7.1.2_r23android-7.1.2_r2android-7.1.2_r19android-7.1.2_r18android-7.1.2_r17android-7.1.2_r16android-7.1.2_r15android-7.1.2_r14android-7.1.2_r13android-7.1.2_r12android-7.1.2_r11android-7.1.2_r10android-7.1.2_r1android-7.1.1_r9android-7.1.1_r8android-7.1.1_r7android-7.1.1_r61android-7.1.1_r60android-7.1.1_r6android-7.1.1_r59android-7.1.1_r58android-7.1.1_r57android-7.1.1_r56android-7.1.1_r55android-7.1.1_r54android-7.1.1_r53android-7.1.1_r52android-7.1.1_r51android-7.1.1_r50android-7.1.1_r49android-7.1.1_r48android-7.1.1_r47android-7.1.1_r46android-7.1.1_r45android-7.1.1_r44android-7.1.1_r43android-7.1.1_r42android-7.1.1_r41android-7.1.1_r40android-7.1.1_r4android-7.1.1_r39android-7.1.1_r38android-7.1.1_r35android-7.1.1_r33android-7.1.1_r32android-7.1.1_r31android-7.1.1_r3android-7.1.1_r28android-7.1.1_r27android-7.1.1_r26android-7.1.1_r25android-7.1.1_r24android-7.1.1_r23android-7.1.1_r22android-7.1.1_r21android-7.1.1_r20android-7.1.1_r2android-7.1.1_r17android-7.1.1_r16android-7.1.1_r15android-7.1.1_r14android-7.1.1_r13android-7.1.1_r12android-7.1.1_r11android-7.1.1_r10android-7.1.1_r1android-7.1.0_r7android-7.1.0_r6android-7.1.0_r5android-7.1.0_r4android-7.1.0_r3android-7.1.0_r2android-7.1.0_r1android-7.0.0_r9android-7.0.0_r8android-7.0.0_r7android-7.0.0_r6android-7.0.0_r5android-7.0.0_r4android-7.0.0_r36android-7.0.0_r35android-7.0.0_r34android-7.0.0_r33android-7.0.0_r32android-7.0.0_r31android-7.0.0_r30android-7.0.0_r3android-7.0.0_r29android-7.0.0_r28android-7.0.0_r27android-7.0.0_r24android-7.0.0_r21android-7.0.0_r19android-7.0.0_r17android-7.0.0_r15android-7.0.0_r14android-7.0.0_r13android-7.0.0_r12android-7.0.0_r11android-7.0.0_r10android-7.0.0_r1nougat-releasenougat-mr2.3-releasenougat-mr2.2-releasenougat-mr2.1-releasenougat-mr2-security-releasenougat-mr2-releasenougat-mr2-pixel-releasenougat-mr2-devnougat-mr1.8-releasenougat-mr1.7-releasenougat-mr1.6-releasenougat-mr1.5-releasenougat-mr1.4-releasenougat-mr1.3-releasenougat-mr1.2-releasenougat-mr1.1-releasenougat-mr1-volantis-releasenougat-mr1-security-releasenougat-mr1-releasenougat-mr1-flounder-releasenougat-mr1-devnougat-mr1-cts-releasenougat-mr0.5-releasenougat-dr1-releasenougat-devnougat-cts-releasenougat-bugfix-releaseIgor Murashkin
Bug: 27521545 Change-Id: Ic254894f7dc838e0529b6cd648838b51fea84d0d
2016-03-24Merge remote-tracking branch 'goog/master' into nyc-devIgor Murashkin
Bug: 27552463 Change-Id: If058b2de991c4813d49a5d844b8610405fb3bc5f
2016-03-22build: Add support for building guice within the AOSP (host only).android-n-preview-2Igor Murashkin
Builds the no_aop variant only since Android doesn't support bytecode weaving. Bug: 27552463 Change-Id: I71b4f3b26b9307b36444cecc75d67de03be9cb23
2016-03-16android: Add project metadataIgor Murashkin
Bug: 27552463 Change-Id: I71cff480c9b5fb813f3209cd6186e96b124f94ca
2016-03-16Merge branch 'upstream-master'Igor Murashkin
Initial downstream of guice code (tag 4.0) from https://github.com/google/guice/ Bug: 27552463 Change-Id: Ia72763ed396d2f3ac3bc2bc66fb3e383818e1c82
2016-03-09Initial empty repositoryBill Yi
2015-04-28Update version to 4.0upstream-masterColin Decker
2015-04-28Merge pull request #920 from google/merge-internal-changesColin Decker
Merge internal changes.
2015-04-28Add more missing @since 4.0 and remove references to *-3.0.jar in ↵cgdecker
extensions' package-info.java files. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=92005346
2015-04-23Merge pull request #919 from ↵Sam Berlin
google/moe_writing_branch_from_156c8cc762fab971efb727c7ab107fa243be2fc9 Merge internal changes
2015-04-23Remove the snapshot repository that was configured to support ↵cgruber
dagger-adapter. Dagger 2 is now released, so this is not necessary. Left the TODO in there, because the pom inheritance hierarchy needs to be brought up to something more current (e.g. sonatype's OSS parent pom, etc.) ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=91730888
2015-04-23Also fix usages of a couple of @Beta APIs.cgdecker
------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=91720693
2015-04-22Merge pull request #917 from mcculls/align-dagger-adapter-nameSam Berlin
Align dagger-adapter name and add it to the Bill-Of-Materials pom.xml
2015-04-22Align dagger-adapter name and add it to the Bill-Of-Materials pom.xmlStuart McCulloch
2015-04-22Merge pull request #916 from benmccann/missing-sinceSam Berlin
Add missing @since tags for classes
2015-04-21Add missing @since tags for 4.0Ben McCann
2015-04-21Merge pull request #915 from ↵Sam Berlin
google/moe_writing_branch_from_156c8cc762fab971efb727c7ab107fa243be2fc9 Merge internal changes
2015-04-21Update dagger-adapter to depend on dagger-2.0 (and swap in the up-to-date ↵cgruber
api jar for the ant build) ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=91679331
2015-04-21Implement more granular locks for a Singleton scope in Guice.timofeyb
Now when you can create two independent singletons using the same injector in different threads. This make it easy to create scopes creating singletons using thread pools with all the concurrency being done by Guice. As a nice side effect Singleton scope is no longer treated specially in Guice codebase. The obvious problem to solve is potential deadlocks: A requires B, B requires C, C requires A where all are singletons and all are created simultaneously. It's impossible to detect this deadlock using information within one thread, so we have to have a shared storage. An idea is to have a map of creators' locks and a map of which threads are waiting for other singletons to be created. Using this information circular dependencies are trivially discovered within O(N) where N is a number of concurrent threads. Important to not that no other deadlock scenarios within Guice code is introduced as Guice does not expose any other scopes that can span several threads. Now it would be possible for client code to deadlock on itself with two lazy singletons calling each other's providers during creation. This is deemed as a non-issue as it is up to the client to write a thread-safe code. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=91610630
2015-04-21Add a default value and make it true for dagger & guice MapKey.sameb
------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=89998087
2015-04-08Merge pull request #911 from mcculls/dependency-stack-performanceSam Berlin
Improve performance of internal DependencyStack collection
2015-04-05Change initial DependencyStack size from 10 to 16Stuart McCulloch
2015-03-24Merge pull request #912 from google/moe-changesSam Berlin
Merge internal changes
2015-03-23Some work on issue 910 -- ensure that anonymous keys & typeliterals don'tsameb
retain references to their parent classes. Still some more work to do in WeakKeySet to let it clean up more frequently, but this should help for now. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=89328452
2015-03-23Fix ModuleAnnotatedMethodScanners so that they scan modules installed insameb
binders created from skipSources or withSource. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=89146131
2015-03-23Add ability to not scope exception to RemoteProviderBindercnester
------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=87524840
2015-03-23Move detailed javadoc description down to implementation classStuart McCulloch
2015-03-21Improve performance of internal DependencyStack collectionStuart McCulloch
2015-02-25Merge pull request #905 from ↵Sam Berlin
google/moe_writing_branch_from_b605a34702d8d8112983aca891e3e2b6987ec45e Merge internal changes
2015-02-24Further fixes for https://github.com/google/guice/issues/904 -- java8 generatessameb
default methods for subclasses when they override generic methods with the more specific type. We use a two-tiered approach to fixing: (1) try to use MethodHandles + unreflectSpecial, which lets us call default method implementations directly, and if that doesn't work then (2) try to map default methods to compatible method signatures that could be the overrides of the method. (1) may not always work because we're using a private API [new Lookup(clazz, int)], but we need to do that in order to non-public classes. (2) may not always work because it's possible to have more than one compatible method signature. In the unlikely case that both (1) & (2) fail, we give an error message. Also: we must validate the default method's return type for visibility vs the factory type's visibility too. This ends up with two possible differences caused by java8: a) If the Lookup cxtor can't be used (different JDK, version skew, etc..) and there's more than one compatible method signature: we fail. b) If the default method's return type isn't public but the factory is public: we fail. For reference, javac8 generates a default method in the following scenario: interface Parent<I extends CharSequence, O extends Number> { O create(I input); } interface Child<String, Integer> { Integer create(String input); } Child has a generated default method of: Number create(CharSequence input); ... so, for example, failure could be newly triggered if 'Number' was package-private but Child was public, or if the reflection APIs didn't work and Child also had a 'Integer create(StringBuilder input);' method. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=87097207
2015-02-24Add a snapshot repository to guice's parent pom configuration, so it can ↵cgruber
rely on snapshot versions of things while in development. This should change nothing about release-time as snapshot dependencies are not kosher for release. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=86827570
2015-02-24Give the dagger interop extension a name, remove the explicit dependency on ↵sameb
the parent (which should happen automatically), and use ${project.version} instead of hard-coding the version... like the other extensions. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=86826607
2015-02-24s/Set/Optional and fix grammar.sameb
------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=86803793
2015-02-24Add a @ProvidesInto{Set,Map,Optional} & MultibindingsScanner that allow userssameb
to annotate methods in a Module as elements that can contribute to a Multibinder, MapBinder, or OptionalBinder. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=86801706
2015-02-24Rework the public API into scanning for additional @Provides-like annotations.sameb
Instead of requiring each scanner to explicitly wrap the modules to-be-scanned, we add a Binder.scanModulesForAnnotatedMethods method that takes a scanner, and we scan every installed module. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=86751798
2015-02-24Fix https://github.com/google/guice/issues/904 -- assistedinject factory methodsameb
scanning did not ignore synthetic methods created by java8, leading to errors when the factory interface extended from a superinterface that had generics. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=86628771
2015-02-24Create a dagger/guice interoperability library, which permits (with ↵cgruber
limitations) the use of Dagger modules in Guice. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=86617720
2015-02-24Update OptionalBinder javadoc comment to use toInstance() vs to() when a ↵christophf
binding value is used. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=86504275
2015-02-24Fix ElementSource attribution for ModuleAnnotatedMethodScanner bindings.sameb
------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=86029834
2015-02-24Minor optimizations to InternalContextlukes
* use ArrayList.removeRange to pop the context, this allows us to elide range checks. * Don't eagerly allocate a Dependency object for the pushState(Key<?>,Object) method, instead allocate one when constructing the DependencyChain. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=85562648
2015-02-03Merge pull request #902 from google/merge-moe-changesSam Berlin
Merge moe changes
2015-02-03Only warn one per dependency, otherwise log spam can destroy disks. This ↵sameb
time w/o using Sets.newConcurrentHashSet., ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=85377786
2015-02-03Add some SPI methods to allow users to annotate Module methods with arbitrarysameb
bindings and have those methods bound as Providers to specialized Keys. This is the basis of what will be used to allow Multibinder/MapBinder/OptionalBinder to have stuff like @SetProvides, @MapProvides, @OptionalProvides and dagger interop support. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=85361820
2015-02-03Implement my old patch for issue #366, with some tweaks. This does thesameb
following: * Fixes @Provides injection so that parameters are checked for nullability. By default this will error. The flag is named: guice_check_nullable_provides_params and can be set to ERROR, WARNING or IGNORE. * Adds InjectionPoint.forMethod to build an InjectionPoint off an arbitrary method. * Adds Binder.getProvider(Dependency) to a get a Provider for a given dependency (with all its nullability & injection points maintained). * Update ProviderLookup to accept a Dependency in addition to a Key. This is in preparation for two things: 1) Allowing multibindings/mapbindings/optionalbindings to be specified as annotations on methods in a module. 2) Adding a dagger compatibility module. ... the general idea will be that I'll also add a hook into ProvidesMethodModule somehow to look at arbitrary other annotations and let folks process them specially. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=85353820
2015-02-03Make Guice ignore validation of scope annotations on abstract types for ↵dweis
types annotated with @Component. This allows one to provide Dagger Components with Guice Injectors. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=84836495
2015-01-26Merge pull request #897 from ↵Sam Berlin
google/moe_writing_branch_from_1215316c7bae68bde9133f8fffa43c074c156633 Merge internal changes
2015-01-24Optimization: move ParameterizedTypeImpl checks out of line.bulach
No functional changes. This will allow android apps to remove this method via proguard in release mode. For everything else, it should be almost a no-op, just one extra indirection. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83477074
2015-01-24Change jdk8 profile in pom.xml to use the <reporting> element rather than ↵cgdecker
<reportPlugins>. This is apparently the preferred way to do this... the previous way shows errors in my IDE. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83279354
2015-01-24Add the source of the binding when mapbinder/multibinder fail because of a nullsameb
binding. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82465720
2015-01-24Remove usages of '_' as a one-character identifiercushon
Use of '_' as a one-character identifier is deprecated in Java 9 [1]. In the future it may be used as a keyword [2]. [1] https://bugs.openjdk.java.net/browse/JDK-8061549 [2] http://mail.openjdk.java.net/pipermail/lambda-dev/2013-July/010670.html ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82146488