Home
last modified time | relevance | path

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

12345678910>>...29

/external/guava/android/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionToArrayTester.java67 assertEquals("toArray(emptyT[]).length:", getNumElements(), array.length); in testToArray_emptyArray()
77 assertEquals("toArray(emptyT[]).length:", getNumElements(), array.length); in testToArray_emptyArray_ordered()
88 assertEquals("toArray(emptyObject[]).length", 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()
118 Object[] array = new Object[getNumElements()]; in testToArray_rightSizedArrayOfObject_ordered()
127 E[] array = getSubjectGenerator().createArray(getNumElements() + 2); in testToArray_oversizedArray()
128 array[getNumElements()] = e3(); in testToArray_oversizedArray()
129 array[getNumElements() + 1] = e3(); in testToArray_oversizedArray()
[all …]
DSetEqualsTester.java46 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherSetWithDifferentElements()
57 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_containingNull()
69 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherContainsNull()
80 Collection<E> fewerElements = getSampleElements(getNumElements() - 1); in testEquals_smallerSet()
87 Collection<E> moreElements = getSampleElements(getNumElements() + 1); in testEquals_largerSet()
DListAddAtIndexTester.java101 getList().add(getNumElements() / 2, e3()); in testAddAtIndex_middle()
102 expectAdded(getNumElements() / 2, e3()); in testAddAtIndex_middle()
108 getList().add(getNumElements(), e3()); in testAddAtIndex_end()
109 expectAdded(getNumElements(), e3()); in testAddAtIndex_end()
145 getList().add(getNumElements() + 1, e3()); in testAddAtIndex_tooLarge()
DListSubListTester.java62 getList().subList(0, getNumElements() + 1); in testSubList_endTooLarge()
91 getList().subList(0, getNumElements())); in testSubList_entireList()
99 List<E> expected = Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListRemoveAffectsOriginal()
108 List<E> expected = Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListClearAffectsOriginal()
199 int size = getNumElements(); in testSubList_size()
210 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()
302 SerializableTester.reserializeAndAssert(getList().subList(0, getNumElements())); in testReserializeWholeSubList()
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()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DCollectionToArrayTester.java67 assertEquals("toArray(emptyT[]).length:", getNumElements(), array.length); in testToArray_emptyArray()
77 assertEquals("toArray(emptyT[]).length:", getNumElements(), array.length); in testToArray_emptyArray_ordered()
88 assertEquals("toArray(emptyObject[]).length", 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()
118 Object[] array = new Object[getNumElements()]; in testToArray_rightSizedArrayOfObject_ordered()
127 E[] array = getSubjectGenerator().createArray(getNumElements() + 2); in testToArray_oversizedArray()
128 array[getNumElements()] = e3(); in testToArray_oversizedArray()
129 array[getNumElements() + 1] = e3(); in testToArray_oversizedArray()
[all …]
DMapComputeTester.java55 assertEquals(getNumElements() + 1, getMap().size()); in testCompute_absentToPresent()
71 assertEquals(getNumElements(), getMap().size()); in testCompute_absentToAbsent()
89 assertEquals(getNumElements(), getMap().size()); in testCompute_presentToPresent()
107 assertEquals(getNumElements() - 1, getMap().size()); in testCompute_presentToAbsent()
127 assertEquals(getNumElements(), getMap().size()); in testCompute_presentNullToPresentNonnull()
147 assertEquals(getNumElements() - 1, getMap().size()); in testCompute_presentNullToNull()
165 assertEquals(getNumElements(), getMap().size()); in testCompute_nullKeyPresentToPresent()
DSetEqualsTester.java46 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherSetWithDifferentElements()
57 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_containingNull()
69 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherContainsNull()
80 Collection<E> fewerElements = getSampleElements(getNumElements() - 1); in testEquals_smallerSet()
87 Collection<E> moreElements = getSampleElements(getNumElements() + 1); in testEquals_largerSet()
DListAddAtIndexTester.java101 getList().add(getNumElements() / 2, e3()); in testAddAtIndex_middle()
102 expectAdded(getNumElements() / 2, e3()); in testAddAtIndex_middle()
108 getList().add(getNumElements(), e3()); in testAddAtIndex_end()
109 expectAdded(getNumElements(), e3()); in testAddAtIndex_end()
145 getList().add(getNumElements() + 1, e3()); in testAddAtIndex_tooLarge()
DListSubListTester.java62 getList().subList(0, getNumElements() + 1); in testSubList_endTooLarge()
91 getList().subList(0, getNumElements())); in testSubList_entireList()
99 List<E> expected = Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListRemoveAffectsOriginal()
108 List<E> expected = Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListClearAffectsOriginal()
199 int size = getNumElements(); in testSubList_size()
210 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()
302 SerializableTester.reserializeAndAssert(getList().subList(0, getNumElements())); in testReserializeWholeSubList()
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()
/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/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Ddense_to_sparse.cc84 int num_elements = type.getNumElements(); in CalculateRandomSparsity()
122 data.reserve(type.getNumElements()); in CalculateBlockSparsity()
126 GetSparsity(type.getNumElements() - format_converter.GetData().size(), in CalculateBlockSparsity()
127 type.getNumElements()); in CalculateBlockSparsity()
132 data.reserve(type.getNumElements()); in CalculateBlockSparsity()
137 GetSparsity(type.getNumElements() - format_converter.GetData().size(), in CalculateBlockSparsity()
138 type.getNumElements()); in CalculateBlockSparsity()
143 data.reserve(type.getNumElements()); in CalculateBlockSparsity()
147 GetSparsity(type.getNumElements() - format_converter.GetData().size(), in CalculateBlockSparsity()
148 type.getNumElements()); in CalculateBlockSparsity()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapPutTester.java59 int size = getNumElements(); in testPutEmpty()
72 int size = getNumElements(); in testPutPresent()
84 int size = getNumElements(); in testPutTwoElements()
100 int size = getNumElements(); in testPutNullValue_supported()
121 int size = getNumElements(); in testPutNullKey()
131 int size = getNumElements(); in testPutNotPresentKeyPropagatesToGet()
163 int size = getNumElements(); in testPutPresentKeyPropagatesToGet()
182 int size = getNumElements(); in testPutPresentKeyPropagatesToAsMapGet()
202 int size = getNumElements(); in testPutPresentKeyPropagatesToAsMapEntrySet()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapPutTester.java59 int size = getNumElements(); in testPutEmpty()
72 int size = getNumElements(); in testPutPresent()
84 int size = getNumElements(); in testPutTwoElements()
100 int size = getNumElements(); in testPutNullValue_supported()
121 int size = getNumElements(); in testPutNullKey()
131 int size = getNumElements(); in testPutNotPresentKeyPropagatesToGet()
163 int size = getNumElements(); in testPutPresentKeyPropagatesToGet()
182 int size = getNumElements(); in testPutPresentKeyPropagatesToAsMapGet()
202 int size = getNumElements(); in testPutPresentKeyPropagatesToAsMapEntrySet()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/
DAbstractContainerTester.java163 E[] array = getSubjectGenerator().createArray(getNumElements()); in createSamplesArray()
169 E[] array = getSubjectGenerator().createArray(getNumElements()); in createOrderedArray()
196 protected int getNumElements() { in getNumElements() method in AbstractContainerTester
197 return getSubjectGenerator().getCollectionSize().getNumElements(); in getNumElements()
205 return getSampleElements(getNumElements()); in getSampleElements()
226 return getNumElements() / 2; in getNullLocation()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DAbstractContainerTester.java163 E[] array = getSubjectGenerator().createArray(getNumElements()); in createSamplesArray()
169 E[] array = getSubjectGenerator().createArray(getNumElements()); in createOrderedArray()
196 protected int getNumElements() { in getNumElements() method in AbstractContainerTester
197 return getSubjectGenerator().getCollectionSize().getNumElements(); in getNumElements()
205 return getSampleElements(getNumElements()); in getSampleElements()
226 return getNumElements() / 2; in getNullLocation()
/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/estimators/
Darithmetic_count_util.h31 *count = output_type.getNumElements(); in GetArithmeticCountForBroadcastableOp()
43 total_count += input_type.getNumElements(); in GetInputTensorTotalSize()
67 const int64_t cost_per_col = 2 * weight_type.getNumElements(); in GetArithmeticCountForConvAndFullyconnectedOp()
76 *count += bias_type.getNumElements(); in GetArithmeticCountForConvAndFullyconnectedOp()
/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-project/llvm/unittests/IR/
DVectorTypesTest.cpp43 EXPECT_EQ(V16Int8Ty->getNumElements(), 16U); in TEST()
49 EXPECT_EQ(V8Int32Ty->getNumElements(), 8U); in TEST()
65 EXPECT_EQ(V8Int16Ty->getNumElements(), 8U); in TEST()
71 EXPECT_EQ(V4Int64Ty->getNumElements(), 4U); in TEST()
77 EXPECT_EQ(V2Int64Ty->getNumElements(), 2U); in TEST()
83 EXPECT_EQ(V8Int64Ty->getNumElements(), 8U); in TEST()
89 EXPECT_EQ(V4Float64Ty->getNumElements(), 4U); in TEST()
95 EXPECT_EQ(ExtTy->getNumElements(), 8U); in TEST()
101 EXPECT_EQ(TruncTy->getNumElements(), 8U); in TEST()
107 EXPECT_EQ(HalvedTy->getNumElements(), 2U); in TEST()
[all …]
/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/llvm-project/llvm/unittests/AsmParser/
DAsmParserTest.cpp206 ASSERT_TRUE(ST->getNumElements() == 2); in TEST()
207 for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) { in TEST()
220 ASSERT_TRUE(ST->getNumElements() == 4); in TEST()
221 for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) { in TEST()
234 ASSERT_TRUE(VT->getNumElements() == 5); in TEST()
336 ASSERT_TRUE(ST->getNumElements() == 2); in TEST()
337 for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) { in TEST()
351 ASSERT_TRUE(ST->getNumElements() == 4); in TEST()
352 for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) { in TEST()
366 ASSERT_TRUE(VT->getNumElements() == 5); in TEST()
/external/llvm-project/mlir/lib/Dialect/SPIRV/
DLayoutUtils.cpp30 if (structType.getNumElements() == 0) { in decorateType()
41 for (uint32_t i = 0, e = structType.getNumElements(); i < e; ++i) { in decorateType()
103 const auto numElements = vectorType.getNumElements(); in decorateType()
122 const auto numElements = arrayType.getNumElements(); in decorateType()
175 return structType.hasOffset() || !structType.getNumElements(); in isLegalType()

12345678910>>...29