/external/emma/core/java12/com/vladium/util/ |
D | IntIntMap.java | 88 final int bucketIndex = (key & 0x7FFFFFFF) % buckets.length; in contains() local 91 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in contains() 112 final int bucketIndex = (key & 0x7FFFFFFF) % buckets.length; in get() local 115 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in get() 131 final int bucketIndex = (key & 0x7FFFFFFF) % buckets.length; in get() local 134 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in get() 175 int bucketIndex = (key & 0x7FFFFFFF) % m_buckets.length; in put() local 179 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in put() 201 bucketIndex = (key & 0x7FFFFFFF) % buckets.length; in put() 202 final Entry bucketListHead = buckets [bucketIndex]; in put() [all …]
|
D | SoftValueMap.java | 164 final int bucketIndex = (keyHashCode & 0x7FFFFFFF) % buckets.length; in get() local 169 for (SoftEntry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in get() 235 int bucketIndex = (keyHashCode & 0x7FFFFFFF) % buckets.length; in put() local 238 for (SoftEntry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in put() 270 …currentKeyEntry.m_softValue = new IndexedSoftReference (value, m_valueReferenceQueue, bucketIndex); in put() 282 bucketIndex = (keyHashCode & 0x7FFFFFFF) % buckets.length; in put() 283 final SoftEntry bucketListHead = buckets [bucketIndex]; in put() 284 …oftEntry newEntry = new SoftEntry (m_valueReferenceQueue, key, value, bucketListHead, bucketIndex); in put() 285 buckets [bucketIndex] = newEntry; in put() 302 final int bucketIndex = (keyHashCode & 0x7FFFFFFF) % buckets.length; in remove() local [all …]
|
D | ObjectIntMap.java | 93 final int bucketIndex = (keyHash & 0x7FFFFFFF) % buckets.length; in contains() local 96 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in contains() 121 final int bucketIndex = (keyHash & 0x7FFFFFFF) % buckets.length; in get() local 124 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in get() 168 int bucketIndex = (keyHash & 0x7FFFFFFF) % m_buckets.length; in put() local 172 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in put() 194 bucketIndex = (keyHash & 0x7FFFFFFF) % buckets.length; in put() 195 final Entry bucketListHead = buckets [bucketIndex]; in put() 197 buckets [bucketIndex] = newEntry; in put() 214 final int bucketIndex = (keyHash & 0x7FFFFFFF) % m_buckets.length; in remove() local [all …]
|
D | IntObjectMap.java | 88 final int bucketIndex = (key & 0x7FFFFFFF) % buckets.length; in contains() local 91 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in contains() 113 final int bucketIndex = (key & 0x7FFFFFFF) % buckets.length; in get() local 116 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in get() 161 int bucketIndex = (key & 0x7FFFFFFF) % m_buckets.length; in put() local 165 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in put() 190 bucketIndex = (key & 0x7FFFFFFF) % buckets.length; in put() 191 final Entry bucketListHead = buckets [bucketIndex]; in put() 193 buckets [bucketIndex] = newEntry; in put()
|
D | IntSet.java | 86 final int bucketIndex = (key & 0x7FFFFFFF) % buckets.length; in contains() local 89 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in contains() 142 int bucketIndex = (key & 0x7FFFFFFF) % m_buckets.length; in add() local 146 for (Entry entry = buckets [bucketIndex]; entry != null; entry = entry.m_next) in add() 162 bucketIndex = (key & 0x7FFFFFFF) % buckets.length; in add() 163 final Entry bucketListHead = buckets [bucketIndex]; in add() 165 buckets [bucketIndex] = newEntry; in add()
|
/external/icu/icu4c/source/test/intltest/ |
D | alphaindextst.cpp | 369 int32_t bucketIndex = 0; in ManyLocalesTest() local 372 assertEquals("bucket index", bucketIndex, index.getBucketIndex()); in ManyLocalesTest() 377 const AlphabeticIndex::Bucket *bucket = immIndex->getBucket(bucketIndex); in ManyLocalesTest() 380 " index=" + bucketIndex, in ManyLocalesTest() 385 ++bucketIndex; in ManyLocalesTest() 389 TEST_ASSERT(immIndex->getBucketCount() == bucketIndex); in ManyLocalesTest() 391 TEST_ASSERT(immIndex->getBucket(bucketIndex) == NULL); in ManyLocalesTest() 563 int32_t bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x897f), status); in TestHaniFirst() local 564 assertEquals("getBucketIndex(U+897F)", 0, bucketIndex); // underflow bucket in TestHaniFirst() 565 bucketIndex = index.getBucketIndex("i", status); in TestHaniFirst() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | AlphabeticIndexTest.java | 400 int bucketIndex = 0; in checkBuckets() local 403 labels.get(bucketIndex), bucket.getLabel()); in checkBuckets() 405 labels.get(bucketIndex), immIndex.getBucket(bucketIndex).getLabel()); in checkBuckets() 407 bucket.getLabelType(), immIndex.getBucket(bucketIndex).getLabelType()); in checkBuckets() 411 bucketIndex, index.getBucketIndex(name)); in checkBuckets() 413 bucketIndex, immIndex.getBucketIndex(name)); in checkBuckets() 435 ++bucketIndex; in checkBuckets() 437 assertEquals("getBucketCount()", bucketIndex, index.getBucketCount()); in checkBuckets() 438 assertEquals("immutable getBucketCount()", bucketIndex, immIndex.getBucketCount()); in checkBuckets() 441 assertNull("immutable getBucket(count)", immIndex.getBucket(bucketIndex)); in checkBuckets() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | AlphabeticIndexTest.java | 404 int bucketIndex = 0; in checkBuckets() local 407 labels.get(bucketIndex), bucket.getLabel()); in checkBuckets() 409 labels.get(bucketIndex), immIndex.getBucket(bucketIndex).getLabel()); in checkBuckets() 411 bucket.getLabelType(), immIndex.getBucket(bucketIndex).getLabelType()); in checkBuckets() 415 bucketIndex, index.getBucketIndex(name)); in checkBuckets() 417 bucketIndex, immIndex.getBucketIndex(name)); in checkBuckets() 439 ++bucketIndex; in checkBuckets() 441 assertEquals("getBucketCount()", bucketIndex, index.getBucketCount()); in checkBuckets() 442 assertEquals("immutable getBucketCount()", bucketIndex, immIndex.getBucketCount()); in checkBuckets() 445 assertNull("immutable getBucket(count)", immIndex.getBucket(bucketIndex)); in checkBuckets() [all …]
|
/external/jsoncpp/src/lib_json/ |
D | json_internalmap.inl | 152 for (BucketIndex bucketIndex = 0; bucketIndex < bucketsSize_; local 153 ++bucketIndex) { 154 ValueInternalLink* link = buckets_[bucketIndex].next_; 208 BucketIndex bucketIndex = hashedKey % bucketsSize_; local 209 for (const ValueInternalLink* current = &buckets_[bucketIndex]; current != 0; 230 BucketIndex bucketIndex = hashedKey % bucketsSize_; local 233 for (ValueInternalLink* current = &buckets_[bucketIndex]; current != 0; 252 BucketIndex bucketIndex = hashedKey % bucketsSize_; local 253 for (ValueInternalLink* link = &buckets_[bucketIndex]; link != 0; 260 doActualRemove(link, index, bucketIndex); [all …]
|
/external/icu/icu4c/source/i18n/ |
D | alphaindex.cpp | 649 int32_t bucketIndex = 1; in initBuckets() local 652 if (bucketIndex < buckets_->bucketList_->size()) { in initBuckets() 653 nextBucket = getBucket(*buckets_->bucketList_, bucketIndex++); in initBuckets() 667 if (bucketIndex < buckets_->bucketList_->size()) { in initBuckets() 668 nextBucket = getBucket(*buckets_->bucketList_, bucketIndex++); in initBuckets()
|
/external/jsoncpp/include/json/ |
D | value.h | 709 BucketIndex bucketIndex); 711 ValueInternalLink*& getLastLinkInBucket(BucketIndex bucketIndex);
|