Home
last modified time | relevance | path

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

12345

/aosp14/frameworks/base/cmds/incident_helper/tests/
H A 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()
126 total->set_pss(1201993); in TEST_F()
127 total->set_uss(935300); in TEST_F()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A 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()
H A 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()
H A DMobileRadioPowerCalculator.java129 PowerAndDuration total = new PowerAndDuration(); in calculate() local
207 totalActiveDurationMs = total.totalAppDurationMs; 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()
295 total.remainingPowerMah += inactivePowerMah; in calculate()
300 if (total.remainingPowerMah != 0 || total.totalAppPowerMah != 0) { in calculate()
304 total.remainingDurationMs + total.totalAppDurationMs) in calculate()
306 total.remainingPowerMah + total.totalAppPowerMah, powerModel); in calculate()
[all …]
/aosp14/system/core/fs_mgr/tools/
H A Ddmuserd.cpp82 ssize_t total = 0; in write_all() local
85 while (total < static_cast<ssize_t>(len)) { in write_all()
86 once = write(fd, buf_c + total, len - total); in write_all()
92 total += once; in write_all()
95 return total; in write_all()
100 ssize_t total = 0; in read_all() local
103 while (total < static_cast<ssize_t>(len)) { in read_all()
104 once = read(fd, buf_c + total, len - total); in read_all()
110 total += once; in read_all()
113 return total; in read_all()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A 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()
/aosp14/frameworks/base/tests/JankBench/scripts/external/
H A 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)
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A 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()
/aosp14/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
H A 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()
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A 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()
/aosp14/frameworks/base/cmds/incident_helper/testdata/
H A 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
/aosp14/system/core/fastboot/
H A Dsocket.cpp56 size_t total = 0; in ReceiveAll() local
58 while (total < length) { in ReceiveAll()
59 ssize_t bytes = Receive(reinterpret_cast<char*>(data) + total, length - total, timeout_ms); in ReceiveAll()
64 if (total == 0) { in ReceiveAll()
69 total += bytes; in ReceiveAll()
72 return total; in ReceiveAll()
/aosp14/frameworks/base/cmds/incident_helper/src/parsers/
H A 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()
/aosp14/system/core/libdiskconfig/
H A Ddiskutils.c42 uint64_t total = 0; in write_raw_image() local
77 total += nr_bytes; in write_raw_image()
105 ALOGI("Wrote %" PRIu64 " bytes to %s @ %lld", total, dst, (long long)offset); in write_raw_image()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A 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()
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DColorfulnessFilter.java67 float total = 0; in onProcess() local
73 total += value; in onProcess()
78 float value = hueHistogram[c] / total; in onProcess()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A 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()
H A DNetworkCycleData.java57 public Builder setTotalUsage(long total) { in setTotalUsage() argument
58 getObject().mTotalUsage = total; in setTotalUsage()
/aosp14/frameworks/base/packages/SettingsLib/UsageProgressBarPreference/src/com/android/settingslib/widget/
H A 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()
/aosp14/frameworks/base/core/jni/
H A 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()
/aosp14/frameworks/base/proto/src/
H A Dipconnectivity.proto193 // The total number of getaddrinfo queries.
197 // The total number of gethostbyname queries.
201 // The total number of getaddrinfo errors.
205 // The total number of gethostbyname errors.
358 // The total number of received RAs.
361 // The total number of received RAs that matched a known RA.
364 // The total number of received RAs ignored due to the MAX_RAS limit.
371 // The total number of received RAs that could not be parsed.
389 // The total number of packets processed by the APF interpreter.
393 // The total number of packets dropped by the APF interpreter.
[all …]
/aosp14/frameworks/base/media/java/android/media/
H A DExifInterfaceUtils.java40 int total = 0; in copy() local
44 total += c; in copy()
47 return total; in copy()
/aosp14/frameworks/base/core/proto/android/os/
H A Dbatterystats.proto220 optional TimerProto total = 3; field
274 optional TimerProto total = 2; field
331 optional TimerProto total = 2; field
389 optional TimerProto total = 2; field
405 optional TimerProto total = 2; field
416 optional TimerProto total = 2; field
439 optional TimerProto total = 2; field
457 optional TimerProto total = 2; field
480 optional TimerProto total = 2; field
502 // total duration.
[all …]
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DHeavyHitterSketchTest.java68 final int total = (int) (input.length / (1 - ratio)); in getTopHeavyHitters() local
69 sketcher.setConfig(total, capacity); in getTopHeavyHitters()
74 int validationSize = total - input.length; in getTopHeavyHitters()
100 final int total = (int) (input.length / (1 - ratio));
101 sketcher.setConfig(total, capacity);
/aosp14/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaMemoryTracer.cpp157 size_t SkiaMemoryTracer::total() { in total() function in android::uirenderer::skiapipeline::SkiaMemoryTracer
166 TraceValue total = convertUnits(mTotalSize); in logTotals() local
169 total.value, total.units, purgeable.value, purgeable.units); in logTotals()

12345