/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
LinkedHashMapTest.java | 52 objArray[i] = new Integer(i); 154 .get(new Integer(0))); 170 m.put(new Integer(0), "int"); 174 new Integer(0))); 186 new Integer(i).toString()).equals((new Integer(i)))); 242 map.put(new Integer(1), "1"); 243 map.put(new Integer(102), "102"); 244 map.put(new Integer(203), "203"); 246 Integer remove1 = (Integer) it.next() [all...] |
SortedMapTestBase.java | 43 SortedMap<Integer, Integer> map; 44 SortedMap<Integer, Integer> ref; 77 Set<Map.Entry<Integer,Integer>> refSet = ref.entrySet(); 78 Set<Map.Entry<Integer,Integer>> mapSet = map.entrySet(); 79 for (Map.Entry<Integer,Integer> e : refSet) [all...] |
TreeMapTest.java | 122 reversedTreeMap.put(new Integer(1).toString(), new Integer(1)); 123 reversedTreeMap.put(new Integer(2).toString(), new Integer(2)); 125 reversedTreeMap.firstKey().equals(new Integer(2).toString())); 127 reversedTreeMap.lastKey().equals(new Integer(1).toString())); 151 reversedTreeMap.put(new Integer(1).toString(), new Integer(1)); 152 reversedTreeMap.put(new Integer(2).toString(), new Integer(2)) [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
LinkedHashMapTest.java | 147 .get(new Integer(0))); 163 m.put(new Integer(0), "int"); 167 new Integer(0))); 193 new Integer(i).toString()).equals((new Integer(i)))); 263 map.put(new Integer(1), "1"); 264 map.put(new Integer(102), "102"); 265 map.put(new Integer(203), "203"); 267 Integer remove1 = (Integer) it.next() [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ForwardingSortedMapImplementsMapTest.java | 33 extends SortedMapInterfaceTest<String, Integer> { 50 @Override protected SortedMap<String, Integer> makeEmptyMap() { 51 return new SimpleForwardingSortedMap<String, Integer>( 52 new TreeMap<String, Integer>(Ordering.natural().nullsFirst())); 55 @Override protected SortedMap<String, Integer> makePopulatedMap() { 56 final SortedMap<String, Integer> sortedMap = makeEmptyMap(); 68 @Override protected Integer getValueNotInPopulatedMap()
|
InternersTest.java | 68 Integer canonical = new Integer(5); 69 Integer not = new Integer(5); 71 Interner<Integer> pool = Interners.newWeakInterner(); 74 WeakReference<Integer> signal = new WeakReference<Integer>(canonical);
|
MultimapCollectionTest.java | 132 Multimap<Integer, String> multimap, String[] elements) { 140 Multimap<String, Integer> multimap, String[] elements) { 148 Multimap<Integer, String> multimap, String[] elements) { 155 Multimap<String, Integer> multimap, String[] elements) { 209 implements TestCollectionGenerator<Entry<String, Integer>> { 211 public SampleElements<Entry<String, Integer>> samples() { 212 return new SampleElements<Entry<String, Integer>>( 221 public Collection<Entry<String, Integer>> create(Object... elements) { 222 Multimap<String, Integer> multimap = createMultimap(); 225 Entry<String, Integer> entry = (Entry<String, Integer>) element [all...] |
GeneralRangeTest.java | 38 private static final Ordering<Integer> ORDERING = Ordering.natural().nullsFirst(); 40 private static final List<Integer> IN_ORDER_VALUES = Arrays.asList(null, 1, 2, 3, 4, 5); 46 GeneralRange<Integer> range = GeneralRange.range(ORDERING, 4, lboundType, 2, uboundType); 54 for (Integer i : IN_ORDER_VALUES) { 63 for (Integer i : IN_ORDER_VALUES) { 64 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, CLOSED, i, OPEN); 65 for (Integer j : IN_ORDER_VALUES) { 72 for (Integer i : IN_ORDER_VALUES) { 73 GeneralRange<Integer> range = GeneralRange.range(ORDERING, i, OPEN, i, CLOSED); 74 for (Integer j : IN_ORDER_VALUES) [all...] |
/external/apache-xml/src/main/java/org/apache/xpath/compiler/ |
FunctionTable.java | 233 new Integer(FunctionTable.FUNC_CURRENT)); 235 new Integer(FunctionTable.FUNC_LAST)); 237 new Integer(FunctionTable.FUNC_POSITION)); 239 new Integer(FunctionTable.FUNC_COUNT)); 241 new Integer(FunctionTable.FUNC_ID)); 243 new Integer(FunctionTable.FUNC_KEY)); 245 new Integer(FunctionTable.FUNC_LOCAL_PART)); 247 new Integer(FunctionTable.FUNC_NAMESPACE)); 249 new Integer(FunctionTable.FUNC_QNAME)); 251 new Integer(FunctionTable.FUNC_GENERATE_ID)) [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheExpirationTest.java | 51 CountingRemovalListener<String, Integer> removalListener = countingRemovalListener(); 53 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() 63 CountingRemovalListener<String, Integer> removalListener = countingRemovalListener(); 65 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() 73 private void checkExpiration(LoadingCache<String, Integer> cache, WatchedCreatorLoader loader, 74 FakeTicker ticker, CountingRemovalListener<String, Integer> removalListener) { 77 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); 82 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); 100 CountingRemovalListener<String, Integer> removalListener = countingRemovalListener(); 102 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder( [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_int/ |
Test_add_int.java | 75 * @title Arguments = 0, Integer.MAX_VALUE 79 assertEquals(Integer.MAX_VALUE, t.run(0, Integer.MAX_VALUE)); 83 * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE 87 assertEquals(-2, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); 91 * @title Arguments = Integer.MAX_VALUE, 1 95 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, 1)) [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_int_2addr/ |
Test_add_int_2addr.java | 74 * @title Arguments = 0, Integer.MAX_VALUE 78 assertEquals(Integer.MAX_VALUE, t.run(0, Integer.MAX_VALUE)); 82 * @title Arguments = Integer.MAX_VALUE, Integer.MAX_VALUE 86 assertEquals(-2, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); 90 * @title Arguments = Integer.MAX_VALUE, 1 94 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, 1)) [all...] |
/dalvik/dx/src/com/android/dx/command/findusages/ |
FindUsages.java | 37 private final Set<Integer> methodIds; 38 private final Set<Integer> fieldIds; 49 Set<Integer> typeStringIndexes = new HashSet<Integer>(); 50 Set<Integer> memberNameIndexes = new HashSet<Integer>(); 68 methodIds = new HashSet<Integer>(); 69 fieldIds = new HashSet<Integer>(); 155 private Set<Integer> getFieldIds(DexBuffer dex, Set<Integer> memberNameIndexes, int declaringType) [all...] |
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
ResultSetMetaDataTest.java | 33 HashMap<String, Integer> thePublicStatics = new HashMap<String, Integer>(); 34 thePublicStatics.put("columnNullableUnknown", new Integer(2)); 35 thePublicStatics.put("columnNullable", new Integer(1)); 36 thePublicStatics.put("columnNoNulls", new Integer(0));
|
/external/apache-http/src/org/apache/http/conn/params/ |
ConnPerRouteBean.java | 55 private final Map<HttpRoute, Integer> maxPerHostMap; 61 this.maxPerHostMap = new HashMap<HttpRoute, Integer>(); 90 this.maxPerHostMap.put(route, Integer.valueOf(max)); 98 Integer max = this.maxPerHostMap.get(route); 106 public void setMaxForRoutes(final Map<HttpRoute, Integer> map) {
|
/external/guava/guava/src/com/google/common/collect/ |
ExplicitOrdering.java | 29 final ImmutableMap<T, Integer> rankMap; 35 ExplicitOrdering(ImmutableMap<T, Integer> rankMap) { 44 Integer rank = rankMap.get(value); 51 private static <T> ImmutableMap<T, Integer> buildRankMap( 53 ImmutableMap.Builder<T, Integer> builder = ImmutableMap.builder();
|
RegularImmutableMultiset.java | 36 private final transient ImmutableMap<E, Integer> map; 39 RegularImmutableMultiset(ImmutableMap<E, Integer> map, int size) { 51 Integer value = map.get(element); 72 final Iterator<Map.Entry<E, Integer>> mapIterator = 82 Map.Entry<E, Integer> mapEntry = mapIterator.next();
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
PrimitivesTest.java | 38 assertSame(Integer.class, Primitives.wrap(int.class)); 39 assertSame(Integer.class, Primitives.wrap(Integer.class)); 44 assertSame(int.class, Primitives.unwrap(Integer.class)); 69 Float.class, Integer.class, Long.class, Short.class, Void.class),
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
TransitionsAdapter.java | 30 public class TransitionsAdapter extends BaseAdapterWithImages<Integer> { 73 final ImageTextViewHolder<Integer> viewHolder; 79 viewHolder = new ImageTextViewHolder<Integer>(rowView); 83 viewHolder = (ImageTextViewHolder<Integer>)convertView.getTag(); 102 TransitionType.TRANSITION_RESOURCE_IDS[(Integer)data]);
|
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/font/plugins/ |
BitmapFontLoader.java | 69 charSet.setRenderedSize(Integer.parseInt(tokens[i + 1])); 77 charSet.setLineHeight(Integer.parseInt(tokens[i + 1])); 79 charSet.setBase(Integer.parseInt(tokens[i + 1])); 81 charSet.setWidth(Integer.parseInt(tokens[i + 1])); 83 charSet.setHeight(Integer.parseInt(tokens[i + 1])); 86 matPages = new Material[Integer.parseInt(tokens[i + 1])]; 97 index = Integer.parseInt(tokens[i + 1]); 124 int index = Integer.parseInt(tokens[i + 1]); 128 ch.setX(Integer.parseInt(tokens[i + 1])); 130 ch.setY(Integer.parseInt(tokens[i + 1])) [all...] |
/cts/tools/dasm/src/java_cup/runtime/ |
virtual_parse_stack.java | 64 /** The virtual top portion of the stack. This stack contains Integer 93 vstack.push(new Integer(stack_sym.parse_state)); 115 return ((Integer)vstack.peek()).intValue(); 140 vstack.push(new Integer(state_num));
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/JavaCompat/ |
Expr.g3 | 69 using Integer = java.lang.Integer; 73 /** Map variable name to Integer object holding value */ 81 {memory.put($ID.text, new Integer($expr.value));} 97 : INT {$value = Integer.parseInt($INT.text);} 100 Integer v = (Integer)memory.get($ID.text);
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
JavaScriptTarget.java | 40 String hex = Integer.toHexString(v|0x10000).substring(1,5); 58 writeHexWithPadding(buf, Integer.toHexString((int)(word & 0x00000000ffffffffL))); 60 writeHexWithPadding(buf, Integer.toHexString((int)(word >> 32)));
|
/external/apache-harmony/beans/src/test/support/java/org/apache/harmony/beans/tests/support/ |
SerializableBean.java | 30 private Integer iValue = null; 47 public Integer getIValue() { 51 public void setIValue(Integer iValue) {
|
/external/apache-http/src/org/apache/http/message/ |
ParserCursor.java | 93 buffer.append(Integer.toString(this.lowerBound)); 95 buffer.append(Integer.toString(this.pos)); 97 buffer.append(Integer.toString(this.upperBound));
|