Home | History | Annotate | Download | only in test

Lines Matching refs:pTab

40 static void dumpForeach(HashTable* pTab)
45 dvmHashForeach(pTab, printFunc, &count);
55 static void dumpIterator(HashTable* pTab)
61 for (dvmHashIterBegin(pTab, &iter); !dvmHashIterDone(&iter);
80 HashTable* pTab;
88 pTab = dvmHashTableCreate(dvmHashSize(12), free);
89 if (pTab == NULL)
92 dvmHashTableLock(pTab);
98 dvmHashTableLookup(pTab, hash, strdup(tmpStr),
102 dvmHashTableUnlock(pTab);
108 str = (const char*) dvmHashTableLookup(pTab, hash, tmpStr,
119 str = (const char*) dvmHashTableLookup(pTab, hash, tmpStr,
127 dumpForeach(pTab);
128 dumpIterator(pTab);
131 dvmHashTableFree(pTab);
137 pTab = dvmHashTableCreate(dvmHashSize(2), free);
138 if (pTab == NULL)
145 str1 = (char*) dvmHashTableLookup(pTab, hash, strdup("one"),
148 str = (const char*) dvmHashTableLookup(pTab, hash, strdup("two"),
152 if (!dvmHashTableRemove(pTab, hash, (void*)str1))
160 for (dvmHashIterBegin(pTab, &iter); !dvmHashIterDone(&iter);
170 str = (const char*) dvmHashTableLookup(pTab, hash, (void*)"one",
174 str = (const char*) dvmHashTableLookup(pTab, hash, (void*)"two",
182 str = (const char*) dvmHashTableLookup(pTab, hash, strdup(tmpStr),
187 dvmHashTableFree(pTab);