/aosp14/frameworks/base/cmds/incident_helper/tests/ |
H A D | ProcrankParser_test.cpp | 81 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 D | AudioPowerCalculator.java | 56 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 D | VideoPowerCalculator.java | 53 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 D | MobileRadioPowerCalculator.java | 129 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 D | dmuserd.cpp | 82 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 D | AppItem.java | 33 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 D | statistics.py | 167 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 D | KernelCpuProcStringReader.java | 155 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 D | Utils.java | 35 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 D | contrast.cpp | 34 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 D | cpuinfo.txt | 1 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 D | socket.cpp | 56 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 D | ProcrankParser.cpp | 37 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 D | diskutils.c | 42 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 D | TokenBucketTest.java | 135 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 D | ColorfulnessFilter.java | 67 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 D | NetworkCycleChartDataLoader.java | 47 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 D | NetworkCycleData.java | 57 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 D | UsageProgressBarPreference.java | 115 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 D | android_content_res_ResourceTimer.cpp | 35 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 D | ipconnectivity.proto | 193 // 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 D | ExifInterfaceUtils.java | 40 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 D | batterystats.proto | 220 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 D | HeavyHitterSketchTest.java | 68 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 D | SkiaMemoryTracer.cpp | 157 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()
|