/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/ |
D | StatsProcessorTest.java | 51 int total = 10; in testMinUnassignedBoundary() local 58 StatsProcessor.PoolStats stats = prepareStats(total, unassigned, expiring, extra); in testMinUnassignedBoundary() 67 stats = prepareStats(total, unassigned, expiring, extra); in testMinUnassignedBoundary() 75 int total = 10; in testStatsNoProvisioning() local 82 StatsProcessor.PoolStats stats = prepareStats(total, unassigned, expiring, extra); in testStatsNoProvisioning() 90 int total = 10; in testStatsProvisioning1() local 95 StatsProcessor.PoolStats stats = prepareStats(total, unassigned, expiring, extra); in testStatsProvisioning1() 103 int total = 10; in testStatsProvisioning2() local 109 StatsProcessor.PoolStats stats = prepareStats(total, unassigned, expiring, extra); in testStatsProvisioning2() 117 int total = 15; in testStatsProvisioning3() local [all …]
|
/packages/modules/Nfc/libnfc-nci/utils/ |
D | ringbuffer.cc | 25 size_t total; member 41 p->total = p->available = size; in ringbuffer_init() 58 return rb->total - rb->available; in ringbuffer_size() 69 if (rb->tail >= (rb->base + rb->total)) rb->tail = rb->base; in ringbuffer_insert() 82 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_delete() 95 uint8_t* b = ((rb->head - rb->base + offset) % rb->total) + rb->base; in ringbuffer_peek() 102 if (b >= (rb->base + rb->total)) b = rb->base; in ringbuffer_peek() 114 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_pop()
|
/packages/modules/NeuralNetworks/tools/systrace_parser/ |
D | contract-between-code-and-parser.txt | 35 …t0: t_m_w:B|T1|[NN_LR_PP]funcP Add (t1-t0) to total time spent in Layer 45 …t0: t_m_w:B|T1|[NN_LA_PP]funcE1 Add (t3-t0) to total time spent in Layer 48 …t3: t_m_w:E|T1 Add (t2-t1) to total time spent in Layer 53 … total time in Layer Application - total t… 68 …t0: t_m_w:B|T1|[NN_LC_PTR]funcC1 Add (t1-t0) to total time spent in Layer 71 …t3: t_m_w:E|T1 Add (t2-t1) to total time spent in Layer 82 …t0: t_m_w:B|T1|[NN_LR_PE]funcR2 Add (t2-t1) to total time spent in Layer 84 … t2: t_m_w:E|T1 total time in Phase Exec… 86 … Add (t3-t0) to total time spent in Layer 97 …t0: t_m_w:B|T1|[NN_LR_PE]funcR3 Add (t3-t0) to total time spent in Layer [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageItemPreference.java | 53 public void setStorageSize(long size, long total) { in setStorageSize() argument 54 setStorageSize(size, total, false /* animate */); in setStorageSize() 60 public void setStorageSize(long size, long total, boolean animate) { in setStorageSize() argument 74 updateProgressBarAndSizeInfo((long) animation.getAnimatedValue(), total); in setStorageSize() 78 updateProgressBarAndSizeInfo(size, total); in setStorageSize() 96 private void updateProgressBarAndSizeInfo(long size, long total) { in updateProgressBarAndSizeInfo() argument 98 mProgressPercent = total == 0 ? 0 : (int) (size * PROGRESS_MAX / total); in updateProgressBarAndSizeInfo()
|
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/test/ |
D | omr1.txt | 6 …reparation Compilation I/O Compute Results Ex. total Termination … 15 * This total ignores missing (n/a) values and thus is not necessarily consistent with the rest of t… 21 …reparation Compilation I/O Compute Results Ex. total Termination … 30 * This total ignores missing (n/a) values and thus is not necessarily consistent with the rest of t… 36 …reparation Compilation I/O Compute Results Ex. total Termination … 45 * This total ignores missing (n/a) values and thus is not necessarily consistent with the rest of t… 51 …reparation Compilation I/O Compute Results Ex. total Termination … 60 * This total ignores missing (n/a) values and thus is not necessarily consistent with the rest of t… 66 …reparation Compilation I/O Compute Results Ex. total Termination … 75 * This total ignores missing (n/a) values and thus is not necessarily consistent with the rest of t…
|
D | unittest.txt | 6 …reparation Compilation I/O Compute Results Ex. total Termination … 15 * This total ignores missing (n/a) values and thus is not necessarily consistent with the rest of t… 21 …reparation Compilation I/O Compute Results Ex. total Termination … 31 * This total ignores missing (n/a) values and thus is not necessarily consistent with the rest of t…
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SelectionManager.java | 157 int total = set.getMediaItemCount(); in expandMediaSet() local 161 while (index < total) { in expandMediaSet() 162 int count = index + batch < total in expandMediaSet() 164 : total - index; in expandMediaSet() 186 int total = getTotalCount(); in getSelected() local 187 for (int i = 0; i < total; i++) { in getSelected() 220 int total = getTotalCount(); in getSelected() local 222 while (index < total) { in getSelected() 223 int count = Math.min(total - index, MediaSet.MEDIAITEM_BATCH_FETCH_COUNT); in getSelected()
|
/packages/modules/DnsResolver/ |
D | DnsStats.cpp | 75 return std::tie(sockAddr, total, rcodeCounts, latencyUs) == in operator ==() 76 std::tie(o.sockAddr, o.total, o.rcodeCounts, o.latencyUs); in operator ==() 80 return (total == 0) ? 0 : duration_cast<milliseconds>(latencyUs).count() / total; in averageLatencyMs() 84 if (total == 0) return fmt::format("{} <no data>", sockAddr.toString()); in toString() 94 return fmt::format("{} ({}, {}ms, [{}], {}s)", sockAddr.toString(), total, averageLatencyMs(), in toString() 127 mStatsData.total += 1; in updateStatsData() 131 mStatsData.total -= 1; in updateStatsData() 247 count += v.total; in getAverageLatencyUs()
|
D | res_stats.cpp | 121 int total = successes + errors + timeouts + internal_errors; in res_stats_usable_server() local 123 << timeouts << " + I " << internal_errors << " = " << total in res_stats_usable_server() 125 if (total >= params->min_samples) { in res_stats_usable_server() 126 int success_rate = successes * 100 / total; in res_stats_usable_server()
|
/packages/modules/Bluetooth/system/gd/metrics/ |
D | counter_metrics.cc | 58 int64_t total = 0; in CacheCount() local 61 total = counters_[key]; in CacheCount() 63 if (LLONG_MAX - total < count) { in CacheCount() 64 log::warn("Counter metric overflows. count {} current total: {} key: {}", count, total, key); in CacheCount() 68 counters_[key] = total + count; in CacheCount()
|
/packages/modules/ExtServices/native/pHash/ |
D | phash_fingerprinter.cpp | 43 double total = 0; in GenerateFingerprint() local 46 total += dct_out(x, y); in GenerateFingerprint() 50 total -= dct_out(0, 0); in GenerateFingerprint() 53 double average = total / ((kResizedLength * kResizedLength) - 1); in GenerateFingerprint()
|
/packages/modules/Virtualization/tests/benchmark/src/native/ |
D | io_vsock.cpp | 63 ssize_t total = 0; in run_vsock_server_and_receive_data() local 73 total += n; in run_vsock_server_and_receive_data() 76 if (total != num_bytes_to_receive) { in run_vsock_server_and_receive_data() 77 return Error() << "Received data length(" << total << ") is not equal to " in run_vsock_server_and_receive_data()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppNotificationTest.java | 135 long total = 200; in updateActiveNotification() local 160 total, in updateActiveNotification() 173 total, in updateActiveNotification() 216 long total = 200; in updateCompletedNotification_withOutBoundShare_showsNoti() local 239 total, in updateCompletedNotification_withOutBoundShare_showsNoti() 252 total, in updateCompletedNotification_withOutBoundShare_showsNoti() 296 long total = 200; in updateCompletedNotification_withInBoundShare_showsNoti() local 319 total, in updateCompletedNotification_withInBoundShare_showsNoti() 332 total, in updateCompletedNotification_withInBoundShare_showsNoti() 373 long total = 200; in updateIncomingFileConfirmationNotification() local [all …]
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | TrafficStats.java | 803 long total = 0; in getMobileTxPackets() local 805 total += addIfSupported(getTxPackets(iface)); in getMobileTxPackets() 807 return total; in getMobileTxPackets() 820 long total = 0; in getMobileRxPackets() local 822 total += addIfSupported(getRxPackets(iface)); in getMobileRxPackets() 824 return total; in getMobileRxPackets() 837 long total = 0; in getMobileTxBytes() local 839 total += addIfSupported(getTxBytes(iface)); in getMobileTxBytes() 841 return total; in getMobileTxBytes() 854 long total = 0; in getMobileRxBytes() local [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | MediaSet.java | 111 int total = getMediaItemCount(); in getTotalMediaItemCount() local 113 total += getSubMediaSet(i).getTotalMediaItemCount(); in getTotalMediaItemCount() 115 return total; in getTotalMediaItemCount() 203 int total = getMediaItemCount(); in enumerateMediaItems() local 205 while (start < total) { in enumerateMediaItems() 206 int count = Math.min(MEDIAITEM_BATCH_FETCH_COUNT, total - start); in enumerateMediaItems() 214 return total; in enumerateMediaItems()
|
D | FilterTypeSet.java | 99 final int total = mBaseSet.getMediaItemCount(); in updateData() local 100 final Path[] buf = new Path[total]; in updateData() 106 if (index < 0 || index >= total) return; in updateData() 113 for (int i = 0; i < total; i++) { in updateData()
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/ |
D | GenericDocument.java | 530 int total = 0; in flattenAccumulator() local 533 System.arraycopy(castValue, 0, result, total, castValue.length); in flattenAccumulator() 534 total += castValue.length; in flattenAccumulator() 544 int total = 0; in flattenAccumulator() local 547 System.arraycopy(castValue, 0, result, total, castValue.length); in flattenAccumulator() 548 total += castValue.length; in flattenAccumulator() 558 int total = 0; in flattenAccumulator() local 561 System.arraycopy(castValue, 0, result, total, castValue.length); in flattenAccumulator() 562 total += castValue.length; in flattenAccumulator() 572 int total = 0; in flattenAccumulator() local [all …]
|
/packages/apps/Settings/tests/componenttests/src/com/android/settings/testutils/ |
D | UiUtils.java | 74 private static void dumpViewRecursive(View view, int layer, int index, int total) { in dumpViewRecursive() argument 76 Log.i(TAG, "L[" + layer + "] PARENT -> " + (index + 1) + "/" + total + " >> " in dumpViewRecursive() 79 TAG + " L[" + layer + "] PARENT -> " + (index + 1) + "/" + total + " >> " in dumpViewRecursive() 86 Log.i(TAG, "L[" + layer + "] =END= -> " + (index + 1) + "/" + total + " >> " in dumpViewRecursive()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | StochasticRoundingUtilTest.java | 101 double total = 0; in testRoundStochasticallyApproximatesTrueSim() local 104 total += StochasticRoundingUtil.roundStochastically(input, 8); in testRoundStochasticallyApproximatesTrueSim() 107 assertThat(total > .9 * input * numIters).isTrue(); in testRoundStochasticallyApproximatesTrueSim() 108 assertThat(total < 1.1 * input * numIters).isTrue(); in testRoundStochasticallyApproximatesTrueSim()
|
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/handheld/ |
D | ManageStandardPermissionsFragmentTest.kt | 126 assertThat(afterInstall.total).isEqualTo(original.total + 1) in groupSummaryGetsUpdatedWhenAppGetsInstalled() 155 assertThat(getUsageCountsFromUi(LOCATION_GROUP_LABEL).total) in groupSummaryGetsUpdatedWhenPermissionGetsGranted() 156 .isEqualTo(original.total + 1) in groupSummaryGetsUpdatedWhenPermissionGetsGranted() 176 assertThat(getUsageCountsFromUi(LOCATION_GROUP_LABEL).total) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked() 177 .isNotEqualTo(original.total) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked()
|
/packages/modules/Nfc/libnfc-nci/src/gki/common/ |
D | gki_buffer.cc | 45 static void gki_init_free_queue(uint8_t id, uint16_t size, uint16_t total, in gki_init_free_queue() argument 62 p_cb->pool_end[id] = (uint8_t*)p_mem + (act_size * total); in gki_init_free_queue() 68 p_cb->freeq[id].total = total; in gki_init_free_queue() 76 for (i = 0; i < total; i++) { in gki_init_free_queue() 100 void* p_mem = GKI_os_malloc((Q->size + BUFFER_PADDING_SIZE) * Q->total); in gki_alloc_free_queue() 103 gki_init_free_queue(id, Q->size, Q->total, p_mem); in gki_alloc_free_queue() 145 p_cb->freeq[tt].total = 0; in gki_buffer_init() 344 if (Q->cur_cnt < Q->total) { in GKI_getbuf() 437 if (Q->cur_cnt < Q->total) { in GKI_getpoolbuf() 1091 return (gki_cb.com.freeq[pool_id].total); in GKI_poolcount() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/ |
D | AccountSyncPreferenceController.java | 99 int total = 0; in getSummary() local 114 total++; in getSummary() 130 } else if (enabled == total) { in getSummary() 133 return getContext().getString(R.string.account_sync_summary_some_on, enabled, total); in getSummary()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountSyncPreferenceController.java | 109 int total = 0; in updateSummary() local 120 total++; in updateSummary() 133 } else if (enabled == total) { in updateSummary() 137 mContext.getString(R.string.account_sync_summary_some_on, enabled, total)); in updateSummary()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/ |
D | CompositeCircleView.java | 87 float total = 0; in configure() local 90 total += values[i]; in configure() 126 float sweepAngle = (values[i] / total) * allocatedDegrees; in configure() 130 int percentage = Math.round((values[i] / total) * 100); in configure()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/ |
D | AppDataUsageRepositoryTest.kt | 97 assertThat(total).isEqualTo(2) in getAppPercent_noAppToHide() 103 assertThat(total).isEqualTo(1) in getAppPercent_noAppToHide() 129 assertThat(total).isEqualTo(2) in getAppPercent_hasAppToHide() 158 assertThat(total).isEqualTo(2) in getAppPercent_restricted() 165 assertThat(total).isEqualTo(0) in getAppPercent_restricted()
|