/libcore/support/src/test/java/tests/support/ |
Support_UnmodifiableCollectionTest.java | 29 Collection<Integer> col; 38 public Support_UnmodifiableCollectionTest(String p1, Collection<Integer> c) { 48 .contains(new Integer(0))); 50 .contains(new Integer(50))); 52 .contains(new Integer(100))); 55 HashSet<Integer> hs = new HashSet<Integer>(); 56 hs.add(new Integer(0)); 57 hs.add(new Integer(25)); 58 hs.add(new Integer(99)) [all...] |
/external/guava/guava-tests/test/com/google/common/base/ |
AbstractIteratorTest.java | 40 Iterator<Integer> iter = new AbstractIterator<Integer>() { 42 @Override public Integer computeNext() { 79 Iterator<Integer> iter = new AbstractIterator<Integer>() { 81 @Override public Integer computeNext() { 112 Iterator<Integer> iter = new AbstractIterator<Integer>() { 113 @Override public Integer computeNext() { 128 Iterator<Integer> iter = new AbstractIterator<Integer>() [all...] |
/external/apache-xml/src/main/java/org/apache/xpath/compiler/ |
Keywords.java | 219 new Integer(OpCodes.FROM_ANCESTORS)); 221 new Integer(OpCodes.FROM_ANCESTORS_OR_SELF)); 223 new Integer(OpCodes.FROM_ATTRIBUTES)); 225 new Integer(OpCodes.FROM_CHILDREN)); 227 new Integer(OpCodes.FROM_DESCENDANTS)); 229 new Integer(OpCodes.FROM_DESCENDANTS_OR_SELF)); 231 new Integer(OpCodes.FROM_FOLLOWING)); 233 new Integer(OpCodes.FROM_FOLLOWING_SIBLINGS)); 235 new Integer(OpCodes.FROM_PARENT)); 237 new Integer(OpCodes.FROM_PRECEDING)) [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheEvictionTest.java | 65 IdentityLoader<Integer> loader = identityLoader(); 66 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() 80 IdentityLoader<Integer> loader = identityLoader(); 81 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() 96 CountingRemovalListener<Integer, Integer> removalListener = countingRemovalListener(); 97 IdentityLoader<Integer> loader = identityLoader(); 98 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder( [all...] |
TestingWeighers.java | 32 * Returns a {@link Weigher} that uses the integer key as the weight. 34 static Weigher<Integer, Object> intKeyWeigher() { 39 * Returns a {@link Weigher} that uses the integer value as the weight. 41 static Weigher<Object, Integer> intValueWeigher() { 58 static final class IntKeyWeigher implements Weigher<Integer, Object> { 60 public int weigh(Integer key, Object value) { 65 static final class IntValueWeigher implements Weigher<Object, Integer> { 67 public int weigh(Object key, Integer value) {
|
/external/guava/guava-tests/test/com/google/common/collect/ |
ContiguousSetNonGwtTest.java | 52 protected Set<Integer> create(Integer[] elements) { 56 SortedSet<Integer> set = new TreeSet<Integer>(); 78 abstract static class TestIntegerSetGenerator implements TestSetGenerator<Integer> { 79 @Override public SampleElements<Integer> samples() { 80 return new SampleElements<Integer>(1, 2, 3, 4, 5); 83 @Override public Set<Integer> create(Object... elements) { 84 Integer[] array = new Integer[elements.length] [all...] |
FilteredMultimapTest.java | 34 private static final Predicate<Map.Entry<String, Integer>> ENTRY_PREDICATE 35 = new Predicate<Map.Entry<String, Integer>>() { 36 @Override public boolean apply(Entry<String, Integer> entry) { 37 return !"badkey".equals(entry.getKey()) && !((Integer) 55556).equals(entry.getValue()); 41 @Override protected Multimap<String, Integer> create() { 42 Multimap<String, Integer> unfiltered = HashMultimap.create(); 69 Multimap<String, Integer> unfiltered = HashMultimap.create(); 72 Multimap<String, Integer> filtered = Multimaps.filterKeys(unfiltered, KEY_PREDICATE); 77 private static final Predicate<Integer> VALUE_PREDICATE 78 = new Predicate<Integer>() { [all...] |
AbstractIteratorTest.java | 40 Iterator<Integer> iter = new AbstractIterator<Integer>() { 42 @Override public Integer computeNext() { 83 AbstractIterator<Integer> iter = new AbstractIterator<Integer>() { 85 @Override public Integer computeNext() { 136 AbstractIterator<Integer> empty = new AbstractIterator<Integer>() { 138 @Override public Integer computeNext() { 161 Iterator<Integer> iter = new AbstractIterator<Integer>() [all...] |
ConstrainedBiMapTest.java | 32 private static final Integer TEST_KEY = 42; 34 private static final MapConstraint<Integer, String> TEST_CONSTRAINT 38 implements MapConstraint<Integer, String> { 40 public void checkKeyValue(Integer key, String value) { 51 @Override protected BiMap<Integer, String> create() { 53 HashBiMap.<Integer, String>create(), TEST_CONSTRAINT);
|
MultimapsTransformValuesAsMapTest.java | 38 @Override protected Map<String, Collection<Integer>> makeEmptyMap() { 40 ArrayListMultimap.<String, Integer> create(), 41 Functions.<Integer> identity()).asMap(); 44 @Override protected Map<String, Collection<Integer>> makePopulatedMap() { 45 ListMultimap<String, Integer> delegate = ArrayListMultimap.create(); 48 .transformValues(delegate, Functions.<Integer> identity()).asMap();
|
ConstrainedSetMultimapTest.java | 30 @Override protected SetMultimap<String, Integer> create() { 31 return MapConstraints.<String, Integer>constrainedSetMultimap( 32 HashMultimap.<String, Integer>create(),
|
ForwardingConcurrentMapTest.java | 32 extends ForwardingConcurrentMap<String, Integer> { 33 final ConcurrentMap<String, Integer> delegate 34 = new ConcurrentHashMap<String, Integer>(); 35 @Override protected ConcurrentMap<String, Integer> delegate() { 43 assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2)); 44 assertEquals(Integer.valueOf(1), map.get("foo")); 46 assertEquals(Integer.valueOf(3), map.get("bar")); 54 assertEquals(Integer.valueOf(1), map.get("foo")); 62 assertEquals(Integer.valueOf(1), map.replace("foo", 2)); 64 assertEquals(Integer.valueOf(2), map.get("foo")) [all...] |
/frameworks/base/media/java/android/media/videoeditor/ |
MediaProperties.java | 64 private static final Pair<Integer, Integer>[] ASPECT_RATIO_3_2_RESOLUTIONS = 66 new Pair<Integer, Integer>(720, HEIGHT_480), 67 new Pair<Integer, Integer>(1080, HEIGHT_720) 71 private static final Pair<Integer, Integer>[] ASPECT_RATIO_4_3_RESOLUTIONS = 73 new Pair<Integer, Integer>(640, HEIGHT_480) [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
LinkedHashSetTest.java | 116 hs.add(new Integer(8)); 118 hs.add(new Integer(-9)); 121 assertTrue("Failed to add element to set", hs.contains(new Integer(-9))); 183 Integer ii = (Integer) oo; 204 hs.remove(new Integer(98)); 205 assertTrue("Failed to remove element", !hs.contains(new Integer(98))); 231 LinkedHashSet<Integer> lhs = new LinkedHashSet<Integer>(); 234 lhs.add(new Integer(1)) [all...] |
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
SFTPv3FileAttributes.java | 25 public Integer uid = null; 30 public Integer gid = null; 65 public Integer permissions = null; 71 public Integer atime = null; 77 public Integer mtime = null; 132 String res = Integer.toString(permissions.intValue() & 0177777, 8);
|
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
ResultSetTest.java | 33 HashMap<String, Integer> thePublicStatics = new HashMap<String, Integer>(); 35 new java.lang.Integer(2)); 36 thePublicStatics.put("HOLD_CURSORS_OVER_COMMIT", new java.lang.Integer( 38 thePublicStatics.put("CONCUR_UPDATABLE", new java.lang.Integer(1008)); 39 thePublicStatics.put("CONCUR_READ_ONLY", new java.lang.Integer(1007)); 40 thePublicStatics.put("TYPE_SCROLL_SENSITIVE", new java.lang.Integer( 42 thePublicStatics.put("TYPE_SCROLL_INSENSITIVE", new java.lang.Integer( 44 thePublicStatics.put("TYPE_FORWARD_ONLY", new java.lang.Integer(1003)); 45 thePublicStatics.put("FETCH_UNKNOWN", new java.lang.Integer(1002)) [all...] |
ParameterMetaDataTest.java | 33 HashMap<String, Integer> thePublicStatics = new HashMap<String, Integer>(); 34 thePublicStatics.put("parameterModeOut", new Integer(4)); 35 thePublicStatics.put("parameterModeInOut", new Integer(2)); 36 thePublicStatics.put("parameterModeIn", new Integer(1)); 37 thePublicStatics.put("parameterModeUnknown", new Integer(0)); 38 thePublicStatics.put("parameterNullableUnknown", new Integer(2)); 39 thePublicStatics.put("parameterNullable", new Integer(1)); 40 thePublicStatics.put("parameterNoNulls", new Integer(0));
|
StatementTest.java | 33 HashMap<String, Integer> thePublicStatics = new HashMap<String, Integer>(); 34 thePublicStatics.put("NO_GENERATED_KEYS", new Integer(2)); 35 thePublicStatics.put("RETURN_GENERATED_KEYS", new Integer(1)); 36 thePublicStatics.put("EXECUTE_FAILED", new Integer(-3)); 37 thePublicStatics.put("SUCCESS_NO_INFO", new Integer(-2)); 38 thePublicStatics.put("CLOSE_ALL_RESULTS", new Integer(3)); 39 thePublicStatics.put("KEEP_CURRENT_RESULT", new Integer(2)); 40 thePublicStatics.put("CLOSE_CURRENT_RESULT", new Integer(1));
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_int_lit16/d/ |
T_add_int_lit16_8.java | 22 return Integer.MAX_VALUE + Short.MAX_VALUE;
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_int_lit8/d/ |
T_add_int_lit8_8.java | 22 return Integer.MAX_VALUE + Byte.MAX_VALUE;
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_int_lit16/d/ |
T_div_int_lit16_10.java | 22 return Integer.MIN_VALUE / Short.MAX_VALUE;
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_int_lit8/d/ |
T_div_int_lit8_10.java | 22 return Integer.MIN_VALUE / Byte.MAX_VALUE;
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/xor_int_lit16/d/ |
T_xor_int_lit16_4.java | 22 return Integer.MAX_VALUE ^ Short.MIN_VALUE;
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/xor_int_lit8/d/ |
T_xor_int_lit8_4.java | 22 return Integer.MAX_VALUE ^ Byte.MIN_VALUE;
|
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_ListTest.java | 27 List<Integer> list; // must contain the Integers 0 to 99 in order 33 public Support_ListTest(String p1, List<Integer> l) { 46 .equals(new Integer(counter))); 50 list.add(50, new Integer(1000)); 52 .get(50).equals(new Integer(1000))); 55 list.get(51).equals(new Integer(50))); 58 list.get(49).equals(new Integer(49))); 60 list.set(50, new Integer(2000)); 62 .equals(new Integer(2000))); 64 list.get(51).equals(new Integer(50))) [all...] |