Home
last modified time | relevance | path

Searched refs:total (Results 1 – 25 of 154) sorted by relevance

1234567

/frameworks/base/cmds/incident_helper/tests/
DProcrankParser_test.cpp81 ProcrankProto::Process* total = expected.mutable_summary()->mutable_total(); in TEST_F() local
82 total->set_pss(1201993); in TEST_F()
83 total->set_uss(935300); in TEST_F()
84 total->set_swap(88164); in TEST_F()
85 total->set_pswap(31069); in TEST_F()
86 total->set_uswap(27612); in TEST_F()
87 total->set_zswap(6826); in TEST_F()
88 total->set_cmdline("TOTAL"); in TEST_F()
125 ProcrankProto::Process* total = expected.mutable_summary()->mutable_total(); in TEST_F() local
126 total->set_pss(1201993); in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DVideoPowerCalculator.java53 final PowerAndDuration total = new PowerAndDuration(); in calculate() local
59 calculateApp(app, total, app.getBatteryStatsUid(), rawRealtimeUs); in calculate()
64 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, total.durationMs) in calculate()
65 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO, total.powerMah); in calculate()
69 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_VIDEO, total.durationMs) in calculate()
70 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_VIDEO, total.powerMah); in calculate()
73 private void calculateApp(UidBatteryConsumer.Builder app, PowerAndDuration total, in calculateApp() argument
81 total.durationMs += durationMs; in calculateApp()
82 total.powerMah += powerMah; in calculateApp()
DAudioPowerCalculator.java56 final PowerAndDuration total = new PowerAndDuration(); in calculate() local
62 calculateApp(app, total, app.getBatteryStatsUid(), rawRealtimeUs); in calculate()
67 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, total.durationMs) in calculate()
68 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO, total.powerMah); in calculate()
72 .setUsageDurationMillis(BatteryConsumer.POWER_COMPONENT_AUDIO, total.durationMs) in calculate()
73 .setConsumedPower(BatteryConsumer.POWER_COMPONENT_AUDIO, total.powerMah); in calculate()
76 private void calculateApp(UidBatteryConsumer.Builder app, PowerAndDuration total, in calculateApp() argument
84 total.durationMs += durationMs; in calculateApp()
85 total.powerMah += powerMah; in calculateApp()
DMobileRadioPowerCalculator.java129 PowerAndDuration total = new PowerAndDuration(); in calculate() local
167 total.totalAppDurationMs += radioActiveDurationMs; in calculate()
178 total.totalAppPowerMah += appConsumptionMah; in calculate()
206 if (totalActiveDurationMs < total.totalAppDurationMs) { in calculate()
207 totalActiveDurationMs = total.totalAppDurationMs; in calculate()
228 total.totalAppPowerMah += appConsumptionMah; in calculate()
259 total.remainingDurationMs = totalActiveDurationMs - total.totalAppDurationMs; in calculate()
263 total.remainingPowerMah = uCtoMah(totalConsumptionUC) - total.totalAppPowerMah; in calculate()
264 if (total.remainingPowerMah < 0) total.remainingPowerMah = 0; in calculate()
268 total.remainingPowerMah += in calculate()
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Drasterize.rscript38 static int total;
57 slope[total].x = (-(f1.y * (f3.z - f2.z) - f2.y * f3.z + f3.y * f2.z + (f2.y - f3.y) * f1.z)
59 slope[total].y = ((f1.x * (f3.z - f2.z) - f2.x * f3.z + f3.x * f2.z + (f2.x - f3.x) * f1.z)
61 zoff[total] = ((f1.x * (f3.y * f2.z - f2.y * f3.z) + f1.y * (f2.x * f3.z - f3.x * f2.z) +
64 p1[total] = f1.xy;
65 p2[total] = f2.xy;
66 p3[total] = f3.xy;
67 d12[total] = p1[total] - p2[total];
68 d23[total] = p2[total] - p3[total];
69 d31[total] = p3[total] - p1[total];
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DAppItem.java33 public long total; field in AppItem
46 total = parcel.readLong(); in AppItem()
57 dest.writeLong(total); in writeToParcel()
69 comparison = Long.compare(another.total, total); in compareTo()
/frameworks/av/media/img_utils/include/img_utils/
DTiffEntryImpl.h97 uint32_t total = getActualSize(); in getSize() local
98 WORD_ALIGN(total) in getSize()
99 return (total <= OFFSET_SIZE) ? 0 : total; in getSize()
104 uint32_t total = sizeof(T) * mCount; in getActualSize() local
107 total <<= 1; in getActualSize()
109 return total; in getActualSize()
196 uint32_t total = 0; in getActualSize() local
198 total += mData[i]->getSize(); in getActualSize()
200 return total; in getActualSize()
/frameworks/base/tests/JankBench/scripts/external/
Dstatistics.py167 total = partials[None]
168 assert not _isfinite(total)
172 total = sum(Fraction(n, d) for d, n in sorted(partials.items()))
173 return (T, total, count)
331 T, total, count = _sum(data)
333 return _convert(total/n, T)
503 T, total, count = _sum((x-c)**2 for x in data)
508 total -= total2**2/len(data)
509 assert not total < 0, 'negative sum of square deviations: %f' % total
510 return (T, total)
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DUtils.java35 int total = classes.length; in getTargetsFromLegacyJackConfig() local
36 assert requests.length == total; in getTargetsFromLegacyJackConfig() local
37 assert resets.length == total; in getTargetsFromLegacyJackConfig() local
41 for (int i = 0; i < total; i++) { in getTargetsFromLegacyJackConfig()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuProcStringReader.java155 int total = 0; in open() local
163 while ((curr = r.read(mBuf, total, mBuf.length - total)) >= 0) { in open()
164 total += curr; in open()
165 if (total == mBuf.length) { in open()
175 mSize = total; in open()
179 return new ProcFileIterator(total); in open()
/frameworks/av/media/libnbaio/
DNBAIO.cpp64 ssize_t NBAIO_Sink::writeVia(writeVia_t via, size_t total, void *user, size_t block) in writeVia() argument
78 while (accumulator < total) { in writeVia()
79 size_t count = total - accumulator; in writeVia()
100 ssize_t NBAIO_Source::readVia(readVia_t via, size_t total, void *user, size_t block) in readVia() argument
114 while (accumulator < total) { in readVia()
115 size_t count = total - accumulator; in readVia()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
Dcontrast.cpp34 float total = 0; in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator() local
41 total += lumArray[i]; in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
43 const float avg = total / numPixels; in Java_androidx_media_filterfw_samples_simplecamera_ContrastRatioFilter_contrastOperator()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DResult.java36 float total = 0.0f; in getTotalTime() local
38 total += time; in getTotalTime()
40 return total; in getTotalTime()
/frameworks/base/cmds/incident_helper/testdata/
Dcpuinfo.txt1 Threads: 2038 total, 1 running,2033 sleeping, 0 stopped, 0 zombie
3 Mem: 3842668k total, 3761936k used, 80732k free, 220188k buffers
5 Swap: 524284k total, 25892k used, 498392k free, 1316952k cached
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp155 struct timespec total; // total elapsed time spent waiting in obtainBuffer() local
156 total.tv_sec = 0; in obtainBuffer()
157 total.tv_nsec = 0; in obtainBuffer()
292 if (!measure || requested->tv_sec < total.tv_sec || in obtainBuffer()
293 (requested->tv_sec == total.tv_sec && requested->tv_nsec <= total.tv_nsec)) { in obtainBuffer()
297 remaining.tv_sec = requested->tv_sec - total.tv_sec; in obtainBuffer()
298 if ((remaining.tv_nsec = requested->tv_nsec - total.tv_nsec) < 0) { in obtainBuffer()
327 total.tv_sec += after.tv_sec - before.tv_sec; in obtainBuffer()
332 total.tv_sec--; in obtainBuffer()
334 if ((total.tv_nsec += deltaNs) >= 1000000000) { in obtainBuffer()
[all …]
/frameworks/base/cmds/incident_helper/src/parsers/
DProcrankParser.cpp37 string zram, ram, total; in Parse() local
61 total = line; in Parse()
81 if (!total.empty()) { in Parse()
82 record = parseRecord(total); in Parse()
/frameworks/native/libs/ui/
DGraphicBufferAllocator.cpp79 uint64_t total = 0; in getTotalSize() local
81 total += sAllocList.valueAt(i).size; in getTotalSize()
83 return total; in getTotalSize()
89 uint64_t total = 0; in dump() local
102 total += rec.size; in dump()
105 static_cast<double>(total) / 1024.0); in dump()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkCycleData.java57 public Builder setTotalUsage(long total) { in setTotalUsage() argument
58 getObject().mTotalUsage = total; in setTotalUsage()
DNetworkCycleChartDataLoader.java47 final long total = bucket == null ? 0L : bucket.getRxBytes() + bucket.getTxBytes(); in recordUsage() local
48 if (total > 0L) { in recordUsage()
53 .setTotalUsage(total); in recordUsage()
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateStats.h90 const auto total = std::as_const(totalTimes) in getTotalTimes() local
98 totalTimes.emplace_or_replace(string, total.get() + time); in getTotalTimes()
128 const auto total = std::as_const(mFpsTotalTimes) in flushTime() local
136 mFpsTotalTimes.emplace_or_replace(mCurrentRefreshRate, total.get() + duration); in flushTime()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DColorfulnessFilter.java67 float total = 0; in onProcess() local
73 total += value; in onProcess()
78 float value = hueHistogram[c] / total; in onProcess()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DTokenBucketTest.java135 int total = 0; in testBurst() local
136 while (total < want) { in testBurst()
140 total += tb.get(tb.available()); in testBurst()
143 assertDuration(total * delta, SystemClock.elapsedRealtime() - start); in testBurst()
/frameworks/base/media/java/android/media/
DExifInterfaceUtils.java40 int total = 0; in copy() local
44 total += c; in copy()
47 return total; in copy()
/frameworks/base/packages/SettingsLib/UsageProgressBarPreference/src/com/android/settingslib/widget/
DUsageProgressBarPreference.java115 public void setPercent(long usage, long total) { in setPercent() argument
116 if (usage > total) { in setPercent()
119 if (total == 0L) { in setPercent()
126 final int percent = (int) (usage / (double) total * 100); in setPercent()
/frameworks/base/core/jni/
Dandroid_content_res_ResourceTimer.cpp35 jfieldID total; member
62 env->SetLongField(dst, gTimerOffsets.total, src.total); in NativeGetTimers()
119 gTimerOffsets.total = GetFieldIDOrDie(env, timers, "total", "J"); in register_android_content_res_ResourceTimer()

1234567