/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/animator/ |
AnimationContentAssist.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 153 pairs.add(Pair.of(d.getXmlLocalName(), d.getAttributeInfo().getJavaDoc()));
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
RuleLoader.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 105 // Ensure we have the latest & greatest version of the properties. 134 mUserJarTimeStamps.add(Pair.of(pathFile, pathFile.lastModified()));
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
V2SchemeSigner.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 50 * bit of the APK, as opposed to the JAR Signature Scheme which protects only the names and 51 * uncompressed contents of ZIP entries. 57 * The two main goals of APK Signature Scheme v2 are: 59 * cover every byte of the APK being signed. 61 * only a minimal amount of APK parsing before the signature is verified, thus completely 66 * original APK immediately before the start of ZIP Central Directory. This is to ensure that 69 * well. The contract of the APK Signing Block is that all contents outside of the block must b [all...] |
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ |
Asn1DerEncoderTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 81 assertEquals("0201ff", encodeToHex(Choice.of(-1))); 82 assertEquals("80092b0601040182371514", encodeToHex(Choice.of("1.3.6.1.4.1.311.21.20"))); 99 assertEquals("3009310702010a020200ff", encodeToHex(SetOfIntegers.of(0x0a, 0xff))); 100 // Reordering the elements of the set should not make a difference to the resulting encoding 101 assertEquals("3009310702010a020200ff", encodeToHex(SetOfIntegers.of(0xff, 0x0a))); 105 encodeToHex(SetOfIntegers.of(0xff, 0x0a, 0x112233))); 197 public static Choice of(int num) { method in class:Asn1DerEncoderTest.Choice 201 public static Choice of(String oid) method in class:Asn1DerEncoderTest.Choice 211 public static SetOfIntegers of(Integer... values) { method in class:Asn1DerEncoderTest.SetOfIntegers [all...] |
/tools/apksig/src/test/java/com/android/apksig/util/ |
DataSinkTestBase.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 29 * Base class for testing implementations of {@link DataSink}. This class tests the contract of 32 * <p>To subclass, provide an implementation of {@link #createDataSink()} which returns the 33 * implementation of {@code DataSink} you want to test. 42 * Returns the contents of the data sink. 112 * Returns the contents of the provided buffer as a string. The buffer's position and limit 141 public static <T extends DataSink> CloseableWithDataSink<T> of(T dataSink) { method in class:DataSinkTestBase.CloseableWithDataSink 145 public static <T extends DataSink> CloseableWithDataSink<T> of( method in class:DataSinkTestBase.CloseableWithDataSink [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/host/ |
CoverageMeasurementForwarderTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 102 mForwarder.setCoverageMeasurements(ImmutableList.of(ARTIFACT_NAME1)); 110 mForwarder.setCoverageMeasurements(ImmutableList.of(ARTIFACT_NAME1, ARTIFACT_NAME2)); 119 mForwarder.setCoverageMeasurements(ImmutableList.of(NONEXISTANT_ARTIFACT));
|
/external/guava/guava/src/com/google/common/reflect/ |
ClassPath.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 53 * Scans the source of a {@link ClassLoader} and finds all loadable classes and resources. 98 * Returns all resources loadable from the current class path, including the class files of all 158 static ResourceInfo of(String resourceName, ClassLoader loader) { method in class:ClassPath.ResourceInfo 177 /** Returns the fully qualified name of the resource. Such as "com/mycomp/foo/bar.txt". */ 216 * Returns the package name of the class, without attempting to load the class. 226 * Returns the simple name of the underlying class as given in the source code. 249 * Returns the fully qualified name of the class. 332 scanDirectory(directory, classloader, "", ImmutableSet.<File>of()); [all...] |
TypeToken.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 61 * TypeToken.of(method.getGenericReturnType())}. 66 * of the {@code listType()} method signature; while {@code <String>} is lost in erasure: 103 * Constructs a new type token of {@code T}. 118 "If you do need to create a TypeToken of a type variable, " + 119 "please use TypeToken.of() instead.", runtimeType); 123 * Constructs a new type token of {@code T} while resolving free type variables in the context of 144 this.runtimeType = of(declaringClass).resolveType(captured).runtimeType 153 public static <T> TypeToken<T> of(Class<T> type) { method in class:TypeToken 158 public static TypeToken<?> of(Type type) { method in class:TypeToken [all...] |
/external/guava/guava-gwt/test-super/com/google/common/net/super/com/google/common/net/ |
MediaTypeTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 115 ImmutableListMultimap.of("a", "1", "a", "2", "b", "3"); 118 assertEquals(ImmutableListMultimap.of(), MediaType.parse("text/plain").parameters()); 119 assertEquals(ImmutableListMultimap.of("charset", "utf-8"), 142 ImmutableListMultimap.of("a", "1", "@", "2", "b", "3"); 277 assertEquals(Optional.of(UTF_8), 318 ImmutableMultimap.of("charset", "utf-8")), 335 .withParameters(ImmutableListMultimap.of("a", "1", "a", "2")), 337 .withParameters(ImmutableListMultimap.of("a", "2", "a", "1")) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
WrapInWizard.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 89 typeLabel.setText("Type of Container:"); 174 classNames.add(Pair.of(RADIO_GROUP, (ViewElementDescriptor) null)); 177 classNames.add(Pair.<String,ViewElementDescriptor>of(null, null)); method 186 classNames.add(Pair.of(view, (ViewElementDescriptor) null)); 189 classNames.add(Pair.<String,ViewElementDescriptor>of(null, null)); method 220 classNames.add(Pair.of(className, d)); 231 classNames.add(Pair.of(view, (ViewElementDescriptor) null)); 239 classNames.add(Pair.<String, ViewElementDescriptor> of( method 243 classNames.add(Pair.<String,ViewElementDescriptor>of(null, null)); method 263 classNames.add(Pair.<String,ViewElementDescriptor>of(null, null)); method [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
RangeTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 290 Helpers.testCompareToAndEquals(ImmutableList.of(a, b, c, d, e, f)); 300 assertTrue(range.containsAll(ImmutableSortedSet.of(3, 3, 4, 5))); 301 assertTrue(range.containsAll(ImmutableSortedSet.of(3))); 302 assertTrue(range.containsAll(ImmutableSortedSet.<Integer>of())); 303 assertFalse(range.containsAll(ImmutableSortedSet.of(3, 3, 4, 5, 6))); 594 Range.encloseAll(ImmutableSet.<Integer>of()); method
|
/external/guava/guava-tests/test/com/google/common/math/ |
DoubleMathTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 537 ImmutableList.of(-0.0, 0.0, 1.0, 100.0, 10000.0, Double.MAX_VALUE); 540 Iterables.concat(FINITE_TOLERANCE_CANDIDATES, ImmutableList.of(Double.POSITIVE_INFINITY)); 686 assertEquals(-1.375, DoubleMath.mean(ImmutableList.of(1.1, -2.2, 4.4, -8.8)), 1.0e-10); 687 assertEquals(1.1, DoubleMath.mean(ImmutableList.of(1.1)), 1.0e-10); 689 DoubleMath.mean(ImmutableList.<Double>of()); method 694 DoubleMath.mean(ImmutableList.of(Double.NaN)); 699 DoubleMath.mean(ImmutableList.of(Double.POSITIVE_INFINITY)); 707 assertEquals(-13.75, DoubleMath.mean(ImmutableList.of(11, -22, 44, -88)), 1.0e-10) 710 DoubleMath.mean(ImmutableList.<Integer>of()); method 721 DoubleMath.mean(ImmutableList.<Long>of()); method [all...] |
/external/guice/core/test/com/google/inject/ |
ProvisionListenerTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 import static com.google.common.collect.ImmutableList.of; 65 + " of " + Foo.class.getName(), 86 + " of " + Foo.class.getName(), 207 + " of " + Foo.class.getName(), 265 + " of " + Foo.class.getName(), 291 + " of " + Foo.class.getName(), 325 ImmutableSet.of(Key.get(Interface.class), Key.get(String.class, named("constant"))), 330 assertEquals(of(Key.get(Foo.class)), capturer.getAndClear()) method 334 assertEquals(of(Key.get(FooP.class), Key.get(Foo.class, named("pk"))), capturer.getAndClear()); method 336 assertEquals(of(Key.get(FooP.class), Key.get(Foo.class, named("pk"))), capturer.getAndClear()); method 340 assertEquals(of(Key.get(JitFoo2P.class), Key.get(JitFoo2.class)), capturer.getAndClear()); method 342 assertEquals(of(Key.get(JitFoo2P.class), Key.get(JitFoo2.class)), capturer.getAndClear()); method 346 assertEquals(of(Key.get(Foo.class, named("pi"))), capturer.getAndClear()); method 350 assertEquals(of(Key.get(Foo.class, named("cxtr"))), capturer.getAndClear()); method 354 assertEquals(of(Key.get(Foo.class)), capturer.getAndClear()); method 358 assertEquals(of(Key.get(Foo.class)), capturer.getAndClear()); method [all...] |
/external/guice/core/test/com/google/inject/spi/ |
InjectionPointTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 147 assertEquals(ImmutableList.<Dependency>of(), injectionPoint.getDependencies()); method 177 assertEquals(ImmutableSet.of( 189 assertEquals(ImmutableSet.of( 268 // effect the annotations of the subclasses.) 275 * us from injecting superclass methods in the case of javax.inject.Inject. 364 // of the superclass methods, since the superclass was package-private but this is public.
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
BitSet.java | 9 1. Redistributions of source code must retain the above copyright 10 notice, this list of conditions and the following disclaimer. 12 notice, this list of conditions and the following disclaimer in the 14 3. The name of the author may not be used to endorse or promote products 19 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 76 public static BitSet of(int el) { method in class:BitSet 82 public static BitSet of(int a, int b) { method in class:BitSet 89 public static BitSet of(int a, int b, int c) { method in class:BitSet 97 public static BitSet of(int a, int b, int c, int d) { method in class:BitSet [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/util/ |
ShortDuration.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 42 * represent durations of millions of years. 47 public static ShortDuration of(long duration, TimeUnit unit) { method in class:ShortDuration 58 public static ShortDuration of(BigDecimal duration, TimeUnit unit) { method in class:ShortDuration 76 return of(value, unit); 118 * Returns an instance of this type that represents the sum of this value and {@code 124 * Returns an instance of this type that represents the difference of this value an [all...] |
/external/guava/guava/src/com/google/common/collect/ |
ImmutableListMultimap.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 37 * a <i>view</i> of a separate multimap which can still change, an instance of 41 * you easily make a "defensive copy" of a multimap provided to your class by 45 * it has no public or protected constructors. Thus, instances of this class 63 public static <K, V> ImmutableListMultimap<K, V> of() { method in class:ImmutableListMultimap 70 public static <K, V> ImmutableListMultimap<K, V> of(K k1, V v1) { method in class:ImmutableListMultimap 80 public static <K, V> ImmutableListMultimap<K, V> of(K k1, V v1, K k2, V v2) { method in class:ImmutableListMultimap 91 public static <K, V> ImmutableListMultimap<K, V> of( method in class:ImmutableListMultimap 104 public static <K, V> ImmutableListMultimap<K, V> of( method in class:ImmutableListMultimap 118 public static <K, V> ImmutableListMultimap<K, V> of( method in class:ImmutableListMultimap [all...] |
ImmutableMap.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 39 * <p>Unlike {@link Collections#unmodifiableMap}, which is a <i>view</i> of a 40 * separate map which can still change, an instance of {@code ImmutableMap} 43 * lets you easily make a "defensive copy" of a map provided to your class by a 49 * having your element type cache its own hash codes, and by making use of the 67 * and maintainability of your code. 69 public static <K, V> ImmutableMap<K, V> of() { method in class:ImmutableMap 70 return ImmutableBiMap.of(); 77 * maintainability of your code 79 public static <K, V> ImmutableMap<K, V> of(K k1, V v1) { method in class:ImmutableMap 88 public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) { method in class:ImmutableMap 97 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap 108 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap 119 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap [all...] |
ImmutableMultiset.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 36 * <p>Its iterator orders elements according to the first appearance of the 38 * multiset contains multiple instances of an element, those instances are 56 new RegularImmutableMultiset<Object>(ImmutableMap.<Object, Integer>of(), 0); 62 public static <E> ImmutableMultiset<E> of() { method in class:ImmutableMultiset 73 public static <E> ImmutableMultiset<E> of(E element) { method in class:ImmutableMultiset 84 public static <E> ImmutableMultiset<E> of(E e1, E e2) { method in class:ImmutableMultiset 95 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3) { method in class:ImmutableMultiset 106 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4) method in class:ImmutableMultiset 117 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4, E e5) { method in class:ImmutableMultiset 128 public static <E> ImmutableMultiset<E> of( method in class:ImmutableMultiset [all...] |
ImmutableRangeMap.java | 5 * in compliance with the License. You may obtain a copy of the License at 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 33 * An immutable implementation of {@code RangeMap}, supporting all query operations efficiently. 46 ImmutableList.<Range<Comparable<?>>>of(), ImmutableList.of()); 52 public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> of() { method in class:ImmutableRangeMap 59 public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> of( method in class:ImmutableRangeMap 61 return new ImmutableRangeMap<K, V>(ImmutableList.of(range), ImmutableList.of(value)); 127 * @throws IllegalArgumentException if any of the ranges in {@code rangeMap} overlap with range [all...] |
ImmutableRangeSet.java | 5 * in compliance with the License. You may obtain a copy of the License at 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 37 * An efficient immutable implementation of a {@link RangeSet}. 47 new ImmutableRangeSet<Comparable<?>>(ImmutableList.<Range<Comparable<?>>>of()); 50 new ImmutableRangeSet<Comparable<?>>(ImmutableList.of(Range.<Comparable<?>>all())); 56 public static <C extends Comparable> ImmutableRangeSet<C> of() { method in class:ImmutableRangeSet 70 * range.isEmpty()}, this is equivalent to {@link ImmutableRangeSet#of()}. 72 public static <C extends Comparable> ImmutableRangeSet<C> of(Range<C> range) { method in class:ImmutableRangeSet 75 return of(); 79 return new ImmutableRangeSet<C>(ImmutableList.of(range)) [all...] |
ImmutableSortedMultiset.java | 5 * in compliance with the License. You may obtain a copy of the License at 10 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 33 * are ordered by an explicit comparator, while others follow the natural sort ordering of their 36 * <p>Unlike {@link Multisets#unmodifiableSortedMultiset}, which is a <i>view</i> of a separate 37 * collection that can still change, an instance of {@code ImmutableSortedMultiset} contains its 39 * final} multisets ("constant multisets") and also lets you easily make a "defensive copy" of a 58 * <p>With natural ordering of elements, the following relation determines whether two elements are 71 * protected constructors. Thus, instances of this type are guaranteed to be immutable. 95 public static <E> ImmutableSortedMultiset<E> of() { method in class:ImmutableSortedMultiset 102 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E element) method in class:ImmutableSortedMultiset 117 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E e1, E e2) { method in class:ImmutableSortedMultiset 128 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E e1, E e2, E e3) { method in class:ImmutableSortedMultiset 139 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( method in class:ImmutableSortedMultiset 151 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( method in class:ImmutableSortedMultiset 163 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( method in class:ImmutableSortedMultiset [all...] |
ImmutableTable.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 36 * it has no public or protected constructors. Thus, instances of this class are 51 ImmutableList.<Cell<Object, Object, Object>>of(), 52 ImmutableSet.of(), ImmutableSet.of()); 56 public static <R, C, V> ImmutableTable<R, C, V> of() { method in class:ImmutableTable 61 public static <R, C, V> ImmutableTable<R, C, V> of(R rowKey, method in class:ImmutableTable 67 * Returns an immutable copy of the provided table. 69 * <p>The {@link Table#cellSet()} iteration order of the provided tabl [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
ImmutableMap.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 33 * GWT emulation of {@link ImmutableMap}. For non sorted maps, it is a thin 47 public static <K, V> ImmutableMap<K, V> of() { method in class:ImmutableMap 48 return ImmutableBiMap.of(); 51 public static <K, V> ImmutableMap<K, V> of(K k1, V v1) { method in class:ImmutableMap 52 return ImmutableBiMap.of(k1, v1); 55 public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) { method in class:ImmutableMap 59 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap 65 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap 71 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap [all...] |
ImmutableMultiset.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 35 * <p>Its iterator orders elements according to the first appearance of the 37 * multiset contains multiple instances of an element, those instances are 55 new RegularImmutableMultiset<Object>(ImmutableMap.<Object, Integer>of(), 0); 61 public static <E> ImmutableMultiset<E> of() { method in class:ImmutableMultiset 72 public static <E> ImmutableMultiset<E> of(E element) { method in class:ImmutableMultiset 83 public static <E> ImmutableMultiset<E> of(E e1, E e2) { method in class:ImmutableMultiset 94 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3) { method in class:ImmutableMultiset 105 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4) method in class:ImmutableMultiset 116 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4, E e5) { method in class:ImmutableMultiset 127 public static <E> ImmutableMultiset<E> of( method in class:ImmutableMultiset [all...] |