Home
last modified time | relevance | path

Searched refs:bucket (Results 1 – 25 of 61) sorted by relevance

123

/external/bison/lib/
Dhash.c57 struct hash_entry *bucket; member
176 struct hash_entry const *bucket; in hash_get_max_bucket_length() local
179 for (bucket = table->bucket; bucket < table->bucket_limit; bucket++) in hash_get_max_bucket_length()
181 if (bucket->data) in hash_get_max_bucket_length()
183 struct hash_entry const *cursor = bucket; in hash_get_max_bucket_length()
203 struct hash_entry const *bucket; in hash_table_ok() local
207 for (bucket = table->bucket; bucket < table->bucket_limit; bucket++) in hash_table_ok()
209 if (bucket->data) in hash_table_ok()
211 struct hash_entry const *cursor = bucket; in hash_table_ok()
252 struct hash_entry const *bucket in hash_lookup() local
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/dga/
DSDL_dgavideo.c595 vidmem_bucket *bucket; in DGA_DumpHWSurfaces() local
600 for ( bucket=&surfaces; bucket; bucket=bucket->next ) { in DGA_DumpHWSurfaces()
601 printf("Bucket: %p, %d (%s)\n", bucket->base, bucket->size, bucket->used ? "used" : "free"); in DGA_DumpHWSurfaces()
602 if ( bucket->prev ) { in DGA_DumpHWSurfaces()
603 if ( bucket->base != bucket->prev->base+bucket->prev->size ) { in DGA_DumpHWSurfaces()
607 if ( bucket != &surfaces ) { in DGA_DumpHWSurfaces()
611 if ( bucket->next ) { in DGA_DumpHWSurfaces()
612 if ( bucket->next->base != bucket->base+bucket->size ) { in DGA_DumpHWSurfaces()
623 vidmem_bucket *bucket; in DGA_InitHWSurfaces() local
629 bucket = (vidmem_bucket *)SDL_malloc(sizeof(*bucket)); in DGA_InitHWSurfaces()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/
DSDL_fbvideo.c1079 vidmem_bucket *bucket; in FB_DumpHWSurfaces() local
1084 for ( bucket=&surfaces; bucket; bucket=bucket->next ) { in FB_DumpHWSurfaces()
1085 printf("Bucket: %p, %d (%s)\n", bucket->base, bucket->size, bucket->used ? "used" : "free"); in FB_DumpHWSurfaces()
1086 if ( bucket->prev ) { in FB_DumpHWSurfaces()
1087 if ( bucket->base != bucket->prev->base+bucket->prev->size ) { in FB_DumpHWSurfaces()
1091 if ( bucket != &surfaces ) { in FB_DumpHWSurfaces()
1095 if ( bucket->next ) { in FB_DumpHWSurfaces()
1096 if ( bucket->next->base != bucket->base+bucket->size ) { in FB_DumpHWSurfaces()
1107 vidmem_bucket *bucket; in FB_InitHWSurfaces() local
1113 bucket = (vidmem_bucket *)SDL_malloc(sizeof(*bucket)); in FB_InitHWSurfaces()
[all …]
DSDL_fbvideo.h161 vidmem_bucket *bucket; in FB_WaitBusySurfaces() local
167 for ( bucket=&surfaces; bucket; bucket=bucket->next ) { in FB_WaitBusySurfaces()
168 bucket->dirty = 0; in FB_WaitBusySurfaces()
/external/chromium/chrome/browser/extensions/
Dextensions_quota_service.cc114 bool ExtensionsQuotaService::TimedLimit::Apply(Bucket* bucket, in Apply() argument
116 if (event_time > bucket->expiration()) in Apply()
117 bucket->Reset(config(), event_time); in Apply()
119 return bucket->DeductToken(); in Apply()
122 bool ExtensionsQuotaService::SustainedLimit::Apply(Bucket* bucket, in Apply() argument
124 if (event_time > bucket->expiration()) { in Apply()
133 if (bucket->has_tokens() || event_time > bucket->expiration() + in Apply()
135 bucket->Reset(config(), event_time); in Apply()
143 bucket->Reset(config(), bucket->expiration()); in Apply()
153 bucket->DeductToken(); in Apply()
Dextensions_quota_service_unittest.cc160 Bucket bucket; in TEST_F() local
162 bucket.Reset(k2PerMinute, kStartTime); in TEST_F()
163 DoMoreThan2PerMinuteFor5Minutes(kStartTime, &lim, &bucket, -1); in TEST_F()
165 EXPECT_FALSE(lim.Apply(&bucket, kStartTime + TimeDelta::FromMinutes(6))); in TEST_F()
168 EXPECT_TRUE(lim.Apply(&bucket, kStartTime + TimeDelta::FromDays(1))); in TEST_F()
171 bucket.Reset(k2PerMinute, kStartTime); in TEST_F()
172 DoMoreThan2PerMinuteFor5Minutes(kStartTime, &lim, &bucket, -1); in TEST_F()
173 EXPECT_TRUE(lim.Apply(&bucket, kStartTime + TimeDelta::FromMinutes(7))); in TEST_F()
176 bucket.Reset(k2PerMinute, kStartTime); in TEST_F()
177 DoMoreThan2PerMinuteFor5Minutes(kStartTime, &lim, &bucket, 3); in TEST_F()
[all …]
Dextensions_quota_service.h159 virtual bool Apply(Bucket* bucket, const base::TimeTicks& event_time) = 0;
178 virtual bool Apply(Bucket* bucket, const base::TimeTicks& event_time);
189 virtual bool Apply(Bucket* bucket, const base::TimeTicks& event_time);
/external/dbus/dbus/
Ddbus-hash.c159 DBusHashEntry ***bucket,
215 DBusHashEntry **bucket; /**< Pointer to bucket that points to member
228 DBusHashEntry ***bucket,
233 DBusHashEntry ***bucket,
239 DBusHashEntry ***bucket,
249 DBusHashEntry **bucket,
472 DBusHashEntry **bucket, in remove_entry() argument
476 _dbus_assert (bucket != NULL); in remove_entry()
477 _dbus_assert (*bucket != NULL); in remove_entry()
480 if (*bucket == entry) in remove_entry()
[all …]
/external/bluetooth/glib/glib/
Dgconvert.c277 struct _iconv_cache_bucket *bucket; in iconv_cache_bucket_new() local
279 bucket = g_new (struct _iconv_cache_bucket, 1); in iconv_cache_bucket_new()
280 bucket->key = key; in iconv_cache_bucket_new()
281 bucket->refcount = 1; in iconv_cache_bucket_new()
282 bucket->used = TRUE; in iconv_cache_bucket_new()
283 bucket->cd = cd; in iconv_cache_bucket_new()
285 g_hash_table_insert (iconv_cache, bucket->key, bucket); in iconv_cache_bucket_new()
289 iconv_cache_list = g_list_prepend (iconv_cache_list, bucket); in iconv_cache_bucket_new()
293 return bucket; in iconv_cache_bucket_new()
310 iconv_cache_bucket_expire (GList *node, struct _iconv_cache_bucket *bucket) in iconv_cache_bucket_expire() argument
[all …]
/external/stlport/test/unit/
Dunordered_test.cpp93 lit = us.begin(us.bucket(i)); in uset()
94 litEnd = us.end(us.bucket(i)); in uset()
96 usettype::size_type bucket_pos = us.bucket(*lit); in uset()
98 CPPUNIT_ASSERT( us.bucket(*lit) == bucket_pos ); in uset()
137 lit = us.begin(us.bucket(i)); in umultiset()
138 litEnd = us.end(us.bucket(i)); in umultiset()
140 usettype::size_type bucket_pos = us.bucket(*lit); in umultiset()
142 CPPUNIT_ASSERT( us.bucket(*lit) == bucket_pos ); in umultiset()
207 lit = us.begin(us.bucket(i)); in umap()
208 litEnd = us.end(us.bucket(i)); in umap()
[all …]
/external/qemu/
Dqdict.c110 const char *key, unsigned int bucket) in qdict_find() argument
114 QLIST_FOREACH(entry, &qdict->table[bucket], next) in qdict_find()
134 unsigned int bucket; in qdict_put_obj() local
137 bucket = tdb_hash(key) % QDICT_BUCKET_MAX; in qdict_put_obj()
138 entry = qdict_find(qdict, key, bucket); in qdict_put_obj()
146 QLIST_INSERT_HEAD(&qdict->table[bucket], entry, next); in qdict_put_obj()
172 unsigned int bucket = tdb_hash(key) % QDICT_BUCKET_MAX; in qdict_haskey() local
173 return (qdict_find(qdict, key, bucket) == NULL ? 0 : 1); in qdict_haskey()
396 unsigned int bucket = tdb_hash(entry->key) % QDICT_BUCKET_MAX; in qdict_next() local
397 ret = qdict_next_entry(qdict, bucket + 1); in qdict_next()
/external/mesa3d/src/mesa/program/
Dhash_table.c115 const unsigned bucket = hash_value % ht->num_buckets; in hash_table_find() local
118 foreach(node, & ht->buckets[bucket]) { in hash_table_find()
134 const unsigned bucket = hash_value % ht->num_buckets; in hash_table_insert() local
142 insert_at_head(& ht->buckets[bucket], & node->link); in hash_table_insert()
149 const unsigned bucket = hash_value % ht->num_buckets; in hash_table_remove() local
152 foreach(node, & ht->buckets[bucket]) { in hash_table_remove()
/external/webkit/Source/WebKit/android/jni/
DPictureSet.cpp115 Bucket* bucket = (*buckets)[i]; in PictureSet() local
116 for (unsigned int j = 0; j < bucket->size(); j++) { in PictureSet()
117 BucketPicture& bucketPicture = (*bucket)[j]; in PictureSet()
198 Bucket* bucket = new Bucket(); in getBucket() local
199 mBuckets.add(position, bucket); in getBucket()
204 void PictureSet::displayBucket(Bucket* bucket) in displayBucket() argument
206 BucketPicture* first = bucket->begin(); in displayBucket()
207 BucketPicture* last = bucket->end(); in displayBucket()
210 bucket, in displayBucket()
234 void PictureSet::addToBucket(Bucket* bucket, int dx, int dy, SkIRect& rect) in addToBucket() argument
[all …]
DPictureSet.h77 void displayBucket(Bucket* bucket);
81 void addToBucket(Bucket* bucket, int dx, int dy, SkIRect& rect);
/external/webkit/LayoutTests/storage/domstorage/
Dquota-expected.txt12 Putting 'data' into another bucket.h
22 Putting 'data' into another bucket.h
26 Removing bucket 38.
27 Adding 'Hello!' into a new bucket.
/external/chromium/net/base/
Dssl_false_start_blacklist.cc14 const unsigned bucket = Hash(last_two_labels) & (kBuckets - 1); in IsMember() local
15 const uint32 start = kHashTable[bucket]; in IsMember()
16 const uint32 end = kHashTable[bucket + 1]; in IsMember()
/external/jdiff/src/jdiff/
DHTMLStatistics.java203 int bucket = (int)(pkg.pdiff); in emitPackagesByDiff() local
204 hist[bucket]++; in emitPackagesByDiff()
206 if (bucket != 0) in emitPackagesByDiff()
207 h_.writeText(" <TD ALIGN=\"center\">" + bucket + "</TD>"); in emitPackagesByDiff()
290 int bucket = (int)(classDiff.pdiff); in emitClassesByDiff() local
291 hist[bucket]++; in emitClassesByDiff()
293 if (bucket != 0) in emitClassesByDiff()
294 h_.writeText(" <TD ALIGN=\"center\">" + bucket + "</TD>"); in emitClassesByDiff()
/external/chromium/net/disk_cache/
Dstats.cc226 for (int bucket = 20; bucket < kDataSizesLength; bucket++) in GetLargeEntriesSize() local
227 total += data_sizes_[bucket] * GetBucketRange(bucket); in GetLargeEntriesSize()
/external/oprofile/daemon/liblegacy/
Dopd_image.c227 size_t bucket; in opd_find_image() local
230 bucket = opd_hash_image(name, tid, tgid); in opd_find_image()
231 list_for_each(pos, &opd_images[bucket]) { in opd_find_image()
241 if (pos == &opd_images[bucket]) in opd_find_image()
/external/chromium/chrome/browser/ui/webui/
Dapp_launcher_handler.cc57 extension_misc::AppLaunchBucket bucket = in ParseLaunchSource() local
59 CHECK(bucket < extension_misc::APP_LAUNCH_BUCKET_BOUNDARY); in ParseLaunchSource()
60 return bucket; in ParseLaunchSource()
518 bool promo_active, extension_misc::AppLaunchBucket bucket) { in RecordAppLaunchByID() argument
519 CHECK(bucket != extension_misc::APP_LAUNCH_BUCKET_INVALID); in RecordAppLaunchByID()
521 UMA_HISTOGRAM_ENUMERATION(extension_misc::kAppLaunchHistogram, bucket, in RecordAppLaunchByID()
535 extension_misc::AppLaunchBucket bucket) { in RecordAppLaunchByURL() argument
536 CHECK(bucket != extension_misc::APP_LAUNCH_BUCKET_INVALID); in RecordAppLaunchByURL()
543 UMA_HISTOGRAM_ENUMERATION(extension_misc::kAppLaunchHistogram, bucket, in RecordAppLaunchByURL()
Dapp_launcher_handler.h96 extension_misc::AppLaunchBucket bucket);
102 extension_misc::AppLaunchBucket bucket);
/external/freetype/src/base/
Dftdbgmem.c930 FT_MemSource* bucket = table->sources; in FT_DumpMemory() local
931 FT_MemSource* limit = bucket + FT_MEM_SOURCE_BUCKETS; in FT_DumpMemory()
938 for ( ; bucket < limit; bucket++ ) in FT_DumpMemory()
940 FT_MemSource source = *bucket; in FT_DumpMemory()
951 for ( bucket = table->sources; bucket < limit; bucket++ ) in FT_DumpMemory()
953 FT_MemSource source = *bucket; in FT_DumpMemory()
/external/elfutils/src/
Dstrip.c1373 Elf32_Word *bucket = (Elf32_Word *) hashd->d_buf; in handle_elf() local
1387 bucket[1] = symd->d_size / elsize; in handle_elf()
1388 Elf32_Word nbucket = bucket[0]; in handle_elf()
1389 bucket += 2; in handle_elf()
1390 Elf32_Word *chain = bucket + nbucket; in handle_elf()
1401 memset (bucket, '\0', in handle_elf()
1417 if (bucket[hidx] == 0) in handle_elf()
1418 bucket[hidx] = inner; in handle_elf()
1421 hidx = bucket[hidx]; in handle_elf()
1436 Elf64_Xword *bucket = (Elf64_Xword *) hashd->d_buf; in handle_elf() local
[all …]
/external/blktrace/
Dstats.h116 static inline void histlog2_account(__u32 *bucket, __u32 val, in histlog2_account() argument
120 bucket[index]++; in histlog2_account()
/external/chromium/chrome/browser/sync/syncable/
Ddirectory_backing_store.cc299 int bucket = failed_again ? 2 : 1; in BeginLoad() local
301 UMA_HISTOGRAM_COUNTS_100("Sync.DirectoryOpenFailedWin", bucket); in BeginLoad()
303 UMA_HISTOGRAM_COUNTS_100("Sync.DirectoryOpenFailedMac", bucket); in BeginLoad()
305 UMA_HISTOGRAM_COUNTS_100("Sync.DirectoryOpenFailedNotWinMac", bucket); in BeginLoad()
308 UMA_HISTOGRAM_COUNTS_100("Sync.DirectoryOpenFailedLinux", bucket); in BeginLoad()
310 UMA_HISTOGRAM_COUNTS_100("Sync.DirectoryOpenFailedCros", bucket); in BeginLoad()
312 UMA_HISTOGRAM_COUNTS_100("Sync.DirectoryOpenFailedOther", bucket); in BeginLoad()

123