Home
last modified time | relevance | path

Searched refs:table (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
DThreadLocal.java327 private Entry[] table; field in ThreadLocal.ThreadLocalMap
366 table = new Entry[INITIAL_CAPACITY]; in ThreadLocalMap()
368 table[i] = new Entry(firstKey, firstValue); in ThreadLocalMap()
380 Entry[] parentTable = parentMap.table; in ThreadLocalMap()
383 table = new Entry[len]; in ThreadLocalMap()
394 while (table[h] != null) in ThreadLocalMap()
396 table[h] = c; in ThreadLocalMap()
414 int i = key.threadLocalHashCode & (table.length - 1); in getEntry()
415 Entry e = table[i]; in getEntry()
433 Entry[] tab = table; in getEntryAfterMiss()
[all …]
/libcore/ojluni/src/main/java/java/util/
DHashtable.java137 private transient HashtableEntry<?,?>[] table; field in Hashtable
190 table = new HashtableEntry<?,?>[initialCapacity]; in Hashtable()
298 HashtableEntry<?,?> tab[] = table; in contains()
336 HashtableEntry<?,?> tab[] = table; in containsKey()
364 HashtableEntry<?,?> tab[] = table; in get()
392 int oldCapacity = table.length; in rehash()
393 HashtableEntry<?,?>[] oldMap = table; in rehash()
407 table = newMap; in rehash()
424 HashtableEntry<?,?> tab[] = table; in addEntry()
429 tab = table; in addEntry()
[all …]
DIdentityHashMap.java172 transient Object[] table; // non-private to simplify nested class access field in IdentityHashMap
254 table = new Object[2 * initCapacity]; in init()
326 Object[] tab = table; in get()
350 Object[] tab = table; in containsKey()
373 Object[] tab = table; in containsValue()
391 Object[] tab = table; in containsMapping()
423 final Object[] tab = table; in put()
461 Object[] oldTable = table; in resize()
486 table = newTable; in resize()
520 Object[] tab = table; in remove()
[all …]
DImmutableCollections.java834 final Object[] table; // pairs of key, value
846 table = new Object[len];
858 table[dest] = k;
859 table[dest+1] = v;
871 for (int i = 1; i < table.length; i += 2) {
872 Object v = table[i];
883 for (int i = 0; i < table.length; i += 2) {
884 Object k = table[i];
886 hash += k.hashCode() ^ table[i + 1].hashCode();
897 return (V)table[i+1];
[all …]
DWeakHashMap.java160 Entry<K,V>[] table; field in WeakHashMap
220 table = newTable(capacity); in WeakHashMap()
322 int i = indexFor(e.hash, table.length); in expungeStaleEntries()
324 Entry<K,V> prev = table[i]; in expungeStaleEntries()
330 table[i] = next; in expungeStaleEntries()
351 return table; in getTable()
494 table = newTable; in resize()
506 table = oldTable; in resize()
558 int newCapacity = table.length; in putAll()
561 if (newCapacity > table.length) in putAll()
[all …]
DHashMap.java395 transient Node<K,V>[] table; field in HashMap
502 if (table == null) { // pre-size in putMapEntries()
568 if ((tab = table) != null && (n = tab.length) > 0 && in getNode()
627 if ((tab = table) == null || (n = tab.length) == 0) in putVal()
677 Node<K,V>[] oldTab = table; in resize()
704 table = newTab; in resize()
815 if ((tab = table) != null && (n = tab.length) > 0 && in removeNode()
860 if ((tab = table) != null && size > 0) { in clear()
877 if ((tab = table) != null && size > 0) { in containsValue()
928 if (size > 0 && (tab = table) != null) { in forEach()
[all …]
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
DmySSLSession.java26 private Hashtable table; field in mySSLSession
37 table = new Hashtable(); in mySSLSession()
128 Object obj1 = table.put(s, obj); in putValue()
142 Object obj = table.remove(s); in removeValue()
153 return table.get(s); in getValue()
159 Enumeration enumeration = table.keys(); in getValueNames()
/libcore/ojluni/src/main/java/java/sql/
DDatabaseMetaData.java1736 String table, String columnNamePattern) throws SQLException; in getColumnPrivileges() argument
1833 String table, int scope, boolean nullable) throws SQLException; in getBestRowIdentifier() argument
1944 String table) throws SQLException; in getVersionColumns() argument
2006 String table) throws SQLException; in getPrimaryKeys() argument
2084 String table) throws SQLException; in getImportedKeys() argument
2268 String table) throws SQLException; in getExportedKeys() argument
2554 ResultSet getIndexInfo(String catalog, String schema, String table, in getIndexInfo() argument
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecurity2Test.java104 private void addOrIncrementTable(Map<String, Integer> table, String k) { in addOrIncrementTable() argument
106 if (table.containsKey(key)) { in addOrIncrementTable()
107 int before = table.get(key); in addOrIncrementTable()
108 table.put(key, before + 1); in addOrIncrementTable()
110 table.put(key, 1); in addOrIncrementTable()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DNamespaceSupport.java646 Hashtable table; in processName() local
653 table = attributeNameTable; in processName()
655 table = elementNameTable; in processName()
661 name = (String[])table.get(qName); in processName()
710 table.put(name[2], name); in processName()
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentHashMap.java781 transient volatile Node<K,V>[] table; field in ConcurrentHashMap
945 if ((tab = table) != null && (n = tab.length) > 0 && in get()
989 if ((t = table) != null) { in containsValue()
1022 for (Node<K,V>[] tab = table;;) { in putVal()
1117 for (Node<K,V>[] tab = table;;) { in replaceNode()
1194 Node<K,V>[] tab = table; in clear()
1306 if ((t = table) != null) { in hashCode()
1327 int f = (t = table) == null ? 0 : t.length; in toString()
1363 int f = (t = table) == null ? 0 : t.length; in equals()
1427 if ((t = table) != null) { in writeObject()
[all …]
/libcore/ojluni/src/main/native/
Dzip_util.c519 free(zip->table); zip->table = NULL; in freeCEN()
564 jint *table; in readCEN() local
667 table = zip->table = malloc(tablelen * sizeof(table[0])); in readCEN()
671 if ((entries == NULL && total != 0) || table == NULL) goto Catch; in readCEN()
673 table[j] = ZIP_ENDCHAIN; in readCEN()
726 int chain = table[hsh]; in readCEN()
743 entries[i].next = table[hsh]; in readCEN()
744 table[hsh] = i; in readCEN()
1199 idx = zip->table[hsh % zip->tablelen]; in ZIP_GetEntry2()
1270 idx = zip->table[hsh % zip->tablelen]; in ZIP_GetEntry2()
Dzip_util.h229 jint *table; /* Hash chain heads: indexes into entries */ member
/libcore/ojluni/annotations/hiddenapi/java/lang/
DThreadLocal.java181 private java.lang.ThreadLocal.ThreadLocalMap.Entry[] table; field in ThreadLocal.ThreadLocalMap
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java2935 int[][] table = new int[tblmask][]; in oddModPow() local
2937 table[i] = new int[modLen]; in oddModPow()
2954 table[0] = r.toIntArray(); in oddModPow()
2957 if (table[0].length < modLen) { in oddModPow()
2958 int offset = modLen - table[0].length; in oddModPow()
2960 System.arraycopy(table[0], 0, t2, offset, table[0].length); in oddModPow()
2961 table[0] = t2; in oddModPow()
2965 int[] b = montgomerySquare(table[0], mod, modLen, inv, null); in oddModPow()
2972 table[i] = montgomeryMultiply(t, table[i-1], mod, modLen, inv, null); in oddModPow()
3003 int[] mult = table[buf >>> 1]; in oddModPow()
[all …]
/libcore/luni/src/test/java/tests/java/sql/
DDatabaseMetaDataTest.java1853 String table = rs.getString("TABLE_NAME"); in crossCheckGetColumnsAndResultSetMetaData() local
1856 "SELECT * FROM " + schema+"."+table); in crossCheckGetColumnsAndResultSetMetaData()
1875 table, rs.getString("TABLE_NAME")); in crossCheckGetColumnsAndResultSetMetaData()
/libcore/ojluni/annotations/hiddenapi/java/util/
DHashMap.java285 transient java.util.HashMap.Node<K, V>[] table; field in HashMap