/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
ExpirableCacheTest.java | 31 private ExpirableCache<String, Integer> mCache; 36 LruCache<String, CachedValue<Integer>> lruCache = 37 new LruCache<String, ExpirableCache.CachedValue<Integer>>(20); 105 new LruCache<String, ExpirableCache.CachedValue<Integer>>(10) { 107 protected CachedValue<Integer> create(String key) { 113 CachedValue<Integer> cachedValue = mCache.getCachedValue("a"); 120 CachedValue<Integer> expiredCachedValue = mCache.getCachedValue("a");
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
SimpleEntryTest.java | 33 new AbstractMap.SimpleEntry<Integer, String>(1,"test"); 60 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1,"test"); 67 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1,"test"); 74 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1,"test"); 83 Entry entry = new AbstractMap.SimpleEntry<Integer, String>(1,"test"); 89 Entry ent = new AbstractMap.SimpleImmutableEntry<Integer, String>(1,"test"); 94 Entry e = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); 101 Entry e = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); 110 Entry e = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); 119 SimpleEntry e = new AbstractMap.SimpleEntry<Integer, String>(1, "test"); [all...] |
IdentityHashMapTest.java | 192 map.put(new Integer(i), new Integer(i)); 211 map.put(new Integer(i), new Integer(i)); 230 map.put(new Integer(i), new Integer(i)); 233 Integer key = new Integer(20); 234 Integer value = new Integer(40) [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JCEDHKeyAgreement.java | 40 Integer i64 = Integer.valueOf(64); 41 Integer i192 = Integer.valueOf(192); 42 Integer i128 = Integer.valueOf(128); 43 Integer i256 = Integer.valueOf(256); 148 Integer length = (Integer)algorithms.get(algKey) [all...] |
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/sdkman2/ |
ShellSizeAndPos.java | 49 int px = Integer.parseInt(props.getProperty(prefix + PX));
50 int py = Integer.parseInt(props.getProperty(prefix + PY));
51 int sx = Integer.parseInt(props.getProperty(prefix + SX));
52 int sy = Integer.parseInt(props.getProperty(prefix + SY));
65 bestSurface = Integer.MAX_VALUE;
80 if (bestMatch != null && bestSurface != Integer.MAX_VALUE) {
106 props.setProperty(prefix + PX, Integer.toString(loc.x));
107 props.setProperty(prefix + PY, Integer.toString(loc.y));
108 props.setProperty(prefix + SX, Integer.toString(size.x));
109 props.setProperty(prefix + SY, Integer.toString(size.y)); [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
TreeMultimapNaturalTest.java | 50 @Override protected Multimap<String, Integer> create() { 59 @Override protected Integer nullValue() { 67 private TreeMultimap<String, Integer> createPopulate() { 68 TreeMultimap<String, Integer> multimap = TreeMultimap.create(); 85 TreeMultimap<String, Integer> multimap = createPopulate(); 92 TreeMultimap<String, Integer> multimap = createPopulate(); 97 TreeMultimap<String, Integer> multimap = createPopulate(); 98 Iterator<Map.Entry<String, Collection<Integer>>> iterator = 100 Map.Entry<String, Collection<Integer>> entry = iterator.next(); 112 TreeMultimap<String, Integer> multimap = createPopulate() [all...] |
ForwardingTableTest.java | 26 private Table<String, Integer, Boolean> forward; 36 final Table<String, Integer, Boolean> table = 38 forward = new ForwardingTable<String, Integer, Boolean>() { 39 @Override protected Table<String, Integer, Boolean> delegate() { 111 forward.putAll(HashBasedTable.<String, Integer, Boolean>create());
|
TablesTest.java | 37 Cell<String, Integer, Character> entry 43 Cell<String, Integer, Character> entry 47 Cell<String, Integer, Character> nullEntry 53 Cell<String, Integer, Character> entry 66 Cell<String, Integer, Character> entry
|
RangeTest.java | 42 Range<Integer> range = Ranges.open(4, 8); 69 Range<Integer> range = Ranges.closed(5, 7); 91 Range<Integer> range = Ranges.openClosed(4, 7); 105 Range<Integer> range = Ranges.closedOpen(5, 8); 128 private static void checkContains(Range<Integer> range) { 136 Range<Integer> range = Ranges.closed(4, 4); 152 Range<Integer> range = Ranges.closedOpen(4, 4); 168 Range<Integer> range = Ranges.openClosed(4, 4); 184 Range<Integer> range = Ranges.lessThan(5); 185 assertTrue(range.contains(Integer.MIN_VALUE)) [all...] |
SetsTest.java | 91 private static final Collection<Integer> EMPTY_COLLECTION 92 = Arrays.<Integer>asList(); 94 private static final Collection<Integer> SOME_COLLECTION 97 private static final Iterable<Integer> SOME_ITERABLE 98 = new Iterable<Integer>() { 100 public Iterator<Integer> iterator() { 105 private static final List<Integer> LONGER_LIST 108 private static final Comparator<Integer> SOME_COMPARATOR 354 HashSet<Integer> set = Sets.newHashSet(); 359 HashSet<Integer> set = Sets.newHashSet(0, 1, 1) [all...] |
IteratorsTest.java | 97 Iterator<Integer> iterator = Collections.singleton(0).iterator(); 102 Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator(); 272 final List<Integer> list = asList(1, 2, 3, 4, 5); 273 final Predicate<Integer> isEven = new Predicate<Integer>() { 275 public boolean apply(Integer integer) { 276 return integer % 2 == 0; 279 new IteratorTester<Integer>(5, UNMODIFIABLE, asList(2, 4), 281 @Override protected Iterator<Integer> newTargetIterator() [all...] |
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/ |
WapPushTest.java | 499 Integer.toString(mAppIdValue), 500 Integer.toString(mContentTypeValue), 509 assertTrue(wpman.verifyData(Integer.toString(mAppIdValue), 510 Integer.toString(mContentTypeValue), 536 iwapman.deletePackage(Integer.toString(mAppIdValue), 537 Integer.toString(mContentTypeValue), mPackageName, mClassName); 539 iwapman.deletePackage(Integer.toString(mAppIdValue), 540 Integer.toString(mContentTypeValue), mPackageName, mClassName); 542 iwapman.deletePackage(Integer.toString(mAppIdValue), 543 Integer.toString(mContentTypeValue), mPackageName, mClassName) [all...] |
/dalvik/dx/src/com/android/dx/merge/ |
IndexMap.java | 47 private final HashMap<Integer, Integer> typeListOffsets; 48 private final HashMap<Integer, Integer> annotationOffsets; 49 private final HashMap<Integer, Integer> annotationSetOffsets; 50 private final HashMap<Integer, Integer> annotationDirectoryOffsets; 51 private final HashMap<Integer, Integer> staticValuesOffsets [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
GrammarInsufficientPredicatesMessage.java | 40 public Map<Integer, Set<Token>> altToLocations; 45 Map<Integer, Set<Token>> altToLocations) 64 List<Integer> alts = new ArrayList<Integer>(); 67 for (Integer altI : alts) {
|
/external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/ |
Ints.java | 36 * already found in either {@link Integer} or {@link Arrays}. 49 public static final int BYTES = Integer.SIZE / Byte.SIZE; 56 public static final int MAX_POWER_OF_TWO = 1 << (Integer.SIZE - 2); 60 * {@code ((Integer) value).hashCode()}. 75 * Integer#MAX_VALUE} or less than {@link Integer#MIN_VALUE} 88 * {@code int} type, {@link Integer#MAX_VALUE} if it is too large, 89 * or {@link Integer#MIN_VALUE} if it is too small 92 if (value > Integer.MAX_VALUE) { 93 return Integer.MAX_VALUE [all...] |
/frameworks/base/tools/preload/ |
Record.java | 114 ppid = Integer.parseInt(parts[0]); 115 pid = Integer.parseInt(parts[1]); 116 tid = Integer.parseInt(parts[2]); 120 classLoader = Integer.parseInt(parts[4]); 142 result = String.format("%s%c%s", before, Integer.parseInt(escaped, 16), after);
|
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
ImapUtility.java | 76 Integer.parseInt(item); // Don't need the value; just ensure it's valid 108 int first = Integer.parseInt(range.substring(0, colonPos)); 109 int second = Integer.parseInt(range.substring(colonPos + 1)); 112 list.add(Integer.toString(i)); 116 list.add(Integer.toString(i));
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
RestorableView.java | 35 private final HashMap<Integer, Runnable> clickRunnables = new HashMap<Integer, Runnable>(); 36 private final HashSet<Integer> changedViews = new HashSet<Integer>(); 68 for (Entry<Integer, Runnable> entry : clickRunnables.entrySet()) {
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
DefaultCorpusRankerTest.java | 67 private void setCorpusScores(Integer corpus1, Integer corpus2, Integer webCorpus) { 68 Map<String,Integer> scores = new HashMap<String,Integer>();
|
/sdk/layoutlib_api/src/com/android/ide/common/rendering/api/ |
ViewInfo.java | 38 private int mBaseLine = Integer.MIN_VALUE; 39 private int mLeftMargin = Integer.MIN_VALUE; 40 private int mTopMargin = Integer.MIN_VALUE; 41 private int mRightMargin = Integer.MIN_VALUE; 42 private int mBottomMargin = Integer.MIN_VALUE; 151 * Returns the baseline value. If the value is unknown, returns {@link Integer#MIN_VALUE}. 158 * Returns the left margin value. If the value is unknown, returns {@link Integer#MIN_VALUE}. 165 * Returns the top margin value. If the value is unknown, returns {@link Integer#MIN_VALUE}. 172 * Returns the right margin value. If the value is unknown, returns {@link Integer#MIN_VALUE}. 179 * Returns the bottom margin value. If the value is unknown, returns {@link Integer#MIN_VALUE} [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheBuilderFactory.java | 41 private Set<Integer> concurrencyLevels = Sets.newHashSet((Integer) null); 42 private Set<Integer> initialCapacities = Sets.newHashSet((Integer) null); 43 private Set<Integer> maximumSizes = Sets.newHashSet((Integer) null); 50 CacheBuilderFactory withConcurrencyLevels(Set<Integer> concurrencyLevels) { 55 CacheBuilderFactory withInitialCapacities(Set<Integer> initialCapacities) { 60 CacheBuilderFactory withMaximumSizes(Set<Integer> maximumSizes) { 100 (Integer) combination.get(0) [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
OldTreeSetTest.java | 45 hm.put("First", new Integer(1)); 46 hm.put(new Integer(2), "two"); 74 ts.add(new Integer(-8)); 75 assertTrue("Failed to add Object", ts.contains(new Integer(-8))); 80 hm.put("First", new Integer(1)); 81 hm.put(new Integer(2), "two"); 102 hm.put("First", new Integer(1)); 103 hm.put(new Integer(2), "two"); 137 Set s = ts.headSet(new Integer(100)); 142 SortedSet sort = ts.headSet(new Integer(100)) [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
AbstractListTest.java | 61 list.add(new Integer(3)); 62 list.add(new Integer(15)); 63 list.add(new Integer(5)); 64 list.add(new Integer(1)); 65 list.add(new Integer(7)); 93 Integer tempValue; 95 list.add(new Integer(3)); 96 list.add(new Integer(15)); 97 list.add(new Integer(5)); 98 list.add(new Integer(1)) [all...] |
/external/javassist/src/test/test/javassist/convert/ |
ArrayAccessReplaceTest.java | 35 assertEquals(new Integer(5), instance.complexRead(4)); 122 simple.setObject(i, new Integer(i)); 126 assertEquals(new Integer(i), simple.getObject(i)); 161 return objectMap.get(new Integer(index)); 165 objectMap.put(new Integer(index), element); 169 return ((Byte)byteMap.get(new Integer(index))).byteValue(); 173 byteMap.put(new Integer(index), new Byte(element)); 177 return ((Character)charMap.get(new Integer(index))).charValue(); 181 charMap.put(new Integer(index), new Character(element)); 185 return ((Double)doubleMap.get(new Integer(index))).doubleValue() [all...] |
/external/guava/guava-tests/test/com/google/common/base/ |
PredicatesTest.java | 46 private static final Predicate<Integer> TRUE = Predicates.alwaysTrue(); 47 private static final Predicate<Integer> FALSE = Predicates.alwaysFalse(); 48 private static final Predicate<Integer> NEVER_REACHED = 49 new Predicate<Integer>() { 51 public boolean apply(Integer i) { 58 static class IsOdd implements Predicate<Integer>, Serializable { 61 public boolean apply(Integer i) { 275 Collection<Predicate<Integer>> empty = Arrays.asList(); 382 Predicate<Integer> falseOrFalse = Predicates.or(FALSE, FALSE); 383 Predicate<Integer> falseOrTrue = Predicates.or(FALSE, TRUE) [all...] |