/external/skia/src/core/ |
D | SkContourMeasure.cpp | 170 SkScalar SkContourMeasureIter::compute_quad_segs(const SkPoint pts[3], SkScalar distance, in compute_quad_segs() argument 177 distance = this->compute_quad_segs(tmp, distance, mint, halft, ptIndex); in compute_quad_segs() 178 distance = this->compute_quad_segs(&tmp[2], distance, halft, maxt, ptIndex); in compute_quad_segs() 181 SkScalar prevD = distance; in compute_quad_segs() 182 distance += d; in compute_quad_segs() 183 if (distance > prevD) { in compute_quad_segs() 186 seg->fDistance = distance; in compute_quad_segs() 192 return distance; in compute_quad_segs() 195 SkScalar SkContourMeasureIter::compute_conic_segs(const SkConic& conic, SkScalar distance, in compute_conic_segs() argument 202 return distance; in compute_conic_segs() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/ |
D | erase_key.pass.cpp | 60 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 …]
|
D | erase_range.pass.cpp | 47 assert(std::distance(eq.first, eq.second) == 2); in main() 55 assert(std::distance(eq.first, eq.second) == 2); in main() 63 assert(std::distance(eq.first, eq.second) == 1); in main() 68 assert(std::distance(eq.first, eq.second) == 1); in main() 72 assert(static_cast<std::size_t>(std::distance(c.begin(), c.end())) == c.size()); in main() 73 assert(static_cast<std::size_t>(std::distance(c.cbegin(), c.cend())) == c.size()); in main() 78 assert(std::distance(eq.first, eq.second) == 2); in main() 86 assert(std::distance(eq.first, eq.second) == 1); in main() 91 assert(std::distance(eq.first, eq.second) == 1); in main() 95 assert(static_cast<std::size_t>(std::distance(c.begin(), c.end())) == c.size()); in main() [all …]
|
/external/skqp/src/core/ |
D | SkPathMeasure.cpp | 233 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/ |
D | local_iterators.pass.cpp | 48 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 …]
|
D | local_iterators.fail.cpp | 48 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 …]
|
D | swap_member.pass.cpp | 45 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 46 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() 54 assert(static_cast<std::size_t>(std::distance(c2.begin(), c2.end())) == c2.size()); in main() 55 assert(static_cast<std::size_t>(std::distance(c2.cbegin(), c2.cend())) == c2.size()); in main() 93 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 94 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() 102 assert(static_cast<std::size_t>(std::distance(c2.begin(), c2.end())) == c2.size()); in main() 103 assert(static_cast<std::size_t>(std::distance(c2.cbegin(), c2.cend())) == c2.size()); in main() 131 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 132 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/list/list.ops/ |
D | splice_pos_list.pass.cpp | 29 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 …]
|
D | splice_pos_list_iter.pass.cpp | 29 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/libcxx/test/std/containers/unord/unord.set/ |
D | local_iterators.pass.cpp | 48 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 …]
|
D | local_iterators.fail.cpp | 46 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 …]
|
D | swap_member.pass.cpp | 45 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 46 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() 54 assert(static_cast<std::size_t>(std::distance(c2.begin(), c2.end())) == c2.size()); in main() 55 assert(static_cast<std::size_t>(std::distance(c2.cbegin(), c2.cend())) == c2.size()); in main() 93 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 94 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() 102 assert(static_cast<std::size_t>(std::distance(c2.begin(), c2.end())) == c2.size()); in main() 103 assert(static_cast<std::size_t>(std::distance(c2.cbegin(), c2.cend())) == c2.size()); in main() 131 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 132 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() [all …]
|
/external/xz-java/src/org/tukaani/xz/ |
D | DeltaOptions.java | 40 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/u-boot/fs/jffs2/ |
D | mini_inflate.c | 53 stream->distance.bits = 16; in init_stream() 54 stream->distance.num_symbols = 32; in init_stream() 55 stream->distance.lengths = stream->distance_lengths; in init_stream() 56 stream->distance.symbols = stream->distance_symbols; in init_stream() 57 stream->distance.count = stream->distance_count; in init_stream() 58 stream->distance.first = stream->distance_first; in init_stream() 59 stream->distance.pos = stream->distance_pos; in init_stream() 142 struct huffman_set *distance = &(stream->distance); in decompress_huffman() local 164 if ((symbol = read_symbol(stream, distance)) < 0) in decompress_huffman() 226 struct huffman_set *distance = &(stream->distance); in decompress_dynamic() local [all …]
|
/external/libcxx/test/std/containers/unord/unord.map/ |
D | local_iterators.pass.cpp | 49 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 …]
|
D | swap_member.pass.cpp | 46 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 47 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() 55 assert(static_cast<std::size_t>(std::distance(c2.begin(), c2.end())) == c2.size()); in main() 56 assert(static_cast<std::size_t>(std::distance(c2.cbegin(), c2.cend())) == c2.size()); in main() 94 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 95 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() 103 assert(static_cast<std::size_t>(std::distance(c2.begin(), c2.end())) == c2.size()); in main() 104 assert(static_cast<std::size_t>(std::distance(c2.cbegin(), c2.cend())) == c2.size()); in main() 132 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 133 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() [all …]
|
/external/webp/src/dsp/ |
D | lossless_common.h | 99 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/libcxx/test/std/containers/sequences/forwardlist/forwardlist.modifiers/ |
D | resize_size.pass.cpp | 27 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.multimap/ |
D | local_iterators.pass.cpp | 50 assert(std::distance(i, j) == 0); in main() 55 assert(std::distance(i, j) == 2); in main() 72 assert(std::distance(i, j) == 2); in main() 89 assert(std::distance(i, j) == 1); in main() 96 assert(std::distance(i, j) == 1); in main() 103 assert(std::distance(i, j) == 0); in main() 108 assert(std::distance(i, j) == 0); in main() 128 assert(std::distance(i, j) == 0); in main() 133 assert(std::distance(i, j) == 2); in main() 150 assert(std::distance(i, j) == 2); in main() [all …]
|
D | local_iterators.fail.cpp | 49 assert(std::distance(i, j) == 0); in main() 54 assert(std::distance(i, j) == 2); in main() 65 assert(std::distance(i, j) == 2); in main() 75 assert(std::distance(i, j) == 1); in main() 82 assert(std::distance(i, j) == 1); in main() 89 assert(std::distance(i, j) == 0); in main() 94 assert(std::distance(i, j) == 0); in main() 114 assert(std::distance(i, j) == 0); in main() 119 assert(std::distance(i, j) == 2); in main() 129 assert(std::distance(i, j) == 2); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/ |
D | swap_non_member.pass.cpp | 45 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 46 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() 54 assert(static_cast<std::size_t>(std::distance(c2.begin(), c2.end())) == c2.size()); in main() 55 assert(static_cast<std::size_t>(std::distance(c2.cbegin(), c2.cend())) == c2.size()); in main() 93 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 94 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() 102 assert(static_cast<std::size_t>(std::distance(c2.begin(), c2.end())) == c2.size()); in main() 103 assert(static_cast<std::size_t>(std::distance(c2.cbegin(), c2.cend())) == c2.size()); in main() 131 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 132 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/ |
D | swap_non_member.pass.cpp | 45 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 46 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() 54 assert(static_cast<std::size_t>(std::distance(c2.begin(), c2.end())) == c2.size()); in main() 55 assert(static_cast<std::size_t>(std::distance(c2.cbegin(), c2.cend())) == c2.size()); in main() 93 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 94 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() 102 assert(static_cast<std::size_t>(std::distance(c2.begin(), c2.end())) == c2.size()); in main() 103 assert(static_cast<std::size_t>(std::distance(c2.cbegin(), c2.cend())) == c2.size()); in main() 131 assert(static_cast<std::size_t>(std::distance(c1.begin(), c1.end())) == c1.size()); in main() 132 assert(static_cast<std::size_t>(std::distance(c1.cbegin(), c1.cend())) == c1.size()); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/ |
D | init.pass.cpp | 54 assert(std::distance(eq.first, eq.second) == 2); in main() 62 assert(std::distance(eq.first, eq.second) == 2); in main() 71 assert(std::distance(eq.first, eq.second) == 1); in main() 76 assert(std::distance(eq.first, eq.second) == 1); in main() 80 assert(static_cast<std::size_t>(std::distance(c.begin(), c.end())) == c.size()); in main() 81 assert(static_cast<std::size_t>(std::distance(c.cbegin(), c.cend())) == c.size()); in main() 107 assert(std::distance(eq.first, eq.second) == 2); in main() 115 assert(std::distance(eq.first, eq.second) == 2); in main() 124 assert(std::distance(eq.first, eq.second) == 1); in main() 129 assert(std::distance(eq.first, eq.second) == 1); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/forwardlist/forwardlist.spec/ |
D | non_member_swap.pass.cpp | 33 assert(distance(c1.begin(), c1.end()) == 3); in main() 39 assert(distance(c2.begin(), c2.end()) == 6); in main() 57 assert(distance(c1.begin(), c1.end()) == 0); in main() 60 assert(distance(c2.begin(), c2.end()) == 6); in main() 78 assert(distance(c1.begin(), c1.end()) == 3); in main() 84 assert(distance(c2.begin(), c2.end()) == 0); in main() 95 assert(distance(c1.begin(), c1.end()) == 0); in main() 98 assert(distance(c2.begin(), c2.end()) == 0); in main() 112 assert(distance(c1.begin(), c1.end()) == 3); in main() 118 assert(distance(c2.begin(), c2.end()) == 6); in main() [all …]
|
D | member_swap.pass.cpp | 32 assert(distance(c1.begin(), c1.end()) == 3); in main() 38 assert(distance(c2.begin(), c2.end()) == 6); in main() 56 assert(distance(c1.begin(), c1.end()) == 0); in main() 59 assert(distance(c2.begin(), c2.end()) == 6); in main() 77 assert(distance(c1.begin(), c1.end()) == 3); in main() 83 assert(distance(c2.begin(), c2.end()) == 0); in main() 94 assert(distance(c1.begin(), c1.end()) == 0); in main() 97 assert(distance(c2.begin(), c2.end()) == 0); in main() 111 assert(distance(c1.begin(), c1.end()) == 3); in main() 117 assert(distance(c2.begin(), c2.end()) == 6); in main() [all …]
|