Searched refs:buckets (Results 1 - 4 of 4) sorted by relevance

/frameworks/ex/common/tools/
H A Dmake-iana-tld-pattern.py101 def getBucket(buckets, line):
103 bucket = buckets.get(letter)
107 buckets[letter] = bucket
111 def makePattern(prefix, suffix, buckets, isWebUrl=False):
114 output += getBucket(buckets, 'a').dump(isFirst=True, isWebUrl=isWebUrl)
117 output += getBucket(buckets, chr(letter)).dump(isWebUrl=isWebUrl)
119 output += getBucket(buckets, 'z').dump(isLast=True, isWebUrl=isWebUrl)
135 buckets = {} variable
141 getBucket(buckets, domain[0]).add(domain.strip())
147 getBucket(buckets, 'x
[all...]
/frameworks/native/libs/utils/
H A DBasicHashtable.cpp244 LOG_ALWAYS_FATAL_IF(!sb, "Could not allocate %u bytes for hashtable with %u buckets.",
246 void* buckets = sb->data(); local
248 Bucket& bucket = bucketAt(buckets, i);
251 return buckets;
254 void BasicHashtableImpl::releaseBuckets(void* __restrict__ buckets, size_t count) const { argument
255 SharedBuffer* sb = SharedBuffer::bufferFromData(buckets);
257 destroyBuckets(buckets, count);
262 void BasicHashtableImpl::destroyBuckets(void* __restrict__ buckets, size_t count) const { argument
265 Bucket& bucket = bucketAt(buckets, i);
331 LOG_ALWAYS_FATAL_IF(!count, "Could not determine required number of buckets fo
[all...]
/frameworks/native/include/utils/
H A DBasicHashtable.h75 size_t mCapacity; // number of buckets that can be filled before exceeding load factor
78 size_t mFilledBuckets; // number of buckets for which collision or present is true
80 void* mBuckets; // array of buckets, as a SharedBuffer
82 inline const Bucket& bucketAt(const void* __restrict__ buckets, size_t index) const { argument
84 static_cast<const uint8_t*>(buckets) + index * mBucketSize);
87 inline Bucket& bucketAt(void* __restrict__ buckets, size_t index) const { argument
88 return *reinterpret_cast<Bucket*>(static_cast<uint8_t*>(buckets) + index * mBucketSize);
102 void releaseBuckets(void* __restrict__ buckets, size_t count) const;
104 // Destroys the contents of buckets (invokes destroyBucketEntry for each
106 void destroyBuckets(void* __restrict__ buckets, size_
[all...]
/frameworks/compile/mclinker/lib/Target/
H A DGNULDBackend.cpp1647 static const unsigned int buckets[] = local
1652 const unsigned buckets_count = sizeof buckets / sizeof buckets[0];
1656 if (pNumOfSymbols < buckets[i])
1658 result = buckets[i];

Completed in 133 milliseconds