HomeSort by relevance Sort by last modified time
    Searched refs:Counter (Results 76 - 100 of 368) sorted by null

1 2 34 5 6 7 8 91011>>

  /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...]
  /bionic/tests/
time_test.cpp 310 struct Counter {
324 explicit Counter(void (*fn)(sigval_t)) : value(0), timer_valid(false) {
337 ~Counter() {
360 Counter* cd = reinterpret_cast<Counter*>(value.sival_ptr);
365 Counter* cd = reinterpret_cast<Counter*>(value.sival_ptr);
374 Counter counter(Counter::CountAndDisarmNotifyFunction)
    [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
  /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
42 """Emits a Counter metric for error log messages.
51 metrics.Counter(ERROR_LOG_METRIC).increment(fields={
57 """Emits a Counter metric for each error log line.
61 metrics.Counter(ERROR_LOG_LINE_METRIC).increment()
  /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...]
  /frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/
armVCM4P10_InterpolateLuma_HalfDiagHorVer4x4_unsafe_s.s 98 Counter RN 11
119 ;// Set up counter of format, [0] [0] [1 (height)] [8 (width)]
120 MOV Counter, #4
186 ;// If Counter is even store Acc0-Acc3 in a temporary buffer
187 ;// If Counter is off store Acc0-Acc3 and previous Acc0-Acc3 in a intermediate buf
188 ANDS Temp3, Counter, #1
218 SUBS Counter, Counter, #1 ;// Loop till height is 10
235 MOV Counter, #4
240 M_STR Counter, pCounte
    [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";
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiHiiPack/
HiiPack.c 439 int Counter;
446 for (Counter = 0; Counter < Count2; Counter += 2) {
447 if ((Counter & 0xF) == 0) {
448 if (Counter == 0) {
463 if ((Counter & 0xF) == 0) {
464 if (Counter == 0) {
  /external/javassist/sample/rmi/
CountApplet.java 13 private Counter counter; field in class:CountApplet
32 paramName = "counter";
53 counter = (Counter)importer.lookupObject(paramName);
54 message = Integer.toString(counter.get());
62 counter.increase();
63 message = Integer.toString(counter.get());
  /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...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
collections.py 1 __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict']
392 ### Counter
395 class Counter(dict):
400 >>> c = Counter('abcdeabcdabcaba') # count elements from a string
421 >>> d = Counter('simsalabim') # make another counter
422 >>> c.update(d) # add in the second counter
426 >>> c.clear() # empty the counter
428 Counter()
431 in the counter until the entry is deleted or the counter is cleared:
    [all...]
  /external/guice/core/test/com/google/inject/internal/
ProxyFactoryTest.java 174 ProxyFactory<Counter> factory
175 = new ProxyFactory<Counter>(InjectionPoint.forConstructorOf(Counter.class), aspects);
177 ConstructionProxy<Counter> constructor = factory.create();
179 Counter counter = constructor.newInstance(); local
180 counter.inc();
181 assertEquals(2, counter.count);
203 static class Counter {
  /system/extras/simpleperf/
record_lib_test.cpp 39 TEST(counter, add_event) {
50 std::vector<Counter> counters;
56 for (auto& counter : counters) {
57 ASSERT_GE(counter.value, 0u);
58 ASSERT_GE(counter.time_enabled_in_ns, 0u);
59 ASSERT_GE(counter.time_running_in_ns, 0u);
60 ASSERT_LE(counter.time_running_in_ns, counter.time_enabled_in_ns);
64 TEST(counter, different_targets) {
75 std::vector<Counter> counters
    [all...]
  /prebuilts/go/darwin-x86/src/net/http/
triv.go 31 // Simple counter server. POSTing to it will set the value.
32 type Counter struct {
37 // This makes Counter satisfy the expvar.Var interface, so we can export
39 func (ctr *Counter) String() string {
45 func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
59 fmt.Fprint(w, "counter reset\n")
62 fmt.Fprintf(w, "counter = %d\n", ctr.n)
126 // The counter is published as a variable directly.
127 ctr := new(Counter)
128 expvar.Publish("counter", ctr
    [all...]
  /prebuilts/go/linux-x86/src/net/http/
triv.go 31 // Simple counter server. POSTing to it will set the value.
32 type Counter struct {
37 // This makes Counter satisfy the expvar.Var interface, so we can export
39 func (ctr *Counter) String() string {
45 func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
59 fmt.Fprint(w, "counter reset\n")
62 fmt.Fprintf(w, "counter = %d\n", ctr.n)
126 // The counter is published as a variable directly.
127 ctr := new(Counter)
128 expvar.Publish("counter", ctr
    [all...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
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/darwin-x86/lib/python2.7/test/
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_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_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_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/llvm/lib/ProfileData/Coverage/
CoverageMappingReader.cpp 94 Error RawCoverageMappingReader::decodeCounter(unsigned Value, Counter &C) {
95 auto Tag = Value & Counter::EncodingTagMask;
97 case Counter::Zero:
98 C = Counter::getZero();
100 case Counter::CounterValueReference:
101 C = Counter::getCounter(Value >> Counter::EncodingTagBits);
106 Tag -= Counter::Expression;
110 auto ID = Value >> Counter::EncodingTagBits;
114 C = Counter::getExpression(ID)
    [all...]

Completed in 1362 milliseconds

1 2 34 5 6 7 8 91011>>