Searched defs:bucket (Results 1 - 4 of 4) sorted by relevance

/system/core/include/utils/
H A DBasicHashtable.h31 // The collision flag indicates that the bucket is part of a collision chain
32 // such that at least two entries both hash to this bucket. When true, we
36 // The present flag indicates that the bucket contains an initialized entry value.
39 // Mask for 30 bits worth of the hash code that are stored within the bucket to
74 const size_t mBucketSize; // number of bytes per bucket including the entry
92 virtual bool compareBucketKey(const Bucket& bucket, const void* __restrict__ key) const = 0;
93 virtual void initializeBucketEntry(Bucket& bucket, const void* __restrict__ entry) const = 0;
94 virtual void destroyBucketEntry(Bucket& bucket) const = 0;
99 // Allocates a bucket array as a SharedBuffer.
102 // Releases a bucket arra
341 entryFor(const Bucket& bucket) argument
345 entryFor(Bucket& bucket) argument
378 compareBucketKey(const Bucket& bucket, const void* __restrict__ key) const argument
384 initializeBucketEntry(Bucket& bucket, const void* __restrict__ entry) const argument
[all...]
/system/core/libutils/
H A DBasicHashtable.cpp88 Bucket& bucket = bucketAt(mBuckets, i); local
89 bucket.cookie = 0;
104 const Bucket& bucket = bucketAt(mBuckets, index); local
105 if (bucket.cookie & Bucket::PRESENT) {
123 const Bucket& bucket = bucketAt(mBuckets, size_t(index)); local
124 if (bucket.cookie & Bucket::PRESENT) {
125 if (compareBucketKey(bucket, key)) {
129 if (!(bucket.cookie & Bucket::COLLISION)) {
139 const Bucket& bucket = bucketAt(mBuckets, size_t(index)); local
140 if (bucket
162 Bucket* bucket = &bucketAt(mBuckets, size_t(index)); local
191 Bucket& bucket = bucketAt(mBuckets, index); local
252 Bucket& bucket = bucketAt(buckets, i); local
269 Bucket& bucket = bucketAt(buckets, i); local
[all...]
/system/core/logd/
H A DLogStatistics.cpp394 for(unsigned short bucket = 0; dgram_qlen(bucket); ++bucket) {
395 mMinimum[bucket].tv_sec = mMinimum[bucket].tv_sec_max;
396 mMinimum[bucket].tv_nsec = mMinimum[bucket].tv_nsec_max;
400 // Each bucket below represents a dgram_qlen of log messages. By
429 // bucket dgram_qlen are tuned for /proc/sys/net/unix/max_dgram_qlen = 300
434 unsigned short LogStatistics::dgram_qlen(unsigned short bucket) { argument
441 minimum(unsigned short bucket) argument
448 recordDiff(log_time diff, unsigned short bucket) argument
[all...]
/system/core/logd/tests/
H A Dlogd_test.cpp212 unsigned short bucket = 0; local
214 bucket = 0;
216 bucket = bucket * 10 + *cp - '0';
222 if (!bucket) {
233 dgram_qlen[number_of_buckets++] = bucket;

Completed in 96 milliseconds