Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 27) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeMapTest.java90 TreeMap tm; field in TreeMapTest
127 TreeMap myTreeMap = new TreeMap(new HashMap(tm)); in test_ConstructorLjava_util_Map()
159 tm.clear(); in test_clear()
160 assertEquals("Cleared map returned non-zero size", 0, tm.size()); in test_clear()
168 TreeMap clonedMap = (TreeMap) tm.clone(); in test_clone()
170 .equals(tm)); in test_clone()
172 clonedMap != tm); in test_clone()
175 .get(element.toString()) == tm.get(element.toString())); in test_clone()
223 assertTrue("Returned false for valid key", tm.containsKey("95")); in test_containsKeyLjava_lang_Object()
224 assertTrue("Returned true for invalid key", !tm.containsKey("XXXXX")); in test_containsKeyLjava_lang_Object()
[all …]
DTreeMapExtendTest.java39 TreeMap tm; field in TreeMapExtendTest
133 TreeMap treeMap = new TreeMap(tm); in test_TreeMap_Constructor_Map()
134 assertEquals(tm.size(), treeMap.size()); in test_TreeMap_Constructor_Map()
135 assertEquals(tm.firstKey(), treeMap.firstKey()); in test_TreeMap_Constructor_Map()
136 assertEquals(tm.firstEntry(), treeMap.firstEntry()); in test_TreeMap_Constructor_Map()
137 assertEquals(tm.lastKey(), treeMap.lastKey()); in test_TreeMap_Constructor_Map()
138 assertEquals(tm.lastEntry(), treeMap.lastEntry()); in test_TreeMap_Constructor_Map()
139 assertEquals(tm.keySet(), treeMap.keySet()); in test_TreeMap_Constructor_Map()
142 assertEquals(tm.ceilingKey(key), treeMap.ceilingKey(key)); in test_TreeMap_Constructor_Map()
143 assertEquals(tm.ceilingEntry(key), treeMap.ceilingEntry(key)); in test_TreeMap_Constructor_Map()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldTreeMapTest.java79 TreeMap tm; field in OldTreeMapTest
107 TreeMap myTreeMap = new TreeMap(new HashMap(tm)); in test_ConstructorLjava_util_Map()
158 assertTrue("Returned false for valid key", tm.containsKey("95")); in test_containsKeyLjava_lang_Object()
159 assertTrue("Returned true for invalid key", !tm.containsKey("XXXXX")); in test_containsKeyLjava_lang_Object()
162 tm.containsKey(Double.valueOf(3.14)); in test_containsKeyLjava_lang_Object()
169 tm.containsKey(null); in test_containsKeyLjava_lang_Object()
178 assertEquals("Returned incorrect first key", "0", tm.firstKey()); in test_firstKey()
179 tm = new TreeMap(); in test_firstKey()
181 tm.firstKey(); in test_firstKey()
192 tm.put("Hello", o); in test_getLjava_lang_Object()
[all …]
DOldAndroidTreeMapTest.java42 TreeMap<Integer, String> tm = new TreeMap<Integer, String>(); in doTest() local
57 tm.put(Integer.valueOf(val), "V:" + val); in doTest()
60 if (SPEW) System.out.println("tm = " + tm); in doTest()
62 if (SPEW) System.out.println("tm.size() = " + tm.size()); in doTest()
64 assertEquals(tm.size(), hm.size()); in doTest()
66 if (SPEW) System.out.println("tm.firstKey() = " + tm.firstKey()); in doTest()
68 if (SPEW) System.out.println("tm.lastKey() = " + tm.lastKey()); in doTest()
70 assertEquals(minVal, tm.firstKey().intValue()); in doTest()
71 assertEquals(maxVal, tm.lastKey().intValue()); in doTest()
77 String tms = tm.get(vv); in doTest()
[all …]
DOldCollectionsTest.java815 TreeMap tm = new TreeMap<Integer, String>(); in test_checkedSortedMapLjava_util_SortedMapLjava_lang_ClassLjava_lang_Class() local
817 SortedMap sm = Collections.checkedSortedMap(tm, Integer.class, String.class); in test_checkedSortedMapLjava_util_SortedMapLjava_lang_ClassLjava_lang_Class()
/libcore/ojluni/src/main/java/java/util/
DTreeSet.java554 TreeMap<E,Object> tm = new TreeMap<>(c); in readObject() local
555 m = tm; in readObject()
560 tm.readTreeSet(size, s, PRESENT); in readObject()
/libcore/ojluni/src/main/java/javax/net/ssl/
DSSLContext.java323 public final void init(KeyManager[] km, TrustManager[] tm, in init() argument
326 contextSpi.engineInit(km, tm, random); in init()
DSSLContextSpi.java51 protected abstract void engineInit(KeyManager[] km, TrustManager[] tm, in engineInit() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLContextSpiTest.java171 TrustManager[] tm = getTrustManagers(); in engineInit() local
173 ssl.engineInit(km, tm, sr); in engineInit()
176 ssl.engineInit(km, tm, null); in engineInit()
DTrustManagerFactorySpiTest.java112 TrustManager[] tm = tmf.getTrustManagers(); in test_engineGetTrustManagers() local
119 tm = tmf.getTrustManagers(); in test_engineGetTrustManagers()
DSSLContext2Test.java114 TrustManager [] tm = new TManager[10]; in checkSSLContext() local
117 sslC.init(km, tm, null); in checkSSLContext()
121 sslC.init(km, tm, new SecureRandom()); in checkSSLContext()
DTrustManagerFactory1Test.java380 TrustManager[] tm = trustMF.getTrustManagers(); in test_getTrustManagers() local
381 assertNotNull("Result has not be null", tm); in test_getTrustManagers()
383 (tm.length > 0)); in test_getTrustManagers()
DSSLContext1Test.java110 TrustManager[] tm = null; in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String() local
112 sslContext.init(km, tm, new SecureRandom()); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
118 sslContext.init(km, tm, null); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DSSLContextSpiImpl.java38 public void engineInit(KeyManager[] km, TrustManager[] tm, in engineInit() argument
DMySSLContextSpi.java43 protected void engineInit(KeyManager[] km, TrustManager[] tm, in engineInit() argument
/libcore/ojluni/src/test/java/util/EnumMap/
DEnumMapBash.java79 Map<T, T> tm = new TreeMap<T, T>(m); in bash() local
81 if (m.hashCode() != tm.hashCode()) in bash()
83 if (!m.toString().equals(tm.toString())) in bash()
85 if (!tm.equals(m)) in bash()
87 if (!m.equals(tm)) in bash()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentSkipListSetTest.java844 NavigableSet<Integer> tm = set.tailSet(midPoint,incl); in bashSubSet() local
847 bashSubSet(tm, midPoint + (incl ? 0 : 1), max, true, bs); in bashSubSet()
849 bashSubSet(tm.descendingSet(), midPoint + (incl ? 0 : 1), max, in bashSubSet()
853 bashSubSet(tm, min, midPoint - (incl ? 0 : 1), false, bs); in bashSubSet()
855 bashSubSet(tm.descendingSet(), min, midPoint - (incl ? 0 : 1), in bashSubSet()
DTreeSetTest.java839 NavigableSet<Integer> tm = set.tailSet(midPoint,incl); in bashSubSet() local
842 bashSubSet(tm, midPoint + (incl ? 0 : 1), max, true); in bashSubSet()
844 bashSubSet(tm.descendingSet(), midPoint + (incl ? 0 : 1), max, in bashSubSet()
848 bashSubSet(tm, min, midPoint - (incl ? 0 : 1), false); in bashSubSet()
850 bashSubSet(tm.descendingSet(), min, midPoint - (incl ? 0 : 1), in bashSubSet()
DTreeMapTest.java945 NavigableMap<Integer,Integer> tm = map.tailMap(midPoint,incl);
948 bashSubMap(tm, midPoint + (incl ? 0 : 1), max, true);
950 bashSubMap(tm.descendingMap(), midPoint + (incl ? 0 : 1), max,
954 bashSubMap(tm, min, midPoint - (incl ? 0 : 1), false);
956 bashSubMap(tm.descendingMap(), min, midPoint - (incl ? 0 : 1),
DConcurrentSkipListMapTest.java1140 NavigableMap<Integer,Integer> tm = map.tailMap(midPoint,incl);
1143 bashSubMap(tm, midPoint + (incl ? 0 : 1), max, true);
1145 bashSubMap(tm.descendingMap(), midPoint + (incl ? 0 : 1), max,
1149 bashSubMap(tm, min, midPoint - (incl ? 0 : 1), false);
1151 bashSubMap(tm.descendingMap(), min, midPoint - (incl ? 0 : 1),
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentSkipListSetTest.java813 NavigableSet<Integer> tm = set.tailSet(midPoint,incl); in bashSubSet() local
816 bashSubSet(tm, midPoint + (incl ? 0 : 1), max, true, bs); in bashSubSet()
818 bashSubSet(tm.descendingSet(), midPoint + (incl ? 0 : 1), max, in bashSubSet()
822 bashSubSet(tm, min, midPoint - (incl ? 0 : 1), false, bs); in bashSubSet()
824 bashSubSet(tm.descendingSet(), min, midPoint - (incl ? 0 : 1), in bashSubSet()
DTreeSetTest.java815 NavigableSet<Integer> tm = set.tailSet(midPoint,incl); in bashSubSet() local
818 bashSubSet(tm, midPoint + (incl ? 0 : 1), max, true); in bashSubSet()
820 bashSubSet(tm.descendingSet(), midPoint + (incl ? 0 : 1), max, in bashSubSet()
824 bashSubSet(tm, min, midPoint - (incl ? 0 : 1), false); in bashSubSet()
826 bashSubSet(tm.descendingSet(), min, midPoint - (incl ? 0 : 1), in bashSubSet()
DTreeMapTest.java922 NavigableMap<Integer,Integer> tm = map.tailMap(midPoint,incl);
925 bashSubMap(tm, midPoint + (incl ? 0 : 1), max, true);
927 bashSubMap(tm.descendingMap(), midPoint + (incl ? 0 : 1), max,
931 bashSubMap(tm, min, midPoint - (incl ? 0 : 1), false);
933 bashSubMap(tm.descendingMap(), min, midPoint - (incl ? 0 : 1),
DConcurrentSkipListMapTest.java1117 NavigableMap<Integer,Integer> tm = map.tailMap(midPoint,incl);
1120 bashSubMap(tm, midPoint + (incl ? 0 : 1), max, true);
1122 bashSubMap(tm.descendingMap(), midPoint + (incl ? 0 : 1), max,
1126 bashSubMap(tm, min, midPoint - (incl ? 0 : 1), false);
1128 bashSubMap(tm.descendingMap(), min, midPoint - (incl ? 0 : 1),
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DMatcherTest.java576 Matcher tm = tp.matcher("aaa"); in testOverFlow() local
577 assertTrue(tm.matches()); in testOverFlow()
578 assertEquals("", tm.group(1)); in testOverFlow()

12