Searched refs:counter (Results 26 - 50 of 809) sorted by relevance

1234567891011>>

/external/swiftshader/src/Common/
H A DTimer.hpp32 static int64_t counter();
H A DTimer.cpp51 return (double)counter() / (double)frequency();
72 int64_t Timer::counter() function in class:sw::Timer
75 int64_t counter; local
76 QueryPerformanceCounter((LARGE_INTEGER*)&counter);
77 return counter;
/external/mockito/src/test/java/org/mockitousage/bugs/
H A DShouldNotDeadlockAnswerExecutionTest.java26 AtomicInteger counter = new AtomicInteger(2);
30 Mockito.when(service.verySlowMethod()).thenAnswer(new LockingAnswer(counter));
52 AtomicInteger counter = new AtomicInteger(2);
56 Mockito.when(service1.verySlowMethod()).thenAnswer(new LockingAnswer(counter));
57 Mockito.when(service2.verySlowMethod()).thenAnswer(new LockingAnswer(counter));
76 private AtomicInteger counter; field in class:ShouldNotDeadlockAnswerExecutionTest.LockingAnswer
78 public LockingAnswer(AtomicInteger counter) { argument
79 this.counter = counter;
83 * Decrement counter an
[all...]
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/instr/
H A DProbeArrayStrategyFactory.java49 final ProbeCounter counter = getProbeCounter(reader);
50 if (counter.getCount() == 0) {
53 if (version >= Opcodes.V1_8 && counter.hasMethods()) {
55 counter.getCount(), accessorGenerator);
58 counter.getCount(), accessorGenerator);
76 final ProbeCounter counter = new ProbeCounter();
77 reader.accept(new ClassProbesAdapter(counter, false), 0);
78 return counter;
/external/libpng/contrib/arm-neon/
H A Dlinux.c41 int counter; local
43 for (state=StartLine, counter=0;;)
63 counter=0;
69 if ((ch & ~0x20) == ch_feature[counter])
71 if (++counter == (sizeof ch_feature))
112 counter = 0;
117 if ((ch & ~0x20) == ch_neon[counter])
119 if (++counter == (sizeof ch_neon))
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/
H A D4-1.c33 int counter = 0; variable
37 counter++;
64 if (0 != counter) {
73 if (NUMCALLS != counter) {
76 SIGTOTEST, counter, NUMCALLS, SIGTOTEST);
H A D5-1.c33 int counter = 0; variable
37 counter++;
64 if (0 != counter) {
73 if (counter < 1) {
78 printf("Test PASSED: %d was received %d times.\n", SIGTOTEST, counter);
H A D8-1.c34 int counter = 0; variable
38 counter++;
65 if (0 != counter) {
74 if (NUMCALLS != counter) {
77 SIGTOTEST, counter, NUMCALLS, SIGTOTEST);
/external/apache-harmony/support/src/test/java/tests/support/
H A DSupport_UnmodifiableCollectionTest.java78 for (int counter = 0; it.hasNext(); counter++) {
82 + counter + " got: " + nextValue,
83 nextValue == counter);
94 for (int counter = 0; it.hasNext(); counter++) {
97 objArray[counter] == it.next());
103 for (int counter = 0; it.hasNext(); counter++) {
106 objArray[counter]
[all...]
/external/valgrind/drd/tests/
H A Dannotate_smart_pointer2.stderr.exp3 at 0x........: counter::~counter() (annotate_smart_pointer.cpp:?)
4 by 0x........: smart_ptr<counter>::set(counter*, AtomicInt32*) (annotate_smart_pointer.cpp:?)
5 by 0x........: smart_ptr<counter>::operator=(counter*) (annotate_smart_pointer.cpp:?)
/external/perfetto/src/base/
H A Dtask_runner_unittest.cc74 int counter = 0; local
75 task_runner.PostTask([&counter] { counter = (counter << 4) | 1; });
76 task_runner.PostTask([&counter] { counter = (counter << 4) | 2; });
77 task_runner.PostTask([&counter] { counter = (counter <<
86 int counter = 0; local
115 int counter = 0; local
285 int counter = 0; local
314 CountdownTask(TaskRunner* task_runner, int* counter) argument
327 int counter = 10; local
[all...]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
H A D6-1.c28 int counter = SEM_VALUE_MAX; local
35 ++counter;
36 sem_init(&mysemp, 0, counter);
/external/proguard/src/proguard/obfuscate/
H A DSpecialNameFactory.java78 for (int counter = 0; counter < 50; counter++)
/external/valgrind/exp-bbv/tests/ppc32-linux/
H A Dmillion.S8 lis 15,499997@ha # load high 16-bits of counter
9 addi 15,15,499997@l # load low 16-bits of counter
11 addic. 15,15,-1 # decrement counter
/external/libcxxabi/test/
H A Dunwind_06.pass.cpp23 volatile int counter; variable
28 for (counter = 100; counter; --counter)
38 for (counter = 100; counter; --counter)
49 for (counter = 100; counter; --counter)
[all...]
/external/guice/core/test/com/google/inject/
H A DIntegrationTest.java32 final CountingInterceptor counter = new CountingInterceptor();
37 bindInterceptor(any(), any(), counter);
44 assertEquals(1, counter.count);
49 assertEquals(2, counter.count);
/external/iputils/
H A Dtftpsubs.c62 int counter; /* size of data in buffer, or flag */ member in struct:bf
66 /* Values for bf.counter */
89 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */
91 bfs[1].counter = BF_FREE;
104 bfs[current].counter = BF_FREE; /* free old one */
108 if (b->counter == BF_FREE) /* if it's empty */
111 assert(b->counter != BF_FREE); /* check */
114 return b->counter;
130 if (b->counter != BF_FREE) /* nop if not free */
137 b->counter
[all...]
/external/libchrome/base/profiler/
H A Dscoped_profile.h23 #define PASTE_COUNTER_ON_NAME2(name, counter) name##counter
24 #define PASTE_COUNTER_ON_NAME(name, counter) \
25 PASTE_COUNTER_ON_NAME2(name, counter)
/external/python/cpython2/Demo/tkinter/matt/
H A Dsubclass-existing-widgets.py8 print self.counter
9 self.counter = self.counter + 1
23 f.hi_there.counter = 43
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/utils/
H A Dparallel_for.cc35 BlockingCounter counter(num_shards_used - 1);
38 thread_pool->Schedule([&do_work, &counter, start, end]() {
40 counter.DecrementCount();
46 counter.Wait();
/external/curl/tests/libtest/
H A Dlib547.c46 int *counter = (int *)clientp; local
48 if(*counter) {
53 (*counter)++; /* bump */
67 int *counter = (int *)clientp; local
71 *counter = 0; /* clear counter to make the read callback restart */
85 int counter = 0; local
109 test_setopt(curl, CURLOPT_IOCTLDATA, &counter);
111 test_setopt(curl, CURLOPT_READDATA, &counter);
/external/libmicrohttpd/src/testcurl/
H A Dgauger.h20 #define GAUGER(category, counter, value, unit)\
30 __gauger_v[2] = counter; \
48 #define GAUGER_ID(category, counter, value, unit, id)\
58 __gauger_v[2] = counter;\
81 #define GAUGER_ID(category, counter, value, unit, id) {}
82 #define GAUGER(category, counter, value, unit) {}
/external/tensorflow/tensorflow/cc/training/
H A Dcoordinator_test.cc70 void StartCounting(std::atomic<int>* counter, int until, argument
73 std::bind(&MockQueueRunner::CountThread, this, counter, until, start));
76 void StartSettingStatus(const Status& status, BlockingCounter* counter, argument
79 status, counter, start));
99 void CountThread(std::atomic<int>* counter, int until, Notification* start) { argument
101 while (!coord_->ShouldStop() && counter->load() < until) {
102 (*counter)++;
107 void SetStatusThread(const Status& status, BlockingCounter* counter, argument
111 counter->DecrementCount();
121 std::atomic<int> counter(
182 qr1->StartSettingStatus(Status(Code::CANCELLED, ""), &counter, &start); local
186 qr2->StartSettingStatus(Status(Code::INVALID_ARGUMENT, ""), &counter, &start); local
190 qr3->StartSettingStatus(Status(Code::OUT_OF_RANGE, ""), &counter, &start); local
[all...]
/external/apache-xml/src/main/java/org/apache/xalan/transformer/
H A DCountersTable.java67 * Put a counter into the table and create an empty
142 Counter counter = (Counter) counters.elementAt(i);
144 count = counter.getPreviouslyCounted(support, target);
155 // the backwards list (m_newFound) to the forwards list (counter.m_countNodes).
171 Counter counter = (Counter) counters.elementAt(i);
172 int cacheLen = counter.m_countNodes.size();
175 && (counter.m_countNodes.elementAt(cacheLen
178 count += (cacheLen + counter.m_countNodesStartCount);
181 appendBtoFList(counter.m_countNodes, m_newFound);
195 // If we got to this point, then we didn't find a counter, s
[all...]
/external/wayland/tests/
H A Dsignal-test.c34 /* only increase counter*/
84 int counter; local
92 for (counter = 0; counter < 100; counter++)
95 assert(counter == count);
101 int counter; local
113 for (counter = 0; counter < 100; counter
[all...]

Completed in 731 milliseconds

1234567891011>>