Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 25 of 1338) sorted by relevance

12345678910>>...54

/external/adhd/cras/src/dsp/tests/
Ddsp_util_test.c75 void TestRounding(float in, int16_t expected, int samples) in TestRounding() argument
112 samples); in TestRounding()
117 2, SND_PCM_FORMAT_S16_LE, samples); in TestRounding()
135 samples); in TestRounding()
139 SND_PCM_FORMAT_S16_LE, samples); in TestRounding()
141 d = memcmp(out_floats_ptr_c[0], out_floats_ptr_opt[0], samples * 4); in TestRounding()
144 d = memcmp(out_floats_ptr_c[1], out_floats_ptr_opt[1], samples * 4); in TestRounding()
160 int samples = 16; in main() local
169 TestRounding(1.0f, 32767, samples); in main()
170 TestRounding(-1.0f, -32768, samples); in main()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/
DMultisetIteratorTester.java40 Arrays.asList(samples.e0, samples.e1, samples.e1, samples.e2)), in testRemovingIteratorKnownOrder()
44 return getSubjectGenerator().create(samples.e0, samples.e1, samples.e1, samples.e2) in testRemovingIteratorKnownOrder()
53 new IteratorTester<E>(4, IteratorFeature.MODIFIABLE, Arrays.asList(samples.e0, samples.e1, in testRemovingIteratorUnknownOrder()
54 samples.e1, samples.e2), IteratorTester.KnownOrder.UNKNOWN_ORDER) { in testRemovingIteratorUnknownOrder()
57 return getSubjectGenerator().create(samples.e0, samples.e1, samples.e1, samples.e2) in testRemovingIteratorUnknownOrder()
67 Arrays.asList(samples.e0, samples.e1, samples.e1, samples.e2)), in testIteratorKnownOrder()
71 return getSubjectGenerator().create(samples.e0, samples.e1, samples.e1, samples.e2) in testIteratorKnownOrder()
80 new IteratorTester<E>(4, IteratorFeature.UNMODIFIABLE, Arrays.asList(samples.e0, samples.e1, in testIteratorUnknownOrder()
81 samples.e1, samples.e2), IteratorTester.KnownOrder.UNKNOWN_ORDER) { in testIteratorUnknownOrder()
84 return getSubjectGenerator().create(samples.e0, samples.e1, samples.e1, samples.e2) in testIteratorUnknownOrder()
DMultisetRemoveTester.java46 getMultiset().remove(samples.e0, -1); in testRemoveNegative()
55 getMultiset().remove(samples.e0, 2); in testRemoveUnsupported()
62 int originalCount = getMultiset().count(samples.e0); in testRemoveZeroNoOp()
63 assertEquals("old count", originalCount, getMultiset().remove(samples.e0, 0)); in testRemoveZeroNoOp()
71 1, getMultiset().remove(samples.e0, 2)); in testRemove_occurrences_present()
73 getMultiset().contains(samples.e0)); in testRemove_occurrences_present()
74 assertEquals(0, getMultiset().count(samples.e0)); in testRemove_occurrences_present()
82 3, getMultiset().remove(samples.e0, 2)); in testRemove_some_occurrences_present()
84 getMultiset().contains(samples.e0)); in testRemove_some_occurrences_present()
85 assertEquals(1, getMultiset().count(samples.e0)); in testRemove_some_occurrences_present()
[all …]
/external/libchrome/base/metrics/
Dsample_map_unittest.cc16 SampleMap samples(1); in TEST() local
18 samples.Accumulate(1, 100); in TEST()
19 samples.Accumulate(2, 200); in TEST()
20 samples.Accumulate(1, -200); in TEST()
21 EXPECT_EQ(-100, samples.GetCount(1)); in TEST()
22 EXPECT_EQ(200, samples.GetCount(2)); in TEST()
24 EXPECT_EQ(300, samples.sum()); in TEST()
25 EXPECT_EQ(100, samples.TotalCount()); in TEST()
26 EXPECT_EQ(samples.redundant_count(), samples.TotalCount()); in TEST()
30 SampleMap samples(1); in TEST() local
[all …]
Dsample_vector_unittest.cc27 const SampleVectorBase& samples) { in GetSamplesCounts() argument
28 return samples.counts(); in GetSamplesCounts()
38 SampleVector samples(1, &ranges); in TEST_F() local
40 samples.Accumulate(1, 200); in TEST_F()
41 samples.Accumulate(2, -300); in TEST_F()
42 EXPECT_EQ(-100, samples.GetCountAtIndex(0)); in TEST_F()
44 samples.Accumulate(5, 200); in TEST_F()
45 EXPECT_EQ(200, samples.GetCountAtIndex(1)); in TEST_F()
47 EXPECT_EQ(600, samples.sum()); in TEST_F()
48 EXPECT_EQ(100, samples.redundant_count()); in TEST_F()
[all …]
Dhistogram_unittest.cc165 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_P() local
166 EXPECT_EQ(2, samples->TotalCount()); in TEST_P()
167 EXPECT_EQ(2, samples->GetCount(10)); in TEST_P()
179 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotDelta(); in TEST_P() local
180 EXPECT_EQ(3, samples->TotalCount()); in TEST_P()
181 EXPECT_EQ(1, samples->GetCount(1)); in TEST_P()
182 EXPECT_EQ(1, samples->GetCount(10)); in TEST_P()
183 EXPECT_EQ(1, samples->GetCount(50)); in TEST_P()
184 EXPECT_EQ(samples->TotalCount(), samples->redundant_count()); in TEST_P()
186 samples = histogram->SnapshotDelta(); in TEST_P()
[all …]
Dpersistent_sample_map_unittest.cc35 PersistentSampleMap samples(1, allocator.get(), &meta); in TEST() local
37 samples.Accumulate(1, 100); in TEST()
38 samples.Accumulate(2, 200); in TEST()
39 samples.Accumulate(1, -200); in TEST()
40 EXPECT_EQ(-100, samples.GetCount(1)); in TEST()
41 EXPECT_EQ(200, samples.GetCount(2)); in TEST()
43 EXPECT_EQ(300, samples.sum()); in TEST()
44 EXPECT_EQ(100, samples.TotalCount()); in TEST()
45 EXPECT_EQ(samples.redundant_count(), samples.TotalCount()); in TEST()
52 PersistentSampleMap samples(1, allocator.get(), &meta); in TEST() local
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultisetIteratorTester.java44 Arrays.asList(samples.e0, samples.e1, samples.e1, samples.e2)), in testRemovingIteratorKnownOrder()
48 return getSubjectGenerator().create(samples.e0, samples.e1, samples.e1, samples.e2) in testRemovingIteratorKnownOrder()
57 new IteratorTester<E>(4, IteratorFeature.MODIFIABLE, Arrays.asList(samples.e0, samples.e1, in testRemovingIteratorUnknownOrder()
58 samples.e1, samples.e2), IteratorTester.KnownOrder.UNKNOWN_ORDER) { in testRemovingIteratorUnknownOrder()
61 return getSubjectGenerator().create(samples.e0, samples.e1, samples.e1, samples.e2) in testRemovingIteratorUnknownOrder()
71 Arrays.asList(samples.e0, samples.e1, samples.e1, samples.e2)), in testIteratorKnownOrder()
75 return getSubjectGenerator().create(samples.e0, samples.e1, samples.e1, samples.e2) in testIteratorKnownOrder()
84 new IteratorTester<E>(4, IteratorFeature.UNMODIFIABLE, Arrays.asList(samples.e0, samples.e1, in testIteratorUnknownOrder()
85 samples.e1, samples.e2), IteratorTester.KnownOrder.UNKNOWN_ORDER) { in testIteratorUnknownOrder()
88 return getSubjectGenerator().create(samples.e0, samples.e1, samples.e1, samples.e2) in testIteratorUnknownOrder()
DMultisetAddTester.java37 getMultiset().add(samples.e0); in testAddUnsupported()
44 int originalCount = getMultiset().count(samples.e0); in testAddMeansAddOne()
45 assertTrue(getMultiset().add(samples.e0)); in testAddMeansAddOne()
46 assertEquals(originalCount + 1, getMultiset().count(samples.e0)); in testAddMeansAddOne()
51 int originalCount = getMultiset().count(samples.e0); in testAddOccurrencesZero()
52 assertEquals("old count", originalCount, getMultiset().add(samples.e0, 0)); in testAddOccurrencesZero()
58 int originalCount = getMultiset().count(samples.e0); in testAddOccurrences()
59 assertEquals("old count", originalCount, getMultiset().add(samples.e0, 2)); in testAddOccurrences()
60 assertEquals("old count", originalCount + 2, getMultiset().count(samples.e0)); in testAddOccurrences()
65 int originalCount = getMultiset().count(samples.e0); in testAddSeveralTimes()
[all …]
DBiMapPutTester.java37 K k0 = samples.e0.getKey(); in testPutWithSameValueFails()
38 K k1 = samples.e1.getKey(); in testPutWithSameValueFails()
39 V v0 = samples.e0.getValue(); in testPutWithSameValueFails()
48 expectAdded(samples.e0); in testPutWithSameValueFails()
55 K k0 = samples.e0.getKey(); in testPutPresentKeyDifferentValue()
56 V v0 = samples.e0.getValue(); in testPutPresentKeyDifferentValue()
57 V v1 = samples.e1.getValue(); in testPutPresentKeyDifferentValue()
69 getMap().put(samples.e0.getKey(), samples.e0.getValue()); in putDistinctKeysDistinctValues()
70 getMap().put(samples.e1.getKey(), samples.e1.getValue()); in putDistinctKeysDistinctValues()
71 expectAdded(samples.e0, samples.e1); in putDistinctKeysDistinctValues()
[all …]
DMultisetEntrySetTester.java60 Multisets.immutableEntry(samples.e0, 1), iterator.next()); in testEntrySet_iteratorRemovePropagates()
77 Multisets.immutableEntry(samples.e0, 1))); in testEntrySet_removePresent()
80 getMultiset().contains(samples.e0)); in testEntrySet_removePresent()
89 Multisets.immutableEntry(samples.e0, 2))); in testEntrySet_removeAbsent()
92 getMultiset().contains(samples.e0)); in testEntrySet_removeAbsent()
101 Collections.singleton(Multisets.immutableEntry(samples.e0, 1)))); in testEntrySet_removeAllPresent()
104 getMultiset().contains(samples.e0)); in testEntrySet_removeAllPresent()
113 Collections.singleton(Multisets.immutableEntry(samples.e0, 2)))); in testEntrySet_removeAllAbsent()
116 getMultiset().contains(samples.e0)); in testEntrySet_removeAllAbsent()
125 Collections.singleton(Multisets.immutableEntry(samples.e0, 1)))); in testEntrySet_retainAllPresent()
[all …]
DMultisetRemoveTester.java49 getMultiset().remove(samples.e0, -1); in testRemoveNegative()
58 getMultiset().remove(samples.e0, 2); in testRemoveUnsupported()
65 int originalCount = getMultiset().count(samples.e0); in testRemoveZeroNoOp()
66 assertEquals("old count", originalCount, getMultiset().remove(samples.e0, 0)); in testRemoveZeroNoOp()
74 1, getMultiset().remove(samples.e0, 2)); in testRemove_occurrences_present()
76 getMultiset().contains(samples.e0)); in testRemove_occurrences_present()
77 assertEquals(0, getMultiset().count(samples.e0)); in testRemove_occurrences_present()
85 3, getMultiset().remove(samples.e0, 2)); in testRemove_some_occurrences_present()
87 getMultiset().contains(samples.e0)); in testRemove_some_occurrences_present()
88 assertEquals(1, getMultiset().count(samples.e0)); in testRemove_some_occurrences_present()
[all …]
/external/googletest/googletest/
DMakefile.am33 samples/prime_tables.h \
34 samples/sample1_unittest.cc \
35 samples/sample2_unittest.cc \
36 samples/sample3_unittest.cc \
37 samples/sample4_unittest.cc \
38 samples/sample5_unittest.cc \
39 samples/sample6_unittest.cc \
40 samples/sample7_unittest.cc \
41 samples/sample8_unittest.cc \
42 samples/sample9_unittest.cc
[all …]
/external/tensorflow/tensorflow/contrib/distributions/python/ops/
Dstatistical_testing.py163 def _do_maximum_mean(samples, envelope, high, name=None): argument
165 with ops.name_scope(name, "do_maximum_mean", [samples, envelope, high]):
166 n = array_ops.rank(samples)
170 samples = array_ops.transpose(samples, perm)
172 samples = _batch_sort_vector(samples)
183 batch_size = array_ops.shape(samples)[-1]
184 batch_size = math_ops.cast(batch_size, dtype=samples.dtype.base_dtype)
187 1, batch_size + 1, dtype=samples.dtype.base_dtype)
193 samples * max_mean_contrib, axis=-1) + envelope * high
196 def _maximum_mean(samples, envelope, high, name=None): argument
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DListAddAllAtIndexTester.java47 getList().addAll(0, MinimalCollection.of(samples.e0))); in testAddAllAtIndex_supportedAllPresent()
48 expectAdded(0, samples.e0); in testAddAllAtIndex_supportedAllPresent()
55 getList().addAll(0, MinimalCollection.of(samples.e0)); in testAddAllAtIndex_unsupportedAllPresent()
66 getList().addAll(0, MinimalCollection.of(samples.e0, samples.e3))); in testAddAllAtIndex_supportedSomePresent()
67 expectAdded(0, samples.e0, samples.e3); in testAddAllAtIndex_supportedSomePresent()
74 getList().addAll(0, MinimalCollection.of(samples.e0, samples.e3)); in testAddAllAtIndex_unsupportedSomePresent()
79 expectMissing(samples.e3); in testAddAllAtIndex_unsupportedSomePresent()
102 = MinimalCollection.of(samples.e0, samples.e1, samples.e0, samples.e1); in testAddAllAtIndex_withDuplicates()
105 expectAdded(0, samples.e0, samples.e1, samples.e0, samples.e1); in testAddAllAtIndex_withDuplicates()
164 getList().addAll(-1, MinimalCollection.of(samples.e3)); in testAddAllAtIndex_negative()
[all …]
DListRetainAllTester.java45 array[1] = samples.e0; in testRetainAll_duplicatesKept()
57 array[1] = samples.e0; in testRetainAll_duplicatesRemoved()
60 collection.retainAll(MinimalCollection.of(samples.e2))); in testRetainAll_duplicatesRemoved()
61 expectContents(samples.e2); in testRetainAll_duplicatesRemoved()
68 resetContainer(getSubjectGenerator().create(samples.e0, samples.e2, samples.e1, samples.e0)); in testRetainAll_countIgnored()
69 assertTrue(getList().retainAll(Arrays.asList(samples.e0, samples.e1))); in testRetainAll_countIgnored()
70 assertThat(getList()).has().exactly(samples.e0, samples.e1, samples.e0).inOrder(); in testRetainAll_countIgnored()
DCollectionRemoveAllTester.java58 collection.removeAll(MinimalCollection.of(samples.e3))); in testRemoveAll_nonePresent()
66 collection.removeAll(MinimalCollection.of(samples.e0))); in testRemoveAll_allPresent()
67 expectMissing(samples.e0); in testRemoveAll_allPresent()
74 collection.removeAll(MinimalCollection.of(samples.e0, samples.e3))); in testRemoveAll_somePresent()
75 expectMissing(samples.e0); in testRemoveAll_somePresent()
84 assertTrue(collection.removeAll(MinimalCollection.of(samples.e0, samples.e3))); in testRemoveAllSomePresentConcurrentWithIteration()
100 samples.e0, samples.e0, samples.e0, in testRemoveAll_somePresentLargeCollectionToRemove()
101 samples.e3, samples.e3, samples.e3))); in testRemoveAll_somePresentLargeCollectionToRemove()
102 expectMissing(samples.e0); in testRemoveAll_somePresentLargeCollectionToRemove()
121 collection.removeAll(MinimalCollection.of(samples.e3))); in testRemoveAll_unsupportedNonePresent()
[all …]
DListAddAtIndexTester.java49 getList().add(0, samples.e0); in testAddAtIndex_supportedPresent()
50 expectAdded(0, samples.e0); in testAddAtIndex_supportedPresent()
61 getList().add(0, samples.e0); in testAddAtIndex_unsupportedPresent()
70 getList().add(0, samples.e3); in testAddAtIndex_supportedNotPresent()
71 expectAdded(0, samples.e3); in testAddAtIndex_supportedNotPresent()
79 getList().add(0, samples.e3); in testAddAtIndexConcurrentWithIteration()
90 getList().add(0, samples.e3); in testAddAtIndex_unsupportedNotPresent()
95 expectMissing(samples.e3); in testAddAtIndex_unsupportedNotPresent()
101 getList().add(getNumElements() / 2, samples.e3); in testAddAtIndex_middle()
102 expectAdded(getNumElements() / 2, samples.e3); in testAddAtIndex_middle()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_formatquery.c32 GLenum internalFormat, int samples[16]) in brw_query_samples_for_format()
43 samples[0] = 16; in brw_query_samples_for_format()
44 samples[1] = 8; in brw_query_samples_for_format()
45 samples[2] = 4; in brw_query_samples_for_format()
46 samples[3] = 2; in brw_query_samples_for_format()
50 samples[0] = 8; in brw_query_samples_for_format()
51 samples[1] = 4; in brw_query_samples_for_format()
52 samples[2] = 2; in brw_query_samples_for_format()
67 samples[0] = 4; in brw_query_samples_for_format()
70 samples[0] = 8; in brw_query_samples_for_format()
[all …]
/external/skia/tools/
DStats.h22 Stats(const SkTArray<double>& samples, bool want_plot) { in Stats()
23 int n = samples.count(); in Stats()
29 min = samples[0]; in Stats()
30 max = samples[0]; in Stats()
32 if (samples[i] < min) { min = samples[i]; } in Stats()
33 if (samples[i] > max) { max = samples[i]; } in Stats()
38 sum += samples[i]; in Stats()
44 err += (samples[i] - mean) * (samples[i] - mean); in Stats()
49 memcpy(sorted.get(), samples.begin(), n * sizeof(double)); in Stats()
61 double s = samples[i]; in Stats()
/external/skqp/tools/
DStats.h22 Stats(const SkTArray<double>& samples, bool want_plot) { in Stats()
23 int n = samples.count(); in Stats()
29 min = samples[0]; in Stats()
30 max = samples[0]; in Stats()
32 if (samples[i] < min) { min = samples[i]; } in Stats()
33 if (samples[i] > max) { max = samples[i]; } in Stats()
38 sum += samples[i]; in Stats()
44 err += (samples[i] - mean) * (samples[i] - mean); in Stats()
49 memcpy(sorted.get(), samples.begin(), n * sizeof(double)); in Stats()
61 double s = samples[i]; in Stats()
/external/linux-kselftest/tools/testing/selftests/seccomp/
Dseccomp_benchmark.c19 unsigned long long timing(clockid_t clk_id, unsigned long long samples) in timing() argument
27 for (i = 0; i < samples; i++) { in timing()
52 unsigned long long samples = 1 << i; in calibrate() local
55 if (timing(CLOCK_REALTIME, samples) / 1000000000ULL > 5) in calibrate()
56 return samples; in calibrate()
70 unsigned long long samples; in main() local
74 samples = strtoull(argv[1], NULL, 0); in main()
76 samples = calibrate(); in main()
78 printf("Benchmarking %llu samples...\n", samples); in main()
80 native = timing(CLOCK_PROCESS_CPUTIME_ID, samples) / samples; in main()
[all …]
/external/sonic/
DSonic.java76 short samples[], in scaleSamples() argument
86 int value = (samples[xSample]*fixedPointVolume) >> 12; in scaleSamples()
92 samples[xSample] = (short)value; in scaleSamples()
262 float samples[], in addFloatSamplesToInputBuffer() argument
271 inputBuffer[xBuffer++] = (short)(samples[xSample]*32767.0f); in addFloatSamplesToInputBuffer()
278 short samples[], in addShortSamplesToInputBuffer() argument
285 move(inputBuffer, numInputSamples, samples, 0, numSamples); in addShortSamplesToInputBuffer()
291 byte samples[], in addUnsignedByteSamplesToInputBuffer() argument
299 sample = (short)((samples[xSample] & 0xff) - 128); // Convert from unsigned to signed in addUnsignedByteSamplesToInputBuffer()
334 short samples[], in copyToOutput() argument
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/
DListAddAtIndexTester.java46 getList().add(0, samples.e0); in testAddAtIndex_supportedPresent()
47 expectAdded(0, samples.e0); in testAddAtIndex_supportedPresent()
58 getList().add(0, samples.e0); in testAddAtIndex_unsupportedPresent()
67 getList().add(0, samples.e3); in testAddAtIndex_supportedNotPresent()
68 expectAdded(0, samples.e3); in testAddAtIndex_supportedNotPresent()
76 getList().add(0, samples.e3); in testAddAtIndexConcurrentWithIteration()
87 getList().add(0, samples.e3); in testAddAtIndex_unsupportedNotPresent()
92 expectMissing(samples.e3); in testAddAtIndex_unsupportedNotPresent()
98 getList().add(getNumElements() / 2, samples.e3); in testAddAtIndex_middle()
99 expectAdded(getNumElements() / 2, samples.e3); in testAddAtIndex_middle()
[all …]
/external/ltp/lib/
Dtst_timer_test.c36 static long long *samples; variable
93 long long max_sample = samples[0]; in frequency_plot()
94 long long min_sample = samples[cur_sample-1]; in frequency_plot()
110 bucket = flooru(1.00 * (samples[i] - min_sample)/bucket_size); in frequency_plot()
166 samples[cur_sample++] = tst_timer_elapsed_us(); in tst_timer_sample()
235 fprintf(f, "%lli\n", samples[i]); in write_to_file()
285 qsort(samples, nsamples, sizeof(samples[0]), cmp); in do_timer_test()
289 for (i = 0; samples[i] > 10 * usec && i < (int)nsamples; i++) { in do_timer_test()
290 if (samples[i] <= 3 * monotonic_resolution) in do_timer_test()
296 i, samples[0], samples[i-1]); in do_timer_test()
[all …]

12345678910>>...54