/external/guava/guava-tests/test/com/google/common/io/ |
H A D | CountingInputStreamTest.java | 29 private CountingInputStream counter; field in class:CountingInputStreamTest 33 counter = new CountingInputStream(new ByteArrayInputStream(new byte[20])); 37 assertEquals(0, counter.getCount()); 38 assertEquals(0, counter.read()); 39 assertEquals(1, counter.getCount()); 43 assertEquals(10, counter.read(new byte[10])); 44 assertEquals(10, counter.getCount()); 48 assertEquals(3, counter.read(new byte[10], 1, 3)); 49 assertEquals(3, counter.getCount()); 53 assertEquals(10, counter [all...] |
H A D | CountingOutputStreamTest.java | 31 CountingOutputStream counter = new CountingOutputStream(out); 33 assertEquals(written, counter.getCount()); 35 counter.write(0); 38 assertEquals(written, counter.getCount()); 41 counter.write(data); 44 assertEquals(written, counter.getCount()); 46 counter.write(data, 0, 5); 49 assertEquals(written, counter.getCount()); 51 counter.write(data, 2, 5); 54 assertEquals(written, counter [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
H A D | DSAValidationParameters.java | 9 private int counter; field in class:DSAValidationParameters 13 int counter) 15 this(seed, counter, -1); 20 int counter, 24 this.counter = counter; 30 return counter; 45 return counter ^ Arrays.hashCode(seed); 58 if (other.counter != this.counter) 11 DSAValidationParameters( byte[] seed, int counter) argument 18 DSAValidationParameters( byte[] seed, int counter, int usageIndex) argument [all...] |
H A D | DHValidationParameters.java | 8 private int counter; field in class:DHValidationParameters 12 int counter) 15 this.counter = counter; 20 return counter; 38 if (other.counter != this.counter) 48 return counter ^ Arrays.hashCode(seed); 10 DHValidationParameters( byte[] seed, int counter) argument
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_perf.h | 71 /** Increment the named counter (only for debug builds) */ 73 #define LP_COUNT(counter) lp_count.counter++ 74 #define LP_COUNT_ADD(counter, incr) lp_count.counter += (incr) 75 #define LP_COUNT_GET(counter) (lp_count.counter) 77 #define LP_COUNT(counter) 78 #define LP_COUNT_ADD(counter, incr) (void)(incr) 79 #define LP_COUNT_GET(counter) [all...] |
/external/compiler-rt/test/tsan/Linux/ |
H A D | check_preinit.cc | 20 volatile int counter = 0; variable 26 lib_constructor_call = ++counter; 31 extern int counter; 39 bin_constructor_call = ++counter; 45 tsan_init_call = ++counter;
|
/external/clang/test/PCH/ |
H A D | cxx1y-init-captures.cpp | 11 auto counter = [a(0)] () mutable { return a++; }; variable 12 int x = counter(); 20 int y = counter();
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/instr/ |
H A D | ProbeCounterTest.java | 27 private ProbeCounter counter; field in class:ProbeCounterTest 31 counter = new ProbeCounter(); 36 assertFalse(counter.hasMethods()); 37 assertEquals(0, counter.getCount()); 42 counter.visitTotalProbeCount(42); 43 assertEquals(42, counter.getCount()); 48 assertNull(counter.visitMethod(0, "<clinit>", null, null, null)); 49 assertFalse(counter.hasMethods()); 54 assertNull(counter.visitMethod(0, "foo", null, null, null)); 55 assertTrue(counter [all...] |
/external/compiler-rt/test/BlocksRuntime/ |
H A D | dispatch_async.c | 20 __block CFIndex counter; local 25 counter = 0; 31 counter++; 34 counter--; 35 if(counter == 0) { 40 if(counter == 0) {
|
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_time.h | 58 int64_t counter; member in struct:util_time 66 t->counter = os_time_get(); 79 t2->counter = t1->counter + usecs; 91 return t2->counter - t1->counter; 105 if (t1->counter < t2->counter) 107 else if(t1->counter > t2->counter) [all...] |
/external/vixl/src/aarch64/ |
H A D | instrument-aarch64.cc | 58 // If the counter is a Gauge, reset the count after reading. 128 // Construct Counter objects from counter description array. 130 Counter* counter = new Counter(kCounterList[i].name, kCounterList[i].type); local 131 counters_.push_back(counter); 142 // Free all the counter objects. 155 // Increment the instruction counter, and dump all counters if a sample period 157 static Counter* counter = GetCounter("Instruction"); local 158 VIXL_ASSERT(counter->GetType() == Cumulative); 159 counter->Increment(); 161 if ((sample_period_ != 0) && counter 209 static Counter* counter = GetCounter("Instruction"); local 257 static Counter* counter = GetCounter("PC Addressing"); local 265 static Counter* counter = GetCounter("Add/Sub DP"); local 273 static Counter* counter = GetCounter("Logical DP"); local 280 static Counter* counter = GetCounter("Move Immediate"); local 294 static Counter* counter = GetCounter("Other Int DP"); local 302 static Counter* counter = GetCounter("Other Int DP"); local 310 static Counter* counter = GetCounter("Unconditional Branch"); local 318 static Counter* counter = GetCounter("Unconditional Branch"); local 326 static Counter* counter = GetCounter("Compare and Branch"); local 334 static Counter* counter = GetCounter("Test and Branch"); local 342 static Counter* counter = GetCounter("Conditional Branch"); local 350 static Counter* counter = GetCounter("Other"); local 358 static Counter* counter = GetCounter("Other"); local 402 static Counter* counter = GetCounter("Other"); local 410 static Counter* counter = GetCounter("Load Literal"); local 489 static Counter* counter = GetCounter("Logical DP"); local 497 static Counter* counter = GetCounter("Add/Sub DP"); local 505 static Counter* counter = GetCounter("Add/Sub DP"); local 513 static Counter* counter = GetCounter("Add/Sub DP"); local 521 static Counter* counter = GetCounter("Conditional Compare"); local 529 static Counter* counter = GetCounter("Conditional Compare"); local 537 static Counter* counter = GetCounter("Conditional Select"); local 545 static Counter* counter = GetCounter("Other Int DP"); local 553 static Counter* counter = GetCounter("Other Int DP"); local 561 static Counter* counter = GetCounter("Other Int DP"); local 569 static Counter* counter = GetCounter("FP DP"); local 577 static Counter* counter = GetCounter("Conditional Compare"); local 585 static Counter* counter = GetCounter("Conditional Select"); local 593 static Counter* counter = GetCounter("FP DP"); local 601 static Counter* counter = GetCounter("FP DP"); local 609 static Counter* counter = GetCounter("FP DP"); local 617 static Counter* counter = GetCounter("FP DP"); local 625 static Counter* counter = GetCounter("FP DP"); local 633 static Counter* counter = GetCounter("FP DP"); local 641 static Counter* counter = GetCounter("Crypto"); local 649 static Counter* counter = GetCounter("Crypto"); local 657 static Counter* counter = GetCounter("Crypto"); local 665 static Counter* counter = GetCounter("NEON"); local 673 static Counter* counter = GetCounter("NEON"); local 681 static Counter* counter = GetCounter("NEON"); local 689 static Counter* counter = GetCounter("NEON"); local 697 static Counter* counter = GetCounter("NEON"); local 705 static Counter* counter = GetCounter("NEON"); local 713 static Counter* counter = GetCounter("NEON"); local 721 static Counter* counter = GetCounter("NEON"); local 730 static Counter* counter = GetCounter("NEON"); local 738 static Counter* counter = GetCounter("NEON"); local 747 static Counter* counter = GetCounter("NEON"); local 755 static Counter* counter = GetCounter("NEON"); local 763 static Counter* counter = GetCounter("NEON"); local 771 static Counter* counter = GetCounter("NEON"); local 779 static Counter* counter = GetCounter("NEON"); local 787 static Counter* counter = GetCounter("NEON"); local 795 static Counter* counter = GetCounter("NEON"); local 803 static Counter* counter = GetCounter("NEON"); local 811 static Counter* counter = GetCounter("NEON"); local 819 static Counter* counter = GetCounter("NEON"); local 827 static Counter* counter = GetCounter("NEON"); local 835 static Counter* counter = GetCounter("NEON"); local 843 static Counter* counter = GetCounter("Other"); local 851 static Counter* counter = GetCounter("Other"); local [all...] |
/external/ltp/lib/ |
H A D | tst_fill_file.c | 34 size_t counter; local 49 for (counter = 0; counter < bs; counter++) 50 buf[counter] = pattern; 53 for (counter = 0; counter < bcount; counter++) {
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
H A D | ListenerCallQueueTest.java | 46 AtomicInteger counter = new AtomicInteger(); 47 queue.add(incrementingCallback(counter, 1)); 48 queue.add(incrementingCallback(counter, 2)); 49 queue.add(incrementingCallback(counter, 3)); 50 queue.add(incrementingCallback(counter, 4)); 51 assertEquals(0, counter.get()); 53 assertEquals(4, counter.get()); 61 AtomicInteger counter = new AtomicInteger(); 62 queue.add(incrementingCallback(counter, 1)); 64 queue.add(incrementingCallback(counter, 123 incrementingCallback(final AtomicInteger counter, final int expected) argument [all...] |
/external/guice/extensions/struts2/example/src/com/google/inject/struts2/example/ |
H A D | Count.java | 24 final Counter counter; field in class:Count 29 public Count(Counter counter, Service service) { argument 30 this.counter = counter; 39 return counter.increment();
|
/external/eigen/unsupported/test/ |
H A D | cxx11_tensor_notification.cpp | 28 void WaitAndAdd(Eigen::Notification* n, int* counter) { argument 30 *counter = *counter + 1; 39 int counter = 0; local 41 std::function<void()> func = std::bind(&WaitAndAdd, &n, &counter); 46 VERIFY_IS_EQUAL(counter, 0); 53 // Verify the counter has been incremented 54 VERIFY_IS_EQUAL(counter, 1); 63 int counter = 0; local 65 std::function<void()> func = std::bind(&WaitAndAdd, &n, &counter); [all...] |
/external/v8/src/arm64/ |
H A D | instrument-arm64.cc | 42 // If the counter is a Gauge, reset the count after reading. 116 // Construct Counter objects from counter description array. 118 Counter* counter = new Counter(kCounterList[i].name, kCounterList[i].type); local 119 counters_.push_back(counter); 130 // Free all the counter objects. 143 // Increment the instruction counter, and dump all counters if a sample period 145 static Counter* counter = GetCounter("Instruction"); local 146 DCHECK(counter->type() == Cumulative); 147 counter->Increment(); 149 if (counter 191 static Counter* counter = GetCounter("Instruction"); local 235 static Counter* counter = GetCounter("PC Addressing"); local 257 static Counter* counter = GetCounter("Logical DP"); local 264 static Counter* counter = GetCounter("Move Immediate"); local 277 static Counter* counter = GetCounter("Other Int DP"); local 284 static Counter* counter = GetCounter("Other Int DP"); local 291 static Counter* counter = GetCounter("Unconditional Branch"); local 298 static Counter* counter = GetCounter("Unconditional Branch"); local 305 static Counter* counter = GetCounter("Compare and Branch"); local 312 static Counter* counter = GetCounter("Test and Branch"); local 319 static Counter* counter = GetCounter("Conditional Branch"); local 326 static Counter* counter = GetCounter("Other"); local 333 static Counter* counter = GetCounter("Other"); local 369 static Counter* counter = GetCounter("Load Literal"); local 460 static Counter* counter = GetCounter("Logical DP"); local 467 static Counter* counter = GetCounter("Add/Sub DP"); local 489 static Counter* counter = GetCounter("Add/Sub DP"); local 496 static Counter* counter = GetCounter("Conditional Compare"); local 503 static Counter* counter = GetCounter("Conditional Compare"); local 510 static Counter* counter = GetCounter("Conditional Select"); local 517 static Counter* counter = GetCounter("Other Int DP"); local 524 static Counter* counter = GetCounter("Other Int DP"); local 531 static Counter* counter = GetCounter("Other Int DP"); local 538 static Counter* counter = GetCounter("FP DP"); local 545 static Counter* counter = GetCounter("Conditional Compare"); local 552 static Counter* counter = GetCounter("Conditional Select"); local 559 static Counter* counter = GetCounter("FP DP"); local 566 static Counter* counter = GetCounter("FP DP"); local 573 static Counter* counter = GetCounter("FP DP"); local 580 static Counter* counter = GetCounter("FP DP"); local 587 static Counter* counter = GetCounter("FP DP"); local 594 static Counter* counter = GetCounter("FP DP"); local 601 static Counter* counter = GetCounter("Other"); local 608 static Counter* counter = GetCounter("Other"); local [all...] |
/external/wpa_supplicant_8/hostapd/src/eap_common/ |
H A D | eap_psk_common.c | 38 u8 counter = 1; local 44 hash[aes_block_size - 1] ^= counter; 47 hash[aes_block_size - 1] ^= counter; 48 counter++; 51 hash[aes_block_size - 1] ^= counter; 54 hash[aes_block_size - 1] ^= counter; 55 counter++; 59 hash[aes_block_size - 1] ^= counter; 63 hash[aes_block_size - 1] ^= counter; 64 counter [all...] |
/external/wpa_supplicant_8/src/eap_common/ |
H A D | eap_psk_common.c | 38 u8 counter = 1; local 44 hash[aes_block_size - 1] ^= counter; 47 hash[aes_block_size - 1] ^= counter; 48 counter++; 51 hash[aes_block_size - 1] ^= counter; 54 hash[aes_block_size - 1] ^= counter; 55 counter++; 59 hash[aes_block_size - 1] ^= counter; 63 hash[aes_block_size - 1] ^= counter; 64 counter [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/ |
H A D | eap_psk_common.c | 38 u8 counter = 1; local 44 hash[aes_block_size - 1] ^= counter; 47 hash[aes_block_size - 1] ^= counter; 48 counter++; 51 hash[aes_block_size - 1] ^= counter; 54 hash[aes_block_size - 1] ^= counter; 55 counter++; 59 hash[aes_block_size - 1] ^= counter; 63 hash[aes_block_size - 1] ^= counter; 64 counter [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/timeline/ |
H A D | counter_unittest.py | 8 from telemetry.timeline import counter as counter_module 19 self.counter = counter_module.Counter(parent, 'cat', 'name') 26 self.assertIsEmptyIterator(self.counter.IterEventsInThisContainer( 31 self.counter.timestamps = [111, 222] 32 self.assertIsEmptyIterator(self.counter.IterEventsInThisContainer( 37 self.counter.timestamps = [111, 222] 38 self.assertIsEmptyIterator(self.counter.IterEventsInThisContainer( 43 self.counter.timestamps = [111, 222] 44 self.counter.samples = [100, 200] 45 events = self.counter [all...] |
/external/compiler-rt/test/tsan/ |
H A D | fork_deadlock.cc | 7 int counter; variable 11 __sync_fetch_and_add(&counter, 1); 26 __sync_fetch_and_add(&counter, 1);
|
/external/valgrind/none/tests/s390x/ |
H A D | ex_sig.c | 16 static int counter; local 19 counter++; 27 if (counter == 2) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/ |
H A D | 5-1.c | 30 int counter = SEM_VALUE_MAX; local 32 if (counter >= INT_MAX) { 38 ++counter; 39 mysemp = sem_open(semname, O_CREAT, 0444, counter);
|
/external/swiftshader/src/Common/ |
H A D | Timer.hpp | 32 static int64_t counter();
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
H A D | ShouldNotDeadlockAnswerExecutionTest.java | 25 AtomicInteger counter = new AtomicInteger(2); 29 Mockito.when(service.verySlowMethod()).thenAnswer(new LockingAnswer(counter)); 51 AtomicInteger counter = new AtomicInteger(2); 55 Mockito.when(service1.verySlowMethod()).thenAnswer(new LockingAnswer(counter)); 56 Mockito.when(service2.verySlowMethod()).thenAnswer(new LockingAnswer(counter)); 75 private AtomicInteger counter; field in class:ShouldNotDeadlockAnswerExecutionTest.LockingAnswer 77 public LockingAnswer(AtomicInteger counter) { argument 78 this.counter = counter; 82 * Decrement counter an [all...] |