/external/guava/guava-tests/test/com/google/common/collect/ |
RegularImmutableTableTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 30 ImmutableSet.of( 36 ImmutableSet.of('a', 'b'); 39 ImmutableSet.of(1, 2); 51 return ImmutableList.<ImmutableTable<Character, Integer, String>>of(SPARSE, 98 assertTrue(RegularImmutableTable.forCells(ImmutableSet.of( 119 assertEquals(ImmutableMap.of('a', "foo", 'b', "bar"), 121 assertEquals(ImmutableMap.of('a', "baz"), testInstance.column(2)); 122 assertEquals(ImmutableMap.of(), testInstance.column(3)) [all...] |
SingletonImmutableTableTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 41 assertEquals(ImmutableSet.of(Tables.immutableCell('a', 1, "blah")), testTable.cellSet()); 45 assertEquals(ImmutableMap.of(), testTable.column(0)); 46 assertEquals(ImmutableMap.of('a', "blah"), testTable.column(1)); 50 assertEquals(ImmutableSet.of(1), testTable.columnKeySet()); 54 assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "blah")), testTable.columnMap()); 58 assertEquals(ImmutableMap.of(), testTable.row('A')); 59 assertEquals(ImmutableMap.of(1, "blah"), testTable.row('a')) [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
ResourcesTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 72 assertEquals(ImmutableList.of(I18N), 138 // loader, even if it is not visible to the loader of the Resources class.
|
/external/guice/core/src/com/google/inject/internal/ |
SingletonScope.java | 29 * Implementation of this class seems unreasonably complicated at the first sight. 32 * Still I want to assure you that hundreds(?) of hours were thrown 63 * its APIs we need a lot of code. Additional complexity comes from inherent data races 109 * -- special type of a lock, that prevents potential deadlocks, 130 // cache volatile variable for the usual case of already initialized object 139 // this thread now owns creation of an instance 213 throw new ProvisionException(ImmutableList.of( 222 // caching volatile variable to minimize number of reads performed 242 * <p>The main thing being done is creating a list of Dependencies involved into 279 // check that all of the keys are still present in dependency chain in orde [all...] |
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
ProvidesIntoTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 128 assertEquals(ImmutableSet.of("foo", "foo2"), fooSet); 131 assertEquals(ImmutableSet.of("bar", "bar2"), barSet); 134 assertEquals(ImmutableSet.of("na", "na2"), noAnnotationSet); 138 assertEquals(ImmutableMap.of("fooKey", "foo", "foo2Key", "foo2"), fooMap); 142 assertEquals(ImmutableMap.of(String.class, "bar", Number.class, "bar2"), barMap); 146 assertEquals(ImmutableMap.of(TestEnum.A, "na", TestEnum.B, "na2"), noAnnotationMap); 150 assertEquals(ImmutableMap.of(wrappedKeyFor(1), 11, wrappedKeyFor(2), 22), wrappedMap); 207 assertEquals(ImmutableSet.of("foo"), injector.getInstance(new Key<Set<String>>() {})) [all...] |
/external/guice/extensions/testlib/src/com/google/inject/testing/fieldbinder/ |
BoundFieldModule.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 46 * For each {@link Bind} annotated field of an object and its superclasses, this module will bind 52 * {@link Bind#to} instead of the field's actual type. 62 * If the field is of type {@link Provider}, the field's value will be bound as a {@link Provider} 73 * {@literal @}Bind private List{@code <Object>} listOfObjects = Lists.of(); 90 * Guice.createInjector(BoundFieldModule.of(this)).injectMembers(this); 109 * Create a BoundFieldModule which binds the {@link Bind} annotated fields of {@code instance}. 112 * @return a module which will bind the {@link Bind} annotated fields of {@code instance}. 114 public static BoundFieldModule of(Object instance) method in class:BoundFieldModule [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
Relation.java | 26 * A Relation is a set of mappings from keys to values. 30 * @hide Only a subset of ICU is exposed in Android 39 public static <K, V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator) { method in class:Relation 43 public static <K,V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { method in class:Relation
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
Relation.java | 25 * A Relation is a set of mappings from keys to values. 37 public static <K, V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator) { method in class:Relation 41 public static <K,V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { method in class:Relation
|
/external/libvorbis/lib/ |
psytune.c | 3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * 4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * 202 FILE *of; local 205 of=fopen(buffer,"w"); 209 fprintf(of,"\n\n"); 212 fprintf(of,"%g ",toBARK(22050.f*j/n)); 214 fprintf(of,"%g ",(float)j); 217 fprintf(of,"%g\n",todB(v+j)); 219 fprintf(of,"%g\n",v[j]); 223 fclose(of); [all...] |
/external/okhttp/okio/okio/src/main/java/okio/ |
ByteString.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 34 * An immutable sequence of bytes. 36 * <p>Byte strings compare lexicographically as a sequence of <strong>unsigned</strong> bytes. That 37 * is, the byte string {@code ff} sorts after {@code 00}. This is counter to the sort order of the 42 * to the mutable byte string, violating the immutable guarantee of this class. For this reason a 52 public static final ByteString EMPTY = ByteString.of(); 63 * Returns a new byte string containing a clone of the bytes of {@code data}. 65 public static ByteString of(byte... data) method in class:ByteString 74 public static ByteString of(byte[] data, int offset, int byteCount) { method in class:ByteString [all...] |
/external/snakeyaml/src/test/java8/org/yaml/snakeyaml/issues/issue310/ |
OptionalTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 42 this.income = Optional.of(income); 134 expectedPerson.setSalary(Optional.of(s)); 149 expectedPerson.setSalary(Optional.of(s));
|
/frameworks/base/core/java/android/os/ |
UserHandle.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27 * Representation of a user on the device. 31 * @hide Range of uids allocated for a user. 44 /** @hide A user handle to indicate the current user of the device */ 49 * to the caller's user instead of failing with a security exception */ 54 * to the caller's user instead of failing with a security exception */ 61 * @hide A user id constant to indicate the "owner" user of the device 68 * @hide A user handle to indicate the primary/owner user of the device 74 /** @hide A user id constant to indicate the "system" user of the device * 160 public static UserHandle of(@UserIdInt int userId) { method in class:UserHandle [all...] |
/frameworks/base/services/core/java/com/android/server/hdmi/ |
HdmiCecMessageBuilder.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 33 * @param src source address of command 34 * @param dest destination address of command 35 * @param body body of message. It includes opcode. 38 static HdmiCecMessage of(int src, int dest, byte[] body) { method in class:HdmiCecMessageBuilder 45 * Build <Feature Abort> command. <Feature Abort> consists of 48 * @param src source address of command 49 * @param dest destination address of command 51 * @param reason reason of feature abor [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/drawable/ |
AnimatedVectorDrawable_Delegate.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 41 * Delegate used to provide new implementation of a select few methods of {@link 44 * Through the layoutlib_create tool, the original methods of AnimatedVectorDrawable have been 45 * replaced by calls to methods of the same name in this delegate class. 89 return sHolders.addNewDelegate(FloatPropertySetter.of(setter, startValue, 107 return sHolders.addNewDelegate(IntPropertySetter.of(setter, startValue, 117 return sHolders.addNewDelegate(FloatPropertySetter.of(setter, startValue, 126 return sHolders.addNewDelegate(FloatPropertySetter.of(renderer::setRootAlpha 255 private static PropertySetter of(Consumer<Integer> valueSetter, int... values) { method in class:AnimatedVectorDrawable_Delegate.IntPropertySetter 272 private static PropertySetter of(Consumer<Float> valueSetter, float... values) { method in class:AnimatedVectorDrawable_Delegate.FloatPropertySetter [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
DoubleStream.java | 6 * under the terms of the GNU General Public License version 2 only, as 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 17 * You should have received a copy of the GNU General Public License version 51 * A sequence of primitive double-valued elements supporting sequential and parallel 52 * aggregate operations. This is the {@code double} primitive specialization of 56 * {@link Stream} and {@link DoubleStream}, computing the sum of the weights of the 68 * specification of streams, stream operations, stream pipelines, and 78 * Returns a stream consisting of the elements of this stream that matc 743 public static DoubleStream of(double t) { method in interface:DoubleStream 753 public static DoubleStream of(double... values) { method in interface:DoubleStream [all...] |
IntStream.java | 6 * under the terms of the GNU General Public License version 2 only, as 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 17 * You should have received a copy of the GNU General Public License version 49 * A sequence of primitive int-valued elements supporting sequential and parallel 50 * aggregate operations. This is the {@code int} primitive specialization of 54 * {@link Stream} and {@link IntStream}, computing the sum of the weights of the 66 * specification of streams, stream operations, stream pipelines, and 76 * Returns a stream consisting of the elements of this stream that matc 711 public static IntStream of(int t) { method in interface:IntStream 721 public static IntStream of(int... values) { method in interface:IntStream [all...] |
LongStream.java | 6 * under the terms of the GNU General Public License version 2 only, as 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 17 * You should have received a copy of the GNU General Public License version 53 * A sequence of primitive long-valued elements supporting sequential and parallel 54 * aggregate operations. This is the {@code long} primitive specialization of 58 * {@link Stream} and {@link LongStream}, computing the sum of the weights of the 70 * specification of streams, stream operations, stream pipelines, and 80 * Returns a stream consisting of the elements of this stream that matc 703 public static LongStream of(long t) { method in interface:LongStream 713 public static LongStream of(long... values) { method in interface:LongStream [all...] |
Stream.java | 6 * under the terms of the GNU General Public License version 2 only, as 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 17 * You should have received a copy of the GNU General Public License version 51 * A sequence of elements supporting sequential and parallel aggregate 63 * a stream of {@code Widget} objects via {@link Collection#stream Collection.stream()}, 65 * transform it into a stream of {@code int} values representing the weight of 68 * <p>In addition to {@code Stream}, which is a stream of object references, 70 * and {@link DoubleStream}, all of which are referred to as "streams" and 75 * <em>stream pipeline</em>. A stream pipeline consists of a source (whic 983 public static<T> Stream<T> of(T t) { method in interface:Stream 996 public static<T> Stream<T> of(T... values) { method in interface:Stream [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
DisabledAlgorithmConstraints.java | 6 * under the terms of the GNU General Public License version 2 only, as 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 17 * You should have received a copy of the GNU General Public License version 50 * for the syntax of the disabled algorithm string. 116 // check the items of the algorithm 279 // remove double quote marks from beginning/end of the property 325 KeySizeConstraint.Operator.of(matcher.group(2)); 380 static Operator of(String s) { method in class:DisabledAlgorithmConstraints.KeySizeConstraint.Operator 444 return true; // we don't allow any key of size 0.
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
FragmentMenu.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 115 // for layout references of the form R.layout.*. 118 // Pair of <title,layout> to be displayed to the user 122 layouts.add(Pair.of("list_content", //$NON-NLS-1$ 144 // Is this R.layout part of an android.R.layout? 152 layouts.add(Pair.of(title, layout)); 179 * Returns the class name of the fragment associated with the given {@code <fragment>} 215 /** Returns the name of the currently displayed layout in the fragment, or null */
|
SwtDrawingStyle.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 25 * Description of the drawing styles with specific color, line style and alpha 169 * @param strokeAlpha The alpha value of the stroke, an integer in the range 0 to 255 171 * @param fillAlpha The alpha value of the fill, an integer in the range 0 to 255 245 public static SwtDrawingStyle of(DrawingStyle style) { method in class:SwtDrawingStyle 302 /** RGB description of the stroke/foreground/border color */ 305 /** RGB description of the fill/foreground/interior color */ 308 /** Pixel thickness of the stroke/border */ 311 /** SWT line style of the border/stroke * [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ |
IdeScanningContext.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 51 * that at the end of a scan we can mark and clear errors, etc. 94 mErrors.add(Pair.of(mCurrentFile, error)); 127 // as the result of a resource change notification, since at that point the 170 * Returns true if any of the scanned resources has an error marker on it. 209 * Returns the collection of projects that scanned resources have requested 212 * @return a collection of projects that scanned resources requested full
|
/toolchain/binutils/binutils-2.25/gold/ |
gold.cc | 6 // This file is part of gold. 9 // it under the terms of the GNU General Public License as published by 10 // the Free Software Foundation; either version 3 of the License, or 14 // but WITHOUT ANY WARRANTY; without even the implied warranty of 18 // You should have received a copy of the GNU General Public License 80 // We are out of memory, so try hard to print a reasonable message. 92 const char* const s = ": out of memory\n"; 108 // This class arranges to run the functions done in the middle of the 172 // Queue up the initial set of tasks for this link job. 206 Output_file* of = new Output_file(options.output_file_name()) local [all...] |
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
SetsTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 107 = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of()); 111 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.B)); 115 = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.D, SomeEnum.B)); 133 EnumSet<SomeEnum> set = EnumSet.of(SomeEnum.A, SomeEnum.D); 138 Set<SomeEnum> set = ImmutableSet.of(SomeEnum.B, SomeEnum.C); 143 Set<SomeEnum> set = ImmutableSet.of(SomeEnum.A, SomeEnum.B, SomeEnum.C); 288 Set<SomeEnum> units = EnumSet.of(SomeEnum.B, SomeEnum.D); 290 verifySetContents(otherUnits, EnumSet.of(SomeEnum.A, SomeEnum.C)) 495 expected.add(ImmutableSet.<Integer>of()); method 548 expected.add(ImmutableSet.<Integer>of()); method [all...] |
/external/guava/guava-tests/test/com/google/common/reflect/ |
InvokableTest.java | 6 * You may obtain a copy of the License at 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 69 assertEquals(ImmutableList.of(TypeToken.of(NullPointerException.class)), 124 assertEquals(ImmutableList.of(), delegate.getExceptionTypes()); 152 delegate.invoke(null, "a", ImmutableList.of("b", "c")); 153 assertEquals(ImmutableList.of("a", "b", "c"), ImmutableList.copyOf(result)); 161 Iterable<String> result = delegate.invoke(null, "a", ImmutableList.of("b", "c")); 162 assertEquals(ImmutableList.of("a", "b", "c"), ImmutableList.copyOf(result)); 172 Iterable<String> result = delegate.invoke(null, "a", ImmutableList.of("b", "c")) [all...] |