/external/libcxx/test/std/algorithms/alg.sorting/alg.min.max/ |
minmax_init_list.pass.cpp | 14 // minmax(initializer_list<T> t); 22 assert((std::minmax({1, 2, 3}) == std::pair<int, int>(1, 3))); 23 assert((std::minmax({1, 3, 2}) == std::pair<int, int>(1, 3))); 24 assert((std::minmax({2, 1, 3}) == std::pair<int, int>(1, 3))); 25 assert((std::minmax({2, 3, 1}) == std::pair<int, int>(1, 3))); 26 assert((std::minmax({3, 1, 2}) == std::pair<int, int>(1, 3))); 27 assert((std::minmax({3, 2, 1}) == std::pair<int, int>(1, 3))); 30 static_assert((std::minmax({1, 2, 3}) == std::pair<int, int>(1, 3)), ""); 31 static_assert((std::minmax({1, 3, 2}) == std::pair<int, int>(1, 3)), ""); 32 static_assert((std::minmax({2, 1, 3}) == std::pair<int, int>(1, 3)), "") [all...] |
minmax_init_list_comp.pass.cpp | 14 // minmax(initializer_list<T> t, Compare comp); 30 std::pair<int, int> p = std::minmax(il, std::ref(pred)); 41 assert((std::minmax({1, 2, 3}, std::greater<int>()) == std::pair<int, int>(3, 1))); 42 assert((std::minmax({1, 3, 2}, std::greater<int>()) == std::pair<int, int>(3, 1))); 43 assert((std::minmax({2, 1, 3}, std::greater<int>()) == std::pair<int, int>(3, 1))); 44 assert((std::minmax({2, 3, 1}, std::greater<int>()) == std::pair<int, int>(3, 1))); 45 assert((std::minmax({3, 1, 2}, std::greater<int>()) == std::pair<int, int>(3, 1))); 46 assert((std::minmax({3, 2, 1}, std::greater<int>()) == std::pair<int, int>(3, 1))); 47 assert((std::minmax({1, 2, 3}, all_equal ) == std::pair<int, int>(1, 3))); 50 assert((std::minmax({1, 2, 2, 3, 3, 3, 5, 5, 5, 5, 5, 3}, std::ref(pred)) == std::pair<int, int>(5, 1))) [all...] |
minmax.pass.cpp | 14 // minmax(const T& a, const T& b); 23 std::pair<const T&, const T&> p = std::minmax(a, b); 54 constexpr auto p1 = std::minmax (x, y); 57 constexpr auto p2 = std::minmax (y, x);
|
minmax_comp.pass.cpp | 15 // minmax(const T& a, const T& b, Compare comp); 25 std::pair<const T&, const T&> p = std::minmax(a, b, c); 57 constexpr auto p1 = std::minmax(x, y, std::greater<>()); 60 constexpr auto p2 = std::minmax(y, x, std::greater<>());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.min.max/ |
minmax_init_list.pass.cpp | 14 // minmax(initializer_list<T> t); 22 assert((std::minmax({1, 2, 3}) == std::pair<int, int>(1, 3))); 23 assert((std::minmax({1, 3, 2}) == std::pair<int, int>(1, 3))); 24 assert((std::minmax({2, 1, 3}) == std::pair<int, int>(1, 3))); 25 assert((std::minmax({2, 3, 1}) == std::pair<int, int>(1, 3))); 26 assert((std::minmax({3, 1, 2}) == std::pair<int, int>(1, 3))); 27 assert((std::minmax({3, 2, 1}) == std::pair<int, int>(1, 3))); 30 static_assert((std::minmax({1, 2, 3}) == std::pair<int, int>(1, 3)), ""); 31 static_assert((std::minmax({1, 3, 2}) == std::pair<int, int>(1, 3)), ""); 32 static_assert((std::minmax({2, 1, 3}) == std::pair<int, int>(1, 3)), "") [all...] |
minmax_init_list_comp.pass.cpp | 14 // minmax(initializer_list<T> t, Compare comp); 23 assert((std::minmax({1, 2, 3}, std::greater<int>()) == std::pair<int, int>(3, 1))); 24 assert((std::minmax({1, 3, 2}, std::greater<int>()) == std::pair<int, int>(3, 1))); 25 assert((std::minmax({2, 1, 3}, std::greater<int>()) == std::pair<int, int>(3, 1))); 26 assert((std::minmax({2, 3, 1}, std::greater<int>()) == std::pair<int, int>(3, 1))); 27 assert((std::minmax({3, 1, 2}, std::greater<int>()) == std::pair<int, int>(3, 1))); 28 assert((std::minmax({3, 2, 1}, std::greater<int>()) == std::pair<int, int>(3, 1))); 31 static_assert((std::minmax({1, 2, 3}, std::greater<int>()) == std::pair<int, int>(3, 1)), ""); 32 static_assert((std::minmax({1, 3, 2}, std::greater<int>()) == std::pair<int, int>(3, 1)), ""); 33 static_assert((std::minmax({2, 1, 3}, std::greater<int>()) == std::pair<int, int>(3, 1)), "") [all...] |
minmax.pass.cpp | 14 // minmax(const T& a, const T& b); 23 std::pair<const T&, const T&> p = std::minmax(a, b); 54 constexpr auto p1 = std::minmax (x, y); 57 constexpr auto p2 = std::minmax (y, x);
|
minmax_comp.pass.cpp | 15 // minmax(const T& a, const T& b, Compare comp); 25 std::pair<const T&, const T&> p = std::minmax(a, b, c); 57 constexpr auto p1 = std::minmax(x, y, std::greater<>()); 60 constexpr auto p2 = std::minmax(y, x, std::greater<>());
|
/external/blktrace/ |
stats.h | 28 struct minmax { struct 36 static inline void minmax_init(struct minmax *mm) 45 static inline void minmax_account(struct minmax *mm, __u64 value) 56 static inline void minmax_merge(struct minmax *dst, struct minmax *src) 67 static inline void minmax_to_be(struct minmax *mm) 76 static inline double minmax_avg(struct minmax *mm) 81 static inline double minmax_var(struct minmax *mm) 88 static inline int minmax_print(FILE *fp, const char *s, struct minmax *mm)
|
blkiomon.h | 38 struct minmax size_r; 39 struct minmax size_w; 40 struct minmax d2c_r; 41 struct minmax d2c_w; 42 struct minmax thrput_r; 43 struct minmax thrput_w;
|
/external/chromium-trace/catapult/third_party/flot/ |
jquery.flot.errorbars.js | 195 var minmax = [ax[e].min, ax[e].max]; 220 if (upper > minmax[1]) { 222 upper = minmax[1]; 224 if (lower < minmax[0]) { 226 lower = minmax[0]; 238 tmp = minmax[0]; 239 minmax[0] = minmax[1]; 240 minmax[1] = tmp; 248 minmax[0] = ax[e].p2c(minmax[0]) [all...] |
jquery.flot.errorbars.min.js | 7 (function($){var options={series:{points:{errorbars:null,xerr:{err:"x",show:null,asymmetric:null,upperCap:null,lowerCap:null,color:null,radius:null},yerr:{err:"y",show:null,asymmetric:null,upperCap:null,lowerCap:null,color:null,radius:null}}}};function processRawData(plot,series,data,datapoints){if(!series.points.errorbars)return;var format=[{x:true,number:true,required:true},{y:true,number:true,required:true}];var errors=series.points.errorbars;if(errors=="x"||errors=="xy"){if(series.points.xerr.asymmetric){format.push({x:true,number:true,required:true});format.push({x:true,number:true,required:true})}else format.push({x:true,number:true,required:true})}if(errors=="y"||errors=="xy"){if(series.points.yerr.asymmetric){format.push({y:true,number:true,required:true});format.push({y:true,number:true,required:true})}else format.push({y:true,number:true,required:true})}datapoints.format=format}function parseErrors(series,i){var points=series.datapoints.points;var exl=null,exu=null,eyl=null,eyu=null;var xerr=series.points.xerr,yerr=series.points.yerr;var eb=series.points.errorbars;if(eb=="x"||eb=="xy"){if(xerr.asymmetric){exl=points[i+2];exu=points[i+3];if(eb=="xy")if(yerr.asymmetric){eyl=points[i+4];eyu=points[i+5]}else eyl=points[i+4]}else{exl=points[i+2];if(eb=="xy")if(yerr.asymmetric){eyl=points[i+3];eyu=points[i+4]}else eyl=points[i+3]}}else if(eb=="y")if(yerr.asymmetric){eyl=points[i+2];eyu=points[i+3]}else eyl=points[i+2];if(exu==null)exu=exl;if(eyu==null)eyu=eyl;var errRanges=[exl,exu,eyl,eyu];if(!xerr.show){errRanges[0]=null;errRanges[1]=null}if(!yerr.show){errRanges[2]=null;errRanges[3]=null}return errRanges}function drawSeriesErrors(plot,ctx,s){var points=s.datapoints.points,ps=s.datapoints.pointsize,ax=[s.xaxis,s.yaxis],radius=s.points.radius,err=[s.points.xerr,s.points.yerr];var invertX=false;if(ax[0].p2c(ax[0].max)<ax[0].p2c(ax[0].min)){invertX=true;var tmp=err[0].lowerCap;err[0].lowerCap=err[0].upperCap;err[0].upperCap=tmp}var invertY=false;if(ax[1].p2c(ax[1].min)<ax[1].p2c(ax[1].max)){invertY=true;var tmp=err[1].lowerCap;err[1].lowerCap=err[1].upperCap;err[1].upperCap=tmp}for(var i=0;i<s.datapoints.points.length;i+=ps){var errRanges=parseErrors(s,i);for(var e=0;e<err.length;e++){var minmax=[ax[e].min,ax[e].max];if(errRanges[e*err.length]){var x=points[i],y=points[i+1];var upper=[x,y][e]+errRanges[e*err.length+1],lower=[x,y][e]-errRanges[e*err.length];if(err[e].err=="x")if(y>ax[1].max||y<ax[1].min||upper<ax[0].min||lower>ax[0].max)continue;if(err[e].err=="y")if(x>ax[0].max||x<ax[0].min||upper<ax[1].min||lower>ax[1].max)continue;var drawUpper=true,drawLower=true;if(upper>minmax[1]){drawUpper=false;upper=minmax[1]}if(lower<minmax[0]){drawLower=false;lower=minmax[0]}if(err[e].err=="x"&&invertX||err[e].err=="y"&&invertY){var tmp=lower;lower=upper;upper=tmp;tmp=drawLower;drawLower=drawUpper;drawUpper=tmp;tmp=minmax[0];minmax[0]=minmax[1];minmax[1]=tmp}x=ax[0].p2c(x),y=ax[1].p2c(y),upper=ax[e].p2c(upper);lower=ax[e].p2c(lower);minmax[0]=ax[e].p2c(minmax[0]);minmax[1]=ax[e].p2c(minmax[1]);var lw=err[e].lineWidth?err[e].lineWidth:s. (…) [all...] |
jquery.flot.navigate.js | 221 minmax = { 234 min = minmax[axis.direction].min, 235 max = minmax[axis.direction].max,
|
jquery.flot.navigate.min.js | 7 (function(a){function e(h){var k,j=this,l=h.data||{};if(l.elem)j=h.dragTarget=l.elem,h.dragProxy=d.proxy||j,h.cursorOffsetX=l.pageX-l.left,h.cursorOffsetY=l.pageY-l.top,h.offsetX=h.pageX-h.cursorOffsetX,h.offsetY=h.pageY-h.cursorOffsetY;else if(d.dragging||l.which>0&&h.which!=l.which||a(h.target).is(l.not))return;switch(h.type){case"mousedown":return a.extend(l,a(j).offset(),{elem:j,target:h.target,pageX:h.pageX,pageY:h.pageY}),b.add(document,"mousemove mouseup",e,l),i(j,!1),d.dragging=null,!1;case!d.dragging&&"mousemove":if(g(h.pageX-l.pageX)+g(h.pageY-l.pageY)<l.distance)break;h.target=l.target,k=f(h,"dragstart",j),k!==!1&&(d.dragging=j,d.proxy=h.dragProxy=a(k||j)[0]);case"mousemove":if(d.dragging){if(k=f(h,"drag",j),c.drop&&(c.drop.allowed=k!==!1,c.drop.handler(h)),k!==!1)break;h.type="mouseup"}case"mouseup":b.remove(document,"mousemove mouseup",e),d.dragging&&(c.drop&&c.drop.handler(h),f(h,"dragend",j)),i(j,!0),d.dragging=d.proxy=l.elem=!1}return!0}function f(b,c,d){b.type=c;var e=a.event.dispatch.call(d,b);return e===!1?!1:e||b.result}function g(a){return Math.pow(a,2)}function h(){return d.dragging===!1}function i(a,b){a&&(a.unselectable=b?"off":"on",a.onselectstart=function(){return b},a.style&&(a.style.MozUserSelect=b?"":"none"))}a.fn.drag=function(a,b,c){return b&&this.bind("dragstart",a),c&&this.bind("dragend",c),a?this.bind("drag",b?b:a):this.trigger("drag")};var b=a.event,c=b.special,d=c.drag={not:":input",distance:0,which:1,dragging:!1,setup:function(c){c=a.extend({distance:d.distance,which:d.which,not:d.not},c||{}),c.distance=g(c.distance),b.add(this,"mousedown",e,c),this.attachEvent&&this.attachEvent("ondragstart",h)},teardown:function(){b.remove(this,"mousedown",e),this===d.dragging&&(d.dragging=d.proxy=!1),i(this,!0),this.detachEvent&&this.detachEvent("ondragstart",h)}};c.dragstart=c.dragend={setup:function(){},teardown:function(){}}})(jQuery);(function(d){function e(a){var b=a||window.event,c=[].slice.call(arguments,1),f=0,e=0,g=0,a=d.event.fix(b);a.type="mousewheel";b.wheelDelta&&(f=b.wheelDelta/120);b.detail&&(f=-b.detail/3);g=f;void 0!==b.axis&&b.axis===b.HORIZONTAL_AXIS&&(g=0,e=-1*f);void 0!==b.wheelDeltaY&&(g=b.wheelDeltaY/120);void 0!==b.wheelDeltaX&&(e=-1*b.wheelDeltaX/120);c.unshift(a,f,e,g);return(d.event.dispatch||d.event.handle).apply(this,c)}var c=["DOMMouseScroll","mousewheel"];if(d.event.fixHooks)for(var h=c.length;h;)d.event.fixHooks[c[--h]]=d.event.mouseHooks;d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],e,!1);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],e,!1);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);(function($){var options={xaxis:{zoomRange:null,panRange:null},zoom:{interactive:false,trigger:"dblclick",amount:1.5},pan:{interactive:false,cursor:"move",frameRate:20}};function init(plot){function onZoomClick(e,zoomOut){var c=plot.offset();c.left=e.pageX-c.left;c.top=e.pageY-c.top;if(zoomOut)plot.zoomOut({center:c});else plot.zoom({center:c})}function onMouseWheel(e,delta){e.preventDefault();onZoomClick(e,delta<0);return false}var prevCursor="default",prevPageX=0,prevPageY=0,panTimeout=null;function onDragStart(e){if(e.which!=1)return false;var c=plot.getPlaceholder().css("cursor");if(c)prevCursor=c;plot.getPlaceholder().css("cursor",plot.getOptions().pan.cursor);prevPageX=e.pageX;prevPageY=e.pageY}function onDrag(e){var frameRate=plot.getOptions().pan.frameRate;if(panTimeout||!frameRate)return;panTimeout=setTimeout(function(){plot.pan({left:prevPageX-e.pageX,top:prevPageY-e.pageY});prevPageX=e.pageX;prevPageY=e.pageY;panTimeout=null},1/frameRate*1e3)}function onDragEnd(e){if(panTimeout){clearTimeout(panTimeout);panTimeout=null}plot.getPlaceholder().css("cursor",prevCursor);plot.pan({left:prevPageX-e.pageX,top:prevPageY-e.pageY})}function bindEvents(plot,eventHolder){var o=plot.getOptions();if(o.zoom.interactive){eventHolder[o.zoom.trigger](onZoomClick);eventHolder.mousewheel(onMouseWheel)}if(o.pan.interactive){eventHolder.bind("dragstart",{distance:10},onDragStart);eventHolder.bind("drag",onDrag);eventHolder.bind("dragend",onDragEnd)}}plot.zoomOut=function(args){if(!args)args={};if(!args.amount)args.amount=plot.getOptions().zoom.amount;args.amount=1/args.amount;plot.zoom(args)};plot.zoom=function(args){if(!args)args={};var c=args.center,amount=args.amount||plot.getOptions().zoom.amount,w=plot.width(),h=plot.height();if(!c)c={left:w/2,top:h/2};var xf=c.left/w,yf=c.top/h,minmax={x:{min:c.left-xf*w/amount,max:c.left+(1-xf)*w/amount},y:{min:c.top-yf*h/amount,max:c.top+(1-yf)*h/amount}};$.each(plot.getAxes(),function(_,axis){var opts=axis.options,min=minmax[axis.direction].min,max=minmax[axis.direction].max,zr=opts.zoomRange,pr=opts.panRange;if(zr===false)return;min=axis.c2p(min);max= (…)
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
raw_converter.rs | 119 float2 minmax; 120 minmax.x = sorted.x; 121 minmax.y = sorted.z; 124 minmax = native_powr(minmax, 3.f) * toneMapCoeffs.x + 125 native_powr(minmax, 2.f) * toneMapCoeffs.y + 126 minmax * toneMapCoeffs.z + toneMapCoeffs.w; 131 newMid = minmax.y; 133 newMid = minmax.x + ((minmax.y - minmax.x) * (sorted.y - sorted.x) [all...] |
/external/clang/test/SemaCXX/ |
invalid-member-expr.cpp | 29 template <typename _Tp> pair<_Tp, _Tp> minmax(initializer_list<_Tp> __l) {}; function in namespace:test3 32 pair<int, int> z = minmax({}); 36 // expected-error@-4 {{no matching function for call to 'minmax'}}
|
/cts/tests/tests/media/src/android/media/cts/ |
VideoEncoderTest.java | 1668 private void minmax(Encoder[] encoders, boolean flexYUV) { method in class:VideoEncoderTest [all...] |
/external/jacoco/org.jacoco.report/src/org/jacoco/report/check/ |
Limit.java | 166 private String message(final String minmax, final BigDecimal v, 171 rounded.toPlainString(), minmax, ref.toPlainString());
|
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
glUtils.h | 66 template <class T> void minmax(T *indices, int count, int *min, int *max) { function in namespace:GLUtils
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_audioop.py | 53 self.assertEqual(audioop.minmax(b'', w), 56 self.assertEqual(audioop.minmax(p(5), w), (5, 5)) 57 self.assertEqual(audioop.minmax(p(5, -8, -1), w), (-8, 5)) 58 self.assertEqual(audioop.minmax(p(maxvalues[w]), w), 60 self.assertEqual(audioop.minmax(p(minvalues[w]), w), 62 self.assertEqual(audioop.minmax(datas[w], w), 363 self.assertRaises(audioop.error, audioop.minmax, data, size)
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_audioop.py | 53 self.assertEqual(audioop.minmax(b'', w), 56 self.assertEqual(audioop.minmax(p(5), w), (5, 5)) 57 self.assertEqual(audioop.minmax(p(5, -8, -1), w), (-8, 5)) 58 self.assertEqual(audioop.minmax(p(maxvalues[w]), w), 60 self.assertEqual(audioop.minmax(p(minvalues[w]), w), 62 self.assertEqual(audioop.minmax(datas[w], w), 363 self.assertRaises(audioop.error, audioop.minmax, data, size)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_audioop.py | 53 self.assertEqual(audioop.minmax(b'', w), 56 self.assertEqual(audioop.minmax(p(5), w), (5, 5)) 57 self.assertEqual(audioop.minmax(p(5, -8, -1), w), (-8, 5)) 58 self.assertEqual(audioop.minmax(p(maxvalues[w]), w), 60 self.assertEqual(audioop.minmax(p(minvalues[w]), w), 62 self.assertEqual(audioop.minmax(datas[w], w), 363 self.assertRaises(audioop.error, audioop.minmax, data, size)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_audioop.py | 53 self.assertEqual(audioop.minmax(b'', w), 56 self.assertEqual(audioop.minmax(p(5), w), (5, 5)) 57 self.assertEqual(audioop.minmax(p(5, -8, -1), w), (-8, 5)) 58 self.assertEqual(audioop.minmax(p(maxvalues[w]), w), 60 self.assertEqual(audioop.minmax(p(minvalues[w]), w), 62 self.assertEqual(audioop.minmax(datas[w], w), 363 self.assertRaises(audioop.error, audioop.minmax, data, size)
|
/external/mesa3d/src/gallium/drivers/nv50/codegen/ |
nv50_ir_peephole.cpp | 1055 AlgebraicOpt::handleMINMAX(Instruction *minmax) 1057 Value *src0 = minmax->getSrc(0); 1058 Value *src1 = minmax->getSrc(1); 1062 if (minmax->src(0).mod == minmax->src(1).mod) { 1063 if (minmax->def(0).mayReplace(minmax->src(0))) { 1064 minmax->def(0).replace(minmax->src(0), false); 1065 minmax->bb->remove(minmax) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/bits/ |
algorithmfwd.h | 85 minmax (C++0x) 378 minmax(const _Tp&, const _Tp&); 382 minmax(const _Tp&, const _Tp&, _Compare); 410 minmax(initializer_list<_Tp>); 414 minmax(initializer_list<_Tp>, _Compare);
|