/external/tensorflow/tensorflow/contrib/data/python/ops/ |
counter.py | 15 """The Counter Dataset.""" 27 def Counter(start=0, step=1, dtype=dtypes.int64): 43 dtype: counter data type. 48 with ops.name_scope("counter"):
|
/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 | 272 Counter [] countersNotYeld = new Counter[10]; 275 countersNotYeld[i] = new Counter(false); 277 Counter countersYeld = new Counter(true); 282 for(Counter c:countersNotYeld) { 283 assertTrue(countersYeld.counter == c.counter); 287 class Counter extends Thread { 288 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...] |
/bionic/tests/ |
time_test.cpp | 365 struct Counter { 379 explicit Counter(void (*fn)(sigval_t)) : value(0), timer_valid(false) { 392 ~Counter() { 415 Counter* cd = reinterpret_cast<Counter*>(value.sival_ptr); 420 Counter* cd = reinterpret_cast<Counter*>(value.sival_ptr); 429 Counter counter(Counter::CountAndDisarmNotifyFunction) [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...] |
/external/python/cpython3/Lib/collections/ |
__init__.py | 8 * Counter dict subclass for counting hashable objects 18 'UserString', 'Counter', 'OrderedDict', 'ChainMap'] 454 ### Counter 468 class Counter(dict): 473 >>> c = Counter('abcdeabcdabcaba') # count elements from a string 494 >>> d = Counter('simsalabim') # make another counter 495 >>> c.update(d) # add in the second counter 499 >>> c.clear() # empty the counter 501 Counter() [all...] |
/external/llvm/unittests/ADT/ |
DenseMapTest.cpp | 501 unsigned *Counter = nullptr; 503 CachedHashTest(unsigned Val, unsigned *Counter) 504 : Val(Val), Counter(Counter) {} 512 ++*X.Counter; 523 unsigned Counter = 0; 524 CachedHashTest Val(0, &Counter); 528 ASSERT_EQ(1u, Counter); 531 ASSERT_EQ(2u, Counter); 536 unsigned Counter = 0 [all...] |
/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...] |
/external/python/cpython3/Lib/test/ |
test_collections.py | 18 from collections import namedtuple, Counter, OrderedDict, _count_elements 729 Counter(), Counter().keys(), Counter().items(), 730 Counter().values(), _test_gen(), [all...] |
/external/autotest/venv/lucifer/cmd/ |
job_aborter.py | 183 self._starting_m = metrics.Counter(prefix + '/start') 184 self._tick_m = metrics.Counter(prefix + '/tick') 185 self._expired_m = metrics.Counter(prefix + '/expired_jobs')
|
/external/clang/test/CXX/temp/temp.decls/temp.variadic/ |
sizeofpack.cpp | 124 struct Counter 126 static const int count = 1 + Counter<Args...>::count; 130 struct Counter<T>
|
/external/perfetto/test/ |
end_to_end_benchmark.cc | 90 state.counters["Pro CPU"] = benchmark::Counter(100.0 * producer_ns / wall_ns); 91 state.counters["Ser CPU"] = benchmark::Counter(100.0 * service_ns / wall_ns); 93 benchmark::Counter(1.0 * service_ns / message_count);
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
GCOV.h | 187 GCOVBlock(uint32_t N) : Number(N), Counter(0) {} 191 void addCount(uint64_t N) { Counter = N; } 196 uint64_t Counter;
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
FakeUid.java | 20 import android.os.BatteryStats.Counter; 336 public Counter getBluetoothScanResultCounter() { 341 public Counter getBluetoothScanResultBgCounter() {
|