/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
ZoomControlWheel.java | 93 double radius = Math.sqrt(dx * dx + dy * dy); local 161 double radius, int color, int width) { 162 mBackgroundRect.set((float) (mCenterX - radius), (float) (mCenterY - radius), 163 (float) (mCenterX + radius), (float) (mCenterY + radius));
|
/external/chromium_org/ash/wm/gestures/ |
long_press_affordance_handler.cc | 81 int radius, 91 arc_path.addArc(SkRect::MakeXYWH(center.x() - radius, 92 center.y() - radius, 93 2 * radius, 94 2 * radius), 107 int radius = (end_radius + start_radius) / 2; local 127 arc_path.addArc(SkRect::MakeXYWH(center.x() - radius, 128 center.y() - radius, 129 2 * radius, 130 2 * radius), [all...] |
/external/chromium_org/native_client_sdk/src/examples/demo/life/ |
life.c | 136 int radius = (int)touch.radius.x; local 140 int num = (int)(M_PI * radius * radius / 100.0f); 142 int dx = rand() % (radius * 2) - radius; 143 int dy = rand() % (radius * 2) - radius; 145 if (dx * dx + dy * dy <= radius * radius) [all...] |
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/life/ |
life.c | 140 int radius = (int)touch.radius.x; local 144 int num = (int)(M_PI * radius * radius / 100.0f); 146 int dx = rand() % (radius * 2) - radius; 147 int dy = rand() % (radius * 2) - radius; 149 if (dx * dx + dy * dy <= radius * radius) [all...] |
/external/chromium_org/third_party/flot/ |
jquery.flot.pie.min.js | 21 radius: 0-1 for percentage of fullsize, or a specified pixel length, or 'auto' 36 radius: 0-1 for percentage of fullsize, or a specified pixel length 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( (…) [all...] |
/external/chromium/chrome/browser/ui/views/notifications/ |
balloon_view.cc | 382 SkScalar radius = SkIntToScalar(BubbleBorder::GetCornerRadius()); local 383 SkScalar spline_radius = radius - 384 SkScalarMul(radius, (SK_ScalarSqrt2 - SK_Scalar1) * 4 / 3); 392 path->lineTo(right, bottom - radius); 395 right - radius, bottom); 396 path->lineTo(left + radius, bottom); 399 left, bottom - radius); 406 SkScalar radius = SkIntToScalar(BubbleBorder::GetCornerRadius()); local 407 SkScalar spline_radius = radius - 408 SkScalarMul(radius, (SK_ScalarSqrt2 - SK_Scalar1) * 4 / 3) [all...] |
/external/chromium_org/chrome/browser/ui/views/notifications/ |
balloon_view_views.cc | 412 SkScalar radius = SkIntToScalar(views::BubbleBorder::GetCornerRadius()); local 413 SkScalar spline_radius = radius - 414 SkScalarMul(radius, (SK_ScalarSqrt2 - SK_Scalar1) * 4 / 3); 422 path->lineTo(right, bottom - radius); 425 right - radius, bottom); 426 path->lineTo(left + radius, bottom); 429 left, bottom - radius); 436 SkScalar radius = SkIntToScalar(views::BubbleBorder::GetCornerRadius()); local 437 SkScalar spline_radius = radius - 438 SkScalarMul(radius, (SK_ScalarSqrt2 - SK_Scalar1) * 4 / 3) [all...] |
/external/chromium_org/third_party/WebKit/Tools/GardeningServer/styles/ |
main.css | 58 border-radius: 2px; 61 border-radius: 2px; 223 border-radius: 4px; 235 border-radius: 4px; 247 border-radius: 4px; 259 border-radius: 4px; 271 border-radius: 4px;
|
/external/chromium_org/third_party/angle/samples/gles2_book/Common/ |
esShapes.c | 53 int ESUTIL_API esGenSphere ( int numSlices, float radius, GLfloat **vertices, GLfloat **normals, 84 (*vertices)[vertex + 0] = radius * sinf ( angleStep * (float)i ) * 86 (*vertices)[vertex + 1] = radius * cosf ( angleStep * (float)i ); 87 (*vertices)[vertex + 2] = radius * sinf ( angleStep * (float)i ) * 93 (*normals)[vertex + 0] = (*vertices)[vertex + 0] / radius; 94 (*normals)[vertex + 1] = (*vertices)[vertex + 1] / radius; 95 (*normals)[vertex + 2] = (*vertices)[vertex + 2] / radius;
|
/external/jmonkeyengine/engine/src/test/jme3test/bullet/ |
TestPhysicsCar.java | 126 float radius = 0.5f; local 132 Cylinder wheelMesh = new Cylinder(16, 16, radius, radius * 0.6f, true); 140 wheelDirection, wheelAxle, restLength, radius, true); 148 wheelDirection, wheelAxle, restLength, radius, true); 156 wheelDirection, wheelAxle, restLength, radius, false); 164 wheelDirection, wheelAxle, restLength, radius, false);
|
/external/wpa_supplicant_8/src/radius/ |
radius_server.c | 2 * RADIUS authentication server 13 #include "radius.h" 29 * RADIUS_MAX_MSG_LEN - Maximum message length for incoming RADIUS messages 39 * struct radius_server_counters - RADIUS server statistics counters 55 * struct radius_session - Internal RADIUS server data for a session 76 * struct radius_client - Internal RADIUS server data for a client 93 * struct radius_server_data - Internal RADIUS server data 97 * auth_sock - Socket for RADIUS authentication messages 102 * clients - List of authorized RADIUS clients 233 * If WPS is used with an external RADIUS server (which is quit [all...] |
radius.h | 2 * RADIUS message processing 12 /* RFC 2865 - RADIUS */ 159 /* RFC 2548 - Microsoft Vendor-specific RADIUS Attributes */ 180 /* Default size to be allocated for new RADIUS messages */ 188 * (draft-congdon-radius-8021x-20.txt) */
|
radius.c | 2 * RADIUS message processing 15 #include "radius.h" 19 * struct radius_msg - RADIUS message structure for new and parsed messages 23 * buf - Allocated buffer for RADIUS message 28 * hdr - Pointer to the RADIUS header in buf 94 * radius_msg_new - Create a new RADIUS message 95 * @code: Code for RADIUS header 96 * @identifier: Identifier for RADIUS header 97 * Returns: Context for RADIUS message or %NULL on failure 124 * radius_msg_free - Free a RADIUS messag [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/terrain/ |
TerrainTestModifyHeight.java | 212 private void adjustHeight(Vector3f loc, float radius, float height) { 214 // offset it by radius because in the loop we iterate through 2 radii 215 int radiusStepsX = (int) (radius / terrain.getLocalScale().x); 216 int radiusStepsZ = (int) (radius / terrain.getLocalScale().z); 230 if (isInRadius(locX - loc.x, locZ - loc.z, radius)) { 231 // see if it is in the radius of the tool 232 float h = calculateHeight(radius, height, locX - loc.x, locZ - loc.z); 244 private boolean isInRadius(float x, float y, float radius) { 246 // return true if the distance is less than equal to the radius 247 return point.length() <= radius; [all...] |
/build/tools/droiddoc/templates-ds/assets/ |
android-developer-core.css | 817 -webkit-border-radius:7px; 818 -moz-border-radius:7px; 819 border-radius:7px; 917 border-radius:7px; 918 -moz-border-radius:7px; 919 -webkit-border-radius:7px; 933 border-radius:7px 7px 0 0; 934 -moz-border-radius:7px 7px 0 0; 935 -webkit-border-top-left-radius:7px; 936 -webkit-border-top-right-radius:7px [all...] |
/build/tools/droiddoc/templates-pdk/assets/ |
android-developer-core.css | 816 -webkit-border-radius:7px; 817 -moz-border-radius:7px; 818 border-radius:7px; 916 border-radius:7px; 917 -moz-border-radius:7px; 918 -webkit-border-radius:7px; 932 border-radius:7px 7px 0 0; 933 -moz-border-radius:7px 7px 0 0; 934 -webkit-border-top-left-radius:7px; 935 -webkit-border-top-right-radius:7px [all...] |
/external/chromium/chrome/browser/ui/cocoa/ |
dock_icon.mm | 83 radius:0.0 85 radius:badgeRadius 111 radius:badgeRadius 120 radius:0.0 122 radius:badgeRadius
|
hover_close_button.mm | 91 CGFloat radius = kCircleRadius; 93 radius:radius
|
/external/chromium_org/chrome/browser/resources/ntp4/ |
apps_page.css | 53 border-radius: 5px; 69 border-bottom-left-radius: 5px 5px; 70 border-bottom-right-radius: 5px 5px; 107 border-radius: 2px; 137 border-radius: 2px;
|
most_visited_page.css | 80 border-bottom-left-radius: 3px 3px; 81 border-bottom-right-radius: 3px 3px; 108 border-radius: 3px; 127 border-radius: 3px; 166 border-radius: 3px;
|
/external/chromium_org/chrome/browser/ui/cocoa/ |
dock_icon.mm | 96 radius:0.0 98 radius:badgeRadius 124 radius:badgeRadius 133 radius:0.0 135 radius:badgeRadius
|
/frameworks/base/libs/hwui/ |
FontRenderer.h | 134 uint32_t len, int numGlyphs, uint32_t radius, const float* positions); 216 static void computeGaussianWeights(float* weights, int32_t radius); 217 static void horizontalBlur(float* weights, int32_t radius, const uint8_t *source, uint8_t *dest, 219 static void verticalBlur(float* weights, int32_t radius, const uint8_t *source, uint8_t *dest, 223 void blurImage(uint8_t** image, int32_t width, int32_t height, int32_t radius);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
SelectionHandle.java | 26 * Size of the selection handle radius, in control coordinates. Note that this isn't 27 * necessarily a <b>circular</b> radius; in the case of a rectangular handle, the 28 * width and the height are both equal to this radius. 29 * Note also that this radius is in <b>control</b> coordinates, whereas the rest 37 * Extra number of pixels to look beyond the actual radius of the selection handle
|
/external/wpa_supplicant_8/wpa_supplicant/ |
eapol_test.c | 25 #include "radius/radius.h" 26 #include "radius/radius_client.h" 55 struct radius_client_data *radius; member in struct:eapol_test_data 177 wpa_printf(MSG_DEBUG, "Encapsulating EAP message into a RADIUS " 180 e->radius_identifier = radius_client_get_id(e->radius); 184 printf("Could not create net RADIUS packet\n"); 275 wpa_printf(MSG_DEBUG, " Copied RADIUS State " 280 if (radius_client_send(e->radius, msg, RADIUS_AUTH, e->wpa_s->own_addr) 296 wpa_hexdump(MSG_DEBUG, "TX EAP -> RADIUS", buf, len) [all...] |
/cts/apps/CtsVerifier/lib/colorchecker/ |
imagetesthandler.cpp | 77 void ImageTestHandler::drawLine(int angle, int radius, const Vec3i &color) { 86 float radiusDouble = static_cast<float>(radius); 90 //ALOGV("draw line for (%d, %d)", angle, radius);
|