/frameworks/base/core/java/com/android/internal/os/ |
D | MediaPowerCalculator.java | 45 final long totalTime = audioTimer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp() local 46 app.audioTimeMs = totalTime; in calculateApp() 47 app.audioPowerMah = (totalTime * mAudioAveragePowerMa) / MS_IN_HR; in calculateApp() 56 final long totalTime = videoTimer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp() local 57 app.videoTimeMs = totalTime; in calculateApp() 58 app.videoPowerMah = (totalTime * mVideoAveragePowerMa) / MS_IN_HR; in calculateApp()
|
D | FlashlightPowerCalculator.java | 38 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp() local 39 app.flashlightTimeMs = totalTime; in calculateApp() 40 app.flashlightPowerMah = (totalTime * mFlashlightPowerOnAvg) / (1000*60*60); in calculateApp()
|
D | CameraPowerCalculator.java | 40 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp() local 41 app.cameraTimeMs = totalTime; in calculateApp() 42 app.cameraPowerMah = (totalTime * mCameraPowerOnAvg) / (1000*60*60); in calculateApp()
|
D | KernelWakelockReader.java | 193 info.totalTime * 1000 /* ms to us */, sKernelWakelockUpdateVersion)); in updateWakelockStats() 198 kwlStats.mTotalTime = info.totalTime * 1000; in updateWakelockStats() 214 long totalTime; in parseProcWakelocks() local 252 totalTime = wlData[2] * 1000; in parseProcWakelocks() 255 totalTime = (wlData[2] + 500) / 1000; in parseProcWakelocks() 260 staleStats.put(name, new KernelWakelockStats.Entry(count, totalTime, in parseProcWakelocks() 266 kwlStats.mTotalTime += totalTime; in parseProcWakelocks() 269 kwlStats.mTotalTime = totalTime; in parseProcWakelocks()
|
D | SensorPowerCalculator.java | 76 long totalTime = 0; in getAverageGpsPower() local 80 totalTime += timePerLevel; in getAverageGpsPower() 84 if (totalTime != 0) { in getAverageGpsPower() 85 averagePower = totalPower / totalTime; in getAverageGpsPower()
|
D | KernelWakelockStats.java | 29 Entry(int count, long totalTime, int version) { in Entry() argument 31 mTotalTime = totalTime; in Entry()
|
D | ProcessCpuTracker.java | 772 final int totalTime = mRelUserTime + mRelSystemTime + mRelIoWaitTime 774 proto.write(CpuUsageProto.TOTAL_TIME, totalTime); 854 final int totalTime = mRelUserTime + mRelSystemTime + mRelIoWaitTime 857 if (DEBUG) Slog.i(TAG, "totalTime " + totalTime + " over sample time " 878 printProcessCPU(pw, "", -1, "TOTAL", totalTime, mRelUserTime, mRelSystemTime, 899 int totalTime, int user, int system, int iowait, int irq, int softIrq, 902 if (totalTime == 0) totalTime = 1; 903 printRatio(pw, user+system+iowait+irq+softIrq, totalTime); 911 printRatio(pw, user, totalTime); 913 printRatio(pw, system, totalTime); [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | OccupancyTracker.h | 43 : totalTime(0), in Segment() 50 : totalTime(_totalTime), in Segment() 59 nsecs_t totalTime; member 82 totalTime = 0; in clear() 87 nsecs_t totalTime; member
|
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/ |
D | BlasBenchmark.java | 93 float totalTime; field in BlasBenchmark.Processor.Result 102 return r.totalTime / r.iterations * 1000.f; in getInstrumentationResult() 118 r.totalTime += (t2 - t) / 1000.f; in runBenchmarkLoop() 120 } while (r.totalTime < minTime); in runBenchmarkLoop() 125 r.totalTime += (t2 - t) / 1000.f; in runBenchmarkLoop() 148 Log.v("rs", "Test: time=" + r.totalTime +"s, iterations=" + r.iterations + in getBenchmark() 149 ", avg=" + r.totalTime / r.iterations * 1000.f + " " + r.testInfo); in getBenchmark() 195 mTestResults[ct] = r.totalTime / r.iterations * 1000.f; in run()
|
/frameworks/native/libs/gui/ |
D | OccupancyTracker.cpp | 30 status_t result = parcel->writeInt64(totalTime); in writeToParcel() 46 status_t result = parcel->readInt64(&totalTime); in readFromParcel() 70 mPendingSegment.totalTime += delta; in registerOccupancyChange() 104 mPendingSegment.totalTime; in recordPendingSegment() 108 mSegmentHistory.push_front({mPendingSegment.totalTime, in recordPendingSegment()
|
/frameworks/base/core/java/android/app/ |
D | WaitResult.java | 69 public long totalTime; field in WaitResult 85 dest.writeLong(totalTime); in writeToParcel() 106 totalTime = source.readLong(); in WaitResult() 115 pw.println(prefix + " totalTime=" + totalTime); in dump()
|
/frameworks/base/core/java/android/animation/ |
D | TimeAnimator.java | 42 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
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateStats.h | 78 std::unordered_map<std::string, int64_t> totalTime; in getTotalTimes() local 82 totalTime[mRefreshRateConfigs.getRefreshRateFromConfigId(configId).getName()] = 0; in getTotalTimes() 85 totalTime[mRefreshRateConfigs.getRefreshRateFromConfigId(configId).getName()] += time; in getTotalTimes() 87 totalTime["ScreenOff"] = mScreenOffTime; in getTotalTimes() 88 return totalTime; in getTotalTimes()
|
/frameworks/native/opengl/tests/angeles/ |
D | app-linux.cpp | 204 double totalTime = timeTemp.tv_usec/1000000.0 + timeTemp.tv_sec; in main() local 224 totalTime = (timeTemp.tv_usec/1000000.0 + timeTemp.tv_sec) - totalTime; in main() 226 totalTime, frameCount, frameCount/totalTime); in main()
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | ServiceState.java | 402 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() 411 mForegroundStartTime, now, totalTime, !dumpSummary || dumpAll); in dumpStats() 414 mBoundStartTime, now, totalTime, !dumpSummary || dumpAll); in dumpStats() 417 mExecStartTime, now, totalTime, !dumpSummary || dumpAll); in dumpStats() 431 int count, int serviceType, int state, long startTime, long now, long totalTime, in dumpStats() argument 448 DumpUtils.printPercent(pw, (double)myTime/(double)totalTime); in dumpStats() 464 long totalTime = 0; 489 totalTime += time; [all …]
|
D | ProcessState.java | 815 long totalTime = 0; in computeProcessTimeLocked() local 821 totalTime += getDuration(bucket, now); in computeProcessTimeLocked() 825 mTmpTotalTime = totalTime; in computeProcessTimeLocked() 826 return totalTime; in computeProcessTimeLocked() 831 long now, long totalTime) { in dumpSummary() argument 844 screenStates, memStates, procStates, now, totalTime, true); in dumpSummary() 846 screenStates, memStates, new int[] { STATE_PERSISTENT }, now, totalTime, true); in dumpSummary() 848 screenStates, memStates, new int[] {STATE_TOP}, now, totalTime, true); in dumpSummary() 850 screenStates, memStates, new int[] { STATE_IMPORTANT_FOREGROUND }, now, totalTime, in dumpSummary() 853 screenStates, memStates, new int[] {STATE_IMPORTANT_BACKGROUND}, now, totalTime, in dumpSummary() [all …]
|
D | AssociationState.java | 648 long totalTime) { in createSortedAssociations() argument 659 cont.mActiveTime = dumpTime(null, null, src, totalTime, now, false, false); in createSortedAssociations() 670 ArrayList<Pair<SourceKey, SourceDumpContainer>> sources, long now, long totalTime, in dumpStats() argument 688 DumpUtils.printPercent(pw, (double) totalDuration / (double) totalTime); in dumpStats() 714 DumpUtils.printPercent(pw, (double) totalDuration / (double) totalTime); in dumpStats() 773 DumpUtils.printPercent(pw, (double) cont.mActiveTime / (double) totalTime); in dumpStats() 779 dumpTime(pw, prefixInnerInner, src, totalTime, now, dumpDetails, dumpAll); in dumpStats() 783 dumpActiveDurationSummary(pw, src, totalTime, now, dumpAll); in dumpStats() 796 DumpUtils.printPercent(pw, (double) cont.mTotalTime / (double) totalTime); in dumpStats() 829 void dumpActiveDurationSummary(PrintWriter pw, final SourceState src, long totalTime, in dumpActiveDurationSummary() argument [all …]
|
D | DumpUtils.java | 363 long totalTime = 0; in dumpSingleTime() local 388 totalTime += time; in dumpSingleTime() 392 if (totalTime != 0 && pw != null) { in dumpSingleTime() 395 TimeUtils.formatDuration(totalTime, pw); in dumpSingleTime() 398 return totalTime; in dumpSingleTime() 451 long now, long totalTime) { in dumpProcessSummaryLocked() argument 455 totalTime); in dumpProcessSummaryLocked()
|
D | ProcessStats.java | 422 data.totalTime = 0; in computeTotalMemoryUse() 447 data.totalTime += memTime; in computeTotalMemoryUse() 1516 long totalTime = DumpUtils.dumpSingleTime(null, null, mMemFactorDurations, mMemFactor, in dumpLocked() local 1659 now, totalTime); in dumpLocked() 1684 now, totalTime, dumpSummary, dumpAll); in dumpLocked() 1699 cont.mSources = asc.createSortedAssociations(now, totalTime); in dumpLocked() 1725 cont.mSources, now, totalTime, in dumpLocked() 1827 asc.dumpActiveDurationSummary(pw, src, totalTime, now, dumpAll); in dumpLocked() 1858 long totalTime = DumpUtils.dumpSingleTime(null, null, mMemFactorDurations, mMemFactor, in dumpSummaryLocked() local 1861 ALL_PROC_STATES, NON_CACHED_PROC_STATES, now, totalTime, reqPackage, activeOnly); in dumpSummaryLocked() [all …]
|
/frameworks/base/core/java/android/os/ |
D | CpuUsageInfo.java | 38 public CpuUsageInfo(long activeTime, long totalTime) { in CpuUsageInfo() argument 40 mTotal = totalTime; in CpuUsageInfo()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsImplTest.java | 327 long totalTime = u.getWifiMulticastTime(currentTimeMs*1000, in testMulticastWakelockAcqRel() local 330 (releaseTimeMs - acquireTimeMs) * 1000, totalTime); in testMulticastWakelockAcqRel() 349 long totalTime = u.getWifiMulticastTime(currentTimeMs*1000, in testMulticastWakelockAcqNoRel() local 352 (currentTimeMs - acquireTimeMs) * 1000, totalTime); in testMulticastWakelockAcqNoRel() 379 long totalTime = u.getWifiMulticastTime(currentTimeMs*1000, in testMulticastWakelockAcqAcqRelRel() local 382 (releaseTimeMs_2 - acquireTimeMs_1) * 1000, totalTime); in testMulticastWakelockAcqAcqRelRel() 409 long totalTime = u.getWifiMulticastTime(currentTimeMs*1000, in testMulticastWakelockAcqRelAcqRel() local 413 * 1000, totalTime); in testMulticastWakelockAcqRelAcqRel()
|
D | KernelWakelockReaderTest.java | 68 private WakeLockInfo createWakeLockInfo(String name, int activeCount, long totalTime) { in createWakeLockInfo() argument 72 info.totalTime = totalTime; in createWakeLockInfo()
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | ImageProcessingActivity2.java | 278 float totalTime; field in ImageProcessingActivity2.Processor.Result 306 mTest.animateBars(r.totalTime); in runBenchmarkLoop() 338 r.totalTime = (t2 - t) / 1000.f; in runBenchmarkLoop() 339 } while (r.totalTime < minTime); in runBenchmarkLoop() 343 r.totalTime = (t2 - t) / 1000.f; in runBenchmarkLoop() 372 Log.v("rs", "Test: time=" + r.totalTime +"s, frames=" + r.iterations + in getBenchmark() 373 ", avg=" + r.totalTime / r.iterations * 1000.f); in getBenchmark() 376 return r.totalTime / r.iterations * 1000.f; in getBenchmark()
|
/frameworks/base/telephony/java/android/telephony/ |
D | TelephonyHistogram.java | 217 long totalTime = ((long)mAverageTimeMs) * mSampleCount + time; in addTimeTaken() local 218 mAverageTimeMs = (int)(totalTime/++mSampleCount); in addTimeTaken()
|
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/include/timestatsproto/ |
D | TimeStatsHelper.h | 38 int64_t totalTime() const;
|