Home
last modified time | relevance | path

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

/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(new Double(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 …]
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/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 …]
DCollectionsTest.java1880 TreeMap tm = new TreeMap(); in test_unmodifiableSortedMapLjava_util_SortedMap() local
1881 tm.putAll(hm); in test_unmodifiableSortedMapLjava_util_SortedMap()
1882 Map c = Collections.unmodifiableSortedMap(tm); in test_unmodifiableSortedMapLjava_util_SortedMap()
1883 assertTrue("Returned map is of incorrect size", c.size() == tm.size()); in test_unmodifiableSortedMapLjava_util_SortedMap()
1888 tm.get(x))); in test_unmodifiableSortedMapLjava_util_SortedMap()
/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/ojluni/src/main/java/java/util/
DTreeSet.java527 TreeMap<E,Object> tm = new TreeMap<>(c); in readObject() local
528 m = tm; in readObject()
533 tm.readTreeSet(size, s, PRESENT); in readObject()
DTreeMap.java2656 TreeMap<K,?> tm = dm.m; in keySpliteratorFor() local
2657 if (dm == tm.descendingMap) { in keySpliteratorFor()
2659 (TreeMap<K,Object>) tm; in keySpliteratorFor()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DTrustManagerFactorySpiTest.java112 TrustManager[] tm = tmf.getTrustManagers(); in test_engineGetTrustManagers() local
119 tm = tmf.getTrustManagers(); in test_engineGetTrustManagers()
DSSLContextSpiTest.java171 TrustManager[] tm = getTrustManagers(); in engineInit() local
173 ssl.engineInit(km, tm, sr); in engineInit()
176 ssl.engineInit(km, tm, null); in engineInit()
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.java21 public void engineInit(KeyManager[] km, TrustManager[] tm, in engineInit() argument
/libcore/jsr166-tests/src/test/java/jsr166/
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()
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()
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/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()
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/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()