/external/webrtc/rtc_base/numerics/ |
D | sample_counter_unittest.cc | 62 SampleCounterWithVariance counter1; in TEST() local 64 counter1.Add(value); in TEST() 71 EXPECT_THAT(counter1.Avg(kMinSamples), Eq(absl::nullopt)); in TEST() 72 EXPECT_THAT(counter1.Variance(kMinSamples), Eq(absl::nullopt)); in TEST() 74 counter1.Add(counter2); in TEST() 75 EXPECT_THAT(counter1.Avg(kMinSamples), Eq(3)); in TEST() 76 EXPECT_THAT(counter1.Max(), Eq(5)); in TEST() 77 EXPECT_THAT(counter1.Variance(kMinSamples), Eq(2)); in TEST()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | AbstractCacheTest.java | 160 SimpleStatsCounter counter1 = new SimpleStatsCounter(); in testSimpleStatsIncrementBy() local 162 counter1.recordHits(1); in testSimpleStatsIncrementBy() 165 counter1.recordLoadSuccess(i); in testSimpleStatsIncrementBy() 169 counter1.recordLoadException(i); in testSimpleStatsIncrementBy() 173 counter1.recordMisses(1); in testSimpleStatsIncrementBy() 176 counter1.recordEviction(); in testSimpleStatsIncrementBy() 198 counter1.incrementBy(counter2); in testSimpleStatsIncrementBy() 199 assertEquals(new CacheStats(38, 60, 44, 54, totalLoadTime, 66), counter1.snapshot()); in testSimpleStatsIncrementBy()
|
/external/guava/android/guava-tests/test/com/google/common/cache/ |
D | AbstractCacheTest.java | 160 SimpleStatsCounter counter1 = new SimpleStatsCounter(); in testSimpleStatsIncrementBy() local 162 counter1.recordHits(1); in testSimpleStatsIncrementBy() 165 counter1.recordLoadSuccess(i); in testSimpleStatsIncrementBy() 169 counter1.recordLoadException(i); in testSimpleStatsIncrementBy() 173 counter1.recordMisses(1); in testSimpleStatsIncrementBy() 176 counter1.recordEviction(); in testSimpleStatsIncrementBy() 198 counter1.incrementBy(counter2); in testSimpleStatsIncrementBy() 199 assertEquals(new CacheStats(38, 60, 44, 54, totalLoadTime, 66), counter1.snapshot()); in testSimpleStatsIncrementBy()
|
/external/llvm-project/llvm/test/Transforms/LoopVectorize/ |
D | pr38697.ll | 96 ; uint32_t counter1, counter2; 98 ; for (counter1 = 1; counter1 < 100; ++counter1) { 104 ; uint32_t incr = 16 / counter1; 112 ; This version is as written above, where 'incr' is '16/counter1', and it is 113 ; guaranted that 'counter1' is always non-zero. So it is safe to hoist the 132 %counter1.0 = phi i32 [ 1, %entry ], [ %inc9, %for.end ] 133 %cmp = icmp ult i32 %counter1.0, 100 149 %div = udiv i32 16, %counter1.0 165 %inc9 = add i32 %counter1.0, 1 174 ; outer ('counter1') loop starts at the unknown value of 'start1' rather than 1, [all …]
|
/external/webrtc/rtc_base/ |
D | cpu_time_unittest.cc | 63 int64_t counter1; in TEST() local 65 PlatformThread thread1(WorkingFunction, reinterpret_cast<void*>(&counter1), in TEST() 74 EXPECT_GE(counter1, 0); in TEST()
|
/external/libchrome/base/synchronization/ |
D | waitable_event_watcher_unittest.cc | 212 int counter1 = 0; in TEST_P() local 224 &event, BindOnce(callback, Unretained(&run_loop), Unretained(&counter1)), in TEST_P() 235 EXPECT_EQ(1, counter1); in TEST_P() 247 int counter1 = 0; in TEST_P() local 264 BindOnce(callback, Unretained(¤t_run_loop), Unretained(&counter1)), in TEST_P() 281 EXPECT_TRUE((counter1 == 1) ^ (counter2 == 1)); in TEST_P() 295 EXPECT_EQ(1, counter1); in TEST_P()
|
/external/tensorflow/tensorflow/python/eager/ |
D | monitoring_test.py | 39 counter1 = monitoring.Counter('test/counter1', 'test counter', 'label1') 40 counter1.get_cell('foo').increase_by(1) 41 self.assertEqual(counter1.get_cell('foo').value(), 1) 48 …counter1 = monitoring.Counter('test/same_counter', 'test counter') # pylint: disable=unused-varia…
|
/external/rust/crates/criterion/tests/ |
D | criterion_tests.rs | 206 let counter1 = Counter::default(); in test_warmup_time() localVariable 208 let clone = counter1.clone(); in test_warmup_time() 225 assert!(counter1.read() < counter2.read()); in test_warmup_time() 231 let counter1 = Counter::default(); in test_measurement_time() localVariable 233 let clone = counter1.clone(); in test_measurement_time() 244 assert!(counter1.read() < counter2.read()); in test_measurement_time()
|
/external/tensorflow/tensorflow/c/eager/ |
D | c_api_experimental_test.cc | 74 auto* counter1 = TFE_MonitoringNewCounter1("test/counter1", status, in TEST() local 77 auto* cell1 = TFE_MonitoringGetCellCounter1(counter1, "test"); in TEST() 89 TFE_MonitoringDeleteCounter1(counter1); in TEST()
|