Home
last modified time | relevance | path

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

12345678910>>...37

/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.cc15 SampleMap samples(1); in TEST() local
17 samples.Accumulate(1, 100); in TEST()
18 samples.Accumulate(2, 200); in TEST()
19 samples.Accumulate(1, -200); in TEST()
20 EXPECT_EQ(-100, samples.GetCount(1)); in TEST()
21 EXPECT_EQ(200, samples.GetCount(2)); in TEST()
23 EXPECT_EQ(300, samples.sum()); in TEST()
24 EXPECT_EQ(100, samples.TotalCount()); in TEST()
25 EXPECT_EQ(samples.redundant_count(), samples.TotalCount()); in TEST()
29 SampleMap samples(1); in TEST() local
[all …]
Dsample_vector_unittest.cc26 SampleVector samples(1, &ranges); in TEST() local
28 samples.Accumulate(1, 200); in TEST()
29 samples.Accumulate(2, -300); in TEST()
30 EXPECT_EQ(-100, samples.GetCountAtIndex(0)); in TEST()
32 samples.Accumulate(5, 200); in TEST()
33 EXPECT_EQ(200, samples.GetCountAtIndex(1)); in TEST()
35 EXPECT_EQ(600, samples.sum()); in TEST()
36 EXPECT_EQ(100, samples.redundant_count()); in TEST()
37 EXPECT_EQ(samples.TotalCount(), samples.redundant_count()); in TEST()
39 samples.Accumulate(5, -100); in TEST()
[all …]
Dpersistent_sample_map_unittest.cc34 PersistentSampleMap samples(1, allocator.get(), &meta); in TEST() local
36 samples.Accumulate(1, 100); in TEST()
37 samples.Accumulate(2, 200); in TEST()
38 samples.Accumulate(1, -200); in TEST()
39 EXPECT_EQ(-100, samples.GetCount(1)); in TEST()
40 EXPECT_EQ(200, samples.GetCount(2)); in TEST()
42 EXPECT_EQ(300, samples.sum()); in TEST()
43 EXPECT_EQ(100, samples.TotalCount()); in TEST()
44 EXPECT_EQ(samples.redundant_count(), samples.TotalCount()); in TEST()
51 PersistentSampleMap samples(1, allocator.get(), &meta); in TEST() local
[all …]
Dhistogram_base_unittest.cc184 std::unique_ptr<HistogramSamples> samples = report->SnapshotSamples(); in TEST_F() local
185 EXPECT_EQ(1, samples->GetCount(HISTOGRAM_REPORT_CREATED)); in TEST_F()
186 EXPECT_EQ(5, samples->GetCount(HISTOGRAM_REPORT_HISTOGRAM_CREATED)); in TEST_F()
187 EXPECT_EQ(0, samples->GetCount(HISTOGRAM_REPORT_HISTOGRAM_LOOKUP)); in TEST_F()
188 EXPECT_EQ(1, samples->GetCount(HISTOGRAM_REPORT_TYPE_LOGARITHMIC)); in TEST_F()
189 EXPECT_EQ(1, samples->GetCount(HISTOGRAM_REPORT_TYPE_LINEAR)); in TEST_F()
190 EXPECT_EQ(1, samples->GetCount(HISTOGRAM_REPORT_TYPE_BOOLEAN)); in TEST_F()
191 EXPECT_EQ(1, samples->GetCount(HISTOGRAM_REPORT_TYPE_CUSTOM)); in TEST_F()
192 EXPECT_EQ(1, samples->GetCount(HISTOGRAM_REPORT_TYPE_SPARSE)); in TEST_F()
203 samples = report->SnapshotSamples(); in TEST_F()
[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/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_formatquery.c32 GLenum internalFormat, int samples[16]) in brw_query_samples_for_format()
41 samples[0] = 16; in brw_query_samples_for_format()
42 samples[1] = 8; in brw_query_samples_for_format()
43 samples[2] = 4; in brw_query_samples_for_format()
44 samples[3] = 2; in brw_query_samples_for_format()
48 samples[0] = 8; in brw_query_samples_for_format()
49 samples[1] = 4; in brw_query_samples_for_format()
50 samples[2] = 2; in brw_query_samples_for_format()
65 samples[0] = 4; in brw_query_samples_for_format()
68 samples[0] = 8; in brw_query_samples_for_format()
[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 …]
DListAddAllTester.java41 getList().addAll(MinimalCollection.of(samples.e0))); in testAddAll_supportedAllPresent()
42 expectAdded(samples.e0); in testAddAll_supportedAllPresent()
49 getList().addAll(MinimalCollection.of(samples.e0)); in testAddAll_unsupportedAllPresent()
59 = MinimalCollection.of(samples.e0, samples.e1, samples.e0, samples.e1); in testAddAll_withDuplicates()
62 expectAdded(samples.e0, samples.e1, samples.e0, samples.e1); in testAddAll_withDuplicates()
DCollectionRetainAllTester.java83 List<E> disjointList = Arrays.asList(samples.e3, samples.e4); in setUp()
88 samples.e0, samples.e1, samples.e2, samples.e3, samples.e4), in setUp()
91 = new Target(MinimalCollection.of(samples.e1), "subset"); in setUp()
95 MinimalCollection.of(samples.e0, samples.e0, samples.e3, samples.e3), in setUp()
98 = new Target(MinimalCollection.of(samples.e2, samples.e3), in setUp()
125 expectMissing(samples.e0, samples.e1, samples.e2); in testRetainAll_emptyPreviouslyNonEmpty()
156 expectMissing(samples.e0, samples.e1, samples.e2); in testRetainAll_disjointPreviouslyNonEmpty()
216 expectContents(samples.e2); in testRetainAll_partialOverlap()
232 expectContents(samples.e0); in testRetainAll_containsDuplicatesSizeOne()
239 expectContents(samples.e0); in testRetainAll_containsDuplicatesSizeSeveral()
/external/skia/tools/
DStats.h21 Stats(const SkTArray<double>& samples) { in Stats()
22 int n = samples.count(); in Stats()
28 min = samples[0]; in Stats()
29 max = samples[0]; in Stats()
31 if (samples[i] < min) { min = samples[i]; } in Stats()
32 if (samples[i] > max) { max = samples[i]; } in Stats()
37 sum += samples[i]; in Stats()
43 err += (samples[i] - mean) * (samples[i] - mean); in Stats()
48 memcpy(sorted.get(), samples.begin(), n * sizeof(double)); in Stats()
60 double s = samples[i]; in Stats()
/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/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/googletest/googletest/docs/
DV1_6_Samples.md2 [samples folder](../samples) has a number of well-commented samples showing how to use a
5 …* [Sample #1](../samples/sample1_unittest.cc) shows the basic steps of using Google Test to test C…
6 …* [Sample #2](../samples/sample2_unittest.cc) shows a more complex unit test for a class with mult…
7 * [Sample #3](../samples/sample3_unittest.cc) uses a test fixture.
8 * [Sample #4](../samples/sample4_unittest.cc) is another basic example of using Google Test.
9 …* [Sample #5](../samples/sample5_unittest.cc) teaches how to reuse a test fixture in multiple test…
10 * [Sample #6](../samples/sample6_unittest.cc) demonstrates type-parameterized tests.
11 * [Sample #7](../samples/sample7_unittest.cc) teaches the basics of value-parameterized tests.
12 …* [Sample #8](../samples/sample8_unittest.cc) shows using `Combine()` in value-parameterized tests.
13 …* [Sample #9](../samples/sample9_unittest.cc) shows use of the listener API to modify Google Test'…
[all …]
DV1_7_Samples.md2 [samples folder](../samples) has a number of well-commented samples showing how to use a
5 …* [Sample #1](../samples/sample1_unittest.cc) shows the basic steps of using Google Test to test C…
6 …* [Sample #2](../samples/sample2_unittest.cc) shows a more complex unit test for a class with mult…
7 * [Sample #3](../samples/sample3_unittest.cc) uses a test fixture.
8 * [Sample #4](../samples/sample4_unittest.cc) is another basic example of using Google Test.
9 …* [Sample #5](../samples/sample5_unittest.cc) teaches how to reuse a test fixture in multiple test…
10 * [Sample #6](../samples/sample6_unittest.cc) demonstrates type-parameterized tests.
11 * [Sample #7](../samples/sample7_unittest.cc) teaches the basics of value-parameterized tests.
12 …* [Sample #8](../samples/sample8_unittest.cc) shows using `Combine()` in value-parameterized tests.
13 …* [Sample #9](../samples/sample9_unittest.cc) shows use of the listener API to modify Google Test'…
[all …]
DSamples.md2 [samples folder](../samples) has a number of well-commented samples showing how to use a
5 …* [Sample #1](../samples/sample1_unittest.cc) shows the basic steps of using Google Test to test C…
6 …* [Sample #2](../samples/sample2_unittest.cc) shows a more complex unit test for a class with mult…
7 * [Sample #3](../samples/sample3_unittest.cc) uses a test fixture.
8 * [Sample #4](../samples/sample4_unittest.cc) is another basic example of using Google Test.
9 …* [Sample #5](../samples/sample5_unittest.cc) teaches how to reuse a test fixture in multiple test…
10 * [Sample #6](../samples/sample6_unittest.cc) demonstrates type-parameterized tests.
11 * [Sample #7](../samples/sample7_unittest.cc) teaches the basics of value-parameterized tests.
12 …* [Sample #8](../samples/sample8_unittest.cc) shows using `Combine()` in value-parameterized tests.
13 …* [Sample #9](../samples/sample9_unittest.cc) shows use of the listener API to modify Google Test'…
[all …]
/external/vulkan-validation-layers/tests/gtest-1.7.0/
DMakefile.in41 TESTS = samples/sample1_unittest$(EXEEXT) \
42 samples/sample10_unittest$(EXEEXT) \
44 check_PROGRAMS = samples/sample1_unittest$(EXEEXT) \
45 samples/sample10_unittest$(EXEEXT) \
108 am_samples_libsamples_la_OBJECTS = samples/sample1.lo \
109 samples/sample2.lo samples/sample4.lo
113 samples/sample10_unittest.$(OBJEXT)
118 samples/sample1_unittest.$(OBJEXT)
122 lib/libgtest.la samples/libsamples.la
125 samples/sample1.cc samples/sample1_unittest.cc
[all …]

12345678910>>...37