Home
last modified time | relevance | path

Searched refs:parseInt (Results 1 – 25 of 511) sorted by relevance

12345678910>>...21

/external/smali/smali/src/test/java/
DIntLiteralTest.java38 Assert.assertTrue(LiteralTools.parseInt("0x0") == 0x0); in SuccessHexTests()
39 Assert.assertTrue(LiteralTools.parseInt("0x00") == 0x0); in SuccessHexTests()
40 Assert.assertTrue(LiteralTools.parseInt("0x1") == 0x1); in SuccessHexTests()
41 Assert.assertTrue(LiteralTools.parseInt("0x12345678") == 0x12345678); in SuccessHexTests()
42 Assert.assertTrue(LiteralTools.parseInt("0x7fffffff") == 0x7fffffff); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseInt("0x80000000") == Integer.MIN_VALUE); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseInt("0xFFFFFFFF") == -1); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseInt("-0x00") == 0); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseInt("-0x01") == -1); in SuccessHexTests()
48 Assert.assertTrue(LiteralTools.parseInt("-0x12345678") == -0x12345678); in SuccessHexTests()
[all …]
/external/v8/test/mjsunit/
Dparse-int-float.js28 assertEquals(0, parseInt('0'));
29 assertEquals(0, parseInt(' 0'));
30 assertEquals(0, parseInt(' 0 '));
32 assertEquals(77, parseInt('077'));
33 assertEquals(77, parseInt(' 077'));
34 assertEquals(77, parseInt(' 077 '));
35 assertEquals(-77, parseInt(' -077'));
37 assertEquals(3, parseInt('11', 2));
38 assertEquals(4, parseInt('11', 3));
39 assertEquals(4, parseInt('11', 3.8));
[all …]
/external/v8/test/webkit/
DparseInt-expected.txt24 Tests for the parseInt function.
29 PASS parseInt('123') is 123
30 PASS parseInt('123x4') is 123
31 PASS parseInt('-123') is -123
32 PASS parseInt('0x123') is 0x123
33 PASS parseInt('0x123x4') is 0x123
34 PASS parseInt('-0x123x4') is -0x123
35 PASS parseInt('-') is Number.NaN
36 PASS parseInt('0x') is Number.NaN
37 PASS parseInt('-0x') is Number.NaN
[all …]
Dnumeric-conversion-expected.txt30 PASS parseInt('1152921504606847105').toString() is '1152921504606847200'
33 PASS parseInt('0x1000000000000081', 16).toString(16) is '1000000000000100'
36 PASS parseInt('100000000000000000201', 8).toString(8) is '100000000000000000400'
38 PASS parseInt('100000000000000000000000000000000000000000000000000000000000000000000000000000000000…
39 PASS parseInt('0x1000000000000000000000000000000000000000000000000000000000000000000000000000000000…
40 PASS parseInt('100000000000000000000000000000000000000000000000000000000000000000000000000000000000…
41 PASS parseInt('9007199254740992e2000').toString() is '9007199254740992'
42 PASS parseInt('9007199254740992.0e2000').toString() is '9007199254740992'
43 PASS parseInt(NaN) is NaN
44 PASS parseInt(-Infinity) is NaN
[all …]
/external/v8/test/mjsunit/regress/
Dregress-1246.js54 assertEquals(NaN, parseInt("", radix));
55 assertEquals(23, parseInt("23", radix));
56 assertEquals(0xaf, parseInt("0xaf", radix));
57 assertEquals(NaN, parseInt("af", radix));
62 assertEquals(NaN, parseInt("", radix));
63 assertEquals(NaN, parseInt("23", radix));
64 assertEquals(NaN, parseInt("0xaf", radix));
65 assertEquals(NaN, parseInt("af", radix));
70 assertEquals(NaN, parseInt("", radix));
71 assertEquals(23, parseInt("23", radix));
[all …]
Dregress-955.js31 assertEquals(-0, parseInt("-0"));
32 assertEquals(0, parseInt("+0"));
35 assertEquals(NaN, parseInt("- 0"));
36 assertEquals(NaN, parseInt("+ 0"));
37 assertEquals(NaN, parseInt("-\t0"));
38 assertEquals(NaN, parseInt("+\t0"));
41 assertEquals(-0, parseInt(" -0"));
42 assertEquals(0, parseInt(" +0"));
43 assertEquals(-0, parseInt("\t-0"));
44 assertEquals(0, parseInt("\t+0"));
/external/v8/test/webkit/fast/js/kde/
DGlobalObject-expected.txt43 PASS isNaN(parseInt("Hello", 8)) is true
44 PASS isNaN(parseInt("FFF", 10)) is true
45 PASS isNaN(parseInt(".5", 10)) is true
48 PASS isNaN(parseInt()) is true
49 PASS isNaN(parseInt('')) is true
50 PASS isNaN(parseInt(' ')) is true
51 PASS isNaN(parseInt('a')) is true
52 PASS parseInt(1) is 1
53 PASS parseInt(1234567890123456) is 1234567890123456
54 PASS parseInt(1.2) is 1
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DRemoteDebugEventSocketListener.java266 listener.enterAlt(Integer.parseInt(elements[1])); in dispatch()
269 listener.enterSubRule(Integer.parseInt(elements[1])); in dispatch()
272 listener.exitSubRule(Integer.parseInt(elements[1])); in dispatch()
275 listener.enterDecision(Integer.parseInt(elements[1]), elements[2].equals("true")); in dispatch()
278 listener.exitDecision(Integer.parseInt(elements[1])); in dispatch()
281 listener.location(Integer.parseInt(elements[1]), in dispatch()
282 Integer.parseInt(elements[2])); in dispatch()
302 listener.LT(Integer.parseInt(elements[1]), t); in dispatch()
305 listener.mark(Integer.parseInt(elements[1])); in dispatch()
309 listener.rewind(Integer.parseInt(elements[1])); in dispatch()
[all …]
/external/chromium-trace/catapult/third_party/flot/
Djquery.colorhelpers.js59 o.r = clamp(0, parseInt(o.r), 255);
60 o.g = clamp(0, parseInt(o.g), 255);
61 o.b = clamp(0, parseInt(o.b), 255);
102 return m(parseInt(res[1], 10), parseInt(res[2], 10), parseInt(res[3], 10));
106 … return m(parseInt(res[1], 10), parseInt(res[2], 10), parseInt(res[3], 10), parseFloat(res[4]));
118 return m(parseInt(res[1], 16), parseInt(res[2], 16), parseInt(res[3], 16));
122 … return m(parseInt(res[1]+res[1], 16), parseInt(res[2]+res[2], 16), parseInt(res[3]+res[3], 16));
Djquery.colorhelpers.min.js1parseInt(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…
/external/testng/src/main/java/org/testng/remote/strprotocol/
DMessageHelper.java45 return idx == -1 ? Integer.parseInt(message) : Integer.parseInt(message.substring(0, idx)); in getMessageType()
51 return new GenericMessage(Integer.parseInt(messageParts[0])); in unmarshallGenericMessage()
54 GenericMessage result = new GenericMessage(Integer.parseInt(messageParts[0])); in unmarshallGenericMessage()
58 result.setTestCount(Integer.parseInt(messageParts[i + 1])); in unmarshallGenericMessage()
60 result.setSuiteCount(Integer.parseInt(messageParts[i + 1])); in unmarshallGenericMessage()
74 Integer.parseInt(messageParts[2])); in createSuiteMessage()
77 int count = Integer.parseInt(messageParts[3]); in createSuiteMessage()
98 Integer.parseInt(messageParts[3]), in createTestMessage()
99 Integer.parseInt(messageParts[4]), in createTestMessage()
100 Integer.parseInt(messageParts[5]), in createTestMessage()
[all …]
/external/v8/tools/
Dtickprocessor.js76 parsers: [null, parseInt, parseInt, parseInt, null, 'var-args'],
78 'code-move': { parsers: [parseInt, parseInt],
80 'code-delete': { parsers: [parseInt],
86 'snapshot-pos': { parsers: [parseInt, parseInt],
112 var funcAddr = parseInt(maybe_func[0]);
162 'shared-library': { parsers: [null, parseInt, parseInt],
165 parsers: [null, parseInt, parseInt, parseInt, null, 'var-args'],
167 'code-move': { parsers: [parseInt, parseInt],
169 'code-delete': { parsers: [parseInt],
171 'sfi-move': { parsers: [parseInt, parseInt],
[all …]
/external/v8/test/cctest/
Dlog-eq-of-logging-and-traversal.js42 parsers: [null, parseInt, parseInt, parseInt, null, 'var-args'],
44 'code-move': { parsers: [parseInt, parseInt],
47 'sfi-move': { parsers: [parseInt, parseInt],
67 var funcAddr = parseInt(maybe_func[0]);
/external/v8/test/mjsunit/es6/
Dnumeric-literals.js71 assertEquals(0, parseInt('0o77'));
72 assertEquals(0, parseInt('0o77', 8));
73 assertEquals(0, parseInt('0b11'));
74 assertEquals(0, parseInt('0b11', 2));
/external/clang/lib/Basic/
DVersionTuple.cpp40 static bool parseInt(StringRef &input, unsigned &value) { in parseInt() function
63 if (parseInt(input, major)) return true; in tryParse()
73 if (parseInt(input, minor)) return true; in tryParse()
83 if (parseInt(input, micro)) return true; in tryParse()
93 if (parseInt(input, build)) return true; in tryParse()
/external/jetty/src/java/org/eclipse/jetty/websocket/
DWebSocketServlet.java68 … _webSocketFactory = new WebSocketFactory(this, bs == null ? 8192 : Integer.parseInt(bs)); in init()
73 _webSocketFactory.setMaxIdleTime(Integer.parseInt(max)); in init()
77 _webSocketFactory.setMaxTextMessageSize(Integer.parseInt(max)); in init()
81 _webSocketFactory.setMaxBinaryMessageSize(Integer.parseInt(max)); in init()
85 _webSocketFactory.setMinVersion(Integer.parseInt(min)); in init()
/external/ksoap2/kobjects/org/ksoap2/kobjects/isodate/
DIsoDate.java82 Integer.parseInt(text.substring(0, 4))); in stringToDate()
85 Integer.parseInt(text.substring(5, 7)) in stringToDate()
90 Integer.parseInt(text.substring(8, 10))); in stringToDate()
106 Integer.parseInt(text.substring(0, 2))); in stringToDate()
110 Integer.parseInt(text.substring(3, 5))); in stringToDate()
113 Integer.parseInt(text.substring(6, 8))); in stringToDate()
/external/lzma/Java/SevenZip/
DLzmaAlone.java36 DictionarySize = 1 << Integer.parseInt(s.substring(1)); in ParseSwitch()
41 Fb = Integer.parseInt(s.substring(2)); in ParseSwitch()
45 Algorithm = Integer.parseInt(s.substring(1)); in ParseSwitch()
47 Lc = Integer.parseInt(s.substring(2)); in ParseSwitch()
49 Lp = Integer.parseInt(s.substring(2)); in ParseSwitch()
51 Pb = Integer.parseInt(s.substring(2)); in ParseSwitch()
121 NumBenchmarkPasses = Integer.parseInt(s); in Parse()
/external/doclava/res/assets/templates/assets/
Ddoclava-developer-docs.js78 content.css({marginLeft:parseInt(navWidth) + 6 + "px"}); //account for 6px-wide handle-bar
81 …content.css({width:parseInt(windowWidth) - parseInt(navWidth) - 6 + "px"}); // necessary in order …
97 classesNav.css({height:swapperHeight - parseInt(packageHeight) + "px"});
98 …$("#packages-nav").css({height:parseInt(packageHeight) - 6 + "px"}); //move 6px to give space for …
237 classesNav.css({height:swapperHeight - parseInt(resizePackagesNav.css("height")) + "px"});
240 …$("#packages-nav").css({height:parseInt(resizePackagesNav.css("height")) - 6 + "px"}); //move 6px …
261 … $("#classes-nav").css({height:swapperHeight - parseInt(resizePackagesNav.css("height")) + "px"});
272 if ( parseInt($("#jd-content").css("height")) <= parseInt(docContent.css("height")) ) {
288 content.css({marginLeft:parseInt(sidenavWidth) + 6 + "px"}); //account for 6px-wide handle-bar
291 …content.css({width:parseInt(windowWidth) - parseInt(sidenavWidth) - 6 + "px"}); // necessary in or…
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DGeneralName.java334 int maskVal = Integer.parseInt(mask); in parseIPv4Mask()
349 addr[offset + index++] = (byte)Integer.parseInt(sTok.nextToken()); in parseIPv4()
356 int maskVal = Integer.parseInt(mask); in parseMask()
400 val[index++] = Integer.parseInt(e, 16); in parseIPv6()
410 … val[index++] = (Integer.parseInt(eTok.nextToken()) << 8) | Integer.parseInt(eTok.nextToken()); in parseIPv6()
411 … val[index++] = (Integer.parseInt(eTok.nextToken()) << 8) | Integer.parseInt(eTok.nextToken()); in parseIPv6()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/
DUtils.java263 int year = Integer.parseInt(buildIdParts[buildIdSegment].substring(0, 4)); in getDateFromBuildID()
264 int month = Integer.parseInt(buildIdParts[buildIdSegment].substring(4, 6)) - 1; in getDateFromBuildID()
265 int date = Integer.parseInt(buildIdParts[buildIdSegment].substring(6, 8)); in getDateFromBuildID()
266 int hours = Integer.parseInt(buildIdParts[buildIdSegment].substring(8, 10)); in getDateFromBuildID()
267 int min = Integer.parseInt(buildIdParts[buildIdSegment].substring(10, 12)); in getDateFromBuildID()
275 int year = Integer.parseInt(buildIdParts[0].substring(1, 5)); in getDateFromBuildID()
276 int month = Integer.parseInt(buildIdParts[0].substring(5, 7)) - 1; in getDateFromBuildID()
277 int date = Integer.parseInt(buildIdParts[0].substring(7, 9)); in getDateFromBuildID()
278 int hours = Integer.parseInt(buildIdParts[1].substring(0, 2)); in getDateFromBuildID()
279 int min = Integer.parseInt(buildIdParts[1].substring(2, 4)); in getDateFromBuildID()
/external/v8/tools/profviz/
Dcomposer.js222 int_timestamp = parseInt(timestamp);
315 'shared-library': { parsers: [null, parseInt, parseInt],
317 'code-creation': { parsers: [null, parseInt, parseInt, parseInt, null],
319 'code-move': { parsers: [parseInt, parseInt],
321 'code-delete': { parsers: [parseInt],
323 'code-deopt': { parsers: [parseTimeStamp, parseInt],
327 'tick': { parsers: [parseInt, parseTimeStamp,
328 null, null, parseInt, 'var-args'],
Dstdio.js35 var distortion = parseInt(result.distortion);
40 var range_start = parseInt(rangelimits[0]);
41 var range_end = parseInt(rangelimits[1]);
/external/libvncserver/webclients/novnc/include/web-socket-js/
Dswfobject.js4parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag…
/external/nist-sip/java/gov/nist/javax/sip/parser/
DHeaderParser.java85 int day = Integer.parseInt(s1); in date()
118 int yr = Integer.parseInt(s2); in date()
134 int hour = Integer.parseInt(s); in time()
138 int min = Integer.parseInt(s); in time()
142 int sec = Integer.parseInt(s); in time()

12345678910>>...21