/external/chromium_org/third_party/WebKit/Source/core/html/canvas/ |
CanvasPathMethods.cpp | 136 float adjustEndAngle(float startAngle, float endAngle, bool anticlockwise) 141 * If the anticlockwise argument is false and endAngle-startAngle is equal to or greater than 2pi, or, 142 * if the anticlockwise argument is true and startAngle-endAngle is equal to or greater than 2pi, 143 * then the arc is the whole circumference of this ellipse, and the point at startAngle along this circle's circumference, 146 if (!anticlockwise && endAngle - startAngle >= twoPi) 147 newEndAngle = startAngle + twoPi; 148 else if (anticlockwise && startAngle - endAngle >= twoPi) 149 newEndAngle = startAngle - twoPi; 157 /* NOTE: When startAngle = 0, endAngle = 2Pi and anticlockwise = true, the spec does not indicate clearly. 161 else if (!anticlockwise && startAngle > endAngle [all...] |
CanvasPathMethods.h | 49 void arc(float x, float y, float radius, float startAngle, float endAngle, bool anticlockwise, ExceptionState&); 50 void ellipse(float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float endAngle, bool anticlockwise, ExceptionState&);
|
Path.idl | 65 [Default=Undefined] optional float startAngle,
|
CanvasRenderingContext2D.idl | 80 [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise); 81 [RaisesException] void ellipse(float x, float y, float radiusX, float radiusY, float rotation, float startAngle, float endAngle, boolean anticlockwise);
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
ArcShape.java | 37 * @param startAngle the angle (in degrees) where the arc begins 41 public ArcShape(float startAngle, float sweepAngle) { 42 mStart = startAngle;
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
Path.h | 105 void addArc(const FloatPoint&, float radius, float startAngle, float endAngle, bool anticlockwise); 107 void addEllipse(const FloatPoint&, float radiusX, float radiusY, float rotation, float startAngle, float endAngle, bool anticlockwise); 128 void addEllipse(const FloatPoint&, float radiusX, float radiusY, float startAngle, float endAngle, bool anticlockwise); 134 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle);
|
Path.cpp | 279 void Path::addEllipse(const FloatPoint& p, float radiusX, float radiusY, float startAngle, float endAngle, bool anticlockwise) 281 ASSERT(ellipseIsRenderable(startAngle, endAngle)); 282 ASSERT(startAngle >= 0 && startAngle < 2 * piFloat); 283 ASSERT((anticlockwise && (startAngle - endAngle) >= 0) || (!anticlockwise && (endAngle - startAngle) >= 0)); 293 float sweep = endAngle - startAngle; 294 SkScalar startDegrees = WebCoreFloatToSkScalar(startAngle * 180 / piFloat); 317 void Path::addArc(const FloatPoint& p, float radius, float startAngle, float endAngle, bool anticlockwise) 319 addEllipse(p, radius, radius, startAngle, endAngle, anticlockwise) [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
PieChartView.java | 170 int startAngle = mOriginAngle; 173 final int endAngle = startAngle + sweepAngle; 175 final float startAngleMod = startAngle % 360; 182 slice.path.arcTo(rect, startAngle, sweepAngle); 188 final float startAngleSide = startSideVisible ? startAngle : 450; 203 slice.pathOutline.arcTo(rect, startAngle, 0); 208 slice.pathOutline.arcTo(rect, startAngle + sweepAngle, 0); 213 startAngle += sweepAngle;
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
ZoomControlWheel.java | 160 private void drawArc(Canvas canvas, int startAngle, int sweepAngle, 167 canvas.drawArc(mBackgroundRect, startAngle, sweepAngle, false, mBackgroundPaint); 173 int startAngle = -MAX_SLIDER_ANGLE - (int) Math.toDegrees(mRotateAngle); 175 if ((startAngle + radians) > 0) radians = -startAngle; 176 drawArc(canvas, startAngle, radians,
|
/external/chromium_org/third_party/flot/ |
jquery.flot.pie.min.js | 23 startAngle: 0-2 factor of PI used for starting angle (in radians) i.e 3/2 starts at the top, 0 and 2 have the same result 56 */(function(e){function r(r){function p(t,n,r){l||(l=!0,s=t.getCanvas(),o=e(s).parent(),i=t.getOptions(),t.setData(d(t.getData())))}function d(t){var n=0,r=0,s=0,o=i.series.pie.combine.color,u=[];for(var a=0;a<t.length;++a){var f=t[a].data;e.isArray(f)&&f.length==1&&(f=f[0]),e.isArray(f)?!isNaN(parseFloat(f[1]))&&isFinite(f[1])?f[1]=+f[1]:f[1]=0:!isNaN(parseFloat(f))&&isFinite(f)?f=[1,+f]:f=[1,0],t[a].data=[f]}for(var a=0;a<t.length;++a)n+=t[a].data[0][1];for(var a=0;a<t.length;++a){var f=t[a].data[0][1];f/n<=i.series.pie.combine.threshold&&(r+=f,s++,o||(o=t[a].color))}for(var a=0;a<t.length;++a){var f=t[a].data[0][1];(s<2||f/n>i.series.pie.combine.threshold)&&u.push({data:[[1,f]],color:t[a].color,label:t[a].label,angle:f*Math.PI*2/n,percent:f/(n/100)})}return s>1&&u.push({data:[[1,r]],color:o,label:i.series.pie.combine.label,angle:r*Math.PI*2/n,percent:r/(n/100)}),u}function v(r,s){function y(){c.clearRect(0,0,h,p),o.children().filter(".pieLabel, .pieLabelBackground").remove()}function b(){var e=i.series.pie.shadow.left,t=i.series.pie.shadow.top,n=10,r=i.series.pie.shadow.alpha,s=i.series.pie.radius>1?i.series.pie.radius:u*i.series.pie.radius;if(s>=h/2-e||s*i.series.pie.tilt>=p/2-t||s<=n)return;c.save(),c.translate(e,t),c.globalAlpha=r,c.fillStyle="#000",c.translate(a,f),c.scale(1,i.series.pie.tilt);for(var o=1;o<=n;o++)c.beginPath(),c.arc(0,0,s,0,Math.PI*2,!1),c.fill(),s-=o;c.restore()}function w(){function l(e,t,i){if(e<=0||isNaN(e))return;i?c.fillStyle=t:(c.strokeStyle=t,c.lineJoin="round"),c.beginPath(),Math.abs(e-Math.PI*2)>1e-9&&c.moveTo(0,0),c.arc(0,0,n,r,r+e/2,!1),c.arc(0,0,n,r+e/2,r+e,!1),c.closePath(),r+=e,i?c.fill():c.stroke()}function d(){function l(t,n,s){if(t.data[0][1]==0)return!0;var u=i.legend.labelFormatter,l,c=i.series.pie.label.formatter;u?l=u(t.label,t):l=t.label,c&&(l=c(l,t));var d=(n+t.angle+n)/2,v=a+Math.round(Math.cos(d)*r),m=f+Math.round(Math.sin(d)*r)*i.series.pie.tilt,g="<span class='pieLabel' id='pieLabel"+s+"' style='position:absolute;top:"+m+"px;left:"+v+"px;'>"+l+"</span>";o.append(g);var y=o.children("#pieLabel"+s),b=m-y.height()/2,w=v-y.width()/2;y.css("top",b),y.css("left",w);if(0-b>0||0-w>0||p-(b+y.height())<0||h-(w+y.width())<0)return!1;if(i.series.pie.label.background.opacity!=0){var E=i.series.pie.label.background.color;E==null&&(E=t.color);var S="top:"+b+"px;left:"+w+"px;";e("<div class='pieLabelBackground' style='position:absolute;width:"+y.width()+"px;height:"+y.height()+"px;"+S+"background-color:"+E+";'></div>").css("opacity",i.series.pie.label.background.opacity).insertBefore(y)}return!0}var n=t,r=i.series.pie.label.radius>1?i.series.pie.label.radius:u*i.series.pie.label.radius;for(var s=0;s<v.length;++s){if(v[s].percent>=i.series.pie.label.threshold*100&&!l(v[s],n,s))return!1;n+=v[s].angle}return!0}var t=Math.PI*i.series.pie.startAngle,n=i.series.pie.radius>1?i.series.pie.radius:u*i.series.pie.radius;c.save(),c.translate(a,f),c.scale(1,i.series.pie.tilt),c.save();var r=t;for(var s=0;s<v.length;++s)v[s].startAngle=r,l(v[s].angle,v[s].color,!0);c.restore();if(i.series.pie.stroke.width>0){c.save(),c.lineWidth=i.series.pie.stroke.width,r=t;for(var s=0;s<v.length;++s)l(v[s].angle,i.series.pie.stroke.color,!1);c.restore()}return m(c),c.restore(),i.series.pie.label.show?d():!0}if(!o)return;var h=r.getPlaceholder().width(),p=r.getPlaceholder().height(),d=o.children().filter(".legend").children().width()||0;c=s,l=!1,u=Math.min(h,p/i.series.pie.tilt)/2,f=p/2+i.series.pie.offset.top,a=h/2,i.series.pie.offset.left=="auto"?i.legend.position.match("w")?a+=d/2:a-=d/2:a+=i.series.pie.offset.left,a<u?a=u:a>h-u&&(a=h-u);var v=r.getData(),g=0;do g>0&&(u*=n),g+=1,y(),i.series.pie.tilt<=.8&&b();while(!w()&&g<t);g>=t&&(y(),o.prepend("<div class='error'>Could not draw pie with labels contained inside canvas</div>")),r.setSeries&&r.insertLegend&&(r.setSeries(v),r.insertLegend())}function m(e){if(i.series.pie.innerRadius>0){e.save();var t=i.series.pie.innerRadius>1?i.series.pie.innerRadius:u*i.series.pie.innerRadius;e.globalCompositeOperation="destination-out",e.beginPath(),e.fillStyle=i.series.pie.stroke.color,e.arc(0,0,t,0,Math.PI*2,!1),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.strokeStyle=i.series.pie.stroke.color,e.arc(0,0,t,0,Math.PI*2,!1),e.stroke(),e.closePath(),e.restore()}}function g(e,t){for(var n=!1,r=-1,i=e.length,s=i-1;++r<i;s=r)(e[r][1]<=t[1]&&t[1]<e[s][1]||e[s][1]<=t[1]&&t[1]<e[r][1])&&t[0]<(e[s][0]-e[r][0])*(t[1]-e[r][1])/(e[s][1]-e[r][1])+e[r][0]&&(n=!n);return n}function y(e,t){var n=r.getData(),i=r.getOptions(),s=i.series.pie.radius>1?i.series.pie.radius:u*i.series.pie.radius,o,l;for(var h=0;h<n.length;++h){var p=n[h];if(p.pie.show){c.save(),c.beginPath(),c.moveTo(0,0),c.arc(0,0,s,p.startAngle,p.startAngle+p.angle/2,!1),c.arc(0,0,s,p.startAngle+p.angle/2,p.startAngle+p.angle,!1),c.closePath(),o=e-a,l=t-f;if(c.isPointInPath){if(c.isPointInPath(e-a,t-f))return c.restore(),{datapoint:[p.percent,p.data],dataIndex:0,series:p,seriesIndex:h}}else{var d=s*Math.cos(p.startAngle),v=s*Math.sin(p.startAngle),m=s*Math.cos(p.startAngle+p.angle/4),y=s*Math.sin(p.startAngle+p.angle/4),b=s*Math.cos(p.startAngle+p.angle/2),w=s*Math.sin( (…) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Path.java | 425 * @param startAngle Starting angle (in degrees) where the arc begins 430 public void arcTo(RectF oval, float startAngle, float sweepAngle, 433 native_arcTo(mNativePath, oval, startAngle, sweepAngle, forceMoveTo); 444 * @param startAngle Starting angle (in degrees) where the arc begins 447 public void arcTo(RectF oval, float startAngle, float sweepAngle) { 449 native_arcTo(mNativePath, oval, startAngle, sweepAngle, false); 550 * @param startAngle Starting angle (in degrees) where the arc begins 553 public void addArc(RectF oval, float startAngle, float sweepAngle) { 558 native_addArc(mNativePath, oval, startAngle, sweepAngle); 730 float startAngle, float sweepAngle, boolean forceMoveTo) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
vgu.c | 262 VGfloat startAngle, 269 VGfloat last = startAngle + angleExtent; 289 coords[0] = x+cos(DEGREES_TO_RADIANS(startAngle))*width/2; 290 coords[1] = y+sin(DEGREES_TO_RADIANS(startAngle))*height/2; 296 VGfloat angle = startAngle + 180; 319 VGfloat angle = startAngle - 180;
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
vgu.c | 262 VGfloat startAngle, 269 VGfloat last = startAngle + angleExtent; 289 coords[0] = x+cos(DEGREES_TO_RADIANS(startAngle))*width/2; 290 coords[1] = y+sin(DEGREES_TO_RADIANS(startAngle))*height/2; 296 VGfloat angle = startAngle + 180; 319 VGfloat angle = startAngle - 180;
|
/developers/build/prebuilts/gradle/BasicAccessibility/BasicAccessibilitySample/src/main/java/com/example/android/basicaccessibility/ |
DialView.java | 231 Double startAngle = Math.PI * (9 / 8d); // Angles are in radiansq 232 Double angle = startAngle + (pos * (Math.PI / 4));
|
/developers/samples/android/ui/accessibility/BasicAccessibility/BasicAccessibilitySample/src/main/java/com/example/android/basicaccessibility/ |
DialView.java | 231 Double startAngle = Math.PI * (9 / 8d); // Angles are in radiansq 232 Double angle = startAngle + (pos * (Math.PI / 4));
|
/development/samples/browseable/BasicAccessibility/src/com.example.android.basicaccessibility/ |
DialView.java | 231 Double startAngle = Math.PI * (9 / 8d); // Angles are in radiansq 232 Double angle = startAngle + (pos * (Math.PI / 4));
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/ |
PolygonShape.cpp | 115 float startAngle = atan2(startArcVertex.y() - arcCenter.y(), startArcVertex.x() - arcCenter.x()); 118 if (startAngle < 0) 119 startAngle += twoPI; 122 float angle = (startAngle > endAngle) ? (startAngle - endAngle) : (startAngle + twoPI - endAngle); 128 float angle = startAngle + arcSegmentAngle * i;
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Path_Delegate.java | 294 float startAngle, float sweepAngle, boolean forceMoveTo) { 300 pathDelegate.arcTo(oval, startAngle, sweepAngle, forceMoveTo); 359 float startAngle, float sweepAngle) { 368 -startAngle, -sweepAngle, Arc2D.OPEN), false); 711 * @param startAngle Starting angle (in degrees) where the arc begins 716 private void arcTo(RectF oval, float startAngle, float sweepAngle, boolean forceMoveTo) { 717 Arc2D arc = new Arc2D.Float(oval.left, oval.top, oval.width(), oval.height(), -startAngle,
|
/external/chromium_org/third_party/mesa/src/include/VG/ |
vgu.h | 102 VGfloat startAngle, VGfloat angleExtent,
|
/external/mesa3d/include/VG/ |
vgu.h | 102 VGfloat startAngle, VGfloat angleExtent,
|
/external/proguard/src/proguard/gui/splash/ |
OverrideGraphics2D.java | 274 public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) 276 graphics.drawArc(x, y, width, height, startAngle, arcAngle); 414 public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) 416 graphics.fillArc(x, y, width, height, startAngle, arcAngle);
|
/frameworks/base/core/jni/android/graphics/ |
Path.cpp | 155 static void arcTo(JNIEnv* env, jobject clazz, SkPath* obj, jobject oval, jfloat startAngle, jfloat sweepAngle, jboolean forceMoveTo) { 158 SkScalar startAngle_ = SkFloatToScalar(startAngle); 194 static void addArc(JNIEnv* env, jobject clazz, SkPath* obj, jobject oval, jfloat startAngle, jfloat sweepAngle) { 197 SkScalar startAngle_ = SkFloatToScalar(startAngle);
|
/frameworks/base/libs/hwui/ |
PathCache.cpp | 602 float startAngle, float sweepAngle, bool useCenter, SkPaint* paint) { 606 entry.shape.arc.mStartAngle = startAngle; 619 path.arcTo(r, startAngle, sweepAngle, !useCenter);
|
/external/chromium_org/third_party/skia/include/core/ |
SkPath.h | 459 @param startAngle Starting angle (in degrees) where the arc begins 464 void arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, 634 @param startAngle Starting angle (in degrees) where the arc begins 637 void addArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle); [all...] |
/external/skia/include/core/ |
SkPath.h | 459 @param startAngle Starting angle (in degrees) where the arc begins 464 void arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, 634 @param startAngle Starting angle (in degrees) where the arc begins 637 void addArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle); [all...] |