/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 | 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 | 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 | KernelWakelockReader.java | 127 long totalTime; in parseProcWakelocks() local 166 totalTime = wlData[2] * 1000; in parseProcWakelocks() 169 totalTime = (wlData[2] + 500) / 1000; in parseProcWakelocks() 174 staleStats.put(name, new KernelWakelockStats.Entry(count, totalTime, in parseProcWakelocks() 180 kwlStats.mTotalTime += totalTime; in parseProcWakelocks() 183 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 | 775 final int totalTime = mRelUserTime + mRelSystemTime + mRelIoWaitTime 778 if (DEBUG) Slog.i(TAG, "totalTime " + totalTime + " over sample time " 799 printProcessCPU(pw, "", -1, "TOTAL", totalTime, mRelUserTime, mRelSystemTime, 820 int totalTime, int user, int system, int iowait, int irq, int softIrq, 823 if (totalTime == 0) totalTime = 1; 824 printRatio(pw, user+system+iowait+irq+softIrq, totalTime); 832 printRatio(pw, user, totalTime); 834 printRatio(pw, system, totalTime); 838 printRatio(pw, iowait, totalTime); 843 printRatio(pw, irq, 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/support/wear/src/main/java/androidx/wear/widget/ |
D | CircularProgressLayoutController.java | 87 void startTimer(long totalTime, long updateInterval) { in startTimer() argument 90 mTimer = new CircularProgressTimer(totalTime, updateInterval); in startTimer() 118 CircularProgressTimer(long totalTime, long updateInterval) { in CircularProgressTimer() argument 119 super(totalTime, updateInterval); in CircularProgressTimer() 120 mTotalTime = totalTime; in CircularProgressTimer()
|
D | CircularProgressLayout.java | 253 public void setTotalTime(long totalTime) { in setTotalTime() argument 254 if (totalTime <= 0) { in setTotalTime() 257 mTotalTime = totalTime; in setTotalTime()
|
/frameworks/ml/nn/runtime/test/benchmark/src/com/example/android/nn/benchmark/ |
D | NNBenchmark.java | 71 float totalTime; field in NNBenchmark.Processor.Result 80 return r.totalTime / r.iterations * 1000.f; in getInstrumentationResult() 96 r.totalTime = (current - start) / 1000.f; in runBenchmarkLoop() 97 } while (r.totalTime < minTime); in runBenchmarkLoop() 120 Log.v(TAG, "Test: time=" + r.totalTime +"s, iterations=" + r.iterations + in getBenchmark() 121 ", avg=" + r.totalTime / r.iterations * 1000.f + " " + r.testInfo); in getBenchmark() 166 mTestResults[ct] = r.totalTime / r.iterations * 1000.f; in run()
|
/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 | 35 public long totalTime; field in WaitResult 51 dest.writeLong(totalTime); in writeToParcel() 72 totalTime = source.readLong(); in WaitResult() 81 pw.println(prefix + " totalTime=" + totalTime); in dump()
|
/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/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/base/core/java/com/android/internal/app/procstats/ |
D | ProcessState.java | 758 long totalTime = 0; in computeProcessTimeLocked() local 764 totalTime += getDuration(bucket, now); in computeProcessTimeLocked() 768 mTmpTotalTime = totalTime; in computeProcessTimeLocked() 769 return totalTime; in computeProcessTimeLocked() 774 long now, long totalTime) { in dumpSummary() argument 784 procStates, now, totalTime, true); in dumpSummary() 786 new int[] { STATE_PERSISTENT }, now, totalTime, true); in dumpSummary() 788 new int[] {STATE_TOP}, now, totalTime, true); in dumpSummary() 790 new int[] { STATE_IMPORTANT_FOREGROUND }, now, totalTime, true); in dumpSummary() 792 new int[] {STATE_IMPORTANT_BACKGROUND}, now, totalTime, true); in dumpSummary() [all …]
|
D | ServiceState.java | 362 long now, long totalTime, boolean dumpSummary, boolean dumpAll) { in dumpStats() argument 365 mRunStartTime, now, totalTime, !dumpSummary || dumpAll); in dumpStats() 368 mStartedStartTime, now, totalTime, !dumpSummary || dumpAll); in dumpStats() 371 mBoundStartTime, now, totalTime, !dumpSummary || dumpAll); in dumpStats() 374 mExecStartTime, now, totalTime, !dumpSummary || dumpAll); in dumpStats() 388 int count, int serviceType, int state, long startTime, long now, long totalTime, in dumpStats() argument 400 DumpUtils.printPercent(pw, (double)myTime/(double)totalTime); in dumpStats() 408 long totalTime = 0; in dumpTime() local 431 totalTime += time; in dumpTime() 435 if (totalTime != 0 && pw != null) { in dumpTime() [all …]
|
D | DumpUtils.java | 279 long totalTime = 0; in dumpSingleTime() local 304 totalTime += time; in dumpSingleTime() 308 if (totalTime != 0 && pw != null) { in dumpSingleTime() 311 TimeUtils.formatDuration(totalTime, pw); in dumpSingleTime() 314 return totalTime; in dumpSingleTime() 367 long now, long totalTime) { in dumpProcessSummaryLocked() argument 370 proc.dumpSummary(pw, prefix, screenStates, memStates, procStates, now, totalTime); in dumpProcessSummaryLocked()
|
D | ProcessStats.java | 366 data.totalTime = 0; in computeTotalMemoryUse() 391 data.totalTime += memTime; in computeTotalMemoryUse() 1286 long totalTime = DumpUtils.dumpSingleTime(null, null, mMemFactorDurations, mMemFactor, in dumpLocked() local 1373 now, totalTime); in dumpLocked() 1394 now, totalTime, dumpSummary, dumpAll); in dumpLocked() 1473 long totalTime = DumpUtils.dumpSingleTime(null, null, mMemFactorDurations, mMemFactor, in dumpSummaryLocked() local 1476 ALL_PROC_STATES, NON_CACHED_PROC_STATES, now, totalTime, reqPackage, activeOnly); in dumpSummaryLocked() 1497 long totalTime, long curTotalMem, int samples) { in printMemoryCategory() argument 1499 long mem = (long)(memWeight * 1024 / totalTime); in printMemoryCategory() 1523 totalMem.totalTime, totalPss, totalMem.sysMemSamples); in dumpTotalsLocked() [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/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/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/ |
D | PlaybackFragment.java | 79 long totalTime = getControlsRow().getDuration(); in createComponents() 80 if (getView() == null || getView().getWidth() == 0 || totalTime <= 0) { in createComponents()
|
D | PlaybackSupportFragment.java | 82 long totalTime = getControlsRow().getDuration(); in createComponents() 83 if (getView() == null || getView().getWidth() == 0 || totalTime <= 0) { in createComponents()
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
D | FocusHighlightHelper.java | 131 public void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime) { in onTimeUpdate() argument 133 if (totalTime >= mDuration) { in onTimeUpdate() 137 fraction = (float) (totalTime / (double) mDuration); in onTimeUpdate()
|