/external/guava/guava-tests/test/com/google/common/io/ |
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.skip(10)) [all...] |
CountingOutputStreamTest.java | 31 CountingOutputStream counter = new CountingOutputStream(out); local 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.getCount()) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
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) [all...] |
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);
|
/external/mesa3d/src/gallium/auxiliary/util/ |
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/mesa3d/src/gallium/drivers/llvmpipe/ |
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/ |
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;
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/monitor_enter/d/ |
T_monitor_enter_1.java | 20 public int counter = 0; field in class:T_monitor_enter_1 24 int a = counter; 26 counter = ++a;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
EmptyStackExceptionTest.java | 34 for (int counter = 0; counter < objArray.length + 1; counter++) 47 for (int counter = 0; counter < objArray.length; counter++) { 48 objArray[counter] = new Integer(counter); 52 for (int counter = 0; counter < objArray.length; counter++) [all...] |
ArraysTest.java | 86 for (int counter = 0; counter < arraySize; counter++) { 89 convertedList.get(counter) == objectArray[counter]); 101 for (int counter = 0; counter < arraySize; counter++) { 104 convertedList.get(counter) == myArray[counter]); [all...] |
/external/compiler-rt/test/BlocksRuntime/ |
dispatch_async.c | 20 __block CFIndex counter; local 25 counter = 0; 31 counter++; 34 counter--; 35 if(counter == 0) { 40 if(counter == 0) {
|
/external/vixl/src/aarch64/ |
instrument-aarch64.cc | 32 Counter::Counter(const char* name, CounterType type) 39 void Counter::Enable() { enabled_ = true; } 42 void Counter::Disable() { enabled_ = false; } 45 bool Counter::IsEnabled() { return enabled_; } 48 void Counter::Increment() { 55 uint64_t Counter::GetCount() { 58 // If the counter is a Gauge, reset the count after reading. 65 const char* Counter::GetName() { return name_; } 68 CounterType Counter::GetType() { return type_; 130 Counter* counter = new Counter(kCounterList[i].name, kCounterList[i].type); local 157 static Counter* counter = GetCounter("Instruction"); local 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/ |
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/clang/test/PCH/ |
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/ |
ProbeCounterTest.java | 28 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.hasMethods()) [all...] |
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/filter/targets/ |
Synthetic.java | 19 private static int counter; // $line-field$ field in class:Synthetic 41 counter = counter + 2;
|
/frameworks/opt/telephony/tools/ |
tdi | 25 counter="--ei counter $2"; 27 echo "counter=$counter" 40 adb shell am broadcast -a com.android.internal.telephony.$the_DC.action_fail_bringup $counter $fail_cause $suggested_retry_time
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
ListenerCallQueueTest.java | 46 AtomicInteger counter = new AtomicInteger(); local 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(); local 62 queue.add(incrementingCallback(counter, 1)); 64 queue.add(incrementingCallback(counter, 2)) 82 AtomicInteger counter = new AtomicInteger(); local 104 AtomicInteger counter = new AtomicInteger(); local [all...] |
/external/tensorflow/tensorflow/core/lib/random/ |
philox_random.h | 132 PhiloxRandom(ResultType counter, Key key) : counter_(counter), key_(key) {} 156 ResultType counter = counter_; local 161 counter = ComputeSingleRound(counter, key); 163 counter = ComputeSingleRound(counter, key); 165 counter = ComputeSingleRound(counter, key); 167 counter = ComputeSingleRound(counter, key) [all...] |
/external/guice/extensions/struts2/example/src/com/google/inject/struts2/example/ |
Count.java | 24 final Counter counter; field in class:Count 29 public Count(Counter counter, Service service) { 30 this.counter = counter; 39 return counter.increment();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
PasswordAuthenticationTest.java | 39 for (int counter = password.length - 1; counter >= 0; counter--) 41 returnedPassword[counter] == password[counter]);
|
/external/eigen/unsupported/test/ |
cxx11_tensor_notification.cpp | 28 void WaitAndAdd(Eigen::Notification* n, int* counter) { 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/ |
instrument-arm64.cc | 10 Counter::Counter(const char* name, CounterType type) 17 void Counter::Enable() { 22 void Counter::Disable() { 27 bool Counter::IsEnabled() { 32 void Counter::Increment() { 39 uint64_t Counter::count() { 42 // If the counter is a Gauge, reset the count after reading. 49 const char* Counter::name() { 54 CounterType Counter::type() 118 Counter* counter = new Counter(kCounterList[i].name, kCounterList[i].type); local 145 static Counter* counter = GetCounter("Instruction"); local 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/ |
notification_test.cc | 30 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/src/eap_common/ |
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...] |