Home
last modified time | relevance | path

Searched refs:counts (Results 1 – 25 of 728) sorted by relevance

12345678910>>...30

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DPeriod.java30 final int[] counts; field in Period
166 for (int i = 0; i < counts.length; ++i) { in isSet()
167 if (counts[i] != 0) { in isSet()
180 return counts[unit.ordinal] > 0; in isSet()
191 if (counts[ord] == 0) { in getCount()
194 return (counts[ord] - 1)/1000f; in getCount()
266 for (int i = 0; i < counts.length; ++i) { in equals()
267 if (counts[i] != rhs.counts[i]) { in equals()
282 for (int i = 0; i < counts.length; ++i) { in hashCode()
283 hc = (hc << 2) ^ counts[i]; in hashCode()
[all …]
DBasicPeriodFormatter.java41 return format(period.timeLimit, period.inFuture, period.counts); in format()
53 private String format(int tl, boolean inFuture, int[] counts) { in format() argument
55 for (int i = 0; i < counts.length; ++i) { in format()
56 if (counts[i] > 0) { in format()
66 for (int i = 0, m = 1; i < counts.length; ++i, m <<= 1) { in format()
67 if ((mask & m) != 0 && counts[i] == 1) { in format()
90 counts[sx] += (counts[mx]-1)/1000; in format()
99 counts[sx] = 1; in format()
101 counts[sx] += (counts[mx]-1)/1000; in format()
110 int last = counts.length - 1; in format()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/
DPeriod.java32 final int[] counts; field in Period
168 for (int i = 0; i < counts.length; ++i) { in isSet()
169 if (counts[i] != 0) { in isSet()
182 return counts[unit.ordinal] > 0; in isSet()
193 if (counts[ord] == 0) { in getCount()
196 return (counts[ord] - 1)/1000f; in getCount()
268 for (int i = 0; i < counts.length; ++i) { in equals()
269 if (counts[i] != rhs.counts[i]) { in equals()
284 for (int i = 0; i < counts.length; ++i) { in hashCode()
285 hc = (hc << 2) ^ counts[i]; in hashCode()
[all …]
DBasicPeriodFormatter.java42 return format(period.timeLimit, period.inFuture, period.counts); in format()
54 private String format(int tl, boolean inFuture, int[] counts) { in format() argument
56 for (int i = 0; i < counts.length; ++i) { in format()
57 if (counts[i] > 0) { in format()
67 for (int i = 0, m = 1; i < counts.length; ++i, m <<= 1) { in format()
68 if ((mask & m) != 0 && counts[i] == 1) { in format()
91 counts[sx] += (counts[mx]-1)/1000; in format()
100 counts[sx] = 1; in format()
102 counts[sx] += (counts[mx]-1)/1000; in format()
111 int last = counts.length - 1; in format()
[all …]
/external/strace/
Dcount.c46 #define counts (countv[current_personality]) macro
61 if (!counts) in count_syscall()
62 counts = xcalloc(nsyscalls, sizeof(*counts)); in count_syscall()
63 cc = &counts[scno]; in count_syscall()
108 return -tv_cmp(&counts[*((int *) a)].time, in time_cmp()
109 &counts[*((int *) b)].time); in time_cmp()
122 int m = counts[*((int *) a)].calls; in count_cmp()
123 int n = counts[*((int *) b)].calls; in count_cmp()
179 if (counts == NULL || counts[i].calls == 0) in call_summary_pers()
181 tv_mul(&dtv, &overhead, counts[i].calls); in call_summary_pers()
[all …]
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decodemv.c35 FRAME_COUNTS *counts = xd->counts; in read_intra_mode_y() local
36 if (counts) in read_intra_mode_y()
37 ++counts->y_mode[size_group][y_mode]; in read_intra_mode_y()
46 FRAME_COUNTS *counts = xd->counts; in read_intra_mode_uv() local
47 if (counts) in read_intra_mode_uv()
48 ++counts->uv_mode[y_mode][uv_mode]; in read_intra_mode_uv()
56 FRAME_COUNTS *counts = xd->counts; in read_inter_mode() local
57 if (counts) in read_inter_mode()
58 ++counts->inter_mode[ctx][mode]; in read_inter_mode()
69 FRAME_COUNTS *counts = xd->counts; in read_selected_tx_size() local
[all …]
/external/libvpx/libvpx/vpx_dsp/
Dprob.c35 const unsigned int *counts, in tree_merge_probs_impl() argument
39 ? counts[-l] in tree_merge_probs_impl()
40 : tree_merge_probs_impl(l, tree, pre_probs, counts, probs); in tree_merge_probs_impl()
43 ? counts[-r] in tree_merge_probs_impl()
44 : tree_merge_probs_impl(r, tree, pre_probs, counts, probs); in tree_merge_probs_impl()
51 const unsigned int *counts, vpx_prob *probs) { in vpx_tree_merge_probs() argument
52 tree_merge_probs_impl(0, tree, pre_probs, counts, probs); in vpx_tree_merge_probs()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/inference/
DChiSquareTestImpl.java151 public double chiSquare(long[][] counts) throws IllegalArgumentException { in chiSquare() argument
153 checkArray(counts); in chiSquare()
154 int nRows = counts.length; in chiSquare()
155 int nCols = counts[0].length; in chiSquare()
163 rowSum[row] += counts[row][col]; in chiSquare()
164 colSum[col] += counts[row][col]; in chiSquare()
165 total += counts[row][col]; in chiSquare()
175 sumSq += ((counts[row][col] - expected) * in chiSquare()
176 (counts[row][col] - expected)) / expected; in chiSquare()
188 public double chiSquareTest(long[][] counts) in chiSquareTest() argument
[all …]
/external/llvm/test/tools/llvm-profdata/
Dmultiple-inputs.test4 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3
6 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3
10 FOO3: Block counts: [7, 6]
16 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3EMPTY
20 FOO3EMPTY: Block counts: [2, 3]
26 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=FOO3FOO3BAR3
30 FOO3FOO3BAR3: Block counts: [5, 8]
34 FOO3FOO3BAR3: Block counts: [11, 13]
40 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s --check-prefix=DISJOINT
44 DISJOINT: Block counts: [2, 3]
[all …]
Dcompat.proftext8 # RUN: llvm-profdata show %S/Inputs/compat.profdata.v1 --function function_count_only --counts | Fi…
16 # FUNC_COUNT_ONLY-NEXT: Block counts: []
18 # RUN: llvm-profdata show %S/Inputs/compat.profdata.v1 --function "name with spaces" --counts | Fil…
27 # SPACES-NEXT: Block counts: [0]
29 # RUN: llvm-profdata show %S/Inputs/compat.profdata.v1 --function large_numbers --counts | FileChec…
42 # LARGENUM-NEXT: Block counts: [1152921504606846976, 576460752303423488, 288230376151711744, 144115…
49 # RUN: llvm-profdata show %S/Inputs/compat.profdata.v2 -all-functions --counts | FileCheck %s -chec…
56 # FORMATV2-NEXT: Block counts: [179900]
61 # FORMATV2-NEXT: Block counts: [1000, 1000000, 499500]
/external/libvpx/libvpx/vp9/common/
Dvp9_entropymode.c341 const FRAME_COUNTS *counts = &cm->counts; in vp9_adapt_mode_probs() local
345 counts->intra_inter[i]); in vp9_adapt_mode_probs()
348 counts->comp_inter[i]); in vp9_adapt_mode_probs()
351 counts->comp_ref[i]); in vp9_adapt_mode_probs()
355 pre_fc->single_ref_prob[i][j], counts->single_ref[i][j]); in vp9_adapt_mode_probs()
359 counts->inter_mode[i], fc->inter_mode_probs[i]); in vp9_adapt_mode_probs()
363 counts->y_mode[i], fc->y_mode_prob[i]); in vp9_adapt_mode_probs()
367 counts->uv_mode[i], fc->uv_mode_prob[i]); in vp9_adapt_mode_probs()
371 counts->partition[i], fc->partition_prob[i]); in vp9_adapt_mode_probs()
377 counts->switchable_interp[i], in vp9_adapt_mode_probs()
[all …]
Dvp9_thread_common.c320 const FRAME_COUNTS *counts, int is_dec) { in vp9_accumulate_frame_counts() argument
325 accum->y_mode[i][j] += counts->y_mode[i][j]; in vp9_accumulate_frame_counts()
329 accum->uv_mode[i][j] += counts->uv_mode[i][j]; in vp9_accumulate_frame_counts()
333 accum->partition[i][j] += counts->partition[i][j]; in vp9_accumulate_frame_counts()
343 counts->eob_branch[i][j][k][l][m]; in vp9_accumulate_frame_counts()
346 counts->coef[i][j][k][l][m][n]; in vp9_accumulate_frame_counts()
355 counts->eob_branch[i][j][k][l][m]; in vp9_accumulate_frame_counts()
365 accum->switchable_interp[i][j] += counts->switchable_interp[i][j]; in vp9_accumulate_frame_counts()
369 accum->inter_mode[i][j] += counts->inter_mode[i][j]; in vp9_accumulate_frame_counts()
373 accum->intra_inter[i][j] += counts->intra_inter[i][j]; in vp9_accumulate_frame_counts()
[all …]
Dvp9_entropymv.c164 void vp9_inc_mv(const MV *mv, nmv_context_counts *counts) { in vp9_inc_mv() argument
165 if (counts != NULL) { in vp9_inc_mv()
167 ++counts->joints[j]; in vp9_inc_mv()
170 inc_mv_component(mv->row, &counts->comps[0], 1, 1); in vp9_inc_mv()
174 inc_mv_component(mv->col, &counts->comps[1], 1, 1); in vp9_inc_mv()
184 const nmv_context_counts *counts = &cm->counts.mv; in vp9_adapt_mv_probs() local
186 vpx_tree_merge_probs(vp9_mv_joint_tree, pre_fc->joints, counts->joints, in vp9_adapt_mv_probs()
192 const nmv_component_counts *c = &counts->comps[i]; in vp9_adapt_mv_probs()
/external/skia/tools/lua/
Dngrams.lua49 local counts = {}
53 if counts[ngram] == nil then
54 counts[ngram] = 1
56 counts[ngram] = counts[ngram] + 1
62 for ngram, count in pairs(counts) do
/external/guava/guava/src/com/google/common/collect/
DRegularImmutableSortedMultiset.java33 private final transient int[] counts; field in RegularImmutableSortedMultiset
40 int[] counts, in RegularImmutableSortedMultiset() argument
45 this.counts = counts; in RegularImmutableSortedMultiset()
55 counts[offset + index]); in getEntry()
71 return (index == -1) ? 0 : counts[index + offset]; in count()
106 subElementSet, counts, cumulativeCounts, offset + from, to - from); in getSubMultiset()
112 return offset > 0 || length < counts.length; in isPartialView()
/external/testng/src/main/java/org/testng/
DSuiteRunnerWorker.java65 SuiteResultCounts counts = new SuiteResultCounts(); in runSuite() local
67 counts.calculateResultCounts(xmlSuite, suiteRunnerMap); in runSuite()
73 .append(counts.m_total).append(", Failures: ").append(counts.m_failed) in runSuite()
74 .append(", Skips: ").append(counts.m_skipped); in runSuite()
75 if(counts.m_confFailures > 0 || counts.m_confSkips > 0) { in runSuite()
76 bufLog.append("\nConfiguration Failures: ").append(counts.m_confFailures) in runSuite()
77 .append(", Skips: ").append(counts.m_confSkips); in runSuite()
/external/autotest/client/cros/video/
Dframe_checksum_utils.py16 counts = {}
19 if checksum in counts:
20 counts[checksum] += 1
22 counts[checksum] = 1
24 return counts
/external/webp/src/utils/
Dhuffman_encode.c32 uint32_t* const counts) { in OptimizeHuffmanForRle() argument
39 if (counts[length - 1] != 0) { in OptimizeHuffmanForRle()
50 uint32_t symbol = counts[0]; in OptimizeHuffmanForRle()
53 if (i == length || counts[i] != symbol) { in OptimizeHuffmanForRle()
63 symbol = counts[i]; in OptimizeHuffmanForRle()
73 uint32_t limit = counts[0]; in OptimizeHuffmanForRle()
78 !ValuesShouldBeCollapsedToStrideAverage(counts[i], limit)) { in OptimizeHuffmanForRle()
93 counts[i - k - 1] = count; in OptimizeHuffmanForRle()
101 limit = (counts[i] + counts[i + 1] + in OptimizeHuffmanForRle()
102 counts[i + 2] + counts[i + 3] + 2) / 4; in OptimizeHuffmanForRle()
[all …]
/external/opencv3/3rdparty/libwebp/utils/
Dhuffman_encode.c31 static int OptimizeHuffmanForRle(int length, int* const counts) { in OptimizeHuffmanForRle() argument
39 if (counts[length - 1] != 0) { in OptimizeHuffmanForRle()
54 int symbol = counts[0]; in OptimizeHuffmanForRle()
57 if (i == length || counts[i] != symbol) { in OptimizeHuffmanForRle()
67 symbol = counts[i]; in OptimizeHuffmanForRle()
77 int limit = counts[0]; in OptimizeHuffmanForRle()
82 !ValuesShouldBeCollapsedToStrideAverage(counts[i], limit)) { in OptimizeHuffmanForRle()
97 counts[i - k - 1] = count; in OptimizeHuffmanForRle()
105 limit = (counts[i] + counts[i + 1] + in OptimizeHuffmanForRle()
106 counts[i + 2] + counts[i + 3] + 2) / 4; in OptimizeHuffmanForRle()
[all …]
/external/autotest/site_utils/
Dlab_inventory.py271 return sum([get_pool_count(counts)
272 for counts in self._pools.values()])
440 for board, counts in self.items():
441 spares = counts.get_total(_SPARE_POOL)
442 total = counts.get_total()
575 counts = inventory[board]
576 if counts.get_broken() != 0:
577 board_buffer_counts[board] = counts.get_spares_buffer()
578 broken_list.extend(counts.get_broken_list())
648 counts = inventory[board]
[all …]
/external/autotest/frontend/tko/
Drpc_interface_unittest_fixme.py330 counts = rpc_interface.get_group_counts(['job_name'])
331 groups = counts['groups']
341 counts = rpc_interface.get_group_counts(['job_name'],
344 groups = counts['groups']
357 counts = rpc_interface.get_status_counts(group_by=['job_name'])
358 group1, group2 = counts['groups']
368 counts = rpc_interface.get_latest_tests(group_by=['job_name'])
369 group1, group2 = counts['groups']
377 counts = rpc_interface.get_latest_tests(group_by=['job_name'],
379 group1, group2 = counts['groups']
[all …]
/external/deqp/modules/gles2/stress/
Des2sVertexArrayTests.cpp74 int counts[] = {1, 256}; in init() local
80 for (int countNdx = 0; countNdx < DE_LENGTH_OF_ARRAY(counts); countNdx++) in init()
102 spec.drawCount = counts[countNdx]; in init()
143 int counts[] = {1, 256}; in init() local
152 for (int countNdx = 0; countNdx < DE_LENGTH_OF_ARRAY(counts); countNdx++) in init()
172 spec.drawCount = counts[countNdx]; in init()
212 int counts[] = {5, 256}; in init() local
221 for (int countNdx = 0; countNdx < DE_LENGTH_OF_ARRAY(counts); countNdx++) in init()
243 spec.drawCount = counts[countNdx]; in init()
247 …offsets[offsetNdx]) + "_stride" + typeToString(stride) + "_quads" + typeToString(counts[countNdx]); in init()
[all …]
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/
Drenderer.py99 self.counts = [0, 0, 0, 0]
157 self.counts[QUESTION] += 1
178 self.counts[section] += n
203 self.counts[section] += n
250 self.counts[ADDITIONAL] += 1
299 self.counts[ADDITIONAL] += 1
301 self.output.write(struct.pack('!H', self.counts[ADDITIONAL]))
314 self.counts[0], self.counts[1],
315 self.counts[2], self.counts[3]))
/external/deqp/modules/gles3/stress/
Des3sVertexArrayTests.cpp76 int counts[] = {1, 256}; in init() local
82 for (int countNdx = 0; countNdx < DE_LENGTH_OF_ARRAY(counts); countNdx++) in init()
88 …" + Array::inputTypeToString(inputTypes[inputTypeNdx]) + "_quads" + typeToString(counts[countNdx]); in init()
103 spec.drawCount = counts[countNdx]; in init()
174 int counts[] = {1, 256}; in init() local
181 for (int countNdx = 0; countNdx < DE_LENGTH_OF_ARRAY(counts); countNdx++) in init()
190 …stride) + "_components" + typeToString(componentCount) + "_quads" + typeToString(counts[countNdx]); in init()
208 spec.drawCount = counts[countNdx]; in init()
278 int counts[] = {5, 256}; in init() local
285 for (int countNdx = 0; countNdx < DE_LENGTH_OF_ARRAY(counts); countNdx++) in init()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_encodemv.c152 const unsigned int counts[/*n - 1*/], in write_mv_update()
160 vp9_tree_probs_from_distribution(tree, branch_ct, counts); in write_mv_update()
166 nmv_context_counts *const counts) { in vp9_write_nmv_probs() argument
170 write_mv_update(vp9_mv_joint_tree, mvc->joints, counts->joints, MV_JOINTS, w); in vp9_write_nmv_probs()
174 nmv_component_counts *comp_counts = &counts->comps[i]; in vp9_write_nmv_probs()
188 counts->comps[i].class0_fp[j], MV_FP_SIZE, w); in vp9_write_nmv_probs()
190 write_mv_update(vp9_mv_fp_tree, mvc->comps[i].fp, counts->comps[i].fp, in vp9_write_nmv_probs()
196 update_mv(w, counts->comps[i].class0_hp, &mvc->comps[i].class0_hp, in vp9_write_nmv_probs()
198 update_mv(w, counts->comps[i].hp, &mvc->comps[i].hp, MV_UPDATE_PROB); in vp9_write_nmv_probs()
235 nmv_context_counts *counts) { in inc_mvs() argument
[all …]

12345678910>>...30