Searched refs:counter (Results 1 - 25 of 809) sorted by relevance

1234567891011>>

/external/guava/guava-tests/test/com/google/common/io/
H A DCountingInputStreamTest.java29 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 DCountingOutputStreamTest.java31 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 DDSAValidationParameters.java9 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 DDHValidationParameters.java8 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/auxiliary/util/
H A Du_time.h58 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/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_perf.h71 /** 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 Dcheck_preinit.cc20 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 Dcxx1y-init-captures.cpp11 auto counter = [a(0)] () mutable { return a++; }; variable
12 int x = counter();
20 int y = counter();
/external/compiler-rt/test/BlocksRuntime/
H A Ddispatch_async.c20 __block CFIndex counter; local
25 counter = 0;
31 counter++;
34 counter--;
35 if(counter == 0) {
40 if(counter == 0) {
/external/vixl/src/aarch64/
H A Dinstrument-aarch64.cc58 // 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 Dtst_fill_file.c34 size_t counter; local
49 for (counter = 0; counter < bs; counter++)
50 buf[counter] = pattern;
53 for (counter = 0; counter < bcount; counter++) {
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/instr/
H A DProbeCounterTest.java28 private ProbeCounter counter; field in class:ProbeCounterTest
32 counter = new ProbeCounter();
37 assertFalse(counter.hasMethods());
38 assertEquals(0, counter.getCount());
43 counter.visitTotalProbeCount(42);
44 assertEquals(42, counter.getCount());
49 assertNull(counter.visitMethod(0, "<clinit>", null, null, null));
50 assertFalse(counter.hasMethods());
55 counter.visitMethod(Opcodes.ACC_ABSTRACT, "foo", null, null, null);
56 assertFalse(counter
[all...]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/filter/targets/
H A DSynthetic.java19 private static int counter; // $line-field$ field in class:Synthetic
41 counter = counter + 2;
/external/guava/guava-tests/test/com/google/common/util/concurrent/
H A DListenerCallQueueTest.java46 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/tensorflow/tensorflow/core/lib/random/
H A Dphilox_random.h132 PhiloxRandom(ResultType counter, Key key) : counter_(counter), key_(key) {} argument
156 ResultType counter = counter_; local
161 counter = ComputeSingleRound(counter, key);
163 counter = ComputeSingleRound(counter, key);
165 counter = ComputeSingleRound(counter, key);
167 counter
220 ComputeSingleRound( const ResultType& counter, const Key& key) argument
[all...]
/external/guice/extensions/struts2/example/src/com/google/inject/struts2/example/
H A DCount.java24 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 Dcxx11_tensor_notification.cpp28 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 Dinstrument-arm64.cc42 // 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/tensorflow/tensorflow/core/lib/core/
H A Dnotification_test.cc30 int counter = 0; local
33 thread_pool->Schedule([&start, &proceed, &counter] {
36 ++counter;
43 EXPECT_EQ(0, counter);
50 // Verify the counter has been incremented
51 EXPECT_EQ(1, counter);
60 int counter = 0; local
64 thread_pool->Schedule([&n, &lock, &counter] {
67 ++counter;
74 EXPECT_EQ(0, counter);
[all...]
/external/wpa_supplicant_8/hostapd/src/eap_common/
H A Deap_psk_common.c38 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 Deap_psk_common.c38 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 Deap_psk_common.c38 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/compiler-rt/test/tsan/
H A Dfork_deadlock.cc7 int counter; variable
11 __sync_fetch_and_add(&counter, 1);
26 __sync_fetch_and_add(&counter, 1);
/external/valgrind/none/tests/s390x/
H A Dex_sig.c16 static int counter; local
19 counter++;
27 if (counter == 2) {
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/
H A D5-1.c30 int counter = SEM_VALUE_MAX; local
32 if (counter >= INT_MAX) {
38 ++counter;
39 mysemp = sem_open(semname, O_CREAT, 0444, counter);

Completed in 664 milliseconds

1234567891011>>