/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
DHGenParameterSpecTest.java | 25 import java.lang.Integer; 43 int[] primes = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE}; 44 int[] exponents = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE};
|
/external/guava/guava-tests/test/com/google/common/collect/ |
TransposedTableTest.java | 29 @Override protected Table<String, Integer, Character> create( 31 Table<Integer, String, Character> original = HashBasedTable.create(); 32 Table<String, Integer, Character> table = Tables.transpose(original); 39 Table<Integer, String, Character> original = HashBasedTable.create(); 44 Table<Integer, String, Character> original = HashBasedTable.create(); 45 Table<String, Integer, Character> transpose = Tables.transpose(original); 51 Table<Integer, String, Character> original = HashBasedTable.create(); 52 Table<String, Integer, Character> transpose = Tables.transpose(original); 58 Table<Integer, String, Character> original = HashBasedTable.create(); 59 Table<String, Integer, Character> transpose = Tables.transpose(original) [all...] |
MultimapsTest.java | 64 private static final Comparator<Integer> INT_COMPARATOR = 65 Ordering.<Integer>natural().reverse().nullsFirst(); 75 @Override protected Multimap<String, Integer> create() { 77 HashMultimap.<String, Integer>create()); 82 ListMultimap<String, Integer> mod = ArrayListMultimap.create(); 83 ListMultimap<String, Integer> unmod = Multimaps.unmodifiableListMultimap(mod); 86 ImmutableListMultimap<String, Integer> immutable = 90 immutable, Multimaps.unmodifiableListMultimap((ListMultimap<String, Integer>) immutable)); 95 SetMultimap<String, Integer> mod = HashMultimap.create(); 96 SetMultimap<String, Integer> unmod = Multimaps.unmodifiableSetMultimap(mod) [all...] |
MinMaxPriorityQueueTest.java | 47 private Ordering<Integer> SOME_COMPARATOR = Ordering.natural().reverse(); 52 MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue 60 MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue 69 MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue 78 MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue 88 MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue 97 MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue 107 MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue 116 private static final List<Integer> NUMBERS = 120 MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueu [all...] |
ImmutableMultimapTest.java | 39 ImmutableMultimap<String, Integer> multimap = new Builder<String, Integer>() 46 Builder<String, Integer> builder = new Builder<String, Integer>(); 48 builder.put(Maps.immutableEntry("one", (Integer) null)); 64 ImmutableMultimap.Builder<String, Integer> builder = 65 new Builder<String, Integer>(); 68 Entry<String, Integer> entry = new AbstractMapEntry<String, Integer>() { 72 @Override public Integer getValue() [all...] |
SortedMapsTest.java | 63 SortedMap<String, Integer> map = ImmutableSortedMap.of("a", 4, "b", 9); 64 Function<Integer, Double> sqrt = new Function<Integer, Double>() { 66 public Double apply(Integer in) { 94 private static final Predicate<Integer> EVEN = 95 new Predicate<Integer>() { 97 public boolean apply(Integer input) { 103 Comparator<Integer> comparator = Ordering.natural(); 104 SortedMap<Integer, String> unfiltered = Maps.newTreeMap(comparator); 112 SortedMap<Integer, String> filtered [all...] |
ImmutableMapTest.java | 175 public static class MapTests extends AbstractMapTests<String, Integer> { 176 @Override protected Map<String, Integer> makeEmptyMap() { 180 @Override protected Map<String, Integer> makePopulatedMap() { 188 @Override protected Integer getValueNotInPopulatedMap() { 194 extends AbstractMapTests<String, Integer> { 195 @Override protected Map<String, Integer> makePopulatedMap() { 203 @Override protected Integer getValueNotInPopulatedMap() { 210 extends AbstractMapTests<String, Integer> { 211 @Override protected Map<String, Integer> makePopulatedMap() { 220 @Override protected Integer getValueNotInPopulatedMap() [all...] |
MutableClassToInstanceMapTest.java | 98 map.put(Integer.class, new Integer(5)); 108 assertNull(map.putInstance(Integer.class, new Integer(5))); 110 Integer oldValue = map.putInstance(Integer.class, new Integer(7)); 113 Integer newValue = map.getInstance(Integer.class); 121 map.put(null, new Integer(1)) [all...] |
AbstractImmutableTableTest.java | 28 abstract Iterable<ImmutableTable<Character, Integer, String>> 32 for(ImmutableTable<Character, Integer, String> testInstance : 44 for(ImmutableTable<Character, Integer, String> testInstance : 56 for(ImmutableTable<Character, Integer, String> testInstance : 68 for(ImmutableTable<Character, Integer, String> testInstance : 80 for(ImmutableTable<Character, Integer, String> testInstance : 87 for(ImmutableTable<Character, Integer, String> testInstance :
|
ConstrainedMapImplementsMapTest.java | 28 extends MapInterfaceTest<String, Integer> { 34 @Override protected Map<String, Integer> makeEmptyMap() { 35 return MapConstraints.constrainedMap(new HashMap<String, Integer>(), 39 @Override protected Map<String, Integer> makePopulatedMap() { 40 final Map<String, Integer> sortedMap = MapConstraints.constrainedMap( 41 new HashMap<String, Integer>(), MapConstraintsTest.TEST_CONSTRAINT); 53 @Override protected Integer getValueNotInPopulatedMap()
|
HashMultimapTest.java | 28 @Override protected Multimap<String, Integer> create() { 37 HashMultimap<String, Integer> multimap = HashMultimap.create(); 46 Multimap<String, Integer> multimap = createSample(); 47 HashMultimap<String, Integer> copy = HashMultimap.create(multimap); 53 HashMultimap<String, Integer> multimap = HashMultimap.create(20, 15); 74 Multimap<String, Integer> setMultimap = HashMultimap.create(); 75 Multimap<String, Integer> listMultimap = ArrayListMultimap.create();
|
SubMapMultimapAsMapImplementsMapTest.java | 39 private TreeMultimap<String, Integer> createMultimap() { 40 TreeMultimap<String, Integer> multimap 42 Ordering.<Integer>natural().nullsFirst()); 49 @Override protected Map<String, Collection<Integer>> makeEmptyMap() { 53 @Override protected Map<String, Collection<Integer>> makePopulatedMap() { 54 TreeMultimap<String, Integer> multimap = createMultimap(); 66 @Override protected Collection<Integer> getValueNotInPopulatedMap() {
|
ImmutableBiMapTest.java | 179 public static class MapTests extends AbstractMapTests<String, Integer> { 180 @Override protected Map<String, Integer> makeEmptyMap() { 184 @Override protected Map<String, Integer> makePopulatedMap() { 192 @Override protected Integer getValueNotInPopulatedMap() { 198 extends AbstractMapTests<String, Integer> { 199 @Override protected Map<String, Integer> makeEmptyMap() { 203 @Override protected Map<String, Integer> makePopulatedMap() { 211 @Override protected Integer getValueNotInPopulatedMap() { 218 ImmutableBiMap<String, Integer> map 219 = new Builder<String, Integer>().build() [all...] |
HashBiMapTest.java | 35 @Override protected BiMap<Integer, String> create() { 61 BiMap<Integer, Integer> bimap = HashBiMap.create(N); 62 BiMap<Integer, Integer> inverse = bimap.inverse(); 83 Set<Entry<Integer, Integer>> entries = bimap.entrySet(); 84 for (Entry<Integer, Integer> entry : entries) { 95 bimap = new AbstractBiMap<Integer, String> [all...] |
MapsTest.java | 76 private static final Comparator<Integer> SOME_COMPARATOR = 80 HashMap<Integer, Integer> map = Maps.newHashMap(); 85 Map<String, Integer> original = new TreeMap<String, Integer>(); 89 HashMap<String, Integer> map = Maps.newHashMap(original); 94 Map<String, Integer> original = new TreeMap<String, Integer>(); 120 HashMap<Integer, Void> map1 = Maps.newHashMapWithExpectedSize(size); 134 HashMap<Integer, Void> map2 = Maps.newHashMapWithExpectedSize(size) [all...] |
AbstractListMultimapTest.java | 42 @Override protected abstract ListMultimap<String, Integer> create(); 48 Multimap<String, Integer> multimap = create(); 64 Multimap<String, Integer> multimap = create(); 72 Multimap<String, Integer> multimap = create(); 78 Multimap<String, Integer> other = create(); 91 Multimap<String, Integer> multimap = create(); 98 Multimap<String, Integer> multimap = getMultimap(); 102 Map<String, Collection<Integer>> map = multimap.asMap(); 104 Map<String, Collection<Integer>> equalMap = Maps.newHashMap(); 111 Map<String, Collection<Integer>> unequalMap = Maps.newHashMap() [all...] |
TableCollectionTest.java | 122 Table<String, Integer, Character> table 138 Table<String, Integer, Character> table = HashBasedTable.create(); 149 Table<String, Integer, Character> table = TreeBasedTable.create(); 165 TreeBasedTable<String, Integer, Character> table 183 TreeBasedTable<String, Integer, Character> table 201 TreeBasedTable<String, Integer, Character> table 220 Table<String, Integer, Character> table = HashBasedTable.create(); 231 RowSortedTable<String, Integer, Character> table = TreeBasedTable.create(); 247 Table<Integer, String, Character> table 263 Table<Integer, String, Character> table = HashBasedTable.create() [all...] |
ImmutableSetMultimapTest.java | 44 ImmutableSetMultimap<String, Integer> multimap = new Builder<String, Integer>() 51 Builder<String, Integer> builder = new Builder<String, Integer>(); 53 builder.put(Maps.immutableEntry("one", (Integer) null)); 69 ImmutableSetMultimap.Builder<String, Integer> builder = 70 new Builder<String, Integer>(); 73 Entry<String, Integer> entry = new AbstractMapEntry<String, Integer>() { 77 @Override public Integer getValue() [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_int/ |
Test_sub_int.java | 55 assertEquals(Integer.MAX_VALUE, t.run(0, -2147483647)); 59 * @title Arguments = 0, Integer.MAX_VALUE 63 assertEquals(-2147483647, t.run(0, Integer.MAX_VALUE)); 67 * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE 71 assertEquals(0, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); 75 * @title Arguments = Integer.MAX_VALUE, -1 79 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, -1)) [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_int_2addr/ |
Test_sub_int_2addr.java | 54 assertEquals(Integer.MAX_VALUE, t.run(0, -2147483647)); 58 * @title Arguments = 0, Integer.MAX_VALUE 62 assertEquals(-2147483647, t.run(0, Integer.MAX_VALUE)); 66 * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE 70 assertEquals(0, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); 74 * @title Arguments = Integer.MAX_VALUE, -1 78 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, -1)) [all...] |
/external/guava/guava-tests/test/com/google/common/base/ |
SuppliersTest.java | 45 Supplier<Integer> fiveSupplier = new Supplier<Integer>() { 47 public Integer get() { 52 Function<Number, Integer> intValueFunction = 53 new Function<Number, Integer>() { 55 public Integer apply(Number x) { 60 Supplier<Integer> squareSupplier = Suppliers.compose(intValueFunction, 63 assertEquals(Integer.valueOf(5), squareSupplier.get()); 67 Supplier<ArrayList<Integer>> listSupplier 68 = new Supplier<ArrayList<Integer>>() { [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
PriorityQueueTest.java | 41 PriorityQueue<Integer> integerQueue = new PriorityQueue<Integer>(); 42 Integer[] array = { 2, 45, 7, -12, 9 }; 46 Iterator<Integer> iter = integerQueue.iterator(); 48 ArrayList<Integer> iterResult = new ArrayList<Integer>(); 62 PriorityQueue<Integer> integerQueue = new PriorityQueue<Integer>(); 63 Iterator<Integer> iter = integerQueue.iterator(); 84 PriorityQueue<Integer> integerQueue = new PriorityQueue<Integer>() [all...] |
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
ConnectionTest.java | 33 HashMap<String, Integer> thePublicStatics = new HashMap<String, Integer>(); 34 thePublicStatics.put("TRANSACTION_SERIALIZABLE", new Integer(8)); 35 thePublicStatics.put("TRANSACTION_REPEATABLE_READ", new Integer(4)); 36 thePublicStatics.put("TRANSACTION_READ_COMMITTED", new Integer(2)); 37 thePublicStatics.put("TRANSACTION_READ_UNCOMMITTED", new Integer(1)); 38 thePublicStatics.put("TRANSACTION_NONE", new Integer(0));
|
/libcore/luni/src/test/java/libcore/java/util/ |
OldPriorityQueueTest.java | 56 Integer[] array = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 16, 39 }; 57 List<Integer> list = Arrays.asList(array); 58 PriorityQueue<Integer> integerQueue = new PriorityQueue<Integer>(list); 74 PriorityQueue<Integer> srcIntegerQueue = new PriorityQueue<Integer>( 76 new SerializationTester<PriorityQueue<Integer>>(srcIntegerQueue, s) { 77 @Override protected boolean equals(PriorityQueue<Integer> a, PriorityQueue<Integer> b) {
|
/cts/tools/dasm/src/java_cup/ |
lexer.java | 70 * which indexes Integer objects holding the symbol number. 77 * store all unambiguous single character tokens in this table of Integer 78 * objects keyed by Integer objects with the numerical value of the 114 keywords.put("package", new Integer(sym.PACKAGE)); 115 keywords.put("import", new Integer(sym.IMPORT)); 116 keywords.put("code", new Integer(sym.CODE)); 117 keywords.put("action", new Integer(sym.ACTION)); 118 keywords.put("parser", new Integer(sym.PARSER)); 119 keywords.put("terminal", new Integer(sym.TERMINAL)); 120 keywords.put("non", new Integer(sym.NON)) [all...] |