/external/mesa3d/src/glx/tests/ |
D | indirect_api.cpp | 715 _glapi_proc *table; member in IndirectAPI 721 this->table = (_glapi_proc *) __glXNewIndirectAPI(); in SetUp() 727 free(this->table); in TearDown() 728 this->table = NULL; in TearDown() 740 _glapi_table *table = __glXNewIndirectAPI(); in TEST_F() local 745 free(table); in TEST_F() 756 EXPECT_NE(nil, table[i]); in TEST_F() 762 EXPECT_EQ((_glapi_proc) __indirect_glAccum, table[_gloffset_Accum]); in TEST_F() 763 EXPECT_EQ((_glapi_proc) __indirect_glAlphaFunc, table[_gloffset_AlphaFunc]); in TEST_F() 764 EXPECT_EQ((_glapi_proc) __indirect_glBegin, table[_gloffset_Begin]); in TEST_F() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | hash.c | 50 struct _mesa_HashTable *table = CALLOC_STRUCT(_mesa_HashTable); in _mesa_NewHashTable() local 52 if (table) { in _mesa_NewHashTable() 53 table->ht = _mesa_hash_table_create(NULL, uint_key_hash, in _mesa_NewHashTable() 55 if (table->ht == NULL) { in _mesa_NewHashTable() 56 free(table); in _mesa_NewHashTable() 61 _mesa_hash_table_set_deleted_key(table->ht, uint_key(DELETED_KEY_VALUE)); in _mesa_NewHashTable() 66 mtx_init(&table->Mutex, mtx_recursive); in _mesa_NewHashTable() 72 return table; in _mesa_NewHashTable() 86 _mesa_DeleteHashTable(struct _mesa_HashTable *table) in _mesa_DeleteHashTable() argument 88 assert(table); in _mesa_DeleteHashTable() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | ArrayTableTest.java | 43 ArrayTable<String, Integer, Character> table = in create() local 45 populate(table, data); in create() 46 return table; in create() 50 assertEquals(9, table.size()); in assertSize() 64 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); in testContains() 65 assertTrue(table.contains("foo", 1)); in testContains() 66 assertTrue(table.contains("bar", 1)); in testContains() 67 assertTrue(table.contains("foo", 3)); in testContains() 68 assertTrue(table.contains("foo", 2)); in testContains() 69 assertTrue(table.contains("bar", 3)); in testContains() [all …]
|
D | AbstractTableReadTest.java | 34 protected Table<String, Integer, Character> table; field in AbstractTableReadTest 49 assertEquals(expectedSize, table.size()); in assertSize() 54 table = create(); in setUp() 58 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); in testContains() 59 assertTrue(table.contains("foo", 1)); in testContains() 60 assertTrue(table.contains("bar", 1)); in testContains() 61 assertTrue(table.contains("foo", 3)); in testContains() 62 assertFalse(table.contains("foo", 2)); in testContains() 63 assertFalse(table.contains("bar", 3)); in testContains() 64 assertFalse(table.contains("cat", 1)); in testContains() [all …]
|
D | TableCollectionTest.java | 70 Table<String, Integer, Character> table, String[] elements) { in populateForRowKeySet() argument 72 table.put(row, 1, 'a'); in populateForRowKeySet() 73 table.put(row, 2, 'b'); in populateForRowKeySet() 78 Table<Integer, String, Character> table, String[] elements) { in populateForColumnKeySet() argument 80 table.put(1, column, 'a'); in populateForColumnKeySet() 81 table.put(2, column, 'b'); in populateForColumnKeySet() 86 Table<Integer, Character, String> table, String[] elements) { in populateForValues() argument 88 table.put(i, 'a', elements[i]); in populateForValues() 107 Table<String, Integer, Character> table = createTable(); in create() local 112 table.put(cell.getRowKey(), cell.getColumnKey(), cell.getValue()); in create() [all …]
|
D | TreeBasedTableTest.java | 46 TreeBasedTable<String, String, String> table = TreeBasedTable.create(); in makeEmptyMap() local 47 table.put("a", "b", "c"); in makeEmptyMap() 48 table.put("c", "b", "a"); in makeEmptyMap() 49 table.put("a", "a", "d"); in makeEmptyMap() 50 return table.row("b"); in makeEmptyMap() 54 TreeBasedTable<String, String, String> table = TreeBasedTable.create(); in makePopulatedMap() local 55 table.put("a", "b", "c"); in makePopulatedMap() 56 table.put("c", "b", "a"); in makePopulatedMap() 57 table.put("b", "b", "x"); in makePopulatedMap() 58 table.put("b", "c", "y"); in makePopulatedMap() [all …]
|
/external/libxml2/ |
D | hash.c | 68 struct _xmlHashEntry *table; member 82 xmlHashComputeKey(xmlHashTablePtr table, const xmlChar *name, in xmlHashComputeKey() argument 88 value = table->random_seed; in xmlHashComputeKey() 108 return (value % table->size); in xmlHashComputeKey() 112 xmlHashComputeQKey(xmlHashTablePtr table, in xmlHashComputeQKey() argument 120 value = table->random_seed; in xmlHashComputeQKey() 162 return (value % table->size); in xmlHashComputeQKey() 175 xmlHashTablePtr table; in xmlHashCreate() local 180 table = xmlMalloc(sizeof(xmlHashTable)); in xmlHashCreate() 181 if (table) { in xmlHashCreate() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ArrayTableTest.java | 45 ArrayTable<String, Integer, Character> table = in create() local 47 populate(table, data); in create() 48 return table; in create() 52 assertEquals(9, table.size()); in assertSize() 66 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); in testContains() 67 assertTrue(table.contains("foo", 1)); in testContains() 68 assertTrue(table.contains("bar", 1)); in testContains() 69 assertTrue(table.contains("foo", 3)); in testContains() 70 assertTrue(table.contains("foo", 2)); in testContains() 71 assertTrue(table.contains("bar", 3)); in testContains() [all …]
|
D | AbstractTableReadTest.java | 36 protected Table<String, Integer, Character> table; field in AbstractTableReadTest 51 assertEquals(expectedSize, table.size()); in assertSize() 56 table = create(); in setUp() 60 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); in testContains() 61 assertTrue(table.contains("foo", 1)); in testContains() 62 assertTrue(table.contains("bar", 1)); in testContains() 63 assertTrue(table.contains("foo", 3)); in testContains() 64 assertFalse(table.contains("foo", 2)); in testContains() 65 assertFalse(table.contains("bar", 3)); in testContains() 66 assertFalse(table.contains("cat", 1)); in testContains() [all …]
|
D | AbstractTableTest.java | 35 Table<String, Integer, Character> table, Object... data) { in populate() argument 38 table.put( in populate() 52 table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); in testClear() 54 table.clear(); in testClear() 55 assertEquals(0, table.size()); in testClear() 56 assertFalse(table.containsRow("foo")); in testClear() 59 table.clear(); in testClear() 66 assertNull(table.put("foo", 1, 'a')); in testPut() 67 assertNull(table.put("bar", 1, 'b')); in testPut() 68 assertNull(table.put("foo", 3, 'c')); in testPut() [all …]
|
D | TreeBasedTableTest.java | 58 TreeBasedTable<String, String, String> table = in suite() 60 table.put("a", "b", "c"); in suite() 61 table.put("c", "b", "a"); in suite() 62 table.put("a", "a", "d"); in suite() 64 table.put("b", entry.getKey(), entry.getValue()); in suite() 66 return table.row("b"); in suite() 83 TreeBasedTable<String, String, String> table = TreeBasedTable.create(); in makeEmptyMap() local 84 table.put("a", "b", "c"); in makeEmptyMap() 85 table.put("c", "b", "a"); in makeEmptyMap() 86 table.put("a", "a", "d"); in makeEmptyMap() [all …]
|
D | TableCollectionTest.java | 123 Table<String, Integer, Character> table in suite() 126 populateForRowKeySet(table, elements); in suite() 127 return table.rowKeySet(); in suite() 139 Table<String, Integer, Character> table = HashBasedTable.create(); in suite() 140 populateForRowKeySet(table, elements); in suite() 141 return table.rowKeySet(); in suite() 151 TreeBasedTable<String, Integer, Character> table = TreeBasedTable.create(); in suite() 152 populateForRowKeySet(table, elements); in suite() 153 return table.rowKeySet(); in suite() 168 Table<String, Integer, Character> table = HashBasedTable.create(); in suite() [all …]
|
/external/freetype/src/base/ |
D | ftdbgmem.c | 226 ft_mem_table_alloc( FT_MemTable table, in ft_mem_table_alloc() argument 229 FT_Memory memory = table->memory; in ft_mem_table_alloc() 233 memory->user = table->memory_user; in ft_mem_table_alloc() 234 block = table->alloc( memory, size ); in ft_mem_table_alloc() 235 memory->user = table; in ft_mem_table_alloc() 242 ft_mem_table_free( FT_MemTable table, in ft_mem_table_free() argument 245 FT_Memory memory = table->memory; in ft_mem_table_free() 248 memory->user = table->memory_user; in ft_mem_table_free() 249 table->free( memory, block ); in ft_mem_table_free() 250 memory->user = table; in ft_mem_table_free() [all …]
|
/external/mesa3d/src/glx/ |
D | glxhash.c | 159 __glxHashTablePtr table; in __glxHashCreate() local 162 table = HASH_ALLOC(sizeof(*table)); in __glxHashCreate() 163 if (!table) in __glxHashCreate() 165 table->magic = HASH_MAGIC; in __glxHashCreate() 166 table->hits = 0; in __glxHashCreate() 167 table->partials = 0; in __glxHashCreate() 168 table->misses = 0; in __glxHashCreate() 171 table->buckets[i] = NULL; in __glxHashCreate() 172 return table; in __glxHashCreate() 178 __glxHashTablePtr table = (__glxHashTablePtr) t; in __glxHashDestroy() local [all …]
|
/external/v8/src/objects/ |
D | ordered-hash-table.cc | 31 Handle<Derived> table = Handle<Derived>::cast(backing_store); in Allocate() local 33 table->set(kHashTableStartIndex + i, Smi::FromInt(kNotFound)); in Allocate() 35 table->SetNumberOfBuckets(num_buckets); in Allocate() 36 table->SetNumberOfElements(0); in Allocate() 37 table->SetNumberOfDeletedElements(0); in Allocate() 38 return table; in Allocate() 43 Isolate* isolate, Handle<Derived> table) { in EnsureGrowable() argument 44 DCHECK(!table->IsObsolete()); in EnsureGrowable() 46 int nof = table->NumberOfElements(); in EnsureGrowable() 47 int nod = table->NumberOfDeletedElements(); in EnsureGrowable() [all …]
|
/external/libaom/libaom/test/ |
D | film_grain_table_test.cc | 73 aom_film_grain_table_t table; in TEST() local 74 memset(&table, 0, sizeof(table)); in TEST() 77 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 0, 1000, false, &grain)); in TEST() 79 aom_film_grain_table_append(&table, 1000, 2000, film_grain_test_vectors + 0); in TEST() 80 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 0, 1000, false, &grain)); in TEST() 81 EXPECT_FALSE(aom_film_grain_table_lookup(&table, 2000, 3000, false, &grain)); in TEST() 83 EXPECT_TRUE(aom_film_grain_table_lookup(&table, 1000, 2000, false, &grain)); in TEST() 86 EXPECT_EQ(0, memcmp(&grain, film_grain_test_vectors + 0, sizeof(table))); in TEST() 89 aom_film_grain_table_append(&table, 2000, 3000, film_grain_test_vectors + 0); in TEST() 90 EXPECT_EQ(0, table.head->next); in TEST() [all …]
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/memory/ |
D | LoadTile.h | 174 static INLINE void InitLoadTileColorTable(PFN_LOAD_TILES (&table)[NUM_SWR_FORMATS]) in InitLoadTileColorTable() 176 memset(table, 0, sizeof(table)); in InitLoadTileColorTable() 178 …table[R32G32B32A32_FLOAT] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32A32_… in InitLoadTileColorTable() 179 …table[R32G32B32A32_SINT] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32A32_… in InitLoadTileColorTable() 180 …table[R32G32B32A32_UINT] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32A32_… in InitLoadTileColorTable() 181 …table[R32G32B32X32_FLOAT] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32X32_… in InitLoadTileColorTable() 182 …table[R32G32B32A32_SSCALED] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32A32_… in InitLoadTileColorTable() 183 …table[R32G32B32A32_USCALED] = LoadMacroTile<TilingTraits<TTileMode, 128>, R32G32B32A32_… in InitLoadTileColorTable() 184 …table[R32G32B32_FLOAT] = LoadMacroTile<TilingTraits<TTileMode, 96>, R32G32B32_FLOA… in InitLoadTileColorTable() 185 …table[R32G32B32_SINT] = LoadMacroTile<TilingTraits<TTileMode, 96>, R32G32B32_SINT… in InitLoadTileColorTable() [all …]
|
/external/libdrm/ |
D | xf86drmHash.c | 106 HashTablePtr table; in drmHashCreate() local 109 table = drmMalloc(sizeof(*table)); in drmHashCreate() 110 if (!table) return NULL; in drmHashCreate() 111 table->magic = HASH_MAGIC; in drmHashCreate() 112 table->entries = 0; in drmHashCreate() 113 table->hits = 0; in drmHashCreate() 114 table->partials = 0; in drmHashCreate() 115 table->misses = 0; in drmHashCreate() 117 for (i = 0; i < HASH_SIZE; i++) table->buckets[i] = NULL; in drmHashCreate() 118 return table; in drmHashCreate() [all …]
|
/external/speex/libspeexdsp/ |
D | fftwrap.c | 86 struct drft_lookup *table; in spx_fft_init() local 87 table = speex_alloc(sizeof(struct drft_lookup)); in spx_fft_init() 88 spx_drft_init((struct drft_lookup *)table, size); in spx_fft_init() 89 return (void*)table; in spx_fft_init() 92 void spx_fft_destroy(void *table) in spx_fft_destroy() argument 94 spx_drft_clear(table); in spx_fft_destroy() 95 speex_free(table); in spx_fft_destroy() 98 void spx_fft(void *table, float *in, float *out) in spx_fft() argument 103 float scale = 1./((struct drft_lookup *)table)->n; in spx_fft() 105 for (i=0;i<((struct drft_lookup *)table)->n;i++) in spx_fft() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | CLDRFilePseudolocalizer.java | 85 Map<Integer, String> table = new HashMap<Integer, String>(); in buildReplacementsTable() local 86 table.put((int) ' ', "\u2003"); in buildReplacementsTable() 87 table.put((int) '!', "\u00a1"); in buildReplacementsTable() 88 table.put((int) '"', "\u2033"); in buildReplacementsTable() 89 table.put((int) '#', "\u266f"); in buildReplacementsTable() 90 table.put((int) '$', "\u20ac"); in buildReplacementsTable() 91 table.put((int) '%', "\u2030"); in buildReplacementsTable() 92 table.put((int) '&', "\u214b"); in buildReplacementsTable() 93 table.put((int) '*', "\u204e"); in buildReplacementsTable() 94 table.put((int) '+', "\u207a"); in buildReplacementsTable() [all …]
|
/external/fonttools/Tests/ttLib/tables/ |
D | _t_r_a_k_test.py | 170 table = table__t_r_a_k() 171 table.version = 1.0 172 table.format = 0 173 self.font = {'trak': table} 176 table = self.font['trak'] 177 table.horizData = TrackData(SKIA_TRACK_ENTRIES) 178 trakData = table.compile(self.font) 182 table = self.font['trak'] 183 table.vertData = TrackData(OSAKA_VERT_TRACK_ENTRIES) 184 trakData = table.compile(self.font) [all …]
|
/external/libxkbcommon/xkbcommon/src/compose/ |
D | table.c | 36 struct xkb_compose_table *table; in xkb_compose_table_new() local 43 table = calloc(1, sizeof(*table)); in xkb_compose_table_new() 44 if (!table) { in xkb_compose_table_new() 49 table->refcnt = 1; in xkb_compose_table_new() 50 table->ctx = xkb_context_ref(ctx); in xkb_compose_table_new() 52 table->locale = resolved_locale; in xkb_compose_table_new() 53 table->format = format; in xkb_compose_table_new() 54 table->flags = flags; in xkb_compose_table_new() 56 darray_init(table->nodes); in xkb_compose_table_new() 57 darray_init(table->utf8); in xkb_compose_table_new() [all …]
|
/external/wpa_supplicant_8/src/utils/ |
D | eloop.c | 72 struct eloop_sock *table; member 126 static void eloop_trace_sock_add_ref(struct eloop_sock_table *table) in eloop_trace_sock_add_ref() argument 129 if (table == NULL || table->table == NULL) in eloop_trace_sock_add_ref() 131 for (i = 0; i < table->count; i++) { in eloop_trace_sock_add_ref() 132 wpa_trace_add_ref(&table->table[i], eloop, in eloop_trace_sock_add_ref() 133 table->table[i].eloop_data); in eloop_trace_sock_add_ref() 134 wpa_trace_add_ref(&table->table[i], user, in eloop_trace_sock_add_ref() 135 table->table[i].user_data); in eloop_trace_sock_add_ref() 140 static void eloop_trace_sock_remove_ref(struct eloop_sock_table *table) in eloop_trace_sock_remove_ref() argument 143 if (table == NULL || table->table == NULL) in eloop_trace_sock_remove_ref() [all …]
|
/external/mesa3d/src/mesa/program/ |
D | symbol_table.c | 86 _mesa_symbol_table_pop_scope(struct _mesa_symbol_table *table) in _mesa_symbol_table_pop_scope() argument 88 struct scope_level *const scope = table->current_scope; in _mesa_symbol_table_pop_scope() 91 table->current_scope = scope->next; in _mesa_symbol_table_pop_scope() 92 table->depth--; in _mesa_symbol_table_pop_scope() 98 struct hash_entry *hte = _mesa_hash_table_search(table->ht, in _mesa_symbol_table_pop_scope() 107 _mesa_hash_table_remove(table->ht, hte); in _mesa_symbol_table_pop_scope() 118 _mesa_symbol_table_push_scope(struct _mesa_symbol_table *table) in _mesa_symbol_table_push_scope() argument 126 scope->next = table->current_scope; in _mesa_symbol_table_push_scope() 127 table->current_scope = scope; in _mesa_symbol_table_push_scope() 128 table->depth++; in _mesa_symbol_table_push_scope() [all …]
|
/external/libdrm/tests/ |
D | hash.c | 104 static void compute_dist(HashTablePtr table) in compute_dist() argument 110 table->entries, table->hits, table->partials, table->misses); in compute_dist() 113 bucket = table->buckets[i]; in compute_dist() 124 static int check_table(HashTablePtr table, in check_table() argument 128 int retcode = drmHashLookup(table, key, &retval); in check_table() 134 table->magic, key, value, retval); in check_table() 157 HashTablePtr table; in main() local 162 table = drmHashCreate(); in main() 164 drmHashInsert(table, i, (void *)(i << 16 | i)); in main() 166 ret |= check_table(table, i, (void *)(i << 16 | i)); in main() [all …]
|