Home
last modified time | relevance | path

Searched refs:getNumElements (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionToArrayTester.java68 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 …]
DSetEqualsTester.java45 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()
DListSubListTester.java62 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()
DListAddAtIndexTester.java101 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()
DListRemoveAtIndexTester.java67 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()
DListAddAllAtIndexTester.java139 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()
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/
DCollectionToArrayTester.java65 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 …]
DListAddAtIndexTester.java98 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()
DListSubListTester.java58 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/
DrsgUtils.cpp64 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/
DDerivedTypes.h289 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/
DDerivedTypes.h284 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/
DAbstractContainerTester.java169 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DDerivedTypes.h313 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function
330 return cast<StructType>(this)->getNumElements(); in getStructNumElements()
359 uint64_t getNumElements() const { return NumElements; } in getNumElements() function
389 return cast<ArrayType>(this)->getNumElements(); in getArrayNumElements()
410 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
418 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
428 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType()
434 unsigned NumElts = VTy->getNumElements(); in getHalfElementsVectorType()
443 unsigned NumElts = VTy->getNumElements(); in getDoubleElementsVectorType()
453 return getNumElements() * getElementType()->getPrimitiveSizeInBits(); in getBitWidth()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapPutTester.java55 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()
DMultimapSizeTester.java41 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/
DdeRingBuffer.hpp45 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/
DAsmParserTest.cpp207 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-7.0/llvm/unittests/AsmParser/
DAsmParserTest.cpp207 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/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp59 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/
DConstantFold.cpp53 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/utils/TableGen/
DTGValueTypes.cpp51 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/include/llvm/
DDerivedTypes.h284 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-7.0/llvm/lib/Transforms/Utils/
DFunctionComparator.cpp291 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements(); in cmpConstants()
292 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements(); in cmpConstants()
305 unsigned NumElementsL = cast<StructType>(TyL)->getNumElements(); in cmpConstants()
306 unsigned NumElementsR = cast<StructType>(TyR)->getNumElements(); in cmpConstants()
319 unsigned NumElementsL = cast<VectorType>(TyL)->getNumElements(); in cmpConstants()
320 unsigned NumElementsR = cast<VectorType>(TyR)->getNumElements(); in cmpConstants()
439 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes()
440 return cmpNumbers(STyL->getNumElements(), STyR->getNumElements()); in cmpTypes()
445 for (unsigned i = 0, e = STyL->getNumElements(); i != e; ++i) { in cmpTypes()
475 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/
DTargetLoweringObjectFile.cpp82 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()

12345678910>>...16