Home
last modified time | relevance | path

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

123456789

/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()
DSortedMapNavigationTester.java55 getSubjectGenerator().getCollectionSize().getNumElements())); in setUp()
117 getSubjectGenerator().getCollectionSize().getNumElements())); in testHeadMap()
127 getSubjectGenerator().getCollectionSize().getNumElements())); in testTailMap()
137 getSubjectGenerator().getCollectionSize().getNumElements())); in testSubMap()
DListLastIndexOfTester.java48 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/
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/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/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()
DdeRingBuffer.cpp54 bool canRead = buffer.getNumElements() > 0; in RingBuffer_selfTest()
63 int numBytes = rnd.getInt(1, buffer.getNumElements()); in RingBuffer_selfTest()
/external/llvm/include/llvm/IR/
DDerivedTypes.h285 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function
347 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 NumElts = VTy->getNumElements(); in getHalfElementsVectorType()
419 unsigned NumElts = VTy->getNumElements(); in getDoubleElementsVectorType()
428 unsigned getNumElements() const { return NumElements; } in getNumElements() function
/external/deqp/modules/glshared/
DglsRandomShaderProgram.cpp54 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()
/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp379 unsigned NumElems = VT->getNumElements(); in splitBinary()
399 unsigned NumElems = VT->getNumElements(); in visitSelectInst()
442 unsigned NumElems = VT->getNumElements(); in visitGetElementPtrInst()
474 unsigned NumElems = VT->getNumElements(); in visitCastInst()
493 unsigned DstNumElems = DstVT->getNumElements(); in visitBitCastInst()
494 unsigned SrcNumElems = SrcVT->getNumElements(); in visitBitCastInst()
547 unsigned NumElems = VT->getNumElements(); in visitShuffleVectorInst()
571 unsigned NumElems = VT->getNumElements(); in visitPHINode()
602 unsigned NumElems = Layout.VecTy->getNumElements(); in visitLoadInst()
627 unsigned NumElems = Layout.VecTy->getNumElements(); in visitStoreInst()
/external/deqp/execserver/
DxsExecutionServer.cpp66 src.getNumElements() > 0) in read()
83 size_t numToRead = (size_t)de::min(src.getNumElements(), (int)numBytesLeft); in read()
226 if (m_bufferIn.getNumElements() > 0) in processSession()
375 size_t maxLen = de::min(m_sendRecvTmpBuf.size(), (size_t)m_bufferOut.getNumElements()); in send()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/
DDescriptiveStatistics.java274 return eDA.getNumElements(); in getN()
334 if (windowSize != INFINITE_WINDOW && windowSize < eDA.getNumElements()) { in setWindowSize()
335 eDA.discardFrontElements(eDA.getNumElements() - windowSize); in setWindowSize()
447 return stat.evaluate(eDA.getInternalValues(), eDA.start(), eDA.getNumElements()); in apply()
/external/deqp/executor/
DxeContainerFormatParser.cpp69 m_buf.resize(getNextBufferSize(m_buf.getSize(), m_buf.getNumElements()+(int)numBytes)); in feed()
119 DE_ASSERT(de::inRange(offset, 0, m_buf.getNumElements())); in getChar()
121 if (offset < m_buf.getNumElements()) in getChar()
/external/llvm/lib/IR/
DConstants.cpp245 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue()
262 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue()
281 return Elt < CAZ->getNumElements() ? CAZ->getElementValue(Elt) : nullptr; in getAggregateElement()
284 return Elt < UV->getNumElements() ? UV->getElementValue(Elt) : nullptr; in getAggregateElement()
287 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement()
551 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue()
563 return ConstantVector::getSplat(VTy->getNumElements(), in getFalse()
586 return ConstantVector::getSplat(VTy->getNumElements(), C); in get()
611 return ConstantVector::getSplat(VTy->getNumElements(), C); in get()
662 return ConstantVector::getSplat(VTy->getNumElements(), C); in get()
[all …]
/external/llvm/lib/Transforms/IPO/
DMergeFunctions.cpp702 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements(); in cmpConstants()
703 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements(); in cmpConstants()
716 unsigned NumElementsL = cast<StructType>(TyL)->getNumElements(); in cmpConstants()
717 unsigned NumElementsR = cast<StructType>(TyR)->getNumElements(); in cmpConstants()
730 unsigned NumElementsL = cast<VectorType>(TyL)->getNumElements(); in cmpConstants()
731 unsigned NumElementsR = cast<VectorType>(TyR)->getNumElements(); in cmpConstants()
828 if (int Res = cmpNumbers(VTyL->getNumElements(), VTyR->getNumElements())) in cmpTypes()
852 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes()
853 return cmpNumbers(STyL->getNumElements(), STyR->getNumElements()); in cmpTypes()
858 for (unsigned i = 0, e = STyL->getNumElements(); i != e; ++i) { in cmpTypes()
[all …]

123456789