Home
last modified time | relevance | path

Searched refs:parseLong (Results 1 – 25 of 49) sorted by relevance

12

/external/smali/smali/src/test/java/
DLongLiteralTest.java37 Assert.assertTrue(LiteralTools.parseLong("0x0L") == 0x0); in SuccessHexTests()
38 Assert.assertTrue(LiteralTools.parseLong("0x00L") == 0x0); in SuccessHexTests()
39 Assert.assertTrue(LiteralTools.parseLong("0x1L") == 0x1); in SuccessHexTests()
40 Assert.assertTrue(LiteralTools.parseLong("0x1234567890123456L") == 0x1234567890123456L); in SuccessHexTests()
41 Assert.assertTrue(LiteralTools.parseLong("0x7fffffffffffffffL") == 0x7fffffffffffffffL); in SuccessHexTests()
42 Assert.assertTrue(LiteralTools.parseLong("0x8000000000000000L") == Long.MIN_VALUE); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseLong("0xFFFFFFFFFFFFFFFFL") == -1); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseLong("-0x00L") == 0); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseLong("-0x01L") == -1); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseLong("-0x1234567890123456L") == -0x1234567890123456L); in SuccessHexTests()
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
DLongTest.java203 long l = Long.parseLong("89000000005"); in test_parseLongLjava_lang_String2()
205 assertEquals("Returned incorrect value for 0", 0, Long.parseLong("0")); in test_parseLongLjava_lang_String2()
207 .parseLong("-9223372036854775808") == 0x8000000000000000L); in test_parseLongLjava_lang_String2()
209 .parseLong("9223372036854775807") == 0x7fffffffffffffffL); in test_parseLongLjava_lang_String2()
213 Long.parseLong("9223372036854775808"); in test_parseLongLjava_lang_String2()
222 Long.parseLong("-9223372036854775809"); in test_parseLongLjava_lang_String2()
236 100000000L, Long.parseLong("100000000", 10)); in test_parseLongLjava_lang_StringI()
237 assertEquals("Returned incorrect value from hex string", 68719476735L, Long.parseLong( in test_parseLongLjava_lang_StringI()
240 + Long.parseLong("77777777777"), Long.parseLong("77777777777", in test_parseLongLjava_lang_StringI()
243 .parseLong("0", 16)); in test_parseLongLjava_lang_StringI()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/srt/
DSrtParser.java51 long hours = Long.parseLong(in.split(":")[0].trim()); in parse()
52 long minutes = Long.parseLong(in.split(":")[1].trim()); in parse()
53 long seconds = Long.parseLong(in.split(":")[2].split(",")[0].trim()); in parse()
54 long millies = Long.parseLong(in.split(":")[2].split(",")[1].trim()); in parse()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DRAckParser.java80 rack.setRSequenceNumber(Long.parseLong(number)); in parse()
83 rack.setCSequenceNumber(Long.parseLong(number)); in parse()
DRSeqParser.java77 rseq.setSeqNumber(Long.parseLong(number)); in parse()
DCSeqParser.java64 c.setSeqNumber(Long.parseLong(number)); in parse()
DTimeStampParser.java88 long ts = Long.parseLong(firstNumber); in parse()
/external/chromium_org/third_party/WebKit/Source/wtf/
DDateMath.cpp545 static bool parseLong(const char* string, char** stopPosition, int base, long* result) in parseLong() function
602 if (!parseLong(dateString, &newPosStr, 10, &day)) in parseDateFromNullTerminatedCharacters()
623 if (!parseLong(dateString, &newPosStr, 10, &month)) in parseDateFromNullTerminatedCharacters()
629 if (!parseLong(dateString, &newPosStr, 10, &day)) in parseDateFromNullTerminatedCharacters()
636 if (!parseLong(dateString, &newPosStr, 10, &day)) in parseDateFromNullTerminatedCharacters()
700 parseLong(dateString, &newPosStr, 10, &hour); in parseDateFromNullTerminatedCharacters()
719 if (!parseLong(dateString, &newPosStr, 10, &minute)) in parseDateFromNullTerminatedCharacters()
734 if (!parseLong(dateString, &newPosStr, 10, &second)) in parseDateFromNullTerminatedCharacters()
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/
DAreaCodeMap.java151 Long.parseLong(number.getCountryCode() + phoneUtil.getNationalSignificantNumber(number)); in lookup()
158 phonePrefix = Long.parseLong(phonePrefixStr.substring(0, possibleLength)); in lookup()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
DXMPUtils.java368 return Long.parseLong(rawValue.substring(2), 16); in convertToLong()
372 return Long.parseLong(rawValue); in convertToLong()
/external/smack/src/com/kenai/jbosh/
DBOSHClient.java1315 ackUpTo = Long.parseLong(req.getAttribute(Attributes.RID)); in processRequestAcknowledgements()
1317 ackUpTo = Long.parseLong(acked); in processRequestAcknowledgements()
1327 Long pendingRID = Long.parseLong( in processRequestAcknowledgements()
1347 Long rid = Long.parseLong(req.getAttribute(Attributes.RID)); in processResponseAcknowledgementData()
1385 Long report = Long.parseLong(reportStr); in processResponseAcknowledgementReport()
1386 Long time = Long.parseLong(resp.getAttribute(Attributes.TIME)); in processResponseAcknowledgementReport()
1397 Long pendingRID = Long.parseLong( in processResponseAcknowledgementReport()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowContentUris.java24 return Long.parseLong(path); in parseId()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/
DAbstractAppleMetaDataBox.java115 IsoTypeWriter.writeUInt32(bb, Long.parseLong(value)); in setValue()
117 IsoTypeWriter.writeUInt64(bb, Long.parseLong(value)); in setValue()
/external/apache-http/src/org/apache/http/impl/client/
DDefaultConnectionKeepAliveStrategy.java68 return Long.parseLong(value) * 1000; in getKeepAliveDuration()
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/provider/
DDataPacketProvider.java34 long seq = Long.parseLong(parser.getAttributeValue("", "seq")); in parseExtension()
/external/apache-http/src/org/apache/http/impl/entity/
DStrictContentLengthStrategy.java210 long len = Long.parseLong(s); in determineLength()
DLaxContentLengthStrategy.java241 contentlen = Long.parseLong(header.getValue()); in determineLength()
/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHeaderParser.java97 long seconds = Long.parseLong(value); in parseSeconds()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
DColorResourceLoader.java49 long color = Long.parseLong(rawValue.substring(1), 16); in convertRawValue()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DDERObjectIdentifier.java239 writeField(aOut, first + Long.parseLong(secondToken)); in doOutput()
251 writeField(aOut, Long.parseLong(token)); in doOutput()
/external/oauth/core/src/main/java/net/oauth/
DSimpleOAuthValidator.java89 long timestamp = Long.parseLong(message.getParameter(OAuth.OAUTH_TIMESTAMP)) * 1000L; in validateTimestampAndNonce()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DContentProviderOperationBuilderTest.java42 assertThat(Long.parseLong(values.get("longTest").toString()), equalTo(10L)); in withValue()
/external/nist-sip/java/gov/nist/javax/sip/stack/
DMessageLog.java98 long ts = Long.parseLong(timeStamp); in MessageLog()
/external/smack/src/org/jivesoftware/smackx/provider/
DStreamInitiationProvider.java90 fileSize = Long.parseLong(size); in parseIQ()
/external/smack/src/org/jivesoftware/smackx/packet/
DLastActivity.java122 lastActivity.setLastActivity(Long.parseLong(seconds)); in parseIQ()

12