/third_party/boost/libs/geometry/test/algorithms/ |
D | maximum_gap.cpp | 81 RangeOfIntervals const& intervals, in test_one() argument 90 gap_type gap = bg::maximum_gap(intervals); in test_one() 94 it = boost::const_begin(intervals); in test_one() 95 it != boost::const_end(intervals); in test_one() 117 uint_intervals intervals; in BOOST_AUTO_TEST_CASE() local 119 …intervals = uint_intervals(3,4)(1,10)(5,11)(20,35)(12,14)(36,40)(39,41)(35,36)(37,37)(50,50)(50,51… in BOOST_AUTO_TEST_CASE() 120 test_one("case_01", intervals, 9); in BOOST_AUTO_TEST_CASE() 122 …intervals = uint_intervals(3,4)(1,10)(5,11)(20,35)(52,60)(12,14)(36,40)(39,41)(35,36)(37,37)(55,56… in BOOST_AUTO_TEST_CASE() 123 test_one("case_02", intervals, 11); in BOOST_AUTO_TEST_CASE() 125 intervals = uint_intervals(3,4); in BOOST_AUTO_TEST_CASE() [all …]
|
/third_party/boost/libs/random/test/ |
D | test_piecewise_constant_distribution.cpp | 51 CHECK_SEQUENCE(dist.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE() 58 CHECK_SEQUENCE(dist_il.intervals(), list_of(99)(103)(107)(111)(115)); in BOOST_AUTO_TEST_CASE() 65 CHECK_SEQUENCE(dist_il2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE() 68 std::vector<double> intervals = boost::assign::list_of(0)(1)(2)(3)(5); in BOOST_AUTO_TEST_CASE() local 73 boost::random::piecewise_constant_distribution<> dist_r(intervals, weights); in BOOST_AUTO_TEST_CASE() 74 CHECK_SEQUENCE(dist_r.intervals(), list_of(0)(1)(2)(3)(5)); in BOOST_AUTO_TEST_CASE() 79 CHECK_SEQUENCE(dist_r2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE() 83 intervals.begin(), intervals.end(), weights.begin()); in BOOST_AUTO_TEST_CASE() 84 CHECK_SEQUENCE(dist_it.intervals(), list_of(0)(1)(2)(3)(5)); in BOOST_AUTO_TEST_CASE() 89 CHECK_SEQUENCE(dist_it2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE() [all …]
|
D | test_piecewise_linear_distribution.cpp | 51 CHECK_SEQUENCE(dist.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE() 59 CHECK_SEQUENCE(dist_il.intervals(), list_of(99)(103)(107)(111)(115)); in BOOST_AUTO_TEST_CASE() 67 CHECK_SEQUENCE(dist_il2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE() 70 std::vector<double> intervals = boost::assign::list_of(0)(1)(2)(3)(5); in BOOST_AUTO_TEST_CASE() local 75 boost::random::piecewise_linear_distribution<> dist_r(intervals, weights); in BOOST_AUTO_TEST_CASE() 76 CHECK_SEQUENCE(dist_r.intervals(), list_of(0)(1)(2)(3)(5)); in BOOST_AUTO_TEST_CASE() 81 CHECK_SEQUENCE(dist_r2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE() 85 intervals.begin(), intervals.end(), weights.begin()); in BOOST_AUTO_TEST_CASE() 86 CHECK_SEQUENCE(dist_it.intervals(), list_of(0)(1)(2)(3)(5)); in BOOST_AUTO_TEST_CASE() 91 CHECK_SEQUENCE(dist_it2.intervals(), list_of(0.0)(1.0)); in BOOST_AUTO_TEST_CASE() [all …]
|
D | test_piecewise_linear.cpp | 29 piecewise_linear(const std::vector<double>& intervals, const std::vector<double>& weights) in piecewise_linear() argument 30 : intervals(intervals), in piecewise_linear() 49 assert(this->weights.size() == this->intervals.size()); in piecewise_linear() 55 std::size_t index = boost::lower_bound(intervals, x) - intervals.begin(); in cdf() 57 else if(index == intervals.size()) return 1; in cdf() 62 double lower = intervals[index - 1]; in cdf() 63 double upper = intervals[index]; in cdf() 70 std::vector<double> intervals; member in piecewise_linear 90 std::vector<double> intervals; in do_test() local 92 intervals.push_back(i); in do_test() [all …]
|
D | test_piecewise_constant.cpp | 28 piecewise_constant(const std::vector<double>& intervals, const std::vector<double>& weights) in piecewise_constant() argument 29 : intervals(intervals), in piecewise_constant() 42 std::size_t index = boost::lower_bound(intervals, x) - intervals.begin(); in cdf() 44 else if(index == intervals.size()) return 1; in cdf() 48 double lower = intervals[index - 1]; in cdf() 49 double upper = intervals[index]; in cdf() 54 std::vector<double> intervals; member in piecewise_constant 73 std::vector<double> intervals; in do_test() local 75 intervals.push_back(i); in do_test() 78 piecewise_constant expected(intervals, weights); in do_test() [all …]
|
/third_party/flutter/skia/gm/ |
D | texteffects.cpp | 179 static int trim_with_halo(SkScalar intervals[], int count, SkScalar margin) { in trim_with_halo() argument 183 SkScalar* stop = intervals + count; in trim_with_halo() 184 *intervals++ -= margin; in trim_with_halo() 185 while (intervals < stop - 1) { in trim_with_halo() 186 intervals[0] += margin; in trim_with_halo() 187 intervals[1] -= margin; in trim_with_halo() 188 if (intervals[0] >= intervals[1]) { // went away in trim_with_halo() 189 int remaining = stop - intervals - 2; in trim_with_halo() 192 memmove(intervals, intervals + 2, remaining * sizeof(SkScalar)); in trim_with_halo() 197 intervals += 2; in trim_with_halo() [all …]
|
D | bug530095.cpp | 27 SkScalar intervals[] = {700, 700 }; variable 28 int intervalCount = (int) SK_ARRAY_COUNT(intervals); 29 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, -40)); 43 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, 0)); 63 const SkScalar intervals[] = { 100, 100 }; variable 64 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 100));
|
/third_party/skia/gm/ |
D | texteffects.cpp | 179 static int trim_with_halo(SkScalar intervals[], int count, SkScalar margin) { in trim_with_halo() argument 183 SkScalar* stop = intervals + count; in trim_with_halo() 184 *intervals++ -= margin; in trim_with_halo() 185 while (intervals < stop - 1) { in trim_with_halo() 186 intervals[0] += margin; in trim_with_halo() 187 intervals[1] -= margin; in trim_with_halo() 188 if (intervals[0] >= intervals[1]) { // went away in trim_with_halo() 189 int remaining = stop - intervals - 2; in trim_with_halo() 192 memmove(intervals, intervals + 2, remaining * sizeof(SkScalar)); in trim_with_halo() 197 intervals += 2; in trim_with_halo() [all …]
|
D | bug530095.cpp | 26 SkScalar intervals[] = {700, 700 }; variable 27 int intervalCount = (int) SK_ARRAY_COUNT(intervals); 28 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, -40)); 42 paint.setPathEffect(SkDashPathEffect::Make(intervals, intervalCount, 0)); 62 const SkScalar intervals[] = { 100, 100 }; variable 63 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 100));
|
/third_party/flutter/skia/tests/ |
D | DashPathEffectTest.cpp | 28 SkScalar intervals[] = { 1.76934361e+36f, 2.80259693e-45f }; // Values from bug. in DEF_TEST() local 31 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, phase)); in DEF_TEST() 39 const SkScalar intervals[] = { 1.0f, 1.0f }; in DEF_TEST() local 41 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, 0.0f)); in DEF_TEST() 102 SkScalar intervals[2] = { 1, 1 }; in DEF_TEST() local 103 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, 2, 0)); in DEF_TEST() 122 const SkScalar intervals[] = { 1, 1 }; in DEF_TEST() local 123 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); in DEF_TEST()
|
/third_party/skia/tests/ |
D | DashPathEffectTest.cpp | 29 SkScalar intervals[] = { 1.76934361e+36f, 2.80259693e-45f }; // Values from bug. in DEF_TEST() local 32 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, phase)); in DEF_TEST() 40 const SkScalar intervals[] = { 1.0f, 1.0f }; in DEF_TEST() local 42 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, 0.0f)); in DEF_TEST() 103 SkScalar intervals[2] = { 1, 1 }; in DEF_TEST() local 104 sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, 2, 0)); in DEF_TEST() 123 const SkScalar intervals[] = { 1, 1 }; in DEF_TEST() local 124 p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 0)); in DEF_TEST()
|
/third_party/skia/src/core/ |
D | SkRegionPriv.h | 150 const int intervals = runs[1]; in SkipEntireScanline() local 151 SkASSERT(runs[2 + intervals * 2] == SkRegion_kRunTypeSentinel); in SkipEntireScanline() 155 SkASSERT(n == intervals); in SkipEntireScanline() 160 runs += 1 + 1 + intervals * 2 + 1; in SkipEntireScanline() 208 const int intervals = *runs++; in computeRunBounds() local 209 SkASSERT(intervals >= 0); in computeRunBounds() 210 SkASSERT(intervals < SkRegion_kRunTypeSentinel); in computeRunBounds() 212 if (intervals > 0) { in computeRunBounds() 216 SkASSERT(n == intervals); in computeRunBounds() 225 runs += intervals * 2; in computeRunBounds() [all …]
|
/third_party/flutter/skia/src/core/ |
D | SkRegionPriv.h | 150 const int intervals = runs[1]; in SkipEntireScanline() local 151 SkASSERT(runs[2 + intervals * 2] == SkRegion_kRunTypeSentinel); in SkipEntireScanline() 155 SkASSERT(n == intervals); in SkipEntireScanline() 160 runs += 1 + 1 + intervals * 2 + 1; in SkipEntireScanline() 208 const int intervals = *runs++; in computeRunBounds() local 209 SkASSERT(intervals >= 0); in computeRunBounds() 210 SkASSERT(intervals < SkRegion_kRunTypeSentinel); in computeRunBounds() 212 if (intervals > 0) { in computeRunBounds() 216 SkASSERT(n == intervals); in computeRunBounds() 225 runs += intervals * 2; in computeRunBounds() [all …]
|
/third_party/flutter/skia/docs/examples/ |
D | TextBlob_getIntercepts.cpp | 22 std::vector<SkScalar> intervals; 23 intervals.resize(count); 24 (void) paint.getTextBlobIntercepts(blob.get(), bounds, &intervals.front()); 29 canvas->drawRect({x, bounds[0], intervals[i], bounds[1]}, paint); 30 x = intervals[i + 1]; 32 canvas->drawRect({intervals[count - 1], bounds[0], 180, bounds[1]}, paint);
|
D | Paint_move_SkPaint.cpp | 8 float intervals[] = { 5, 5 }; in draw() local 9 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 2.5f)); in draw()
|
/third_party/skia/docs/examples/ |
D | TextBlob_getIntercepts.cpp | 22 std::vector<SkScalar> intervals; 23 intervals.resize(count); 24 (void) paint.getTextBlobIntercepts(blob.get(), bounds, &intervals.front()); 29 canvas->drawRect({x, bounds[0], intervals[i], bounds[1]}, paint); 30 x = intervals[i + 1]; 32 canvas->drawRect({intervals[count - 1], bounds[0], 180, bounds[1]}, paint);
|
D | skpaint_dash_path_effect.cpp | 16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in draw() local 17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in draw() 19 paint.setPathEffect(SkDashPathEffect::Make(intervals, count, 0.0f)); in draw()
|
D | skpaint_compose_path_effect.cpp | 16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in draw() local 17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in draw() 20 SkPathEffect::MakeCompose(SkDashPathEffect::Make(intervals, count, 0.0f), in draw()
|
D | compose_path.cpp | 16 const SkScalar intervals[] = {10.0f, 5.0f, 2.0f, 5.0f}; in draw() local 17 size_t count = sizeof(intervals) / sizeof(intervals[0]); in draw() 20 SkPathEffect::MakeCompose(SkDashPathEffect::Make(intervals, count, 0.0f), in draw()
|
D | Paint_move_SkPaint.cpp | 8 float intervals[] = { 5, 5 }; in draw() local 9 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 2.5f)); in draw()
|
/third_party/skia/modules/sksg/src/ |
D | SkSGGeometryEffect.cpp | 97 sk_sp<SkPathEffect> make_dash(const std::vector<float> intervals, float phase) { in make_dash() argument 98 if (intervals.empty()) { in make_dash() 102 const auto* intervals_ptr = intervals.data(); in make_dash() 103 auto intervals_count = intervals.size(); in make_dash() 111 std::copy(intervals.begin(), intervals.end(), storage.begin()); in make_dash() 112 std::copy(intervals.begin(), intervals.end(), storage.begin() + intervals.size()); in make_dash()
|
/third_party/ltp/testcases/realtime/func/rt-migrate/ |
D | rt-migrate.c | 151 stats_container_t *intervals; variable 234 stats_container_append(&intervals[id], rec); in record_time() 261 tasks_max[t] = stats_max(&intervals[t]); in print_results() 262 tasks_min[t] = stats_min(&intervals[t]); in print_results() 263 tasks_avg[t] = stats_avg(&intervals[t]); in print_results() 268 printf("%6ld ", intervals[t].records[i].y); in print_results() 366 if (i && last < intervals[i].records[l].y && in check_times() 367 ((intervals[i].records[l].y - last) > max_err)) { in check_times() 375 intervals[i].records[l].y > last_length || in check_times() 383 last = intervals[i].records[l].y; in check_times() [all …]
|
/third_party/flutter/skia/tools/lua/ |
D | scrape_dashing_full.lua | 71 increment(dashInterval_count, #de.intervals) 72 if 2 == #de.intervals then 73 if 1 == de.intervals[1] and 1 == de.intervals[2] then 75 elseif 0 == de.intervals[1] then
|
/third_party/boost/libs/icl/doc/ |
D | functions_interval_construct.qbk | 33 of intervals. All interval constructin functins are of ['*constant time and space complexity*]. 47 … [For dynamically bounded intervals this function constructs an 64 `` ] [For dynamically bounded intervals there are… 65 … construct intervals with the four interval bound types: 76 … The library default uses ['*dynamically bounded intervals*]. You 77 … can switch to ['*statically bounded intervals*] by 90 … This works with the statically bounded intervals as well, 102 … [link boost_icl.examples.dynamic_interval Dynamic intervals] and 103 … [link boost_icl.examples.static_interval Static intervals] 110 [[[link boost_icl.examples.dynamic_interval ['*Example: Dynamically bounded intervals and the libra… [all …]
|
/third_party/boost/libs/icl/test/fix_tickets_/ |
D | fix_tickets.cpp | 86 boost::icl::interval_map<Value, int, boost::icl::total_enricher> intervals; in BOOST_AUTO_TEST_CASE() local 88 intervals += std::make_pair(Interval::closed(min, max), 0); in BOOST_AUTO_TEST_CASE() 89 intervals += std::make_pair(Interval::right_open(0, 10), 3); in BOOST_AUTO_TEST_CASE() 91 BOOST_CHECK_EQUAL(intervals.iterative_size(), 3); in BOOST_AUTO_TEST_CASE() 189 boost::icl::split_interval_set<int> intervals; in BOOST_AUTO_TEST_CASE() local 190 intervals.insert(boost::icl::discrete_interval<int>(1, 2)); in BOOST_AUTO_TEST_CASE() 191 intervals.insert(boost::icl::discrete_interval<int>(2, 3)); in BOOST_AUTO_TEST_CASE() 192 intervals.insert(boost::icl::discrete_interval<int>(0, 3)); in BOOST_AUTO_TEST_CASE() 194 BOOST_CHECK_EQUAL(intervals.size(), 3); in BOOST_AUTO_TEST_CASE()
|