Home
last modified time | relevance | path

Searched refs:ints (Results 1 – 25 of 137) sorted by relevance

123456

/external/dexmaker/src/dx/java/com/android/dx/util/
DListIntSet.java27 final IntList ints; field in ListIntSet
33 ints = new IntList(); in ListIntSet()
34 ints.sort(); in ListIntSet()
39 int index = ints.binarysearch(value); in add()
42 ints.insert(-(index + 1), value); in add()
48 int index = ints.indexOf(value); in remove()
51 ints.removeIndex(index); in remove()
57 return ints.indexOf(value) >= 0; in has()
64 int szThis = ints.size(); in merge()
65 int szOther = o.ints.size(); in merge()
[all …]
DBitIntSet.java78 int sz = o.ints.size(); in merge()
81 ensureCapacity(o.ints.get(sz - 1)); in merge()
83 for (int i = 0; i < o.ints.size(); i++) { in merge()
84 Bits.set(bits, o.ints.get(i), true); in merge()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/array/
DIntArr.java21 private int[] ints; field in IntArr
26 public IntArr(int[] ints) { in IntArr() argument
27 this.ints = ints; in IntArr()
31 return Arrays.toString(ints); in toString()
35 return ints; in getInts()
38 public void setInts(int[] ints) { in setInts() argument
39 this.ints = ints; in setInts()
DPrimitiveArrayTest.java34 private final int[] ints = new int[] { 40000, 40001, 40002 }; field in PrimitiveArrayTest
44 + ".IntArr [ " + Arrays.toString(ints) + " ]\n" + "- " + pkg + ".LongArr [ " in testValidConstructor()
56 Assert.assertArrayEquals(ints, ((IntArr) wrappers.get(2)).getInts()); in testValidConstructor()
163 IntArr intArr = new IntArr(ints); in testCycle()
/external/libunwind/tests/
Dppc64-test-altivec-utils.c7 int ints[4]; member
16 ((union si_overlay *) &v)->ints[0] = count++; in vec_init()
17 ((union si_overlay *) &v)->ints[1] = count++; in vec_init()
18 ((union si_overlay *) &v)->ints[2] = count++; in vec_init()
19 ((union si_overlay *) &v)->ints[3] = count++; in vec_init()
27 ((union si_overlay *) &v)->ints[0], in vec_print()
28 ((union si_overlay *) &v)->ints[1], in vec_print()
29 ((union si_overlay *) &v)->ints[2], in vec_print()
30 ((union si_overlay *) &v)->ints[3]); in vec_print()
/external/mockito/cglib-and-asm/src/org/mockito/cglib/util/
DStringSwitcher.java37 public Object newInstance(String[] strings, int[] ints, boolean fixedInput); in newInstance() argument
49 public static StringSwitcher create(String[] strings, int[] ints, boolean fixedInput) { in create() argument
52 gen.setInts(ints); in create()
73 private int[] ints; field in StringSwitcher.Generator
94 public void setInts(int[] ints) { in setInts() argument
95 this.ints = ints; in setInts()
116 Object key = KEY_FACTORY.newInstance(strings, ints, fixedInput); in create()
135 e.push(ints[stringList.indexOf(key)]); in generateClass()
/external/junit/src/org/junit/experimental/theories/suppliers/
DTestedOnSupplier.java17 int[] ints = testedOn.ints(); in getValueSources() local
18 for (final int i : ints) { in getValueSources()
19 list.add(PotentialAssignment.forValue(Arrays.asList(ints).toString(), i)); in getValueSources()
/external/libchrome/base/json/
Djson_value_converter_unittest.cc30 ScopedVector<int> ints; member
68 converter->RegisterRepeatedInt("ints", &SimpleMessage::ints); in RegisterJSONConverter()
118 EXPECT_EQ(2, static_cast<int>(message.ints.size())); in TEST()
122 EXPECT_EQ(1, *(message.ints[0])); in TEST()
123 EXPECT_EQ(2, *(message.ints[1])); in TEST()
217 EXPECT_EQ(2, static_cast<int>(message.ints.size())); in TEST()
218 EXPECT_EQ(1, *(message.ints[0])); in TEST()
219 EXPECT_EQ(2, *(message.ints[1])); in TEST()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
DUtils.java35 static Integer[] ints = new Integer[INTEGER_POOL_MAX_VALUE+1]; field in Utils
46 if ( ints[x]==null ) { in integer()
47 ints[x] = new Integer(x); in integer()
49 return ints[x]; in integer()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/
DExtensionDescriptor.java47 int[] ints = new int[0xFE - 0x6A]; in allTags() local
52 ints[pos] = i; in allTags()
54 return ints; in allTags()
/external/mesa3d/src/gallium/drivers/radeon/
DAMDGPUInstrInfo.td40 // out = max(a, b) a and b are signed ints
45 // out = max(a, b) a and b are unsigned ints
55 // out = min(a, b) a snd b are signed ints
60 // out = min(a, b) a and b are unsigned ints
/external/valgrind/mpi/
Dlibmpiwrap.c673 int* ints = NULL; in walk_type() local
755 ints = malloc(n_ints * sizeof(int)); in walk_type()
756 assert(ints); in walk_type()
768 ints, addrs, dtys ); in walk_type()
775 walk_type_array( f, base, dtys[0], ints[0] ); in walk_type()
784 (int)ints[0], (int)ints[1], (int)ints[2]); in walk_type()
785 for (i = 0; i < ints[0]; i++) { in walk_type()
786 walk_type_array( f, base + i * ints[2]/*stride*/ * ex, in walk_type()
787 dtys[0], ints[1]/*blocklength*/ ); in walk_type()
797 (int)ints[0], (int)ints[1], (int)addrs[0]); in walk_type()
[all …]
/external/libchrome/base/metrics/
Dbucket_ranges.cc95 uint16_t ints[sizeof(HistogramBase::Sample) / 2]; in Crc32() member
99 sum += converter.ints[0]; in Crc32()
100 sum = (sum << 16) ^ sum ^ (static_cast<uint32_t>(converter.ints[1]) << 11); in Crc32()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralSamples.java196 List<Integer> ints = new ArrayList<Integer>(result); in fractions() local
199 for (int j = 0; j < ints.size(); ++j) { in fractions()
200 Integer base = ints.get(j); in fractions()
208 Integer fract = getDifferentCategory(ints, keyword); in fractions()
227 private Integer getDifferentCategory(List<Integer> ints, String keyword) { in getDifferentCategory() argument
228 for (int i = ints.size() - 1; i >= 0; --i) { in getDifferentCategory()
229 Integer other = ints.get(i); in getDifferentCategory()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DPluralSamples.java198 List<Integer> ints = new ArrayList<Integer>(result); in fractions() local
201 for (int j = 0; j < ints.size(); ++j) { in fractions()
202 Integer base = ints.get(j); in fractions()
210 Integer fract = getDifferentCategory(ints, keyword); in fractions()
229 private Integer getDifferentCategory(List<Integer> ints, String keyword) { in getDifferentCategory() argument
230 for (int i = ints.size() - 1; i >= 0; --i) { in getDifferentCategory()
231 Integer other = ints.get(i); in getDifferentCategory()
/external/guava/guava-tests/benchmark/com/google/common/math/
DIntMathRoundingBenchmark.java40 private static final int[] ints = new int[ARRAY_SIZE]; field in IntMathRoundingBenchmark
47 ints[i] = RANDOM_SOURCE.nextInt(); in setUp()
85 tmp += IntMath.divide(ints[j], nonzero[j], mode); in divide()
DIntMathBenchmark.java41 private static final int[] ints = new int[ARRAY_SIZE]; field in IntMathBenchmark
51 ints[i] = RANDOM_SOURCE.nextInt(); in setUp()
68 tmp += IntMath.mod(ints[j], positive[j]); in mod()
/external/guava/guava-tests/test/com/google/common/collect/
DOrderingTest.java421 List<Integer> ints = Lists.newArrayList(0, 2, 3, 5, 7, 9);
422 assertEquals(4, numberOrdering.binarySearch(ints, 7));
741 List<Integer> ints = Lists.newArrayList(5, 3, 0, 9);
742 assertEquals(9, (int) numberOrdering.max(ints.iterator()));
743 assertEquals(0, (int) numberOrdering.min(ints.iterator()));
748 ints = Lists.newArrayList(a, b, b);
749 assertSame(a, numberOrdering.max(ints.iterator()));
750 assertSame(a, numberOrdering.min(ints.iterator()));
754 List<Integer> ints = Lists.newArrayList(9, 0, 3, 5);
755 Iterator<Integer> iterator = ints.iterator();
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DOrderingTest.java419 List<Integer> ints = Lists.newArrayList(0, 2, 3, 5, 7, 9);
420 assertEquals(4, numberOrdering.binarySearch(ints, 7));
734 List<Integer> ints = Lists.newArrayList(5, 3, 0, 9);
735 assertEquals(9, (int) numberOrdering.max(ints.iterator()));
736 assertEquals(0, (int) numberOrdering.min(ints.iterator()));
741 ints = Lists.newArrayList(a, b, b);
742 assertSame(a, numberOrdering.max(ints.iterator()));
743 assertSame(a, numberOrdering.min(ints.iterator()));
747 List<Integer> ints = Lists.newArrayList(9, 0, 3, 5);
748 Iterator<Integer> iterator = ints.iterator();
[all …]
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
Dp5.cpp59 int ints[] = {1, 2, 3}; variable
60 template <const auto (*a)[3] = &ints> class D { }; // expected-error{{'auto' not allowed in templat…
/external/llvm/lib/Target/AMDGPU/
DAMDGPUInstrInfo.td82 // out = max(a, b) a and b are signed ints
87 // out = max(a, b) a and b are unsigned ints
104 // out = max(a, b, c) a, b, and c are signed ints
109 // out = max(a, b, c) a, b and c are unsigned ints
119 // out = min(a, b, c) a, b and c are signed ints
124 // out = min(a, b) a and b are unsigned ints
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DParcelTest.java100 final int[] ints = {1, 2}; in testReadWriteIntArray() local
101 parcel.writeIntArray(ints); in testReadWriteIntArray()
103 final int[] ints2 = new int[ints.length]; in testReadWriteIntArray()
105 assertTrue(Arrays.equals(ints, ints2)); in testReadWriteIntArray()
427 final int[] ints = {1, 2}; in testWriteCreateIntArray() local
428 parcel.writeIntArray(ints); in testWriteCreateIntArray()
431 assertTrue(Arrays.equals(ints, ints2)); in testWriteCreateIntArray()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/localeconverter/
DXLIFF2ICUConverter.java976 ResourceInt[] ints = new ResourceInt[2]; in parseTransUnit() local
977 ints[0] = new ResourceInt(); in parseTransUnit()
978 ints[1] = new ResourceInt(); in parseTransUnit()
979 parseResourceInt(node, ints); in parseTransUnit()
980 ints[0].translate = ints[1].translate = translate; in parseTransUnit()
981 set[0] = ints[0]; in parseTransUnit()
982 set[1] = ints[1]; in parseTransUnit()
984 ResourceAlias[] ints = new ResourceAlias[2]; in parseTransUnit() local
985 ints[0] = new ResourceAlias(); in parseTransUnit()
986 ints[1] = new ResourceAlias(); in parseTransUnit()
[all …]
/external/webrtc/talk/app/webrtc/
Dstatscollector.cc129 const IntForAdd ints[] = { in SetAudioProcessingStats() local
136 for (const auto& i : ints) in SetAudioProcessingStats()
152 const IntForAdd ints[] = { in ExtractStats() local
173 for (const auto& i : ints) in ExtractStats()
191 const IntForAdd ints[] = { in ExtractStats() local
198 for (const auto& i : ints) in ExtractStats()
210 const IntForAdd ints[] = { in ExtractStats() local
231 for (const auto& i : ints) in ExtractStats()
247 const IntForAdd ints[] = { in ExtractStats() local
265 for (const auto& i : ints) in ExtractStats()
[all …]
/external/clang/test/SemaCXX/
Dconstant-expression-cxx1y.cpp509 template<int...N> struct ints {}; struct
511 template<int...As, int...Bs> struct join_ints<ints<As...>, ints<Bs...>> {
512 using type = ints<As..., sizeof...(As) + Bs...>;
517 template<> struct make_ints<0> { using type = ints<>; };
518 template<> struct make_ints<1> { using type = ints<0>; };
528 template<int ...I, typename ...X> constexpr void init(ints<I...>, X ...x) { in init()
760 constexpr int sum(std::initializer_list<int> ints) { in sum() argument
762 for (int n : ints) total += n; in sum()

123456