Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/com/android/internal/os/
DStoragedUidIoStatsReader.java90 final long fgCharsRead = Long.parseLong(fields[1], 10); in readAbsolute()
91 final long fgCharsWrite = Long.parseLong(fields[2], 10); in readAbsolute()
92 final long fgBytesRead = Long.parseLong(fields[3], 10); in readAbsolute()
93 final long fgBytesWrite = Long.parseLong(fields[4], 10); in readAbsolute()
94 final long bgCharsRead = Long.parseLong(fields[5], 10); in readAbsolute()
95 final long bgCharsWrite = Long.parseLong(fields[6], 10); in readAbsolute()
96 final long bgBytesRead = Long.parseLong(fields[7], 10); in readAbsolute()
97 final long bgBytesWrite = Long.parseLong(fields[8], 10); in readAbsolute()
98 final long fgFsync = Long.parseLong(fields[9], 10); in readAbsolute()
99 final long bgFsync = Long.parseLong(fields[10], 10); in readAbsolute()
DKernelMemoryBandwidthStats.java76 + Long.parseLong(splitter.next()) / 1000000); in parseStats()
78 mBandwidthEntries.put(bandwidth, Long.parseLong(splitter.next()) / 1000000); in parseStats()
DKernelCpuSpeedReader.java76 long time = Long.parseLong(splitter.next()) * mJiffyMillis; in readDelta()
110 long time = Long.parseLong(splitter.next()) * mJiffyMillis; in readAbsolute()
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
DBatteryStatsParser.java94 time += Long.parseLong(matches[0]) * 60 * 60 * 1000; // hours in getTime()
99 time += Long.parseLong(matches[0]) * 60 * 1000; // minutes in getTime()
104 time += Long.parseLong(matches[0]) * 1000; // seconds in getTime()
109 time += Long.parseLong(group); // milliseconds in getTime()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DParseUtilsTest.java49 assertEquals(1L, ParseUtils.parseLong(null, 1)); in testParseLong()
50 assertEquals(1L, ParseUtils.parseLong("", 1)); in testParseLong()
51 assertEquals(1L, ParseUtils.parseLong("1x", 1)); in testParseLong()
52 assertEquals(2L, ParseUtils.parseLong("2", 1)); in testParseLong()
/frameworks/base/core/tests/SvcMonitor/src/com/android/google/experimental/svcmoniter/
DSvcMonitor.java184 psTime = Long.parseLong(statBreakDown[1]) in getPsTime()
185 + Long.parseLong(statBreakDown[2]) in getPsTime()
186 + Long.parseLong(statBreakDown[3]) in getPsTime()
187 + Long.parseLong(statBreakDown[4]); in getPsTime()
189 psTime = Long.parseLong(statBreakDown[13]) in getPsTime()
190 + Long.parseLong(statBreakDown[14]); in getPsTime()
/frameworks/base/media/java/android/media/
DSRTRenderer.java195 long hours = Long.parseLong(in.split(":")[0].trim()); in parseMs()
196 long minutes = Long.parseLong(in.split(":")[1].trim()); in parseMs()
197 long seconds = Long.parseLong(in.split(":")[2].split(",")[0].trim()); in parseMs()
198 long millies = Long.parseLong(in.split(":")[2].split(",")[1].trim()); in parseMs()
DTtmlRenderer.java134 double durationSeconds = Long.parseLong(hours) * 3600; in parseTimeExpression()
136 durationSeconds += Long.parseLong(minutes) * 60; in parseTimeExpression()
138 durationSeconds += Long.parseLong(seconds); in parseTimeExpression()
142 durationSeconds += (frames != null) ? ((double)Long.parseLong(frames)) / frameRate : 0; in parseTimeExpression()
144 durationSeconds += (subframes != null) ? ((double)Long.parseLong(subframes)) in parseTimeExpression()
DUtils.java263 Long.parseLong(s.substring(0, ix), 10),
264 Long.parseLong(s.substring(ix + 1), 10));
266 long value = Long.parseLong(s);
DMediaHTTPConnection.java123 return Long.parseLong(val) != 0; in parseBoolean()
357 mTotalSize = Long.parseLong(total); in seekTo()
/frameworks/base/core/java/android/content/
DContentUris.java89 return last == null ? -1 : Long.parseLong(last); in parseId()
130 Long.parseLong(last); in removeId()
/frameworks/base/services/core/java/com/android/server/am/
DMemoryStatUtil.java222 memoryStat.pgfault = Long.parseLong(splits[PGFAULT_INDEX]); in parseMemoryStatFromProcfs()
223 memoryStat.pgmajfault = Long.parseLong(splits[PGMAJFAULT_INDEX]); in parseMemoryStatFromProcfs()
230 memoryStat.startTimeNanos = Long.parseLong(splits[START_TIME_INDEX]) * JIFFY_NANOS; in parseMemoryStatFromProcfs()
297 final long sizeInBytes = Long.parseLong(m.group(2)); in parseProcessIonHeapSizesFromDebugfs()
333 return m.find() ? Long.parseLong(m.group(1)) : 0; in tryParseLong()
/frameworks/base/core/java/com/android/internal/util/
DParseUtils.java48 public static long parseLong(@Nullable String value, long defValue) { in parseLong() method in ParseUtils
58 return Long.parseLong(value, base); in parseLongWithBase()
DFileRotator.java430 startMillis = Long.parseLong(name.substring(dotIndex + 1, dashIndex)); in parse()
435 endMillis = Long.parseLong(name.substring(dashIndex + 1)); in parse()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/omadm/
DPpsMoParser.java703 oiArray[i] = parseLong(oiStrArray[i], 16); in parseRoamingConsortiumOI()
754 hessid = parseLong(getPpsNodeValue(child), 16); in parseNetworkIdInstance()
1231 downlinkBandwidth = parseLong(getPpsNodeValue(child), 10); in parseMinBackhaulThresholdInstance()
1234 uplinkBandwidth = parseLong(getPpsNodeValue(child), 10); in parseMinBackhaulThresholdInstance()
1276 updateParam.setUpdateIntervalInMinutes(parseLong(getPpsNodeValue(child), 10)); in parseUpdateParameter()
1555 config.setUsageLimitDataLimit(parseLong(getPpsNodeValue(child), 10)); in parseUsageLimits()
1561 config.setUsageLimitTimeLimitInMinutes(parseLong(getPpsNodeValue(child), 10)); in parseUsageLimits()
1565 parseLong(getPpsNodeValue(child), 10)); in parseUsageLimits()
1636 private static long parseLong(String value, int radix) throws ParsingException { in parseLong() method in PpsMoParser
1638 return Long.parseLong(value, radix); in parseLong()
/frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/
DRequestSync.java199 mExtras.putLong(key, Long.parseLong(value)); in parseArgs()
203 mExtras.putFloat(key, Long.parseLong(value)); in parseArgs()
207 mExtras.putFloat(key, Long.parseLong(value)); in parseArgs()
/frameworks/layoutlib/bridge/src/com/android/internal/util/
DXmlUtils_Delegate.java72 return ((int)Long.parseLong(nm.substring(index), base)) * sign; in convertValueToInt()
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/
DMainActivity.java139 builder.setMinimumLatency(Long.parseLong(delay) * 1000); in scheduleJob()
143 builder.setOverrideDeadline(Long.parseLong(deadline) * 1000); in scheduleJob()
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java782 lastSuccessfulRunTime = val == null ? 0 : Long.parseLong(val); in restoreJobFromXml()
785 lastFailedRunTime = val == null ? 0 : Long.parseLong(val); in restoreJobFromXml()
838 final long periodMillis = Long.parseLong(val); in restoreJobFromXml()
963 ? Long.parseLong(netUnwantedCapabilities) in buildConstraintsFromXml()
968 BitUtils.unpackBits(Long.parseLong(netCapabilities)), in buildConstraintsFromXml()
971 BitUtils.unpackBits(Long.parseLong(netTransportTypes))); in buildConstraintsFromXml()
1018 long initialBackoff = Long.parseLong(val); in maybeBuildBackoffPolicyFromXml()
1042 ? Long.parseLong(val) in buildRtcExecutionTimesFromXml()
1046 ? Long.parseLong(val) in buildRtcExecutionTimesFromXml()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppIdleHistory.java182 mScreenOnDuration = Long.parseLong(reader.readLine()); in readScreenOnTime()
183 mElapsedDuration = Long.parseLong(reader.readLine()); in readScreenOnTime()
549 Long.parseLong(parser.getAttributeValue(null, ATTR_ELAPSED_IDLE)); in readAppIdleTimes()
551 Long.parseLong(parser.getAttributeValue(null, ATTR_SCREEN_IDLE)); in readAppIdleTimes()
590 return Long.parseLong(value); in getLongValue()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DCpuFrequencies.java67 final long freq = Long.parseLong(coreAndFreq[1]); in parseString()
/frameworks/base/core/java/android/util/
DKeyValueListParser.java98 return Long.parseLong(value); in getLong()
209 return Long.parseLong(value); in getDurationMillis()
/frameworks/base/services/core/java/com/android/server/pm/
DKeySetManagerService.java753 lastIssuedKeyId = Long.parseLong(parser.getAttributeValue(null, "value")); in readKeySetsLPw()
755 lastIssuedKeySetId = Long.parseLong(parser.getAttributeValue(null, "value")); in readKeySetsLPw()
791 currentKeySetId = Long.parseLong(encodedID); in readKeySetListLPw()
797 long id = Long.parseLong(encodedID); in readKeySetListLPw()
806 long identifier = Long.parseLong(encodedID); in readPublicKeyLPw()
/frameworks/base/tools/preload/
DRecord.java137 time = Long.parseLong(parts[6]); in Record()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java216 contentLength = Long.parseLong(urlConnection.getHeaderField("Content-Length")); in get()
266 return Long.parseLong(list[delayIndex]); in getDownloadDelay()

12345