Home
last modified time | relevance | path

Searched refs:totalTime (Results 1 – 25 of 30) sorted by relevance

12

/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A DKernelWakelockReader.java213 info.totalTime * 1000 /* ms to us */, sKernelWakelockUpdateVersion)); in updateWakelockStats()
218 kwlStats.mTotalTime = info.totalTime * 1000; in updateWakelockStats()
234 long totalTime; in parseProcWakelocks() local
272 totalTime = wlData[2] * 1000; in parseProcWakelocks()
275 totalTime = (wlData[2] + 500) / 1000; in parseProcWakelocks()
280 staleStats.put(name, new KernelWakelockStats.Entry(count, totalTime, in parseProcWakelocks()
286 kwlStats.mTotalTime += totalTime; in parseProcWakelocks()
289 kwlStats.mTotalTime = totalTime; in parseProcWakelocks()
H A DKernelWakelockStats.java29 Entry(int count, long totalTime, int version) { in Entry() argument
31 mTotalTime = totalTime; in Entry()
H A DGnssPowerCalculator.java126 long totalTime = 0; in getAverageGnssPower() local
130 totalTime += timePerLevel; in getAverageGnssPower()
133 if (totalTime != 0) { in getAverageGnssPower()
134 averagePower = totalPower / totalTime; in getAverageGnssPower()
/aosp14/frameworks/base/core/java/android/app/
H A DWaitResult.java83 public long totalTime; field in WaitResult
99 dest.writeLong(totalTime); in writeToParcel()
120 totalTime = source.readLong(); in WaitResult()
129 pw.println(prefix + " totalTime=" + totalTime); in dump()
H A DInstrumentation.java448 long totalTime = System.currentTimeMillis() - startTime; in waitForEnterAnimationComplete() local
449 timeout -= totalTime; in waitForEnterAnimationComplete()
/aosp14/frameworks/base/core/java/android/animation/
H A DTimeAnimator.java42 long totalTime = currentTime - mStartTime; in animateBasedOnTime() local
45 mListener.onTimeUpdate(this, totalTime, deltaTime); in animateBasedOnTime()
96 void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime); in onTimeUpdate() argument
/aosp14/frameworks/base/libs/hwui/
H A DSkiaInterpolator.cpp152 SkMSec totalTime = endTime - startTime; in timeToT() local
154 endTime = SkScalarFloorToInt(fRepeat * totalTime); in timeToT()
158 ? totalTime in timeToT()
159 : (SkMSec)SkScalarFloorToInt(fraction * totalTime); in timeToT()
163 offsetTime = offsetTime % (totalTime << mirror); in timeToT()
164 if (offsetTime > totalTime) { // can only be true if fMirror is true in timeToT()
165 offsetTime = (totalTime << 1) - offsetTime; in timeToT()
/aosp14/frameworks/base/core/java/com/android/internal/app/procstats/
H A DServiceState.java402 long now, long totalTime, boolean dumpSummary, boolean dumpAll) { in dumpStats() argument
405 mRunStartTime, now, totalTime, !dumpSummary || dumpAll); in dumpStats()
408 mStartedStartTime, now, totalTime, !dumpSummary || dumpAll); in dumpStats()
414 mBoundStartTime, now, totalTime, !dumpSummary || dumpAll); in dumpStats()
417 mExecStartTime, now, totalTime, !dumpSummary || dumpAll); in dumpStats()
448 DumpUtils.printPercent(pw, (double)myTime/(double)totalTime); in dumpStats()
464 long totalTime = 0;
489 totalTime += time;
493 if (totalTime != 0 && pw != null) {
496 TimeUtils.formatDuration(totalTime, pw);
[all …]
H A DProcessState.java927 long totalTime = 0; in computeProcessTimeLocked() local
937 mTmpTotalTime = totalTime; in computeProcessTimeLocked()
938 return totalTime; in computeProcessTimeLocked()
943 long now, long totalTime) { in dumpSummary() argument
995 long totalTime = 0; in dumpProcessState() local
1024 totalTime += time; in dumpProcessState()
1029 if (totalTime != 0) { in dumpProcessState()
1141 final double percentage = (double) totals.totalTime / (double) totalTime * 100; in dumpProcessSummaryDetails()
1197 data.totalTime = 0; in computeProcessData()
1276 long totalTime = 0; in dumpCsv() local
[all …]
H A DAssociationState.java819 long totalTime, ArrayMap<SourceKey, SourceState> inSources) { in createSortedAssociations() argument
830 cont.mActiveTime = dumpTime(null, null, src, totalTime, now, false, false); in createSortedAssociations()
859 DumpUtils.printPercent(pw, (double) totalDuration / (double) totalTime); in dumpStats()
885 DumpUtils.printPercent(pw, (double) totalDuration / (double) totalTime); in dumpStats()
962 dumpActiveDurationSummary(pw, src, totalTime, now, dumpAll); in dumpSources()
975 DumpUtils.printPercent(pw, (double) cont.mTotalTime / (double) totalTime); in dumpSources()
1010 long duration = dumpTime(null, null, src, totalTime, now, false, false); in dumpActiveDurationSummary()
1021 DumpUtils.printPercent(pw, (double) duration / (double) totalTime); in dumpActiveDurationSummary()
1030 long totalTime = 0; in dumpTime() local
1064 totalTime += time; in dumpTime()
[all …]
H A DUidState.java268 long totalTime = 0; in dumpState() local
297 totalTime += time; in dumpState()
302 if (totalTime != 0) { in dumpState()
312 TimeUtils.formatDuration(totalTime, pw); in dumpState()
H A DDumpUtils.java378 long totalTime = 0; in dumpSingleTime() local
403 totalTime += time; in dumpSingleTime()
407 if (totalTime != 0 && pw != null) { in dumpSingleTime()
410 TimeUtils.formatDuration(totalTime, pw); in dumpSingleTime()
413 return totalTime; in dumpSingleTime()
466 long now, long totalTime) { in dumpProcessSummaryLocked() argument
470 totalTime); in dumpProcessSummaryLocked()
H A DProcessStats.java454 data.totalTime = 0; in computeTotalMemoryUse()
479 data.totalTime += memTime; in computeTotalMemoryUse()
1724 totalTime, now, dumpAll); in dumpLocked()
1740 now, totalTime); in dumpLocked()
2005 long totalTime, long curTotalMem, int samples) { in printMemoryCategory() argument
2007 long mem = (long)(memWeight * 1024 / totalTime); in printMemoryCategory()
2094 sortProcStates, now, totalTime); in dumpFilteredSummaryLocked()
2254 pw.print(totalMem.totalTime); in dumpCheckinLocked()
2682 public long totalTime; field in ProcessStats.ProcessDataCollection
2701 if (totalTime > overallTime) { in print()
[all …]
/aosp14/frameworks/base/core/java/android/os/
H A DCpuUsageInfo.java38 public CpuUsageInfo(long activeTime, long totalTime) { in CpuUsageInfo() argument
40 mTotal = totalTime; in CpuUsageInfo()
H A DBatteryStats.java3958 if (totalTime != 0 || count != 0) { in dumpTimer()
4781 if (totalTime != 0) { in dumpCheckinLocked()
4894 if (totalTime != 0) { in dumpCheckinLocked()
4910 if (totalTime != 0) { in dumpCheckinLocked()
4957 if (totalTime != 0) { in dumpCheckinLocked()
5840 long totalTime = 0; in dumpLocked()
5857 totalTime += mrs.radioActiveMs; in dumpLocked()
5862 formatTimeMs(sb, totalTime); in dumpLocked()
6427 if (totalTime != 0) { in dumpLocked()
6461 if (totalTime != 0) { in dumpLocked()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DProcessCpuTracker.java790 final int totalTime = mRelUserTime + mRelSystemTime + mRelIoWaitTime
792 proto.write(CpuUsageProto.TOTAL_TIME, totalTime);
884 final int totalTime = mRelUserTime + mRelSystemTime + mRelIoWaitTime
887 if (DEBUG) Slog.i(TAG, "totalTime " + totalTime + " over sample time "
932 if (totalTime == 0) totalTime = 1;
933 printRatio(pw, user+system+iowait+irq+softIrq, totalTime);
941 printRatio(pw, user, totalTime);
943 printRatio(pw, system, totalTime);
947 printRatio(pw, iowait, totalTime);
952 printRatio(pw, irq, totalTime);
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A DBatteryStatsImplTest.java420 long totalTime = u.getWifiMulticastTime(currentTimeMs * 1000, in testMulticastWakelockAcqRel() local
423 (releaseTimeMs - acquireTimeMs) * 1000, totalTime); in testMulticastWakelockAcqRel()
442 long totalTime = u.getWifiMulticastTime(currentTimeMs * 1000, in testMulticastWakelockAcqNoRel() local
445 (currentTimeMs - acquireTimeMs) * 1000, totalTime); in testMulticastWakelockAcqNoRel()
472 long totalTime = u.getWifiMulticastTime(currentTimeMs * 1000, in testMulticastWakelockAcqAcqRelRel() local
475 (releaseTimeMs_2 - acquireTimeMs_1) * 1000, totalTime); in testMulticastWakelockAcqAcqRelRel()
502 long totalTime = u.getWifiMulticastTime(currentTimeMs * 1000, in testMulticastWakelockAcqRelAcqRel() local
506 * 1000, totalTime); in testMulticastWakelockAcqRelAcqRel()
H A DKernelWakelockReaderTest.java68 private WakeLockInfo createWakeLockInfo(String name, int activeCount, long totalTime) { in createWakeLockInfo() argument
72 info.totalTime = totalTime; in createWakeLockInfo()
H A DBstatsCpuTimesValidationTest.java741 long totalTime = 0; in getMsgCpuTimesSum() local
743 totalTime += cpuTimes[i]; in getMsgCpuTimesSum()
749 return "(" + totalTime + "," + screenOffTime + ")"; in getMsgCpuTimesSum()
/aosp14/frameworks/base/telephony/java/android/telephony/
H A DTelephonyHistogram.java217 long totalTime = ((long)mAverageTimeMs) * mSampleCount + time; in addTimeTaken() local
218 mAverageTimeMs = (int)(totalTime/++mSampleCount); in addTimeTaken()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
H A DJobPackageTracker.java456 long totalTime = mCurDataSet.getTotalTime(now); in rebatchIfNeeded() local
457 if (totalTime > BATCHING_TIME) { in rebatchIfNeeded()
459 last.mSummedTime = totalTime; in rebatchIfNeeded()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DProcessStatsService.java284 final long totalTime; in writeStateLocked() local
304 totalTime = SystemClock.uptimeMillis() - now; in writeStateLocked()
309 performWriteState(totalTime); in writeStateLocked()
316 performWriteState(totalTime); in writeStateLocked()
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DPlatLogoActivity.java117 public void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime) {
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/
H A DUserUsageStatsService.java881 final long totalTime = SystemClock.elapsedRealtime() - startTime; in rolloverStats() local
882 Slog.i(TAG, mLogPrefix + "Rolling over usage stats complete. Took " + totalTime in rolloverStats()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DActivityTaskSupervisor.java632 void reportActivityLaunched(boolean timeout, ActivityRecord r, long totalTime, in reportActivityLaunched() argument
643 w.totalTime = totalTime; in reportActivityLaunched()

12