/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_threading.py | 20 # A trivial mutable counter. 21 class Counter(object): 84 numrunning = Counter()
|
test_collections.py | 5 from collections import namedtuple, Counter, OrderedDict 602 c = Counter('abcaba') 603 self.assertEqual(c, Counter({'a':3 , 'b': 2, 'c': 1})) 604 self.assertEqual(c, Counter(a=3, b=2, c=1)) 607 self.assertTrue(issubclass(Counter, dict)) 608 self.assertTrue(issubclass(Counter, Mapping)) 626 self.assertEqual(repr(c), "Counter({'a': 3, 'b': 2, 'c': 1})") 648 self.assertEqual(repr(c), 'Counter()') 649 self.assertRaises(NotImplementedError, Counter.fromkeys, 'abc') 653 c.update(Counter('a' * 50 + 'b' * 30) [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_threading.py | 20 # A trivial mutable counter. 21 class Counter(object): 84 numrunning = Counter()
|
test_collections.py | 5 from collections import namedtuple, Counter, OrderedDict 602 c = Counter('abcaba') 603 self.assertEqual(c, Counter({'a':3 , 'b': 2, 'c': 1})) 604 self.assertEqual(c, Counter(a=3, b=2, c=1)) 607 self.assertTrue(issubclass(Counter, dict)) 608 self.assertTrue(issubclass(Counter, Mapping)) 626 self.assertEqual(repr(c), "Counter({'a': 3, 'b': 2, 'c': 1})") 648 self.assertEqual(repr(c), 'Counter()') 649 self.assertRaises(NotImplementedError, Counter.fromkeys, 'abc') 653 c.update(Counter('a' * 50 + 'b' * 30) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_threading.py | 20 # A trivial mutable counter. 21 class Counter(object): 84 numrunning = Counter()
|
test_collections.py | 5 from collections import namedtuple, Counter, OrderedDict 602 c = Counter('abcaba') 603 self.assertEqual(c, Counter({'a':3 , 'b': 2, 'c': 1})) 604 self.assertEqual(c, Counter(a=3, b=2, c=1)) 607 self.assertTrue(issubclass(Counter, dict)) 608 self.assertTrue(issubclass(Counter, Mapping)) 626 self.assertEqual(repr(c), "Counter({'a': 3, 'b': 2, 'c': 1})") 648 self.assertEqual(repr(c), 'Counter()') 649 self.assertRaises(NotImplementedError, Counter.fromkeys, 'abc') 653 c.update(Counter('a' * 50 + 'b' * 30) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_threading.py | 20 # A trivial mutable counter. 21 class Counter(object): 84 numrunning = Counter()
|
test_collections.py | 5 from collections import namedtuple, Counter, OrderedDict 602 c = Counter('abcaba') 603 self.assertEqual(c, Counter({'a':3 , 'b': 2, 'c': 1})) 604 self.assertEqual(c, Counter(a=3, b=2, c=1)) 607 self.assertTrue(issubclass(Counter, dict)) 608 self.assertTrue(issubclass(Counter, Mapping)) 626 self.assertEqual(repr(c), "Counter({'a': 3, 'b': 2, 'c': 1})") 648 self.assertEqual(repr(c), 'Counter()') 649 self.assertRaises(NotImplementedError, Counter.fromkeys, 'abc') 653 c.update(Counter('a' * 50 + 'b' * 30) [all...] |
/external/clang/lib/AST/ |
Stmt.cpp | 33 unsigned Counter; 70 sum += StmtClassInfo[i].Counter; 76 if (StmtClassInfo[i].Counter == 0) continue; 77 llvm::errs() << " " << StmtClassInfo[i].Counter << " " 79 << " each (" << StmtClassInfo[i].Counter*StmtClassInfo[i].Size 81 sum += StmtClassInfo[i].Counter*StmtClassInfo[i].Size; 88 ++getStmtInfoTableEntry(s).Counter; [all...] |
/external/clang/lib/CodeGen/ |
CodeGenPGO.cpp | 109 /// The next counter value to assign. 246 // Counter tracks entry to the function body. 258 // Counter tracks entry to the capture body. 265 // Counter tracks entry to the method body. 272 // Counter tracks entry to the block body. 302 // Counter tracks the block following the label. 441 // Counter tracks the body of the loop. 463 // Counter tracks the exit block of the switch. 470 // Counter for this particular case. This counts only jumps from the 487 // Counter tracks the "then" part of an if statement. The count fo [all...] |
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
AtomicDoubleArrayTest.java | 288 class Counter extends CheckedRunnable { 291 Counter(AtomicDoubleArray a) { aa = a; } 322 Counter c1 = new Counter(aa); 323 Counter c2 = new Counter(aa);
|
/external/guice/core/test/com/google/inject/ |
ProvisionListenerTest.java | 215 final Counter count1 = new Counter(); 235 final Counter count1 = new Counter(); 236 final Counter count2 = new Counter(); 250 final Counter count1 = new Counter(); 251 final Counter count2 = new Counter(); 362 final Counter counter = new Counter(); local [all...] |
BindingTest.java | 129 bind(Integer.class).toProvider(Counter.class).asEagerSingleton(); 130 bind(Number.class).toProvider(Counter.class).asEagerSingleton(); 137 static class Counter implements Provider<Integer> {
|
/external/llvm/include/llvm/ProfileData/ |
CoverageMapping.h | 40 /// \brief A Counter is an abstract value that describes how to compute the 42 struct Counter { 53 Counter(CounterKind Kind, unsigned ID) : Kind(Kind), ID(ID) {} 56 Counter() : Kind(Zero), ID(0) {} 68 friend bool operator==(const Counter &LHS, const Counter &RHS) { 72 friend bool operator!=(const Counter &LHS, const Counter &RHS) { 76 friend bool operator<(const Counter &LHS, const Counter &RHS) [all...] |
/external/vixl/src/vixl/a64/ |
instrument-a64.cc | 31 Counter::Counter(const char* name, CounterType type) 38 void Counter::Enable() { 43 void Counter::Disable() { 48 bool Counter::IsEnabled() { 53 void Counter::Increment() { 60 uint64_t Counter::count() { 63 // If the counter is a Gauge, reset the count after reading. 70 const char* Counter::name() { 75 CounterType Counter::type() 141 Counter* counter = new Counter(kCounterList[i].name, kCounterList[i].type); local 168 static Counter* counter = GetCounter("Instruction"); local 215 static Counter* counter = GetCounter("Instruction"); local 260 static Counter* counter = GetCounter("PC Addressing"); local 268 static Counter* counter = GetCounter("Add\/Sub DP"); local 276 static Counter* counter = GetCounter("Logical DP"); local 283 static Counter* counter = GetCounter("Move Immediate"); local 297 static Counter* counter = GetCounter("Other Int DP"); local 305 static Counter* counter = GetCounter("Other Int DP"); local 313 static Counter* counter = GetCounter("Unconditional Branch"); local 321 static Counter* counter = GetCounter("Unconditional Branch"); local 329 static Counter* counter = GetCounter("Compare and Branch"); local 337 static Counter* counter = GetCounter("Test and Branch"); local 345 static Counter* counter = GetCounter("Conditional Branch"); local 353 static Counter* counter = GetCounter("Other"); local 361 static Counter* counter = GetCounter("Other"); local 405 static Counter* counter = GetCounter("Other"); local 413 static Counter* counter = GetCounter("Load Literal"); local 484 static Counter* counter = GetCounter("Logical DP"); local 492 static Counter* counter = GetCounter("Add\/Sub DP"); local 500 static Counter* counter = GetCounter("Add\/Sub DP"); local 508 static Counter* counter = GetCounter("Add\/Sub DP"); local 516 static Counter* counter = GetCounter("Conditional Compare"); local 524 static Counter* counter = GetCounter("Conditional Compare"); local 532 static Counter* counter = GetCounter("Conditional Select"); local 540 static Counter* counter = GetCounter("Other Int DP"); local 548 static Counter* counter = GetCounter("Other Int DP"); local 556 static Counter* counter = GetCounter("Other Int DP"); local 564 static Counter* counter = GetCounter("FP DP"); local 572 static Counter* counter = GetCounter("Conditional Compare"); local 580 static Counter* counter = GetCounter("Conditional Select"); local 588 static Counter* counter = GetCounter("FP DP"); local 596 static Counter* counter = GetCounter("FP DP"); local 604 static Counter* counter = GetCounter("FP DP"); local 612 static Counter* counter = GetCounter("FP DP"); local 620 static Counter* counter = GetCounter("FP DP"); local 628 static Counter* counter = GetCounter("FP DP"); local 636 static Counter* counter = GetCounter("Crypto"); local 644 static Counter* counter = GetCounter("Crypto"); local 652 static Counter* counter = GetCounter("Crypto"); local 660 static Counter* counter = GetCounter("NEON"); local 668 static Counter* counter = GetCounter("NEON"); local 676 static Counter* counter = GetCounter("NEON"); local 684 static Counter* counter = GetCounter("NEON"); local 692 static Counter* counter = GetCounter("NEON"); local 700 static Counter* counter = GetCounter("NEON"); local 708 static Counter* counter = GetCounter("NEON"); local 716 static Counter* counter = GetCounter("NEON"); local 725 static Counter* counter = GetCounter("NEON"); local 733 static Counter* counter = GetCounter("NEON"); local 742 static Counter* counter = GetCounter("NEON"); local 750 static Counter* counter = GetCounter("NEON"); local 758 static Counter* counter = GetCounter("NEON"); local 766 static Counter* counter = GetCounter("NEON"); local 774 static Counter* counter = GetCounter("NEON"); local 782 static Counter* counter = GetCounter("NEON"); local 790 static Counter* counter = GetCounter("NEON"); local 798 static Counter* counter = GetCounter("NEON"); local 806 static Counter* counter = GetCounter("NEON"); local 814 static Counter* counter = GetCounter("NEON"); local 822 static Counter* counter = GetCounter("NEON"); local 830 static Counter* counter = GetCounter("NEON"); local 838 static Counter* counter = GetCounter("Other"); local 846 static Counter* counter = GetCounter("Other"); local [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
OldThreadTest.java | 271 Counter [] countersNotYeld = new Counter[10]; 274 countersNotYeld[i] = new Counter(false); 276 Counter countersYeld = new Counter(true); 281 for(Counter c:countersNotYeld) { 282 assertTrue(countersYeld.counter == c.counter); 286 class Counter extends Thread { 287 public int counter = 0 field in class:OldThreadTest.Counter [all...] |
/external/clang/test/SemaCXX/ |
nested-name-spec.cpp | 197 class Counter { public: static int count; }; 198 typedef Counter counter; typedef in namespace:test1::ns 200 using ns::counter; 204 counter c; 206 counter::count++;
|
/external/llvm/include/llvm/Support/ |
GCOV.h | 315 : Parent(P), Number(N), Counter(0), DstEdgesAreSorted(true), SrcEdges(), 322 uint64_t getCount() const { return Counter; } 357 uint64_t Counter;
|
/external/llvm/lib/Target/Hexagon/ |
HexagonSplitDouble.cpp | 98 static int Counter; 103 int HexagonSplitDoubleRegs::Counter = 0; [all...] |
/external/llvm/lib/Transforms/Instrumentation/ |
GCOVProfiling.cpp | 118 GlobalVariable *Counter, 614 Value *Counter = Builder.CreateConstInBoundsGEP2_64(Counters, 0, 616 Value *Count = Builder.CreateLoad(Counter); 618 Builder.CreateStore(Count, Counter); 627 Value *Counter = Builder.CreateInBoundsGEP(Counters->getValueType(), 629 Value *Count = Builder.CreateLoad(Counter); 631 Builder.CreateStore(Count, Counter); 660 // Build code to increment the counter. 709 // requires complex logic to pick which counter to update. 737 Value *Counter = Builder.CreateConstInBoundsGEP2_64(Counters, 0 [all...] |
/external/v8/src/ |
d8.h | 25 // A single counter in a counter collection. 26 class Counter { 49 Counter* GetNextCounter(); 56 Counter counters_[kMaxCounters]; 63 Counter* Lookup(const char* name) { 67 return reinterpret_cast<Counter*>(answer->value); 69 void Set(const char* name, Counter* value) { 82 Counter* CurrentValue() { return static_cast<Counter*>(entry_->value); [all...] |
/external/v8/test/cctest/compiler/ |
test-loop-analysis.cc | 209 struct Counter { 215 Counter(While& w, int32_t b, int32_t k) 220 Counter(While& w, Node* b, Node* k) : base(b), inc(k) { Build(w); } 284 // One loop with a counter. 287 Counter c(w, 0, 1); 319 Counter c1(w, 0, 1); 320 Counter c2(w, 1, 1); 365 Counter c1(w1, 0, 1); 366 Counter c2(w2, 0, 1); 396 Counter c1(w1, 0, 1) [all...] |
/external/wpa_supplicant_8/src/ap/ |
wpa_auth_i.h | 71 u8 counter[WPA_REPLAY_COUNTER_LEN]; member in struct:wpa_state_machine::wpa_key_replay_counter 155 u8 Counter[WPA_NONCE_LEN];
|
/external/wpa_supplicant_8/src/eapol_auth/ |
eapol_auth_sm_i.h | 21 typedef unsigned int Counter; 80 Counter authEntersConnecting; 81 Counter authEapLogoffsWhileConnecting; 82 Counter authEntersAuthenticating; 83 Counter authAuthSuccessesWhileAuthenticating; 84 Counter authAuthTimeoutsWhileAuthenticating; 85 Counter authAuthFailWhileAuthenticating; 86 Counter authAuthEapStartsWhileAuthenticating; 87 Counter authAuthEapLogoffWhileAuthenticating; 88 Counter authAuthReauthsWhileAuthenticated [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
FutureTaskTest.java | 227 class Counter extends CheckedRunnable {
|