Home
last modified time | relevance | path

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

12

/frameworks/native/libs/gui/include/gui/
DOccupancyTracker.h43 : 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/native/libs/gui/
DOccupancyTracker.cpp30 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/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
DBlasBenchmark.java93 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/base/core/java/android/animation/
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
/frameworks/base/core/java/android/app/
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()
/frameworks/native/opengl/tests/angeles/
Dapp-linux.cpp204 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/services/core/java/com/android/server/power/stats/
DKernelWakelockReader.java216 info.totalTime * 1000 /* ms to us */, in updateWakelockStats()
223 kwlStats.totalTimeUs = info.totalTime * 1000; in updateWakelockStats()
240 long totalTime; in parseProcWakelocks() local
280 totalTime = wlData[3] * 1000; in parseProcWakelocks()
284 totalTime = (wlData[3] + 500) / 1000; in parseProcWakelocks()
289 staleStats.put(name, new KernelWakelockStats.Entry(count, totalTime, in parseProcWakelocks()
295 kwlStats.totalTimeUs += totalTime; in parseProcWakelocks()
299 kwlStats.totalTimeUs = totalTime; in parseProcWakelocks()
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()
/frameworks/base/libs/hwui/
DSkiaInterpolator.cpp181 SkMSec totalTime = endTime - startTime; in timeToT() local
183 endTime = SkScalarFloorToInt(fRepeat * totalTime); in timeToT()
187 ? totalTime in timeToT()
188 : (SkMSec)SkScalarFloorToInt(fraction * totalTime); in timeToT()
192 offsetTime = offsetTime % (totalTime << mirror); in timeToT()
193 if (offsetTime > totalTime) { // can only be true if fMirror is true in timeToT()
194 offsetTime = (totalTime << 1) - offsetTime; in timeToT()
/frameworks/base/core/java/com/android/internal/app/procstats/
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()
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 …]
DProcessState.java915 long totalTime = 0; in computeProcessTimeLocked() local
921 totalTime += getDuration(bucket, now); in computeProcessTimeLocked()
925 mTmpTotalTime = totalTime; in computeProcessTimeLocked()
926 return totalTime; in computeProcessTimeLocked()
931 long now, long totalTime) { in dumpSummary() argument
944 screenStates, memStates, procStates, now, totalTime, true); in dumpSummary()
946 screenStates, memStates, new int[] { STATE_PERSISTENT }, now, totalTime, true); in dumpSummary()
948 screenStates, memStates, new int[] {STATE_TOP}, now, totalTime, true); in dumpSummary()
950 screenStates, memStates, new int[] { STATE_BOUND_TOP }, now, totalTime, in dumpSummary()
953 screenStates, memStates, new int[] { STATE_BOUND_FGS }, now, totalTime, in dumpSummary()
[all …]
DAssociationState.java819 long totalTime, ArrayMap<SourceKey, SourceState> inSources) { in createSortedAssociations() argument
830 cont.mActiveTime = dumpTime(null, null, src, totalTime, now, false, false); in createSortedAssociations()
841 ArrayList<Pair<SourceKey, SourceDumpContainer>> sources, long now, long totalTime, in dumpStats() argument
859 DumpUtils.printPercent(pw, (double) totalDuration / (double) totalTime); in dumpStats()
885 DumpUtils.printPercent(pw, (double) totalDuration / (double) totalTime); in dumpStats()
897 dumpSources(pw, prefix, prefixInner, prefixInnerInner, sources, now, totalTime, in dumpStats()
903 long now, long totalTime, String reqPackage, boolean dumpDetails, boolean dumpAll) { in dumpSources() argument
952 DumpUtils.printPercent(pw, (double) cont.mActiveTime / (double) totalTime); in dumpSources()
958 dumpTime(pw, prefixInnerInner, src, totalTime, now, dumpDetails, dumpAll); in dumpSources()
962 dumpActiveDurationSummary(pw, src, totalTime, now, dumpAll); in dumpSources()
[all …]
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()
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()
DProcessStats.java454 data.totalTime = 0; in computeTotalMemoryUse()
479 data.totalTime += memTime; in computeTotalMemoryUse()
1596 long totalTime = DumpUtils.dumpSingleTime(null, null, mMemFactorDurations, mMemFactor, in dumpLocked() local
1724 totalTime, now, dumpAll); in dumpLocked()
1740 now, totalTime); in dumpLocked()
1765 now, totalTime, dumpSummary, dumpAll); in dumpLocked()
1781 .createSortedAssociations(now, totalTime, asc.mSources); in dumpLocked()
1807 cont.mSources, now, totalTime, in dumpLocked()
1862 proc.dumpInternalLocked(pw, " ", reqPackage, totalTime, now, dumpAll); in dumpLocked()
1949 asc.dumpActiveDurationSummary(pw, src, totalTime, now, dumpAll); in dumpLocked()
[all …]
/frameworks/base/core/java/android/os/
DCpuUsageInfo.java38 public CpuUsageInfo(long activeTime, long totalTime) { in CpuUsageInfo() argument
40 mTotal = totalTime; in CpuUsageInfo()
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java796 final int totalTime = mRelUserTime + mRelSystemTime + mRelIoWaitTime
798 proto.write(CpuUsageProto.TOTAL_TIME, totalTime);
890 final int totalTime = mRelUserTime + mRelSystemTime + mRelIoWaitTime
893 if (DEBUG) Slog.i(TAG, "totalTime " + totalTime + " over sample time "
914 printProcessCPU(pw, "", -1, "TOTAL", totalTime, mRelUserTime, mRelSystemTime,
935 int totalTime, int user, int system, int iowait, int irq, int softIrq,
938 if (totalTime == 0) totalTime = 1;
939 printRatio(pw, user+system+iowait+irq+softIrq, totalTime);
947 printRatio(pw, user, totalTime);
949 printRatio(pw, system, totalTime);
[all …]
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DImageProcessingActivity2.java278 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/services/tests/powerstatstests/src/com/android/server/power/stats/
DKernelWakelockReaderTest.java84 private WakeLockInfo createWakeLockInfo(String name, int activeCount, long totalTime) { in createWakeLockInfo() argument
85 return createWakeLockInfo(name, activeCount, totalTime, 0); in createWakeLockInfo()
88 private WakeLockInfo createWakeLockInfo(String name, int activeCount, long totalTime, in createWakeLockInfo() argument
93 info.totalTime = totalTime; in createWakeLockInfo()
DBatteryStatsImplTest.java481 long totalTime = u.getWifiMulticastTime(currentTimeMs * 1000, in testMulticastWakelockAcqRel() local
484 (releaseTimeMs - acquireTimeMs) * 1000, totalTime); in testMulticastWakelockAcqRel()
503 long totalTime = u.getWifiMulticastTime(currentTimeMs * 1000, in testMulticastWakelockAcqNoRel() local
506 (currentTimeMs - acquireTimeMs) * 1000, totalTime); in testMulticastWakelockAcqNoRel()
533 long totalTime = u.getWifiMulticastTime(currentTimeMs * 1000, in testMulticastWakelockAcqAcqRelRel() local
536 (releaseTimeMs_2 - acquireTimeMs_1) * 1000, totalTime); in testMulticastWakelockAcqAcqRelRel()
563 long totalTime = u.getWifiMulticastTime(currentTimeMs * 1000, in testMulticastWakelockAcqRelAcqRel() local
567 * 1000, totalTime); in testMulticastWakelockAcqRelAcqRel()
/frameworks/base/telephony/java/android/telephony/
DTelephonyHistogram.java217 long totalTime = ((long)mAverageTimeMs) * mSampleCount + time; in addTimeTaken() local
218 mAverageTimeMs = (int)(totalTime/++mSampleCount); in addTimeTaken()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/metrics/
DControllerMetricsStats.java280 int totalTime = mTotalBatteryChargeTimeSec; in captureTotalBatteryChargeTimeSec() local
282 return totalTime; in captureTotalBatteryChargeTimeSec()
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/
DTimeStatsHelper.cpp52 int64_t TimeStatsHelper::Histogram::totalTime() const { in totalTime() function in android::surfaceflinger::TimeStatsHelper::Histogram
160 StringAppendF(&result, "totalP2PTime = %" PRId64 " ms\n", presentToPresentLegacy.totalTime()); in toString()
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/include/timestatsproto/
DTimeStatsHelper.h42 int64_t totalTime() const;
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp2872 mBatteryAudio.totalTime[i] = 0; in BatteryTracker()
2913 mBatteryAudio.totalTime[i] += mBatteryAudio.lastTime[i]; in addBatteryData()
2953 mBatteryAudio.totalTime[i] += mBatteryAudio.lastTime[i]; in addBatteryData()
3028 int32_t totalTime; in pullBatteryData() local
3031 totalTime = mBatteryAudio.totalTime[i]; in pullBatteryData()
3036 totalTime += tmpTime; in pullBatteryData()
3039 reply->writeInt32(totalTime); in pullBatteryData()
3041 mBatteryAudio.totalTime[i] = 0; in pullBatteryData()

12