/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | CollectionToArrayTester.java | 68 assertEquals("toArray(emptyT[]).length:", getNumElements(), array.length); in testToArray_emptyArray() 78 assertEquals("toArray(emptyT[]).length:", getNumElements(), array.length); in testToArray_emptyArray_ordered() 88 getNumElements(), array.length); in testToArray_emptyArrayOfObject() 93 E[] array = getSubjectGenerator().createArray(getNumElements()); in testToArray_rightSizedArray() 101 E[] array = getSubjectGenerator().createArray(getNumElements()); in testToArray_rightSizedArray_ordered() 108 Object[] array = new Object[getNumElements()]; in testToArray_rightSizedArrayOfObject() 116 Object[] array = new Object[getNumElements()]; in testToArray_rightSizedArrayOfObject_ordered() 123 E[] array = getSubjectGenerator().createArray(getNumElements() + 2); in testToArray_oversizedArray() 124 array[getNumElements()] = samples.e3; in testToArray_oversizedArray() 125 array[getNumElements() + 1] = samples.e3; in testToArray_oversizedArray() [all …]
|
D | SetEqualsTester.java | 45 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherSetWithDifferentElements() 57 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_containingNull() 68 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherContainsNull() 79 Collection<E> fewerElements = getSampleElements(getNumElements() - 1); in testEquals_smallerSet() 85 Collection<E> moreElements = getSampleElements(getNumElements() + 1); in testEquals_largerSet()
|
D | ListSubListTester.java | 62 getList().subList(0, getNumElements() + 1); in testSubList_endTooLarge() 90 getList(), getList().subList(0, getNumElements())); in testSubList_entireList() 99 Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListRemoveAffectsOriginal() 109 Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListClearAffectsOriginal() 195 int size = getNumElements(); in testSubList_size() 211 int size = getNumElements(); in testSubList_isEmpty() 225 int size = getNumElements(); in testSubList_get() 249 int size = getNumElements(); in testSubList_contains() 267 int size = getNumElements(); in testSubList_indexOf() 318 SerializableTester.reserializeAndAssert(getList().subList(0, getNumElements())); in testReserializeWholeSubList()
|
D | ListAddAtIndexTester.java | 101 getList().add(getNumElements() / 2, samples.e3); in testAddAtIndex_middle() 102 expectAdded(getNumElements() / 2, samples.e3); in testAddAtIndex_middle() 108 getList().add(getNumElements(), samples.e3); in testAddAtIndex_end() 109 expectAdded(getNumElements(), samples.e3); in testAddAtIndex_end() 146 getList().add(getNumElements() + 1, samples.e3); in testAddAtIndex_tooLarge()
|
D | ListRemoveAtIndexTester.java | 67 getList().remove(getNumElements()); in testRemoveAtIndex_tooLarge() 83 runRemoveTest(getNumElements() / 2); in testRemoveAtIndex_middle() 92 getList().remove(getNumElements() / 2); in testRemoveAtIndexConcurrentWithIteration() 103 runRemoveTest(getNumElements() - 1); in testRemoveAtIndex_last()
|
D | ListAddAllAtIndexTester.java | 139 getList().addAll(getNumElements() / 2, createDisjointCollection())); in testAddAllAtIndex_middle() 140 expectAdded(getNumElements() / 2, createDisjointCollection()); in testAddAllAtIndex_middle() 147 getList().addAll(getNumElements(), createDisjointCollection())); in testAddAllAtIndex_end() 148 expectAdded(getNumElements(), createDisjointCollection()); in testAddAllAtIndex_end() 175 getList().addAll(getNumElements() + 1, MinimalCollection.of(samples.e3)); in testAddAllAtIndex_tooLarge()
|
D | SortedMapNavigationTester.java | 55 getSubjectGenerator().getCollectionSize().getNumElements())); in setUp() 117 getSubjectGenerator().getCollectionSize().getNumElements())); in testHeadMap() 127 getSubjectGenerator().getCollectionSize().getNumElements())); in testTailMap() 137 getSubjectGenerator().getCollectionSize().getNumElements())); in testSubMap()
|
D | ListLastIndexOfTester.java | 48 array[getNumElements() / 2] = samples.e0; in testLastIndexOf_duplicate() 52 getNumElements() / 2, getList().lastIndexOf(samples.e0)); in testLastIndexOf_duplicate()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/ |
D | CollectionToArrayTester.java | 65 assertEquals("toArray(emptyT[]).length:", getNumElements(), array.length); in testToArray_emptyArray() 75 assertEquals("toArray(emptyT[]).length:", getNumElements(), array.length); in testToArray_emptyArray_ordered() 85 getNumElements(), array.length); in testToArray_emptyArrayOfObject() 90 E[] array = getSubjectGenerator().createArray(getNumElements()); in testToArray_rightSizedArray() 98 E[] array = getSubjectGenerator().createArray(getNumElements()); in testToArray_rightSizedArray_ordered() 105 Object[] array = new Object[getNumElements()]; in testToArray_rightSizedArrayOfObject() 113 Object[] array = new Object[getNumElements()]; in testToArray_rightSizedArrayOfObject_ordered() 120 E[] array = getSubjectGenerator().createArray(getNumElements() + 2); in testToArray_oversizedArray() 121 array[getNumElements()] = samples.e3; in testToArray_oversizedArray() 122 array[getNumElements() + 1] = samples.e3; in testToArray_oversizedArray() [all …]
|
D | ListAddAtIndexTester.java | 98 getList().add(getNumElements() / 2, samples.e3); in testAddAtIndex_middle() 99 expectAdded(getNumElements() / 2, samples.e3); in testAddAtIndex_middle() 105 getList().add(getNumElements(), samples.e3); in testAddAtIndex_end() 106 expectAdded(getNumElements(), samples.e3); in testAddAtIndex_end() 143 getList().add(getNumElements() + 1, samples.e3); in testAddAtIndex_tooLarge()
|
D | ListSubListTester.java | 58 getList().subList(0, getNumElements() + 1); in testSubList_endTooLarge() 86 getList(), getList().subList(0, getNumElements())); in testSubList_entireList() 95 Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListRemoveAffectsOriginal() 105 Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListClearAffectsOriginal() 191 int size = getNumElements(); in testSubList_size() 207 int size = getNumElements(); in testSubList_isEmpty() 221 int size = getNumElements(); in testSubList_get() 245 int size = getNumElements(); in testSubList_contains() 263 int size = getNumElements(); in testSubList_indexOf() 314 SerializableTester.reserializeAndAssert(getList().subList(0, getNumElements())); in testReserializeWholeSubList()
|
/external/deqp/framework/randomshaders/ |
D | rsgUtils.cpp | 64 for (int ndx = 0; ndx < type.getNumElements(); ndx++) in computeRandomValue() 74 for (int ndx = 0; ndx < type.getNumElements(); ndx++) in computeRandomValue() 85 for (int ndx = 0; ndx < type.getNumElements(); ndx++) in computeRandomValue() 95 int numElements = type.getNumElements(); in computeRandomValue() 136 for (int ndx = 0; ndx < valueRange.getType().getNumElements(); ndx++) in isUndefinedValueRange() 193 for (int ndx = 0; ndx < type.getNumElements(); ndx++) in computeRandomValueRange() 203 for (int ndx = 0; ndx < type.getNumElements(); ndx++) in computeRandomValueRange() 219 for (int ndx = 0; ndx < type.getNumElements(); ndx++) in computeRandomValueRange() 263 depth = memberType.getNumElements() == 1 ? 1 : 2; in getTypeConstructorDepth() 302 for (int ndx = 0; ndx < type.getNumElements(); ndx++) in computeRangeLengthSum() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | DerivedTypes.h | 289 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function 306 return cast<StructType>(this)->getNumElements(); in getStructNumElements() 335 uint64_t getNumElements() const { return NumElements; } in getNumElements() function 365 return cast<ArrayType>(this)->getNumElements(); in getArrayNumElements() 386 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 394 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 404 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType() 410 unsigned NumElts = VTy->getNumElements(); in getHalfElementsVectorType() 419 unsigned NumElts = VTy->getNumElements(); in getDoubleElementsVectorType() 429 return getNumElements() * getElementType()->getPrimitiveSizeInBits(); in getBitWidth() [all …]
|
/external/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 284 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function 301 return cast<StructType>(this)->getNumElements(); in getStructNumElements() 352 uint64_t getNumElements() const { return NumElements; } in getNumElements() function 361 return cast<ArrayType>(this)->getNumElements(); in getArrayNumElements() 383 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 391 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 401 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType() 407 unsigned NumElts = VTy->getNumElements(); in getHalfElementsVectorType() 416 unsigned NumElts = VTy->getNumElements(); in getDoubleElementsVectorType() 424 unsigned getNumElements() const { return NumElements; } in getNumElements() function [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | AbstractContainerTester.java | 169 E[] array = getSubjectGenerator().createArray(getNumElements()); in createSamplesArray() 175 E[] array = getSubjectGenerator().createArray(getNumElements()); in createOrderedArray() 203 protected int getNumElements() { in getNumElements() method in AbstractContainerTester 204 return getSubjectGenerator().getCollectionSize().getNumElements(); in getNumElements() 212 return getSampleElements(getNumElements()); in getSampleElements() 235 return getNumElements() / 2; in getNullLocation()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultimapPutTester.java | 55 int size = getNumElements(); in testPutEmpty() 71 int size = getNumElements(); in testPutPresent() 87 int size = getNumElements(); in testPutTwoElements() 107 int size = getNumElements(); in testPutNullValue_supported() 128 int size = getNumElements(); in testPutNullKey() 138 int size = getNumElements(); in testPutNotPresentKeyPropagatesToGet() 170 int size = getNumElements(); in testPutPresentKeyPropagatesToGet() 189 int size = getNumElements(); in testPutPresentKeyPropagatesToAsMapGet() 209 int size = getNumElements(); in testPutPresentKeyPropagatesToAsMapEntrySet()
|
D | MultimapSizeTester.java | 41 int expectedSize = getNumElements(); in testSize() 73 assertEquals(getNumElements(), multimap().size()); in testSizeNullKey() 81 assertEquals(getNumElements(), multimap().size()); in testSizeNullValue() 89 assertEquals(getNumElements(), multimap().size()); in testSizeNullKeyAndValue()
|
/external/deqp/framework/delibs/decpp/ |
D | deRingBuffer.hpp | 45 int getNumElements (void) const { return m_numElements; } in getNumElements() function in de::RingBuffer 143 DE_ASSERT(getNumElements() > 0); in popBack() 153 DE_ASSERT(de::inBounds(offset, 0, getNumElements())); in peekBack() 160 DE_ASSERT(de::inRange(count, 0, getNumElements())); in peekBack() 168 DE_ASSERT(de::inRange(count, 0, getNumElements())); in popBack()
|
/external/llvm/unittests/AsmParser/ |
D | AsmParserTest.cpp | 207 ASSERT_TRUE(ST->getNumElements() == 2); in TEST() 208 for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) { in TEST() 221 ASSERT_TRUE(ST->getNumElements() == 4); in TEST() 222 for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) { in TEST() 235 ASSERT_TRUE(VT->getNumElements() == 5); in TEST() 337 ASSERT_TRUE(ST->getNumElements() == 2); in TEST() 338 for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) { in TEST() 352 ASSERT_TRUE(ST->getNumElements() == 4); in TEST() 353 for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) { in TEST() 367 ASSERT_TRUE(VT->getNumElements() == 5); in TEST()
|
/external/swiftshader/third_party/LLVM/utils/TableGen/ |
D | TGValueTypes.cpp | 51 return getNumElements() * getElementType().getSizeInBits(); in getSizeInBits() 56 unsigned getNumElements() const { in getNumElements() function in ExtendedVectorType 99 return static_cast<const ExtendedVectorType *>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 59 unsigned NElts = SVI->getType()->getNumElements(); in getShuffleMask() 81 unsigned Width = PTy->getNumElements(); in FindScalarElement() 110 cast<VectorType>(SVI->getOperand(0)->getType())->getNumElements(); in FindScalarElement() 150 unsigned VectorWidth = EI.getVectorOperandType()->getNumElements(); in visitExtractElementInst() 180 if (VT->getNumElements() == VectorWidth) in visitExtractElementInst() 218 cast<VectorType>(SVI->getOperand(0)->getType())->getNumElements(); in visitExtractElementInst() 254 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectSingleShuffleElements() 333 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectShuffleElements() 405 unsigned NumVectorElts = IE.getType()->getNumElements(); in visitInsertElementInst() 434 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements(); in visitInsertElementInst() [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 53 unsigned NumElts = DstTy->getNumElements(); in BitCastConstantVector() 115 if (STy->getNumElements() == 0) break; in FoldBitCast() 337 Constant *N = ConstantInt::get(DestTy, ATy->getNumElements()); in getFoldedSizeOf() 344 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf() 412 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf() 470 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf() 553 cast<VectorType>(DestTy)->getNumElements() == in ConstantFoldCastInstruction() 554 CV->getType()->getNumElements()) { in ConstantFoldCastInstruction() 558 for (unsigned i = 0, e = CV->getType()->getNumElements(); i != e; ++i) in ConstantFoldCastInstruction() 629 STy->getNumElements() == 2 && in ConstantFoldCastInstruction() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | DerivedTypes.h | 284 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function 348 uint64_t getNumElements() const { return NumElements; } in getNumElements() function 378 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 388 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 400 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType() 408 unsigned getNumElements() const { return NumElements; } in getNumElements() function
|
/external/swiftshader/third_party/LLVM/lib/Target/ |
D | TargetLoweringObjectFile.cpp | 82 if (ATy->getNumElements() == 0) return false; in IsNullTerminatedString() 85 dyn_cast<ConstantInt>(CVA->getOperand(ATy->getNumElements()-1)); in IsNullTerminatedString() 90 for (unsigned i = 0, e = ATy->getNumElements()-1; i != e; ++i) in IsNullTerminatedString() 100 return ATy->getNumElements() == 1; in IsNullTerminatedString()
|
/external/deqp/modules/glshared/ |
D | glsRandomShaderProgram.cpp | 54 const int numComps = varType.getNumElements(); in mapToBasicType() 141 ….getBaseType() == rsg::VariableType::TYPE_FLOAT && m_positionVar->getType().getNumElements() == 4); in RandomShaderProgram() 142 …getBaseType() == rsg::VariableType::TYPE_FLOAT && m_fragColorVar->getType().getNumElements() == 4); in RandomShaderProgram() 185 const int numComponents = attribType.getNumElements(); in shadeVertices() 226 const int numComponents = varType.getNumElements(); in shadeVertices() 264 const int numComponents = varType.getNumElements(); in shadeFragments()
|