/external/vixl/src/aarch64/ |
D | instrument-aarch64.cc | 133 Counter* counter = new Counter(kCounterList[i].name, kCounterList[i].type); in Instrument() local 134 counters_.push_back(counter); in Instrument() 160 static Counter* counter = GetCounter("Instruction"); in Update() local 161 VIXL_ASSERT(counter->GetType() == Cumulative); in Update() 162 counter->Increment(); in Update() 164 if ((sample_period_ != 0) && counter->IsEnabled() && in Update() 165 (counter->GetCount() % sample_period_) == 0) { in Update() 212 static Counter* counter = GetCounter("Instruction"); in DumpEventMarker() local 218 counter->GetCount()); in DumpEventMarker() 260 static Counter* counter = GetCounter("PC Addressing"); in VisitPCRelAddressing() local [all …]
|
/external/v8/src/arm64/ |
D | instrument-arm64.cc | 117 Counter* counter = new Counter(kCounterList[i].name, kCounterList[i].type); in Instrument() local 118 counters_.push_back(counter); in Instrument() 144 static Counter* counter = GetCounter("Instruction"); in Update() local 145 DCHECK(counter->type() == Cumulative); in Update() 146 counter->Increment(); in Update() 148 if (counter->IsEnabled() && (counter->count() % sample_period_) == 0) { in Update() 190 static Counter* counter = GetCounter("Instruction"); in DumpEventMarker() local 193 (marker >> 8) & 0xFF, counter->count()); in DumpEventMarker() 234 static Counter* counter = GetCounter("PC Addressing"); in VisitPCRelAddressing() local 235 counter->Increment(); in VisitPCRelAddressing() [all …]
|
/external/grpc-grpc/tools/run_tests/performance/ |
D | massage_qps_stats.py | 28 "core_client_calls_created"] = massage_qps_stats_helpers.counter( 31 "core_server_calls_created"] = massage_qps_stats_helpers.counter( 33 stats["core_cqs_created"] = massage_qps_stats_helpers.counter( 36 "core_client_channels_created"] = massage_qps_stats_helpers.counter( 39 "core_client_subchannels_created"] = massage_qps_stats_helpers.counter( 42 "core_server_channels_created"] = massage_qps_stats_helpers.counter( 44 stats["core_syscall_poll"] = massage_qps_stats_helpers.counter( 46 stats["core_syscall_wait"] = massage_qps_stats_helpers.counter( 48 stats["core_pollset_kick"] = massage_qps_stats_helpers.counter( 51 "core_pollset_kicked_without_poller"] = massage_qps_stats_helpers.counter( [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | CountingInputStreamTest.java | 29 private CountingInputStream counter; field in CountingInputStreamTest 33 counter = new CountingInputStream(new ByteArrayInputStream(new byte[20])); in setUp() 37 assertEquals(0, counter.getCount()); in testReadSingleByte() 38 assertEquals(0, counter.read()); in testReadSingleByte() 39 assertEquals(1, counter.getCount()); in testReadSingleByte() 43 assertEquals(10, counter.read(new byte[10])); in testReadArray() 44 assertEquals(10, counter.getCount()); in testReadArray() 48 assertEquals(3, counter.read(new byte[10], 1, 3)); in testReadArrayRange() 49 assertEquals(3, counter.getCount()); in testReadArrayRange() 53 assertEquals(10, counter.skip(10)); in testSkip() [all …]
|
D | CountingOutputStreamTest.java | 31 CountingOutputStream counter = new CountingOutputStream(out); in testCount() local 33 assertEquals(written, counter.getCount()); in testCount() 35 counter.write(0); in testCount() 38 assertEquals(written, counter.getCount()); in testCount() 41 counter.write(data); in testCount() 44 assertEquals(written, counter.getCount()); in testCount() 46 counter.write(data, 0, 5); in testCount() 49 assertEquals(written, counter.getCount()); in testCount() 51 counter.write(data, 2, 5); in testCount() 54 assertEquals(written, counter.getCount()); in testCount() [all …]
|
/external/libchrome/base/test/ |
D | test_mock_time_task_runner_unittest.cc | 32 int counter = 0; in TEST() local 36 base::Bind([](int* counter) { *counter += 1; }, Unretained(&counter))); in TEST() argument 39 base::Bind([](int* counter) { *counter += 32; }, Unretained(&counter))); in TEST() argument 42 base::Bind([](int* counter) { *counter += 256; }, Unretained(&counter)), in TEST() argument 46 base::Bind([](int* counter) { *counter += 64; }, Unretained(&counter)), in TEST() argument 50 base::Bind([](int* counter) { *counter += 1024; }, in TEST() argument 51 Unretained(&counter)), in TEST() 55 base::Bind([](int* counter) { *counter += 4096; }, in TEST() argument 56 Unretained(&counter)), in TEST() 60 EXPECT_EQ(expected_value, counter); in TEST() [all …]
|
/external/perfetto/src/base/ |
D | task_runner_unittest.cc | 74 int counter = 0; in TYPED_TEST() local 75 task_runner.PostTask([&counter] { counter = (counter << 4) | 1; }); in TYPED_TEST() 76 task_runner.PostTask([&counter] { counter = (counter << 4) | 2; }); in TYPED_TEST() 77 task_runner.PostTask([&counter] { counter = (counter << 4) | 3; }); in TYPED_TEST() 78 task_runner.PostTask([&counter] { counter = (counter << 4) | 4; }); in TYPED_TEST() 81 EXPECT_EQ(0x1234, counter); in TYPED_TEST() 86 int counter = 0; in TYPED_TEST() local 87 task_runner.PostDelayedTask([&counter] { counter = (counter << 4) | 1; }, 5); in TYPED_TEST() 88 task_runner.PostDelayedTask([&counter] { counter = (counter << 4) | 2; }, 10); in TYPED_TEST() 89 task_runner.PostDelayedTask([&counter] { counter = (counter << 4) | 3; }, 15); in TYPED_TEST() [all …]
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | ListenerCallQueueTest.java | 46 AtomicInteger counter = new AtomicInteger(); in testAddAndExecute() local 47 queue.add(incrementingCallback(counter, 1)); in testAddAndExecute() 48 queue.add(incrementingCallback(counter, 2)); in testAddAndExecute() 49 queue.add(incrementingCallback(counter, 3)); in testAddAndExecute() 50 queue.add(incrementingCallback(counter, 4)); in testAddAndExecute() 51 assertEquals(0, counter.get()); in testAddAndExecute() 53 assertEquals(4, counter.get()); in testAddAndExecute() 61 AtomicInteger counter = new AtomicInteger(); in testAddAndExecute_withExceptions() local 62 queue.add(incrementingCallback(counter, 1)); in testAddAndExecute_withExceptions() 64 queue.add(incrementingCallback(counter, 2)); in testAddAndExecute_withExceptions() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AArch64/ |
D | loop-micro-op-buffer-size-t99.ll | 18 ; CHECK: %counter = phi i32 [ 0, %entry ], [ %inc.3, %loop.inc.3 ] 19 ; CHECK: %val = add nuw nsw i32 %counter, 5 20 ; CHECK: %val1 = add nuw nsw i32 %counter, 6 21 ; CHECK: %val2 = add nuw nsw i32 %counter, 7 22 ; CHECK: %val3 = add nuw nsw i32 %counter, 8 23 ; CHECK: %val4 = add nuw nsw i32 %counter, 9 24 ; CHECK: %val5 = add nuw nsw i32 %counter, 10 25 ; CHECK-NOT: %val = add i32 %counter, 5 26 ; CHECK-NOT: %val = add i32 %counter, 6 27 ; CHECK-NOT: %val = add i32 %counter, 7 [all …]
|
/external/tensorflow/tensorflow/core/lib/random/ |
D | philox_random.h | 133 PhiloxRandom(ResultType counter, Key key) : counter_(counter), key_(key) {} in PhiloxRandom() argument 136 ResultType const& counter() const { return counter_; } in counter() function 163 ResultType counter = counter_; in operator() local 168 counter = ComputeSingleRound(counter, key); in operator() 170 counter = ComputeSingleRound(counter, key); in operator() 172 counter = ComputeSingleRound(counter, key); in operator() 174 counter = ComputeSingleRound(counter, key); in operator() 176 counter = ComputeSingleRound(counter, key); in operator() 178 counter = ComputeSingleRound(counter, key); in operator() 180 counter = ComputeSingleRound(counter, key); in operator() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/PlaceSafepoints/ |
D | finite-loops.ll | 20 %counter = phi i32 [ 0 , %entry ], [ %counter.inc , %loop ] 21 %counter.inc = add i32 %counter, 1 22 %counter.cmp = icmp slt i32 %counter.inc, 16 23 br i1 %counter.cmp, label %loop, label %exit 42 %counter = phi i32 [ 0 , %entry ], [ %counter.inc , %continue ] 43 %counter.inc = add i32 %counter, 1 44 %counter.cmp = icmp slt i32 %counter.inc, 16 48 br i1 %counter.cmp, label %loop, label %exit 67 %counter = phi i8 [ 0 , %entry ], [ %counter.inc , %loop ] 68 %counter.inc = add nsw i8 %counter, 1 [all …]
|
/external/llvm/test/Transforms/PlaceSafepoints/ |
D | finite-loops.ll | 20 %counter = phi i32 [ 0 , %entry ], [ %counter.inc , %loop ] 21 %counter.inc = add i32 %counter, 1 22 %counter.cmp = icmp slt i32 %counter.inc, 16 23 br i1 %counter.cmp, label %loop, label %exit 42 %counter = phi i32 [ 0 , %entry ], [ %counter.inc , %continue ] 43 %counter.inc = add i32 %counter, 1 44 %counter.cmp = icmp slt i32 %counter.inc, 16 48 br i1 %counter.cmp, label %loop, label %exit 67 %counter = phi i8 [ 0 , %entry ], [ %counter.inc , %loop ] 68 %counter.inc = add nsw i8 %counter, 1 [all …]
|
/external/Reactive-Extensions/RxCpp/Rx/v2/examples/doxygen/ |
D | window.cpp | 8 int counter = 0; variable 12 [&counter](rxcpp::observable<int> v){ in __anon9b472a290102() 13 int id = counter++; in __anon9b472a290102() 24 int counter = 0; variable 28 [&counter](rxcpp::observable<int> v){ in __anon9b472a290402() 29 int id = counter++; in __anon9b472a290402() 40 int counter = 0; variable 49 [&counter](rxcpp::observable<long> v){ in __anon9b472a290702() 50 int id = counter++; in __anon9b472a290702() 61 int counter = 0; variable [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LoopUnroll/X86/ |
D | store_cost.ll | 26 %counter = phi i32 [0, %entry], [%inc, %loop.inc] 30 %ptr = getelementptr [1024 x i32], [1024 x i32]* %0, i32 0, i32 %counter 31 store i32 %counter, i32* %ptr 32 %val = add i32 %counter, 5 33 %xptr = getelementptr [1024 x i32], [1024 x i32]* %x0, i32 0, i32 %counter 35 %val1 = add i32 %counter, 6 36 %xptr1 = getelementptr [1024 x i32], [1024 x i32]* %x01, i32 0, i32 %counter 38 %val2 = add i32 %counter, 7 39 %xptr2 = getelementptr [1024 x i32], [1024 x i32]* %x02, i32 0, i32 %counter 41 %val3 = add i32 %counter, 8 [all …]
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | stateful_random_ops.cc | 39 xla::XlaOp counter, const int64 size) { in GetInputsFromCounter() argument 40 auto builder = counter.builder(); in GetInputsFromCounter() 42 input_u64 = input_u64 + counter; in GetInputsFromCounter() 43 counter = counter + xla::ConstantR0<uint64>(builder, size); in GetInputsFromCounter() 44 return std::make_pair(xla::Uint64ToUint32s(input_u64), counter); in GetInputsFromCounter() 52 xla::XlaOp key, xla::XlaOp counter, const xla::Shape& shape) { in StatefulRngUniformU32() argument 57 auto inputs_counter = GetInputsFromCounter(counter, half_size); in StatefulRngUniformU32() 59 counter = inputs_counter.second; in StatefulRngUniformU32() 66 counter); in StatefulRngUniformU32() 70 xla::XlaOp key, xla::XlaOp counter, const xla::Shape& shape) { in StatefulRngUniformU64() argument [all …]
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | ReflectionLongAdderCounterTest.java | 27 private ReflectionLongAdderCounter counter = new ReflectionLongAdderCounter(); field in ReflectionLongAdderCounterTest 31 assertEquals(0, counter.value()); in testInitialValue() 36 counter.add(1); in testIncrement() 37 assertEquals(1, counter.value()); in testIncrement() 42 counter.add(2); in testIncrementDelta() 43 assertEquals(2, counter.value()); in testIncrementDelta() 48 counter.add(2); in testIncrementMulti() 49 counter.add(1); in testIncrementMulti() 50 assertEquals(3, counter.value()); in testIncrementMulti() 55 counter.add(2); in testDecrement() [all …]
|
/external/libvpx/libvpx/vpx_dsp/mips/ |
D | sad_mmi.c | 362 int counter) { in vpx_sad64x() argument 365 mips_reg l_counter = counter; in vpx_sad64x() 377 MMI_ADDIU(%[counter], %[counter], -0x02) in vpx_sad64x() 381 [ftmp4]"=&f"(ftmp4), [ftmp5]"=&f"(ftmp5), [counter]"+&r"(l_counter), in vpx_sad64x() 404 int counter) { in vpx_sad_avg64x() argument 407 mips_reg l_counter = counter; in vpx_sad_avg64x() 421 MMI_ADDIU(%[counter], %[counter], -0x02) in vpx_sad_avg64x() 425 [ftmp4]"=&f"(ftmp4), [ftmp5]"=&f"(ftmp5), [counter]"+&r"(l_counter), in vpx_sad_avg64x() 448 int counter) { in vpx_sad32x() argument 451 mips_reg l_counter = counter; in vpx_sad32x() [all …]
|
/external/u-boot/arch/arm/include/asm/ |
D | atomic.h | 23 typedef struct { volatile int counter; } atomic_t; member 25 typedef struct { volatile long long counter; } atomic64_t; member 27 typedef struct { volatile long counter; } atomic64_t; member 35 #define atomic_read(v) ((v)->counter) 36 #define atomic_set(v, i) (((v)->counter) = (i)) 45 v->counter += i; in atomic_add() 54 v->counter -= i; in atomic_sub() 63 v->counter += 1; in atomic_inc() 72 v->counter -= 1; in atomic_dec() 82 val = v->counter; in atomic_dec_and_test() [all …]
|
/external/tcpdump/tests/ |
D | sflow_multiple_counter_30_pdus.out | 3 expanded counter sample (4), length 172, seqnum 87096, type 0, idx 55, records 2 4 enterprise 0, Generic counter (1) length 88 11 enterprise 0, Ethernet counter (2) length 52 15 expanded counter sample (4), length 172, seqnum 87096, type 0, idx 56, records 2 16 enterprise 0, Generic counter (1) length 88 23 enterprise 0, Ethernet counter (2) length 52 27 expanded counter sample (4), length 172, seqnum 87099, type 0, idx 57, records 2 28 enterprise 0, Generic counter (1) length 88 35 enterprise 0, Ethernet counter (2) length 52 39 expanded counter sample (4), length 172, seqnum 87096, type 0, idx 60, records 2 [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
D | SICBlockCipher.java | 24 private byte[] counter; field in SICBlockCipher 40 this.counter = new byte[blockSize]; in SICBlockCipher() 104 cipher.processBlock(counter, 0, counterOut, 0); in calculateByte() 111 if (byteCount == counter.length) in calculateByte() 130 if (counter[i] != IV[i]) in checkCounter() 140 int i = counter.length - pos; in incrementCounterAt() 143 if (++counter[i] != 0) in incrementCounterAt() 152 byte old = counter[counter.length - 1]; in incrementCounter() 154 counter[counter.length - 1] += offSet; in incrementCounter() 156 if (old != 0 && counter[counter.length - 1] < old) in incrementCounter() [all …]
|
/external/libcxxabi/test/ |
D | unwind_06.pass.cpp | 23 volatile int counter; variable 28 for (counter = 100; counter; --counter) in try1() 38 for (counter = 100; counter; --counter) in try2() 49 for (counter = 100; counter; --counter) in try3() 61 for (counter = 100; counter; --counter) in try4() 74 for (counter = 100; counter; --counter) in try5() 88 for (counter = 100; counter; --counter) in try6() 103 for (counter = 100; counter; --counter) in try7() 119 for (counter = 100; counter; --counter) in try8()
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/instr/ |
D | ProbeCounterTest.java | 28 private ProbeCounter counter; field in ProbeCounterTest 32 counter = new ProbeCounter(); in setup() 37 assertFalse(counter.hasMethods()); in testInitial() 38 assertEquals(0, counter.getCount()); in testInitial() 43 counter.visitTotalProbeCount(42); in testVisitTotalProbeCount() 44 assertEquals(42, counter.getCount()); in testVisitTotalProbeCount() 49 assertNull(counter.visitMethod(0, "<clinit>", null, null, null)); in testVisitClinitMethod() 50 assertFalse(counter.hasMethods()); in testVisitClinitMethod() 55 counter.visitMethod(Opcodes.ACC_ABSTRACT, "foo", null, null, null); in testVisitAbstractMethod() 56 assertFalse(counter.hasMethods()); in testVisitAbstractMethod() [all …]
|
/external/bcc/tests/cc/ |
D | test_perf_event.cc | 81 auto counter = counter_table[0]; variable 84 REQUIRE(counter.counter >= 0); 85 REQUIRE(counter.enabled > 0); 86 REQUIRE(counter.running >= 0); 87 REQUIRE(counter.running <= counter.enabled); 131 auto counter = counter_table[0]; variable 134 REQUIRE(counter.counter >= 0); 139 REQUIRE(counter.enabled >= 800000000); 140 REQUIRE(counter.running >= 0); 141 REQUIRE(counter.running <= counter.enabled);
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/modes/ |
D | SICBlockCipher.java | 26 private byte[] counter; field in SICBlockCipher 42 this.counter = new byte[blockSize]; in SICBlockCipher() 106 cipher.processBlock(counter, 0, counterOut, 0); in calculateByte() 113 if (byteCount == counter.length) in calculateByte() 132 if (counter[i] != IV[i]) in checkCounter() 142 int i = counter.length - pos; in incrementCounterAt() 145 if (++counter[i] != 0) in incrementCounterAt() 154 byte old = counter[counter.length - 1]; in incrementCounter() 156 counter[counter.length - 1] += offSet; in incrementCounter() 158 if (old != 0 && counter[counter.length - 1] < old) in incrementCounter() [all …]
|
/external/tensorflow/tensorflow/cc/training/ |
D | coordinator_test.cc | 70 void StartCounting(std::atomic<int>* counter, int until, in StartCounting() argument 73 std::bind(&MockQueueRunner::CountThread, this, counter, until, start)); in StartCounting() 76 void StartSettingStatus(const Status& status, BlockingCounter* counter, in StartSettingStatus() argument 79 status, counter, start)); in StartSettingStatus() 99 void CountThread(std::atomic<int>* counter, int until, Notification* start) { in CountThread() argument 101 while (!coord_->ShouldStop() && counter->load() < until) { in CountThread() 102 (*counter)++; in CountThread() 107 void SetStatusThread(const Status& status, BlockingCounter* counter, in SetStatusThread() argument 111 counter->DecrementCount(); in SetStatusThread() 121 std::atomic<int> counter(0); in TEST() local [all …]
|