/external/v8/test/intl/break-iterator/ |
en-break.js | 35 var slices = []; variable 42 slices.push(textToSegment.slice(pos, nextPos)); 48 assertEquals('Jack', slices[0]); 49 assertEquals(' ', slices[1]); 50 assertEquals('and', slices[2]); 51 assertEquals(' ', slices[3]); 52 assertEquals('Jill', slices[4]); 53 assertEquals(',', slices[5]); 54 assertEquals('!', slices[slices.length - 1]) [all...] |
zh-break.js | 36 var slices = []; variable 43 slices.push(textToSegment.slice(pos, nextPos)); 49 assertEquals('\u56FD\u52A1\u9662', slices[0]); 50 assertEquals('\u5173\u4E8E', slices[1]); 51 assertEquals('\u300A', slices[2]); 52 assertEquals('\u571F\u5730', slices[3]); 53 assertEquals('\u623F\u5C4B', slices[4]); 54 assertEquals('\u7BA1\u7406', slices[5]); 55 assertEquals('\u6761\u4F8B', slices[6]); 56 assertEquals('\u300B', slices[7]) [all...] |
/external/fio/profiles/ |
act.c | 43 struct act_slice *slices; member in struct:act_run_data 50 struct act_slice *slices; member in struct:act_prof_data 312 slice = &apd->slices[apd->cur_slice]; 392 fails += show_slice(&act_run_data->slices[i], i + 1); 404 if (!act_run_data->slices) { 405 act_run_data->slices = calloc(apd->nr_slices, sizeof(struct act_slice)); 410 struct act_slice *dst = &act_run_data->slices[slice]; 411 struct act_slice *src = &apd->slices[slice]; 434 apd->slices = calloc(nr_slices, sizeof(struct act_slice)); 446 free(apd->slices); [all...] |
/external/libgdx/extensions/gdx-bullet/jni/vs/Glut/EmptyGL/GL/ |
glu.h | 20 inline void gluDisk (GLUquadric* quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops) {}; 21 inline void gluCylinder (GLUquadric* quad, GLdouble base, GLdouble top, GLdouble height, GLint slices, GLint stacks) {};
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
d3dx9shape.h | 32 float length, UINT slices, UINT stacks, struct ID3DXMesh **mesh, struct ID3DXBuffer **adjacency); 33 HRESULT WINAPI D3DXCreateSphere(struct IDirect3DDevice9 *device, float radius, UINT slices,
|
/external/mesa3d/src/mesa/drivers/dri/intel/ |
intel_tex.c | 60 GLuint slices; local 74 slices = image->Depth; 77 slices = image->Height; 80 slices = 1; 83 intel_image->base.ImageOffsets = malloc(slices * sizeof(GLuint)); 187 * cube face, since it's all just slices to the miptree code.
|
/external/autotest/client/site_tests/graphics_PiglitBVT/ |
generate_scripts.py | 82 This control file runs slice %d out of %d slices of a passing subset of the\n\ 91 def output_control_file(sl, slices): 97 print(CONTROL_FILE % (sl, slices, sl), file=f) 252 the result log into |slices| runable scripts. 271 slices = OUTPUT_FILE_SLICES 301 if time_slice < time_total / slices: 308 if time_slice >= time_total / slices or num_processed == num_pass_total: 321 output_control_file(current_slice, slices)
|
/external/chromium-trace/catapult/third_party/flot/ |
jquery.flot.pie.js | 44 threshold: 0-1 for the percentage value at which to combine slices (if they're too small) 204 // Sum up all the slices, so we can calculate percentages for each 210 // Count the number of slices with percentages below the combine 267 // When combining smaller slices into an 'other' slice, we need to 309 var slices = plot.getData(), 332 plot.setSeries(slices); 389 // draw slices 393 for (var i = 0; i < slices.length; ++i) { 394 slices[i].startAngle = currentAngle; 395 drawSlice(slices[i].angle, slices[i].color, true) [all...] |
jquery.flot.pie.min.js | 7 (function($){var REDRAW_ATTEMPTS=10;var REDRAW_SHRINK=.95;function init(plot){var canvas=null,target=null,options=null,maxRadius=null,centerLeft=null,centerTop=null,processed=false,ctx=null;var highlights=[];plot.hooks.processOptions.push(function(plot,options){if(options.series.pie.show){options.grid.show=false;if(options.series.pie.label.show=="auto"){if(options.legend.show){options.series.pie.label.show=false}else{options.series.pie.label.show=true}}if(options.series.pie.radius=="auto"){if(options.series.pie.label.show){options.series.pie.radius=3/4}else{options.series.pie.radius=1}}if(options.series.pie.tilt>1){options.series.pie.tilt=1}else if(options.series.pie.tilt<0){options.series.pie.tilt=0}}});plot.hooks.bindEvents.push(function(plot,eventHolder){var options=plot.getOptions();if(options.series.pie.show){if(options.grid.hoverable){eventHolder.unbind("mousemove").mousemove(onMouseMove)}if(options.grid.clickable){eventHolder.unbind("click").click(onClick)}}});plot.hooks.processDatapoints.push(function(plot,series,data,datapoints){var options=plot.getOptions();if(options.series.pie.show){processDatapoints(plot,series,data,datapoints)}});plot.hooks.drawOverlay.push(function(plot,octx){var options=plot.getOptions();if(options.series.pie.show){drawOverlay(plot,octx)}});plot.hooks.draw.push(function(plot,newCtx){var options=plot.getOptions();if(options.series.pie.show){draw(plot,newCtx)}});function processDatapoints(plot,series,datapoints){if(!processed){processed=true;canvas=plot.getCanvas();target=$(canvas).parent();options=plot.getOptions();plot.setData(combine(plot.getData()))}}function combine(data){var total=0,combined=0,numCombined=0,color=options.series.pie.combine.color,newdata=[];for(var i=0;i<data.length;++i){var value=data[i].data;if($.isArray(value)&&value.length==1){value=value[0]}if($.isArray(value)){if(!isNaN(parseFloat(value[1]))&&isFinite(value[1])){value[1]=+value[1]}else{value[1]=0}}else if(!isNaN(parseFloat(value))&&isFinite(value)){value=[1,+value]}else{value=[1,0]}data[i].data=[value]}for(var i=0;i<data.length;++i){total+=data[i].data[0][1]}for(var i=0;i<data.length;++i){var value=data[i].data[0][1];if(value/total<=options.series.pie.combine.threshold){combined+=value;numCombined++;if(!color){color=data[i].color}}}for(var i=0;i<data.length;++i){var value=data[i].data[0][1];if(numCombined<2||value/total>options.series.pie.combine.threshold){newdata.push($.extend(data[i],{data:[[1,value]],color:data[i].color,label:data[i].label,angle:value*Math.PI*2/total,percent:value/(total/100)}))}}if(numCombined>1){newdata.push({data:[[1,combined]],color:color,label:options.series.pie.combine.label,angle:combined*Math.PI*2/total,percent:combined/(total/100)})}return newdata}function draw(plot,newCtx){if(!target){return}var canvasWidth=plot.getPlaceholder().width(),canvasHeight=plot.getPlaceholder().height(),legendWidth=target.children().filter(".legend").children().width()||0;ctx=newCtx;processed=false;maxRadius=Math.min(canvasWidth,canvasHeight/options.series.pie.tilt)/2;centerTop=canvasHeight/2+options.series.pie.offset.top;centerLeft=canvasWidth/2;if(options.series.pie.offset.left=="auto"){if(options.legend.position.match("w")){centerLeft+=legendWidth/2}else{centerLeft-=legendWidth/2}if(centerLeft<maxRadius){centerLeft=maxRadius}else if(centerLeft>canvasWidth-maxRadius){centerLeft=canvasWidth-maxRadius}}else{centerLeft+=options.series.pie.offset.left}var slices=plot.getData(),attempts=0;do{if(attempts>0){maxRadius*=REDRAW_SHRINK}attempts+=1;clear();if(options.series.pie.tilt<=.8){drawShadow()}}while(!drawPie()&&attempts<REDRAW_ATTEMPTS);if(attempts>=REDRAW_ATTEMPTS){clear();target.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>")}if(plot.setSeries&&plot.insertLegend){plot.setSeries(slices);plot.insertLegend()}function clear(){ctx.clearRect(0,0,canvasWidth,canvasHeight);target.children().filter(".pieLabel, .pieLabelBackground").remove()}function drawShadow(){var shadowLeft=options.series.pie.shadow.left;var shadowTop=options.series.pie.shadow.top;var edge=10;var alpha=options.series.pie.shadow.alpha;var radius=options.series.pie.radius>1?options.series.pie.radius:maxRadius*options.series.pie.radius;if(radius>=canvasWidth/2-shadowLeft||radius*options.series.pie.tilt>=canvasHeight/2-shadowTop||radius<=edge){return}ctx.save();ctx.translate(shadowLeft,shadowTop);ctx.globalAlpha=alpha;ctx.fillStyle="#000";ctx.translate(centerLeft,centerTop);ctx.scale(1,options.series.pie.tilt);for(var i=1;i<=edge;i++){ctx.beginPath();ctx.arc(0,0,radius,0,Math.PI*2,false);ctx.fill();radius-=i}ctx.restore()}function drawPie(){var startAngle=Math.PI*options.series.pie.startAngle;var radius=options.series.pie.radius>1?options.series.pie.radius:maxRadius*options.series.pie.radius;ctx.save();ctx.translate(centerLeft,centerTop);ctx.scale(1,options.series.pie.tilt);ctx.save();var currentAngle=startAngle;for(var i=0;i<slices.length;++i){slices[i].startAngle=currentAngle;drawSlice(slices[i].angle,slices[i].color,true)}ctx.restore();if(options.series.pie.stroke.width>0){ctx.save();ctx.lineWidth=options.series.pie.stroke.width;currentAngle=startAngle;for(var i=0;i<slices.length;++i){drawSlice(slices[i].angle,options.series.pie.stroke.color,false)}ctx.restore()}drawDonutHole(ctx);ctx.restore();if(options.series.pie.label.show){return drawLabels()}else return true;function drawSlice(angle,color,fill){if(angle<=0||isNaN(angle)){return}if(fill){ctx.fillStyle=color}else{ctx.strokeStyle=color;ctx.lineJoin="round"}ctx.beginPath();if(Math.abs(angle-Math.PI*2)>1e-9){ctx.moveTo(0,0)}ctx.arc(0,0,radius,currentAngle,currentAngle+angle/2,false);ctx.arc(0,0,radius,currentAngle+angle/2,currentAngle+angle,false);ctx.closePath();currentAngle+=angle;if(fill){ctx.fill()}else{ctx.stroke()}}function drawLabels(){var currentAngle=startAngle;var radius=options.series.pie.label.radius>1?options.series.pie.label.radius:maxRadius*options.series.pie.label.radius;for(var i=0;i<slices.length;++i){if(slices[i].percent>=options.series.pie.label.threshold*100){if(!drawLabel(slices[i],currentAngle,i)){retur (…) [all...] |
/external/opencv3/3rdparty/openexr/IlmImf/ |
ImfScanLineInputFile.cpp | 197 vector<InSliceInfo> slices; // info about channels in file member in struct:Imf::ScanLineInputFile::Data 516 for (unsigned int i = 0; i < _ifd->slices.size(); ++i) 523 const InSliceInfo &slice = _ifd->slices[i]; 791 vector<InSliceInfo> slices; local 806 slices.push_back (InSliceInfo (i.channel().type, 831 slices.push_back (InSliceInfo (j.slice().type, 852 _data->slices = slices; 878 if (_data->slices.size() == 0)
|
ImfOutputFile.cpp | 190 vector<OutSliceInfo> slices; // info about channels in file member in struct:Imf::OutputFile::Data 362 // Iterate over all slices in the file. 365 for (unsigned int i = 0; i < ofd->slices.size(); ++i) 373 const OutSliceInfo &slice = ofd->slices[i]; 512 for (unsigned int i = 0; i < _ofd->slices.size(); ++i) 519 const OutSliceInfo &slice = _ofd->slices[i]; 849 vector<OutSliceInfo> slices; local 864 slices.push_back (OutSliceInfo (i.channel().type, 878 slices.push_back (OutSliceInfo (j.slice().type, 893 _data->slices = slices [all...] |
ImfTiledOutputFile.cpp | 255 vector<TOutSliceInfo> slices; // info about channels in file member in struct:Imf::TiledOutputFile::Data 611 // Iterate over all slices in the file. 614 for (unsigned int i = 0; i < ofd->slices.size(); ++i) 616 const TOutSliceInfo &slice = ofd->slices[i]; 729 for (unsigned int i = 0; i < _ofd->slices.size(); ++i) 731 const TOutSliceInfo &slice = _ofd->slices[i]; 1046 vector<TOutSliceInfo> slices; local 1061 slices.push_back (TOutSliceInfo (i.channel().type, 1073 slices.push_back (TOutSliceInfo (j.slice().type, 1088 _data->slices = slices [all...] |
ImfTiledInputFile.cpp | 215 vector<TInSliceInfo> slices; // info about channels in file member in struct:Imf::TiledInputFile::Data 510 for (unsigned int i = 0; i < _ifd->slices.size(); ++i) 512 const TInSliceInfo &slice = _ifd->slices[i]; 846 vector<TInSliceInfo> slices; local 861 slices.push_back (TInSliceInfo (i.channel().type, 884 slices.push_back (TInSliceInfo (j.slice().type, 907 slices.push_back (TInSliceInfo (i.channel().type, 923 _data->slices = slices; 953 if (_data->slices.size() == 0 [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/GL/ |
glu.h | 64 void APIENTRY gluCylinder(GLUquadric *qobj,GLdouble baseRadius,GLdouble topRadius,GLdouble height,GLint slices,GLint stacks); 65 void APIENTRY gluDisk(GLUquadric *qobj,GLdouble innerRadius,GLdouble outerRadius,GLint slices,GLint loops); 66 void APIENTRY gluPartialDisk(GLUquadric *qobj,GLdouble innerRadius,GLdouble outerRadius,GLint slices,GLint loops,GLdouble startAngle,GLdouble sweepAngle); 67 void APIENTRY gluSphere(GLUquadric *qobj,GLdouble radius,GLint slices,GLint stacks);
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
sp_texture.c | 65 unsigned slices; local 68 slices = 6; 70 slices = depth; 72 slices = pt->array_size; 79 slices * spr->stride[level]);
|
/external/libgdx/extensions/gdx-bullet/jni/vs/Glut/GL/ |
glut.h | 528 extern void APIENTRY glutWireSphere(GLdouble radius, GLint slices, GLint stacks); 529 extern void APIENTRY glutSolidSphere(GLdouble radius, GLint slices, GLint stacks); 530 extern void APIENTRY glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks); 531 extern void APIENTRY glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks);
|
/external/v8/test/mjsunit/regress/ |
regress-1757.js | 28 // Flags: --string-slices --expose-externalize-string
|
regress-165637.js | 52 // Make sure that packed and unpacked array slices are still properly handled
|
/external/chromium-trace/catapult/telemetry/telemetry/timeline/ |
trace_event_importer_unittest.py | 156 # Slices that don't finish. 162 # Slices on thread 1 and 2 that do finish to give an 'end time' to make 639 slices = t.async_slices 640 self.assertEqual(1, len(slices)) 641 self.assertEqual('a', slices[0].name) 642 self.assertEqual('cat', slices[0].category) 643 self.assertEqual(72, slices[0].id) 644 self.assertEqual('bar', slices[0].args['foo']) 645 self.assertEqual(0, slices[0].start) 646 self.assertAlmostEqual((60 - 24) / 1000.0, slices[0].duration [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_texture.c | 111 int slices; local 117 slices = timage->Depth; 120 slices = 1; 123 image->base.ImageOffsets = malloc(slices * sizeof(GLuint));
|
/external/skia/tests/ |
PathOpsSkpClipTest.cpp | 400 const int slices = 3; local 401 SkScalar xInterval = SkTMax(pWidth - maxDimension, 0.0f) / (slices - 1); 402 SkScalar yInterval = SkTMax(pHeight - maxDimension, 0.0f) / (slices - 1); 406 for (int x = 0; x < slices; ++x) { 407 for (int y = 0; y < slices; ++y) { 411 canvas->translate(xInterval, -yInterval * slices); [all...] |
SkpSkGrTest.cpp | 340 const int slices = 3; local 341 int xInterval = SkTMax(pWidth - maxDimension, 0) / (slices - 1); 342 int yInterval = SkTMax(pHeight - maxDimension, 0) / (slices - 1); 347 for (int x = 0; x < slices; ++x) { 348 for (int y = 0; y < slices; ++y) { 352 canvas->translate(SkIntToScalar(xInterval), SkIntToScalar(-yInterval * slices));
|
/hardware/intel/img/psb_video/src/ |
pnw_hostcode.c | 800 psPicParams->NumSlices = ctx->sRCParams.Slices; 1116 int slices = ctx->obj_context->slice_count; local [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_texture.c | 153 /* Number of 3D image slices or cube faces */ 820 * including all cube faces or 3D image slices 968 * faces and all 3D slices. 1168 const int slices = lpr->num_slices_faces[level]; local [all...] |
/prebuilts/gradle-plugin/com/android/tools/chartlib/chartlib/24.4.0-beta3/ |
chartlib-24.4.0-beta3.jar | |