Searched refs:totalTime (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/os/
H A DKernelWakelockStats.java29 Entry(int count, long totalTime, int version) { argument
31 mTotalTime = totalTime;
H A DCameraPowerCalculator.java40 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000;
41 app.cameraTimeMs = totalTime;
42 app.cameraPowerMah = (totalTime * mCameraPowerOnAvg) / (1000*60*60);
H A DFlashlightPowerCalculator.java38 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000;
39 app.flashlightTimeMs = totalTime;
40 app.flashlightPowerMah = (totalTime * mFlashlightPowerOnAvg) / (1000*60*60);
H A DCpuPowerCalculator.java38 long totalTime = 0;
43 totalTime += u.getTimeAtCpuSpeed(cluster, speed, statsType);
46 totalTime = Math.max(totalTime, 1);
53 totalTime;
H A DKernelWakelockReader.java42 Process.PROC_TAB_TERM|Process.PROC_OUT_LONG, // 5: totalTime
54 |Process.PROC_OUT_LONG, // 6: totalTime
116 long totalTime;
155 totalTime = wlData[2] * 1000;
158 totalTime = (wlData[2] + 500) / 1000;
163 staleStats.put(name, new KernelWakelockStats.Entry(count, totalTime,
169 kwlStats.mTotalTime += totalTime;
172 kwlStats.mTotalTime = totalTime;
H A DProcessCpuTracker.java756 final int totalTime = mRelUserTime + mRelSystemTime + mRelIoWaitTime
759 if (DEBUG) Slog.i(TAG, "totalTime " + totalTime + " over sample time "
780 printProcessCPU(pw, "", -1, "TOTAL", totalTime, mRelUserTime, mRelSystemTime,
801 int totalTime, int user, int system, int iowait, int irq, int softIrq,
804 if (totalTime == 0) totalTime = 1;
805 printRatio(pw, user+system+iowait+irq+softIrq, totalTime);
813 printRatio(pw, user, totalTime);
815 printRatio(pw, system, totalTime);
800 printProcessCPU(PrintWriter pw, String prefix, int pid, String label, int totalTime, int user, int system, int iowait, int irq, int softIrq, int minFaults, int majFaults) argument
[all...]
/frameworks/base/core/java/android/animation/
H A DTimeAnimator.java42 long totalTime = currentTime - mStartTime;
45 mListener.onTimeUpdate(this, totalTime, deltaTime);
83 * deltaTime will be zero. The same is true for totalTime, unless the animator was
93 * @param totalTime The total time elapsed since the animator started, in milliseconds.
96 void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime); argument
/frameworks/base/core/java/android/os/
H A DCpuUsageInfo.java38 public CpuUsageInfo(long activeTime, long totalTime) { argument
40 mTotal = totalTime;
H A DBatteryStats.java871 long totalTime = 0;
874 totalTime += steps[i+j] & STEP_LEVEL_TIME_MASK;
877 buckets[numBuckets] = totalTime / num;
2558 final long totalTime = (timer.getTotalTimeLocked(
2561 if (totalTime != 0) {
2567 formatTimeMs(sb, totalTime);
2649 final long totalTime = (timer.getTotalTimeLocked(rawRealtime, which) + 500)
2652 if (totalTime != 0) {
2653 dumpLine(pw, uid, category, type, totalTime, count);
3188 final long totalTime
[all...]
/frameworks/native/opengl/tests/angeles/
H A Dapp-linux.cpp208 double totalTime = timeTemp.tv_usec/1000000.0 + timeTemp.tv_sec; local
228 totalTime = (timeTemp.tv_usec/1000000.0 + timeTemp.tv_sec) - totalTime;
229 printf("totalTime=%f s, frameCount=%d, %.2f fps\n",
230 totalTime, frameCount, frameCount/totalTime);
/frameworks/rs/java/tests/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
H A DBlasBenchmark.java98 float totalTime; field in class:BlasBenchmark.Processor.Result
118 r.totalTime += (t2 - t) / 1000.f;
120 } while (r.totalTime < minTime);
125 r.totalTime += (t2 - t) / 1000.f;
148 Log.v("rs", "Test: time=" + r.totalTime +"s, iterations=" + r.iterations +
149 ", avg=" + r.totalTime / r.iterations * 1000.f);
195 mTestResults[ct] = r.totalTime / r.iterations * 1000.f;
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DProcessState.java743 long totalTime = 0;
749 totalTime += getDuration(bucket, now);
753 mTmpTotalTime = totalTime;
754 return totalTime;
759 long now, long totalTime) {
769 procStates, now, totalTime, true);
771 new int[] { STATE_PERSISTENT }, now, totalTime, true);
773 new int[] {STATE_TOP}, now, totalTime, true);
775 new int[] { STATE_IMPORTANT_FOREGROUND }, now, totalTime, true);
777 new int[] {STATE_IMPORTANT_BACKGROUND}, now, totalTime, tru
757 dumpSummary(PrintWriter pw, String prefix, int[] screenStates, int[] memStates, int[] procStates, long now, long totalTime) argument
914 dumpProcessSummaryDetails(PrintWriter pw, String prefix, String label, int[] screenStates, int[] memStates, int[] procStates, long now, long totalTime, boolean full) argument
[all...]
H A DDumpUtils.java201 long totalTime = 0;
226 totalTime += time;
230 if (totalTime != 0 && pw != null) {
233 TimeUtils.formatDuration(totalTime, pw);
236 return totalTime;
313 long now, long totalTime) {
316 proc.dumpSummary(pw, prefix, screenStates, memStates, procStates, now, totalTime);
311 dumpProcessSummaryLocked(PrintWriter pw, String prefix, ArrayList<ProcessState> procs, int[] screenStates, int[] memStates, int[] procStates, long now, long totalTime) argument
H A DServiceState.java362 long now, long totalTime, boolean dumpSummary, boolean dumpAll) {
365 mRunStartTime, now, totalTime, !dumpSummary || dumpAll);
368 mStartedStartTime, now, totalTime, !dumpSummary || dumpAll);
371 mBoundStartTime, now, totalTime, !dumpSummary || dumpAll);
374 mExecStartTime, now, totalTime, !dumpSummary || dumpAll);
388 int count, int serviceType, int state, long startTime, long now, long totalTime,
400 DumpUtils.printPercent(pw, (double)myTime/(double)totalTime);
408 long totalTime = 0;
431 totalTime += time;
435 if (totalTime !
361 dumpStats(PrintWriter pw, String prefix, String prefixInner, String headerPrefix, long now, long totalTime, boolean dumpSummary, boolean dumpAll) argument
386 dumpStats(PrintWriter pw, String prefix, String prefixInner, String headerPrefix, String header, int count, int serviceType, int state, long startTime, long now, long totalTime, boolean dumpAll) argument
[all...]
H A DProcessStats.java333 data.totalTime = 0;
358 data.totalTime += memTime;
1221 long totalTime = DumpUtils.dumpSingleTime(null, null, mMemFactorDurations, mMemFactor,
1308 now, totalTime);
1329 now, totalTime, dumpSummary, dumpAll);
1408 long totalTime = DumpUtils.dumpSingleTime(null, null, mMemFactorDurations, mMemFactor,
1411 ALL_PROC_STATES, NON_CACHED_PROC_STATES, now, totalTime, reqPackage, activeOnly);
1432 long totalTime, long curTotalMem, int samples) {
1434 long mem = (long)(memWeight * 1024 / totalTime);
1458 totalMem.totalTime, totalPs
1431 printMemoryCategory(PrintWriter pw, String prefix, String label, double memWeight, long totalTime, long curTotalMem, int samples) argument
1513 dumpFilteredSummaryLocked(PrintWriter pw, String header, String prefix, int[] screenStates, int[] memStates, int[] procStates, int[] sortProcStates, long now, long totalTime, String reqPackage, boolean activeOnly) argument
1738 public long totalTime; field in class:ProcessStats.ProcessDataCollection
1789 public long totalTime; field in class:ProcessStats.TotalMemoryUseCollection
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DLoadAverageService.java190 final int totalTime = userTime+systemTime+iowaitTime+irqTime+softIrqTime+idleTime;
191 if (totalTime == 0) {
194 int userW = (userTime*W)/totalTime;
195 int systemW = (systemTime*W)/totalTime;
196 int irqW = ((iowaitTime+irqTime+softIrqTime)*W)/totalTime;
235 userW = (st.rel_utime*W)/totalTime;
236 systemW = (st.rel_stime*W)/totalTime;
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DImageProcessingActivity2.java278 float totalTime; field in class:ImageProcessingActivity2.Processor.Result
306 mTest.animateBars(r.totalTime);
338 r.totalTime = (t2 - t) / 1000.f;
339 } while (r.totalTime < minTime);
343 r.totalTime = (t2 - t) / 1000.f;
372 Log.v("rs", "Test: time=" + r.totalTime +"s, frames=" + r.iterations +
373 ", avg=" + r.totalTime / r.iterations * 1000.f);
376 return r.totalTime / r.iterations * 1000.f;
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A DImageProcessingActivityJB.java244 float totalTime; field in class:ImageProcessingActivityJB.Processor.Result
272 mTest.animateBars(r.totalTime);
294 r.totalTime += (t2 - t) / 1000.f;
296 } while (r.totalTime < minTime);
301 r.totalTime += (t2 - t) / 1000.f;
329 Log.v("rs", "Test: time=" + r.totalTime +"s, frames=" + r.itterations +
330 ", avg=" + r.totalTime / r.itterations * 1000.f);
333 return r.totalTime / r.itterations * 1000.f;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DFocusHighlightHelper.java125 public void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime) { argument
127 if (totalTime >= mDuration) {
131 fraction = (float) (totalTime / (double) mDuration);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DRowsFragment.java97 public void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime) { argument
99 updateSelect(totalTime, deltaTime);
103 void updateSelect(long totalTime, long deltaTime) { argument
105 if (totalTime >= mSelectAnimatorDurationInUse) {
109 fraction = (float) (totalTime / (double) mSelectAnimatorDurationInUse);
H A DRowsSupportFragment.java99 public void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime) { argument
101 updateSelect(totalTime, deltaTime);
105 void updateSelect(long totalTime, long deltaTime) { argument
107 if (totalTime >= mSelectAnimatorDurationInUse) {
111 fraction = (float) (totalTime / (double) mSelectAnimatorDurationInUse);
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityRecord.java1166 final long totalTime = stack.mFullyDrawnStartTime != 0
1172 thisTime, totalTime);
1179 if (thisTime != totalTime) {
1181 TimeUtils.formatDuration(totalTime, sb);
1186 if (totalTime > 0) {
1187 //service.mUsageStatsService.noteFullyDrawnTime(realActivity, (int) totalTime);
1200 final long totalTime = stack.mLaunchStartTime != 0
1206 thisTime, totalTime);
1213 if (thisTime != totalTime) {
1215 TimeUtils.formatDuration(totalTime, s
[all...]
/frameworks/base/services/core/java/com/android/server/job/
H A DJobPackageTracker.java335 long totalTime = mCurDataSet.getTotalTime(now);
336 if (totalTime > BATCHING_TIME) {
338 last.mSummedTime = totalTime;
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DRequestThreadManager.java707 long totalTime = SystemClock.elapsedRealtimeNanos() - startTime;
708 Log.d(TAG, "Configure took " + totalTime + " ns");
931 long totalTime = SystemClock.elapsedRealtimeNanos() - startTime;
932 Log.d(TAG, "Capture request took " + totalTime + " ns");
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp280 mBatteryAudio.totalTime[i] = 0;
2284 mBatteryAudio.totalTime[i] += mBatteryAudio.lastTime[i];
2324 mBatteryAudio.totalTime[i] += mBatteryAudio.lastTime[i];
2399 int32_t totalTime; local
2402 totalTime = mBatteryAudio.totalTime[i];
2407 totalTime += tmpTime;
2410 reply->writeInt32(totalTime);
2412 mBatteryAudio.totalTime[i] = 0;

Completed in 429 milliseconds

12