Home
last modified time | relevance | path

Searched refs:distance (Results 1 – 25 of 2192) sorted by relevance

12345678910>>...88

/external/llvm-project/clang-tools-extra/clangd/unittests/
DFileDistanceTests.cpp31 EXPECT_EQ(D.distance("tools/clang/lib/Format/FormatToken.cpp"), 0u); in TEST()
32 EXPECT_EQ(D.distance("include/llvm/ADT/StringRef.h"), 2u); in TEST()
34 EXPECT_EQ(D.distance("tools/clang/lib/Format/"), 5u); in TEST()
36 EXPECT_EQ(D.distance("tools/clang/lib/Format/FormatToken.cpp/Oops"), 3u); in TEST()
38 EXPECT_EQ(D.distance("/"), 22u); in TEST()
40 EXPECT_EQ(D.distance("tools/clang/lib/Format/AnotherFile.cpp"), 8u); in TEST()
42 EXPECT_EQ(D.distance("include/llvm/Support/Allocator.h"), 18u); in TEST()
44 EXPECT_EQ(D.distance("include/llvm-c/Core.h"), 23u); in TEST()
55 EXPECT_EQ(D.distance("b"), 8u); // a+up+down, not b+up+up in TEST()
56 EXPECT_EQ(D.distance("b/b/b"), 14u); // a+up+down+down+down, not b in TEST()
[all …]
/external/skia/src/core/
DSkContourMeasure.cpp197 SkScalar compute_line_seg(SkPoint p0, SkPoint p1, SkScalar distance, unsigned ptIndex);
198 SkScalar compute_quad_segs(const SkPoint pts[3], SkScalar distance,
200 SkScalar compute_conic_segs(const SkConic& conic, SkScalar distance,
204 SkScalar compute_cubic_segs(const SkPoint pts[4], SkScalar distance,
208 SkScalar SkContourMeasureIter::Impl::compute_quad_segs(const SkPoint pts[3], SkScalar distance, in compute_quad_segs() argument
215 distance = this->compute_quad_segs(tmp, distance, mint, halft, ptIndex); in compute_quad_segs()
216 distance = this->compute_quad_segs(&tmp[2], distance, halft, maxt, ptIndex); in compute_quad_segs()
219 SkScalar prevD = distance; in compute_quad_segs()
220 distance += d; in compute_quad_segs()
221 if (distance > prevD) { in compute_quad_segs()
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/
Derase_key.pass.cpp62 assert(std::distance(eq.first, eq.second) == 2); in main()
68 assert(std::distance(eq.first, eq.second) == 2); in main()
73 assert(std::distance(eq.first, eq.second) == 1); in main()
78 assert(std::distance(eq.first, eq.second) == 1); in main()
82 assert(static_cast<std::size_t>(std::distance(c.begin(), c.end())) == c.size()); in main()
83 assert(static_cast<std::size_t>(std::distance(c.cbegin(), c.cend())) == c.size()); in main()
88 assert(std::distance(eq.first, eq.second) == 2); in main()
93 assert(std::distance(eq.first, eq.second) == 1); in main()
98 assert(std::distance(eq.first, eq.second) == 1); in main()
102 assert(static_cast<std::size_t>(std::distance(c.begin(), c.end())) == c.size()); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/
Derase_key.pass.cpp60 assert(std::distance(eq.first, eq.second) == 2); in main()
68 assert(std::distance(eq.first, eq.second) == 2); in main()
76 assert(std::distance(eq.first, eq.second) == 1); in main()
81 assert(std::distance(eq.first, eq.second) == 1); in main()
85 assert(static_cast<std::size_t>(std::distance(c.begin(), c.end())) == c.size()); in main()
86 assert(static_cast<std::size_t>(std::distance(c.cbegin(), c.cend())) == c.size()); in main()
91 assert(std::distance(eq.first, eq.second) == 2); in main()
99 assert(std::distance(eq.first, eq.second) == 1); in main()
104 assert(std::distance(eq.first, eq.second) == 1); in main()
108 assert(static_cast<std::size_t>(std::distance(c.begin(), c.end())) == c.size()); in main()
[all …]
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DDistanceTable.java75 public void addDistance(int distance, boolean oneway, String... args) { in addDistance() argument
76 MappingKey key = MappingKey.fromSubtags(args, distance); in addDistance()
79 if (key.getDepth() == 3 && distance < minRegionDistance) { in addDistance()
80 minRegionDistance = distance; in addDistance()
107 distances[IX_DEF_LANG_DISTANCE] = defLangNode.distance; in build()
108 distances[IX_DEF_SCRIPT_DISTANCE] = defScriptNode.distance; in build()
109 distances[IX_DEF_REGION_DISTANCE] = defRegionNode.distance; in build()
115 pruneDefaultDistances(defScriptNode.distance, defRegionNode.distance); in build()
136 if (defRegionNode.distance == defRegionDistance) { in pruneDefaultDistances()
148 if (defScriptNode.distance == defScriptDistance) { in pruneDefaultDistances()
[all …]
/external/skqp/src/core/
DSkPathMeasure.cpp233 SkScalar distance, int mint, int maxt, unsigned ptIndex) { in compute_quad_segs() argument
242 distance = this->compute_quad_segs(tmp, distance, mint, halft, ptIndex); in compute_quad_segs()
243 distance = this->compute_quad_segs(&tmp[2], distance, halft, maxt, ptIndex); in compute_quad_segs()
246 SkScalar prevD = distance; in compute_quad_segs()
247 distance += d; in compute_quad_segs()
248 if (distance > prevD) { in compute_quad_segs()
250 seg->fDistance = distance; in compute_quad_segs()
256 return distance; in compute_quad_segs()
259 SkScalar SkPathMeasure::compute_conic_segs(const SkConic& conic, SkScalar distance, in compute_conic_segs() argument
268 return distance; in compute_conic_segs()
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/
Dlocal_iterators.pass.cpp48 assert(std::distance(i, j) == 0); in main()
53 assert(std::distance(i, j) == 2); in main()
61 assert(std::distance(i, j) == 2); in main()
69 assert(std::distance(i, j) == 1); in main()
75 assert(std::distance(i, j) == 1); in main()
81 assert(std::distance(i, j) == 0); in main()
86 assert(std::distance(i, j) == 0); in main()
106 assert(std::distance(i, j) == 0); in main()
111 assert(std::distance(i, j) == 2); in main()
119 assert(std::distance(i, j) == 2); in main()
[all …]
Dlocal_iterators.fail.cpp48 assert(std::distance(i, j) == 0); in main()
53 assert(std::distance(i, j) == 2); in main()
62 assert(std::distance(i, j) == 2); in main()
70 assert(std::distance(i, j) == 1); in main()
76 assert(std::distance(i, j) == 1); in main()
82 assert(std::distance(i, j) == 0); in main()
87 assert(std::distance(i, j) == 0); in main()
107 assert(std::distance(i, j) == 0); in main()
112 assert(std::distance(i, j) == 2); in main()
120 assert(std::distance(i, j) == 2); in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.multiset/
Dlocal_iterators.pass.cpp48 assert(std::distance(i, j) == 0); in main()
53 assert(std::distance(i, j) == 2); in main()
61 assert(std::distance(i, j) == 2); in main()
69 assert(std::distance(i, j) == 1); in main()
75 assert(std::distance(i, j) == 1); in main()
81 assert(std::distance(i, j) == 0); in main()
86 assert(std::distance(i, j) == 0); in main()
106 assert(std::distance(i, j) == 0); in main()
111 assert(std::distance(i, j) == 2); in main()
119 assert(std::distance(i, j) == 2); in main()
[all …]
Dlocal_iterators.compile.fail.cpp47 assert(std::distance(i, j) == 0); in main()
52 assert(std::distance(i, j) == 2); in main()
61 assert(std::distance(i, j) == 2); in main()
69 assert(std::distance(i, j) == 1); in main()
75 assert(std::distance(i, j) == 1); in main()
81 assert(std::distance(i, j) == 0); in main()
86 assert(std::distance(i, j) == 0); in main()
106 assert(std::distance(i, j) == 0); in main()
111 assert(std::distance(i, j) == 2); in main()
119 assert(std::distance(i, j) == 2); in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/sequences/list/list.ops/
Dsplice_pos_list.pass.cpp28 assert(distance(l1.begin(), l1.end()) == 0); in main()
30 assert(distance(l2.begin(), l2.end()) == 0); in main()
37 assert(distance(l1.begin(), l1.end()) == 1); in main()
39 assert(distance(l2.begin(), l2.end()) == 0); in main()
48 assert(distance(l1.begin(), l1.end()) == 2); in main()
50 assert(distance(l2.begin(), l2.end()) == 0); in main()
61 assert(distance(l1.begin(), l1.end()) == 3); in main()
63 assert(distance(l2.begin(), l2.end()) == 0); in main()
76 assert(distance(l1.begin(), l1.end()) == 1); in main()
78 assert(distance(l2.begin(), l2.end()) == 0); in main()
[all …]
Dsplice_pos_list_iter.pass.cpp28 assert(distance(l1.begin(), l1.end()) == 1); in main()
30 assert(distance(l2.begin(), l2.end()) == 0); in main()
39 assert(distance(l1.begin(), l1.end()) == 1); in main()
41 assert(distance(l2.begin(), l2.end()) == 1); in main()
52 assert(distance(l1.begin(), l1.end()) == 1); in main()
54 assert(distance(l2.begin(), l2.end()) == 1); in main()
65 assert(distance(l1.begin(), l1.end()) == 1); in main()
67 assert(distance(l2.begin(), l2.end()) == 2); in main()
80 assert(distance(l1.begin(), l1.end()) == 1); in main()
82 assert(distance(l2.begin(), l2.end()) == 2); in main()
[all …]
/external/libcxx/test/std/containers/sequences/list/list.ops/
Dsplice_pos_list.pass.cpp29 assert(distance(l1.begin(), l1.end()) == 0); in main()
31 assert(distance(l2.begin(), l2.end()) == 0); in main()
38 assert(distance(l1.begin(), l1.end()) == 1); in main()
40 assert(distance(l2.begin(), l2.end()) == 0); in main()
49 assert(distance(l1.begin(), l1.end()) == 2); in main()
51 assert(distance(l2.begin(), l2.end()) == 0); in main()
62 assert(distance(l1.begin(), l1.end()) == 3); in main()
64 assert(distance(l2.begin(), l2.end()) == 0); in main()
77 assert(distance(l1.begin(), l1.end()) == 1); in main()
79 assert(distance(l2.begin(), l2.end()) == 0); in main()
[all …]
Dsplice_pos_list_iter.pass.cpp29 assert(distance(l1.begin(), l1.end()) == 1); in main()
31 assert(distance(l2.begin(), l2.end()) == 0); in main()
40 assert(distance(l1.begin(), l1.end()) == 1); in main()
42 assert(distance(l2.begin(), l2.end()) == 1); in main()
53 assert(distance(l1.begin(), l1.end()) == 1); in main()
55 assert(distance(l2.begin(), l2.end()) == 1); in main()
66 assert(distance(l1.begin(), l1.end()) == 1); in main()
68 assert(distance(l2.begin(), l2.end()) == 2); in main()
81 assert(distance(l1.begin(), l1.end()) == 1); in main()
83 assert(distance(l2.begin(), l2.end()) == 2); in main()
[all …]
/external/xz-java/src/org/tukaani/xz/
DDeltaOptions.java40 private int distance = DISTANCE_MIN; field in DeltaOptions
50 public DeltaOptions(int distance) throws UnsupportedOptionsException { in DeltaOptions() argument
51 setDistance(distance); in DeltaOptions()
58 public void setDistance(int distance) throws UnsupportedOptionsException { in setDistance() argument
59 if (distance < DISTANCE_MIN || distance > DISTANCE_MAX) in setDistance()
62 + ", " + DISTANCE_MAX + "]: " + distance); in setDistance()
64 this.distance = distance; in setDistance()
71 return distance; in getDistance()
88 return new DeltaInputStream(in, distance); in getInputStream()
/external/icu/icu4c/source/common/
Dlocdistance.cpp127 int32_t distance = desLangDistance; in getBestIndexAndDistance() local
128 if (distance >= 0) { in getBestIndexAndDistance()
129 U_ASSERT((distance & DISTANCE_IS_FINAL) == 0); in getBestIndexAndDistance()
133 distance = trieNext(iter, supported.language, true); in getBestIndexAndDistance()
140 if (distance >= 0) { in getBestIndexAndDistance()
141 flags = distance & DISTANCE_IS_FINAL_OR_SKIP_SCRIPT; in getBestIndexAndDistance()
142 distance &= ~DISTANCE_IS_FINAL_OR_SKIP_SCRIPT; in getBestIndexAndDistance()
145 distance = 0; in getBestIndexAndDistance()
147 distance = defaultLanguageDistance; in getBestIndexAndDistance()
152 U_ASSERT(0 <= distance && distance <= 100); in getBestIndexAndDistance()
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.set/
Dlocal_iterators.pass.cpp48 assert(std::distance(i, j) == 0); in main()
53 assert(std::distance(i, j) == 1); in main()
59 assert(std::distance(i, j) == 1); in main()
65 assert(std::distance(i, j) == 1); in main()
71 assert(std::distance(i, j) == 1); in main()
92 assert(std::distance(i, j) == 0); in main()
97 assert(std::distance(i, j) == 1); in main()
103 assert(std::distance(i, j) == 1); in main()
109 assert(std::distance(i, j) == 1); in main()
115 assert(std::distance(i, j) == 1); in main()
[all …]
Dlocal_iterators.compile.fail.cpp45 assert(std::distance(i, j) == 0); in main()
50 assert(std::distance(i, j) == 2); in main()
59 assert(std::distance(i, j) == 2); in main()
67 assert(std::distance(i, j) == 1); in main()
73 assert(std::distance(i, j) == 1); in main()
79 assert(std::distance(i, j) == 0); in main()
84 assert(std::distance(i, j) == 0); in main()
104 assert(std::distance(i, j) == 0); in main()
109 assert(std::distance(i, j) == 2); in main()
117 assert(std::distance(i, j) == 2); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/
Dlocal_iterators.pass.cpp48 assert(std::distance(i, j) == 0); in main()
53 assert(std::distance(i, j) == 1); in main()
59 assert(std::distance(i, j) == 1); in main()
65 assert(std::distance(i, j) == 1); in main()
71 assert(std::distance(i, j) == 1); in main()
92 assert(std::distance(i, j) == 0); in main()
97 assert(std::distance(i, j) == 1); in main()
103 assert(std::distance(i, j) == 1); in main()
109 assert(std::distance(i, j) == 1); in main()
115 assert(std::distance(i, j) == 1); in main()
[all …]
Dlocal_iterators.fail.cpp46 assert(std::distance(i, j) == 0); in main()
51 assert(std::distance(i, j) == 2); in main()
60 assert(std::distance(i, j) == 2); in main()
68 assert(std::distance(i, j) == 1); in main()
74 assert(std::distance(i, j) == 1); in main()
80 assert(std::distance(i, j) == 0); in main()
85 assert(std::distance(i, j) == 0); in main()
105 assert(std::distance(i, j) == 0); in main()
110 assert(std::distance(i, j) == 2); in main()
118 assert(std::distance(i, j) == 2); in main()
[all …]
/external/webp/src/dsp/
Dlossless_common.h99 static WEBP_INLINE void VP8LPrefixEncodeBitsNoLUT(int distance, int* const code, in VP8LPrefixEncodeBitsNoLUT() argument
101 const int highest_bit = BitsLog2Floor(--distance); in VP8LPrefixEncodeBitsNoLUT()
102 const int second_highest_bit = (distance >> (highest_bit - 1)) & 1; in VP8LPrefixEncodeBitsNoLUT()
107 static WEBP_INLINE void VP8LPrefixEncodeNoLUT(int distance, int* const code, in VP8LPrefixEncodeNoLUT() argument
110 const int highest_bit = BitsLog2Floor(--distance); in VP8LPrefixEncodeNoLUT()
111 const int second_highest_bit = (distance >> (highest_bit - 1)) & 1; in VP8LPrefixEncodeNoLUT()
113 *extra_bits_value = distance & ((1 << *extra_bits) - 1); in VP8LPrefixEncodeNoLUT()
126 static WEBP_INLINE void VP8LPrefixEncodeBits(int distance, int* const code, in VP8LPrefixEncodeBits() argument
128 if (distance < PREFIX_LOOKUP_IDX_MAX) { in VP8LPrefixEncodeBits()
129 const VP8LPrefixCode prefix_code = kPrefixEncodeCode[distance]; in VP8LPrefixEncodeBits()
[all …]
/external/llvm-project/libcxx/test/std/containers/sequences/forwardlist/forwardlist.modifiers/
Dresize_size.pass.cpp27 assert(distance(c.begin(), c.end()) == 0); in main()
29 assert(distance(c.begin(), c.end()) == 10); in main()
31 assert(distance(c.begin(), c.end()) == 20); in main()
33 assert(distance(c.begin(), c.end()) == 5); in main()
35 assert(distance(c.begin(), c.end()) == 0); in main()
44 assert(distance(c.begin(), c.end()) == 3); in main()
50 assert(distance(c.begin(), c.end()) == 6); in main()
59 assert(distance(c.begin(), c.end()) == 6); in main()
73 assert(distance(c.begin(), c.end()) == 0); in main()
75 assert(distance(c.begin(), c.end()) == 10); in main()
[all …]
/external/libcxx/test/std/containers/sequences/forwardlist/forwardlist.modifiers/
Dresize_size.pass.cpp27 assert(distance(c.begin(), c.end()) == 0); in main()
29 assert(distance(c.begin(), c.end()) == 10); in main()
31 assert(distance(c.begin(), c.end()) == 20); in main()
33 assert(distance(c.begin(), c.end()) == 5); in main()
35 assert(distance(c.begin(), c.end()) == 0); in main()
44 assert(distance(c.begin(), c.end()) == 3); in main()
50 assert(distance(c.begin(), c.end()) == 6); in main()
59 assert(distance(c.begin(), c.end()) == 6); in main()
73 assert(distance(c.begin(), c.end()) == 0); in main()
75 assert(distance(c.begin(), c.end()) == 10); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/
Dlocal_iterators.pass.cpp49 assert(std::distance(i, j) == 0); in main()
54 assert(std::distance(i, j) == 1); in main()
61 assert(std::distance(i, j) == 1); in main()
68 assert(std::distance(i, j) == 1); in main()
75 assert(std::distance(i, j) == 1); in main()
97 assert(std::distance(i, j) == 0); in main()
102 assert(std::distance(i, j) == 1); in main()
109 assert(std::distance(i, j) == 1); in main()
116 assert(std::distance(i, j) == 1); in main()
123 assert(std::distance(i, j) == 1); in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.map/
Dlocal_iterators.pass.cpp49 assert(std::distance(i, j) == 0); in main()
54 assert(std::distance(i, j) == 1); in main()
61 assert(std::distance(i, j) == 1); in main()
68 assert(std::distance(i, j) == 1); in main()
75 assert(std::distance(i, j) == 1); in main()
97 assert(std::distance(i, j) == 0); in main()
102 assert(std::distance(i, j) == 1); in main()
109 assert(std::distance(i, j) == 1); in main()
116 assert(std::distance(i, j) == 1); in main()
123 assert(std::distance(i, j) == 1); in main()
[all …]

12345678910>>...88