Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 25 of 58) sorted by relevance

123

/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DShortName.java109 int sum = dest[0]; in checkSum() local
111 sum = dest[i] + (((sum & 1) << 7) + ((sum & 0xfe) >> 1)); in checkSum()
114 return (byte) (sum & 0xff); in checkSum()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSimpleStats.java170 double sum = 0.0; in meanOverOneStandardDeviationRange() local
174 sum += meas; in meanOverOneStandardDeviationRange()
178 return sum / count; in meanOverOneStandardDeviationRange()
DMetricUtility.java265 double sum = values.stream().mapToDouble(Double::doubleValue).sum();
290 stats.put(STATS_KEY_TOTAL, sum);
DTableBuilder.java264 mRowLength = IntStream.of(mColumnWidth).map(i -> i + 2 * mPadding + 1).sum() + 1; in build()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/cellular/
Dcellular_idle_power_test.py78 slot_average = sum(milli_amps[slot_start:slot_end]) / slot_length
85 result = sum(filtered_slot_averages) / len(filtered_slot_averages)
/tools/test/connectivity/acts_tests/tests/google/power/wifi/
DPowerWiFiroamingTest.py107 average_current = sum([sample[1] * 1000
111 sum([sample[1] for sample in result]) / len(result)
159 average_current = sum([sample[1] * 1000
163 sum([sample[1] for sample in result]) / len(result)
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraStartupTest.java161 int sum = 0; in getAverageMultipleRunMetrics() local
171 sum += value; in getAverageMultipleRunMetrics()
179 valueString = String.format("%d", (sum / size)); in getAverageMultipleRunMetrics()
DCameraPerformanceTest.java87 double sum = 0; in getAverage() local
90 sum += num.doubleValue(); in getAverage()
95 return (sum / size); in getAverage()
/tools/external_updater/
Dexternal_updater_reviewers_test.py77 sum_projects = sum(reviewers.RUST_REVIEWERS.values())
92 self.assertEqual(sum(counters.values()), num_tries)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_performance_test_utils/
Dbrcm_utils.py326 bdf_signature = sum(
619 if sum(tx_mpdu):
623 llstats_summary['common_tx_mcs_count'] / sum(tx_mpdu))
627 if sum(rx_mpdu):
631 llstats_summary['common_rx_mcs_count'] / sum(rx_mpdu))
Dqcom_utils.py196 bdf_signature = sum(
463 if sum(tx_mpdu) and sum(rx_mpdu):
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/engine/
Dcalibration.py105 return sum(window) / self._calibration_window_size
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DEmulatorMemoryCpuCapturer.java76 return allPss.stream().mapToInt(Integer::intValue).sum(); in parsePssMemory()
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/api/lvpm_stock/
Dmonsoon_proxy.py362 checksum = (data_len + sum(bytearray(data))) % 256
382 checksum = (sum(struct.unpack('B' * len(body), body)) + data_len) % 256
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DChainedDataSource.java34 mTotalSize = Arrays.stream(sources).mapToLong(src -> src.size()).sum(); in ChainedDataSource()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/
Dplot_utils.py55 avg_current = sum(current_data) / len(current_data)
DPowerGnssBaseTest.py76 avg_current = sum(current_data) / len(current_data)
DPowerGTWGnssBaseTest.py130 avg_current = sum(calibrate_results) / len(calibrate_results)
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/functional/
DMessageTest.py247 len(tx_msg_ids), sum(tx_msg_ids.values()),
273 len(tx_msgs), sum(tx_msgs.values()),
/tools/netsim/rust/daemon/src/transport/
Dfd.rs185 let chip_count = startup_info.devices.iter().map(|d| d.chips.len()).sum(); in run_fd_transport()
410 let chip_count = startup_info.devices.iter().map(|d| d.chips.len()).sum(); in run_fd_connector()
/tools/test/connectivity/acts_tests/tests/google/cellular/performance/
DCellularLteRvrTest.py105 cell_power_interp = sorted(set(sum(test_data['cell_power'], [])))
DCellularFr1SensitivityTest.py107 cell_power_interp = sorted(set(sum(test_data['cell_power'], [])))
DCellularLteSensitivityTest.py105 cell_power_interp = sorted(set(sum(test_data['cell_power'], [])))
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dlatency.py234 event_summary['average_lat'] = sum(latencies) / len(latencies)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
DBtSarBaseTest.py495 if sar_df['delta'].sum() > self.agg_error_threshold[type]:
498 format(sar_df['delta'].sum(), self.agg_error_threshold))

123