HomeSort by relevance Sort by last modified time
    Searched refs:parseFloat (Results 1 - 25 of 240) sorted by null

1 2 3 4 5 6 7 8 910

  /libcore/luni/src/test/java/libcore/java/lang/
FloatTest.java 36 assertEquals(Float.NaN, Float.parseFloat("NaN"));
37 assertEquals(Float.NaN, Float.parseFloat("-NaN"));
38 assertEquals(Float.NaN, Float.parseFloat("+NaN"));
40 Float.parseFloat("NNaN");
45 Float.parseFloat("NaNN");
50 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("+Infinity"));
51 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("Infinity"));
52 assertEquals(Float.NEGATIVE_INFINITY, Float.parseFloat("-Infinity"));
54 Float.parseFloat("IInfinity");
59 Float.parseFloat("Infinityy")
    [all...]
  /external/v8/test/webkit/
parseFloat.js 24 description('Tests for the parseFloat function.');
55 shouldBe("parseFloat()", "NaN");
56 shouldBe("parseFloat('')", "NaN");
57 shouldBe("parseFloat(' ')", "NaN");
58 shouldBe("parseFloat(' 0')", "0");
59 shouldBe("parseFloat('0 ')", "0");
60 shouldBe("parseFloat('x0')", "NaN");
61 shouldBe("parseFloat('0x')", "0");
62 shouldBe("parseFloat(' 1')", "1");
63 shouldBe("parseFloat('1 ')", "1")
    [all...]
  /external/v8/test/mjsunit/
parse-int-float.js 51 assertEquals(0.1, parseFloat('0.1'));
52 assertEquals(0.1, parseFloat('0.1aaa'));
53 assertEquals(0, parseFloat('0aaa'));
54 assertEquals(0, parseFloat('0x12'));
55 assertEquals(77, parseFloat('077'));
99 assertTrue(isNaN(parseFloat(0/0)));
100 assertEquals(Infinity, parseFloat(1/0), "parseFloat Infinity");
101 assertEquals(-Infinity, parseFloat(-1/0), "parseFloat -Infinity")
    [all...]
  /external/chromium-trace/catapult/third_party/flot/
jquery.colorhelpers.min.js 1 (function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o.add=function(c,d){for(var i=0;i<c.length;++i)o[c.charAt(i)]+=d;return o.normalize()};o.scale=function(c,f){for(var i=0;i<c.length;++i)o[c.charAt(i)]*=f;return o.normalize()};o.toString=function(){if(o.a>=1){return"rgb("+[o.r,o.g,o.b].join(",")+")"}else{return"rgba("+[o.r,o.g,o.b,o.a].join(",")+")"}};o.normalize=function(){function clamp(min,value,max){return value<min?min:value>max?max:value}o.r=clamp(0,parseInt(o.r),255);o.g=clamp(0,parseInt(o.g),255);o.b=clamp(0,parseInt(o.b),255);o.a=clamp(0,o.a,1);return o};o.clone=function(){return $.color.make(o.r,o.b,o.g,o.a)};return o.normalize()};$.color.extract=function(elem,css){var c;do{c=elem.css(css).toLowerCase();if(c!=""&&c!="transparent")break;elem=elem.parent()}while(elem.length&&!$.nodeName(elem.get(0),"body"));if(c=="rgba(0, 0, 0, 0)")c="transparent";return $.color.parse(c)};$.color.parse=function(str){var res,m=$.color.make;if(res=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10));if(res=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(str))return m(parseInt(res[1],10),parseInt(res[2],10),parseInt(res[3],10),parseFloat(res[4]));if(res=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55);if(res=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(str))return m(parseFloat(res[1])*2.55,parseFloat(res[2])*2.55,parseFloat(res[3])*2.55,parseFloat(res[4]));if(res=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(str))return m(parseInt(re (…)
jquery.colorhelpers.js 106 return m(parseInt(res[1], 10), parseInt(res[2], 10), parseInt(res[3], 10), parseFloat(res[4]));
110 return m(parseFloat(res[1])*2.55, parseFloat(res[2])*2.55, parseFloat(res[3])*2.55);
114 return m(parseFloat(res[1])*2.55, parseFloat(res[2])*2.55, parseFloat(res[3])*2.55, parseFloat(res[4]));
  /external/jcommander/src/main/java/com/beust/jcommander/converters/
FloatConverter.java 36 return Float.parseFloat(value);
  /libcore/benchmarks/src/benchmarks/regression/
StringToRealBenchmark.java 36 Float.parseFloat(string);
  /external/chromium-trace/catapult/third_party/coverage/coverage/htmlfiles/
jquery.isonscreen.js 12 for(var i in box){box[i] = parseFloat(box[i])};
13 for(var i in container){container[i] = parseFloat(container[i])};
35 for(var i in container){container[i] = parseFloat(container[i])};
  /external/v8/test/webkit/fast/js/kde/
GlobalObject.js 88 shouldBeTrue("isNaN(parseFloat())");
89 shouldBeTrue("isNaN(parseFloat(''))");
90 shouldBeTrue("isNaN(parseFloat(' '))");
91 shouldBeTrue("isNaN(parseFloat('a'))");
92 shouldBe("parseFloat(1)", "1");
93 shouldBe("parseFloat(' 2.3')", "2.3");
94 shouldBe("parseFloat('3.1 x', 3)", "3.1");
95 shouldBe("parseFloat('3.1x', 3)", "3.1");
96 shouldBeFalse("isFinite(parseFloat('Infinity'))");
  /external/nist-sip/java/gov/nist/javax/sip/parser/
TimeStampParser.java 85 float ts = Float.parseFloat(s);
110 float ts = Float.parseFloat(s);
AcceptEncodingParser.java 117 float qv = Float.parseFloat(value.getTokenValue());
AcceptLanguageParser.java 111 float fl = Float.parseFloat(value.getTokenValue());
  /frameworks/base/core/java/android/util/
SizeF.java 145 return new SizeF(Float.parseFloat(string.substring(0, sep_ix)),
146 Float.parseFloat(string.substring(sep_ix + 1)));
XmlPullAttributes.java 91 return Float.parseFloat(s);
125 return Float.parseFloat(s);
KeyValueListParser.java 111 return Float.parseFloat(value);
  /development/cmds/monkey/src/com/android/commands/monkey/
MonkeySourceScript.java 311 float x = Float.parseFloat(args[3]);
312 float y = Float.parseFloat(args[4]);
313 float pressure = Float.parseFloat(args[5]);
314 float size = Float.parseFloat(args[6]);
316 float xPrecision = Float.parseFloat(args[8]);
317 float yPrecision = Float.parseFloat(args[9]);
348 float x = Float.parseFloat(args[3]);
349 float y = Float.parseFloat(args[4]);
350 float pressure = Float.parseFloat(args[5]);
351 float size = Float.parseFloat(args[6])
    [all...]
  /frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
CircleView.java 67 mCircleRadiusMultiplier = Float.parseFloat(
70 mCircleRadiusMultiplier = Float.parseFloat(
73 Float.parseFloat(res.getString(R.string.ampm_circle_radius_multiplier));
RadialSelectorView.java 111 mCircleRadiusMultiplier = Float.parseFloat(
114 mCircleRadiusMultiplier = Float.parseFloat(
117 Float.parseFloat(res.getString(R.string.ampm_circle_radius_multiplier));
124 Float.parseFloat(res.getString(R.string.numbers_radius_multiplier_inner));
126 Float.parseFloat(res.getString(R.string.numbers_radius_multiplier_outer));
129 Float.parseFloat(res.getString(R.string.numbers_radius_multiplier_normal));
132 Float.parseFloat(res.getString(R.string.selection_radius_multiplier));
RadialTextsView.java 106 mCircleRadiusMultiplier = Float.parseFloat(
109 mCircleRadiusMultiplier = Float.parseFloat(
112 Float.parseFloat(res.getString(R.string.ampm_circle_radius_multiplier));
119 mNumbersRadiusMultiplier = Float.parseFloat(
121 mTextSizeMultiplier = Float.parseFloat(
123 mInnerNumbersRadiusMultiplier = Float.parseFloat(
125 mInnerTextSizeMultiplier = Float.parseFloat(
131 mNumbersRadiusMultiplier = Float.parseFloat(
133 mTextSizeMultiplier = Float.parseFloat(
  /packages/apps/Settings/src/com/android/settings/accessibility/
ToggleFontSizePreferenceFragment.java 53 mValues[i] = Float.parseFloat(strEntryValues[i]);
85 float lastVal = Float.parseFloat(indices[0]);
87 float thisVal = Float.parseFloat(indices[i]);
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
DimenResourceLoader.java 38 return Float.parseFloat(rawValue.substring(0, end));
  /frameworks/base/cmds/input/src/com/android/commands/input/
Input.java 104 sendTap(inputSource, Float.parseFloat(args[index+1]),
105 Float.parseFloat(args[index+2]));
116 Float.parseFloat(args[index+1]), Float.parseFloat(args[index+2]),
117 Float.parseFloat(args[index+3]), Float.parseFloat(args[index+4]),
130 sendMove(inputSource, Float.parseFloat(args[index+1]),
131 Float.parseFloat(args[index+2]));
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/loader/
ObjLoader.java 130 verts.add(Float.parseFloat(tokens[1]));
131 verts.add(Float.parseFloat(tokens[2]));
132 verts.add(Float.parseFloat(tokens[3]));
134 norms.add(Float.parseFloat(tokens[1]));
135 norms.add(Float.parseFloat(tokens[2]));
136 norms.add(Float.parseFloat(tokens[3]));
138 uvs.add(Float.parseFloat(tokens[1]));
139 uvs.add((flipV ? 1 - Float.parseFloat(tokens[2]) : Float.parseFloat(tokens[2])));
387 float r = Float.parseFloat(tokens[1])
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
FloatTest.java 90 float result = Float.parseFloat(originalFloatString);
304 * java.lang.Float#parseFloat(java.lang.String)
308 .parseFloat("7.0064923216240853546186479164495e-46"), 0.0);
310 Float.parseFloat("7.0064923216240853546186479164496e-46"), 0.0);
424 * java.lang.Float#parseFloat(java.lang.String)
429 actual = Float.parseFloat("0x00000000000000000000000000000000000000000.0000000000000000000000000000000000000p0000000000000000000000000000000000");
432 actual = Float.parseFloat("+0Xfffff.fffffffffffffffffffffffffffffffp+99F");
435 actual = Float.parseFloat("-0X.123456789abcdefp+99f");
438 actual = Float.parseFloat("-0X123456789abcdef.p+1f");
441 actual = Float.parseFloat("-0X000000000000000000000000000001abcdef.0000000000000000000000000001abefp000000000000000000000000 (…)
    [all...]
  /external/antlr/antlr-3.4/runtime/JavaScript/src/org/
antlr.js 181 o.webkit=parseFloat(m[1]);
204 o.opera=parseFloat(m[1]);
212 o.ie=parseFloat(m[1]);
219 o.gecko=parseFloat(m[1]);

Completed in 520 milliseconds

1 2 3 4 5 6 7 8 910