/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
Counter.java | 23 public class Counter<T> implements Iterable<T>, Comparable<Counter<T>> { 27 public Counter() { 31 public Counter(Comparator<T> comparator) { 65 public Counter<T> add(T obj, long countValue) { 81 public Counter<T> clear() { 133 int counter = 0; local 135 count_key.add(new Entry<T>(map.get(key), key, counter++)); 180 public Counter<T> addAll(Collection<T> keys, int delta) { 187 public Counter<T> addAll(Counter<T> keys) [all...] |
/external/libcxx/utils/google-benchmark/src/ |
counter.cc | 15 #include "counter.h" 20 double Finish(Counter const& c, double cpu_time, double num_threads) { 22 if (c.flags & Counter::kIsRate) { 25 if (c.flags & Counter::kAvgThreads) {
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/src/ |
counter.cc | 15 #include "counter.h" 20 double Finish(Counter const& c, double cpu_time, double num_threads) { 22 if (c.flags & Counter::kIsRate) { 25 if (c.flags & Counter::kAvgThreads) {
|
/external/clang/lib/CodeGen/ |
CoverageMappingGen.cpp | 37 /// \brief A region of source code that can be mapped to a counter. 39 Counter Count; 48 SourceMappingRegion(Counter Count, Optional<SourceLocation> LocStart, 52 const Counter &getCounter() const { return Count; } 54 void setCounter(Counter C) { Count = C; } 249 /// \brief Generate the coverage counter mapping regions from collected 345 SourceRegions.emplace_back(Counter(), Start, End); 378 /// \brief Return a counter for the subtraction of \c RHS from \c LHS 379 Counter subtractCounters(Counter LHS, Counter RHS) [all...] |
/external/autotest/site_utils/stats/ |
apache_error_log_metrics.py | 9 The script gets the contents of the log file through stdin, and emits a counter 48 """Emits a Counter metric for segfaults. 52 metrics.Counter( 60 """Emits a Counter metric for apache service starts. 65 metrics.Counter( 73 """Emits a Counter metric for apache service stops 78 metrics.Counter( 96 """Emits a Counter metric for error log messages. 105 metrics.Counter(ERROR_LOG_METRIC).increment(fields={ 116 """Emits a Counter metric for each error log line [all...] |
/external/llvm/utils/TableGen/ |
CallingConvEmitter.cpp | 33 unsigned Counter; 63 Counter = 0; 118 O << IndentStr << "static const MCPhysReg RegList" << ++Counter 127 << Counter << ")) {\n"; 145 unsigned RegListNumber = ++Counter; 146 unsigned ShadowRegListNumber = ++Counter; 178 O << IndentStr << "unsigned Offset" << ++Counter 196 << Counter << ", LocVT, LocInfo));\n"; 203 unsigned ShadowRegListNumber = ++Counter; 214 O << IndentStr << "unsigned Offset" << ++Counter [all...] |
/prebuilts/clang/host/linux-x86/clang-4579689/prebuilt_include/llvm/lib/Fuzzer/ |
FuzzerTracePC.h | 201 unsigned CounterToFeature(T Counter) { 202 assert(Counter); 204 /**/ if (Counter >= 128) Bit = 7; 205 else if (Counter >= 32) Bit = 6; 206 else if (Counter >= 16) Bit = 5; 207 else if (Counter >= 8) Bit = 4; 208 else if (Counter >= 4) Bit = 3; 209 else if (Counter >= 3) Bit = 2; 210 else if (Counter >= 2) Bit = 1; 221 size_t Idx, uint8_t Counter) { [all...] |
/prebuilts/clang/host/linux-x86/clang-4630689/prebuilt_include/llvm/lib/Fuzzer/ |
FuzzerTracePC.h | 201 unsigned CounterToFeature(T Counter) { 202 assert(Counter); 204 /**/ if (Counter >= 128) Bit = 7; 205 else if (Counter >= 32) Bit = 6; 206 else if (Counter >= 16) Bit = 5; 207 else if (Counter >= 8) Bit = 4; 208 else if (Counter >= 4) Bit = 3; 209 else if (Counter >= 3) Bit = 2; 210 else if (Counter >= 2) Bit = 1; 221 size_t Idx, uint8_t Counter) { [all...] |
/prebuilts/clang/host/linux-x86/clang-4639204/prebuilt_include/llvm/lib/Fuzzer/ |
FuzzerTracePC.h | 201 unsigned CounterToFeature(T Counter) { 202 assert(Counter); 204 /**/ if (Counter >= 128) Bit = 7; 205 else if (Counter >= 32) Bit = 6; 206 else if (Counter >= 16) Bit = 5; 207 else if (Counter >= 8) Bit = 4; 208 else if (Counter >= 4) Bit = 3; 209 else if (Counter >= 3) Bit = 2; 210 else if (Counter >= 2) Bit = 1; 221 size_t Idx, uint8_t Counter) { [all...] |
/prebuilts/clang/host/linux-x86/clang-4691093/prebuilt_include/llvm/lib/Fuzzer/ |
FuzzerTracePC.h | 201 unsigned CounterToFeature(T Counter) { 202 assert(Counter); 204 /**/ if (Counter >= 128) Bit = 7; 205 else if (Counter >= 32) Bit = 6; 206 else if (Counter >= 16) Bit = 5; 207 else if (Counter >= 8) Bit = 4; 208 else if (Counter >= 4) Bit = 3; 209 else if (Counter >= 3) Bit = 2; 210 else if (Counter >= 2) Bit = 1; 221 size_t Idx, uint8_t Counter) { [all...] |
/external/llvm/lib/ProfileData/Coverage/ |
CoverageMapping.cpp | 33 Counter CounterExpressionBuilder::get(const CounterExpression &E) { 36 return Counter::getExpression(It->second); 40 return Counter::getExpression(I); 44 Counter C, int Sign, SmallVectorImpl<std::pair<unsigned, int>> &Terms) { 46 case Counter::Zero: 48 case Counter::CounterValueReference: 51 case Counter::Expression: 60 Counter CounterExpressionBuilder::simplify(Counter ExpressionTree) { 68 return Counter::getZero() [all...] |
/external/python/cpython2/Lib/ |
collections.py | 7 * Counter dict subclass for counting hashable objects 13 __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict'] 404 ### Counter 407 class Counter(dict): 412 >>> c = Counter('abcdeabcdabcaba') # count elements from a string 433 >>> d = Counter('simsalabim') # make another counter 434 >>> c.update(d) # add in the second counter 438 >>> c.clear() # empty the counter 440 Counter() [all...] |
/prebuilts/clang/host/linux-x86/clang-4393122/prebuilt_include/llvm/lib/Fuzzer/ |
FuzzerTracePC.h | 152 auto Handle8bitCounter = [&](size_t Idx, uint8_t Counter) { 153 assert(Counter); 155 /**/ if (Counter >= 128) Bit = 7; 156 else if (Counter >= 32) Bit = 6; 157 else if (Counter >= 16) Bit = 5; 158 else if (Counter >= 8) Bit = 4; 159 else if (Counter >= 4) Bit = 3; 160 else if (Counter >= 3) Bit = 2; 161 else if (Counter >= 2) Bit = 1;
|
/prebuilts/clang/host/linux-x86/clang-4479392/prebuilt_include/llvm/lib/Fuzzer/ |
FuzzerTracePC.h | 152 auto Handle8bitCounter = [&](size_t Idx, uint8_t Counter) { 153 assert(Counter); 155 /**/ if (Counter >= 128) Bit = 7; 156 else if (Counter >= 32) Bit = 6; 157 else if (Counter >= 16) Bit = 5; 158 else if (Counter >= 8) Bit = 4; 159 else if (Counter >= 4) Bit = 3; 160 else if (Counter >= 3) Bit = 2; 161 else if (Counter >= 2) Bit = 1;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
collections.py | 1 __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict']
352 ### Counter
355 class Counter(dict):
360 >>> c = Counter('abcdeabcdabcaba') # count elements from a string
381 >>> d = Counter('simsalabim') # make another counter
382 >>> c.update(d) # add in the second counter
386 >>> c.clear() # empty the counter
388 Counter()
391 in the counter until the entry is deleted or the counter is cleared: [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
collections.py | 1 __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict'] 378 ### Counter 381 class Counter(dict): 386 >>> c = Counter('abcdeabcdabcaba') # count elements from a string 407 >>> d = Counter('simsalabim') # make another counter 408 >>> c.update(d) # add in the second counter 412 >>> c.clear() # empty the counter 414 Counter() 417 in the counter until the entry is deleted or the counter is cleared [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
collections.py | 1 __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict'] 378 ### Counter 381 class Counter(dict): 386 >>> c = Counter('abcdeabcdabcaba') # count elements from a string 407 >>> d = Counter('simsalabim') # make another counter 408 >>> c.update(d) # add in the second counter 412 >>> c.clear() # empty the counter 414 Counter() 417 in the counter until the entry is deleted or the counter is cleared [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
collections.py | 1 __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict'] 378 ### Counter 381 class Counter(dict): 386 >>> c = Counter('abcdeabcdabcaba') # count elements from a string 407 >>> d = Counter('simsalabim') # make another counter 408 >>> c.update(d) # add in the second counter 412 >>> c.clear() # empty the counter 414 Counter() 417 in the counter until the entry is deleted or the counter is cleared [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
collections.py | 1 __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict'] 378 ### Counter 381 class Counter(dict): 386 >>> c = Counter('abcdeabcdabcaba') # count elements from a string 407 >>> d = Counter('simsalabim') # make another counter 408 >>> c.update(d) # add in the second counter 412 >>> c.clear() # empty the counter 414 Counter() 417 in the counter until the entry is deleted or the counter is cleared [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
Counter.java | 19 * $Id: Counter.java 468645 2006-10-28 06:57:24Z minchau $ 37 public class Counter 61 * find a counter if the node being counted is not immediatly 79 * Construct a counter object. 86 Counter(ElemNumber numberElem, NodeSetDTM countNodes) throws TransformerException 93 * Construct a counter object. 99 Counter(ElemNumber numberElem) throws TransformerException
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
BatteryStatsCounterTest.java | 25 * Test BatteryStatsImpl.Counter. 35 final BatteryStatsImpl.Counter counter = new BatteryStatsImpl.Counter(timeBase); local 39 counter.stepAtomic(); 40 counter.stepAtomic(); 41 counter.stepAtomic(); 42 counter.stepAtomic(); 43 counter.stepAtomic(); 44 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)) [all...] |
/libnativehelper/include/nativehelper/ |
toStringArray.h | 28 template <typename Counter, typename Getter> 29 jobjectArray toStringArray(JNIEnv* env, Counter* counter, Getter* getter) { 30 size_t count = (*counter)(); 64 VectorCounter counter(strings); 66 return toStringArray<VectorCounter, VectorGetter>(env, &counter, &getter);
|
/external/python/cpython2/Lib/test/ |
test_collections.py | 15 from collections import namedtuple, Counter, OrderedDict 850 c = Counter('abcaba') 851 self.assertEqual(c, Counter({'a':3 , 'b': 2, 'c': 1})) 852 self.assertEqual(c, Counter(a=3, b=2, c=1)) 855 self.assertTrue(issubclass(Counter, dict)) 856 self.assertTrue(issubclass(Counter, Mapping)) 874 self.assertEqual(repr(c), "Counter({'a': 3, 'b': 2, 'c': 1})") [all...] |
/external/swiftshader/third_party/LLVM/utils/TableGen/ |
CallingConvEmitter.cpp | 44 Counter = 0; 99 O << IndentStr << "static const unsigned RegList" << ++Counter 108 << Counter << ", " << RegList->getSize() << ")) {\n"; 127 unsigned RegListNumber = ++Counter; 128 unsigned ShadowRegListNumber = ++Counter; 160 O << IndentStr << "unsigned Offset" << ++Counter 176 << Counter << ", LocVT, LocInfo));\n";
|
/frameworks/base/services/net/java/android/net/apf/ |
ApfFilter.java | 114 private static enum Counter { 145 // a given counter. 152 return (Counter.class.getEnumConstants().length - 1) * 4; 157 * When APFv4 is supported, loads R1 with the offset of the specified counter. 159 private void maybeSetCounter(ApfGenerator gen, Counter c) { 361 // APFv4 unsupported: turn jumps to the counter trampolines to immediately PASS or DROP, [all...] |