Home
last modified time | relevance | path

Searched refs:tl (Results 1 – 6 of 6) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalTest.java25 static ThreadLocal<Integer> tl = new ThreadLocal<Integer>() { field in ThreadLocalTest
46 assertSame(tl.get(), one); in testRemove()
47 tl.set(two); in testRemove()
48 assertSame(tl.get(), two); in testRemove()
49 tl.remove(); in testRemove()
50 assertSame(tl.get(), one); in testRemove()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadLocalTest.java36 ThreadLocal<String> tl = new ThreadLocal<String>() { in test_remove() local
43 assertEquals("initial", tl.get()); in test_remove()
44 tl.set("fixture"); in test_remove()
45 assertEquals("fixture", tl.get()); in test_remove()
46 tl.remove(); in test_remove()
47 assertEquals("initial", tl.get()); in test_remove()
/libcore/ojluni/src/main/java/java/lang/
DStringCoding.java63 private static <T> T deref(ThreadLocal<SoftReference<T>> tl) { in deref() argument
64 SoftReference<T> sr = tl.get(); in deref()
70 private static <T> void set(ThreadLocal<SoftReference<T>> tl, T ob) { in set() argument
71 tl.set(new SoftReference<T>(ob)); in set()
/libcore/ojluni/src/main/java/java/util/
DHashMap.java759 TreeNode<K,V> hd = null, tl = null; in treeifyBin() local
762 if (tl == null) in treeifyBin()
765 p.prev = tl; in treeifyBin()
766 tl.next = p; in treeifyBin()
768 tl = p; in treeifyBin()
1956 Node<K,V> hd = null, tl = null; in untreeify() local
1959 if (tl == null) in untreeify()
1962 tl.next = p; in untreeify()
1963 tl = p; in untreeify()
2369 TreeNode<K,V> tp = t.parent, tl = t.left, tr = t.right, in checkInvariants() local
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DLocaleTest.java154 Locale tl = new Locale("tl"); in test_tl_and_fil() local
156 assertEquals("Tagalog", tl.getDisplayLanguage(Locale.ENGLISH)); in test_tl_and_fil()
158 assertEquals("Tagalog", tl.getDisplayLanguage(tl)); in test_tl_and_fil()
162 assertEquals("tagalo", tl.getDisplayLanguage(es_MX)); in test_tl_and_fil()
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentHashMap.java1514 TreeNode<K,V> hd = null, tl = null; in readObject() local
1518 if ((t.prev = tl) == null) in readObject()
1521 tl.next = t; in readObject()
1522 tl = t; in readObject()
2679 TreeNode<K,V> hd = null, tl = null; in treeifyBin() local
2684 if ((p.prev = tl) == null) in treeifyBin()
2687 tl.next = p; in treeifyBin()
2688 tl = p; in treeifyBin()
2701 Node<K,V> hd = null, tl = null; in untreeify() local
2704 if (tl == null) in untreeify()
[all …]