/external/google-breakpad/src/testing/gtest/samples/ |
sample4.h | 37 // A simple monotonic counter. 38 class Counter { 43 // Creates a counter that starts at 0. 44 Counter() : counter_(0) {} 46 // Returns the current counter value, and increments it. 49 // Prints the current counter value to STDOUT.
|
/external/googletest/googletest/samples/ |
sample4.h | 37 // A simple monotonic counter. 38 class Counter { 43 // Creates a counter that starts at 0. 44 Counter() : counter_(0) {} 46 // Returns the current counter value, and increments it. 49 // Prints the current counter value to STDOUT.
|
/external/llvm/lib/Fuzzer/test/ |
NthRunCrashTest.cpp | 9 static int Counter; 12 if (Counter++ == 1000) {
|
/external/protobuf/gtest/samples/ |
sample4.h | 37 // A simple monotonic counter. 38 class Counter { 43 // Creates a counter that starts at 0. 44 Counter() : counter_(0) {} 46 // Returns the current counter value, and increments it. 49 // Prints the current counter value to STDOUT.
|
/external/v8/testing/gtest/samples/ |
sample4.h | 37 // A simple monotonic counter. 38 class Counter { 43 // Creates a counter that starts at 0. 44 Counter() : counter_(0) {} 46 // Returns the current counter value, and increments it. 49 // Prints the current counter value to STDOUT.
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/samples/ |
sample4.h | 37 // A simple monotonic counter. 38 class Counter { 43 // Creates a counter that starts at 0. 44 Counter() : counter_(0) {} 46 // Returns the current counter value, and increments it. 49 // Prints the current counter value to STDOUT.
|
/prebuilts/go/darwin-x86/src/cmd/vet/testdata/ |
atomic.go | 13 type Counter uint64 24 var su struct{ Counter uint64 } 25 su.Counter = atomic.AddUint64(&su.Counter, 1) // ERROR "direct assignment to atomic value" 26 z1 := atomic.AddUint64(&su.Counter, 1) 29 var sp struct{ Counter *uint64 } 30 *sp.Counter = atomic.AddUint64(sp.Counter, 1) // ERROR "direct assignment to atomic value" 31 z2 := atomic.AddUint64(sp.Counter, 1)
|
/prebuilts/go/linux-x86/src/cmd/vet/testdata/ |
atomic.go | 13 type Counter uint64 24 var su struct{ Counter uint64 } 25 su.Counter = atomic.AddUint64(&su.Counter, 1) // ERROR "direct assignment to atomic value" 26 z1 := atomic.AddUint64(&su.Counter, 1) 29 var sp struct{ Counter *uint64 } 30 *sp.Counter = atomic.AddUint64(sp.Counter, 1) // ERROR "direct assignment to atomic value" 31 z2 := atomic.AddUint64(sp.Counter, 1)
|
/prebuilts/ndk/r11/sources/third_party/googletest/googletest/samples/ |
sample4.h | 37 // A simple monotonic counter. 38 class Counter { 43 // Creates a counter that starts at 0. 44 Counter() : counter_(0) {} 46 // Returns the current counter value, and increments it. 49 // Prints the current counter value to STDOUT.
|
/prebuilts/ndk/r13/sources/third_party/googletest/googletest/samples/ |
sample4.h | 37 // A simple monotonic counter. 38 class Counter { 43 // Creates a counter that starts at 0. 44 Counter() : counter_(0) {} 46 // Returns the current counter value, and increments it. 49 // Prints the current counter value to STDOUT.
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/ |
Stall.c | 23 the number of ticks specified by the UINT64 Counter value. WaitForTick()
25 of ticks to wait, so this function loops when Counter is larger than 0xffffffff.
27 @param Counter Number of ticks to wait.
32 IN UINT64 Counter
35 while (RShiftU64 (Counter, 32) > 0) {
37 Counter -= 0xffffffff;
39 gMetronome->WaitForTick (gMetronome, (UINT32)Counter);
58 UINT64 Counter;
67 // Counter = Microseconds * 10 / gMetronome->TickPeriod
75 Counter = DivU64x32Remainder ( [all...] |
/external/swiftshader/third_party/LLVM/utils/TableGen/ |
CallingConvEmitter.h | 33 unsigned Counter;
|
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";
|
/external/swiftshader/third_party/subzero/runtime/ |
szrt_profiler.c | 6 uint64_t Counter; 57 printf("%" PRIu64 "\t%s\n", (*curr)->Counter, (*curr)->BlockName);
|
/external/libcxx/test/support/ |
Counter.h | 18 class Counter : public Counter_base 21 Counter() : data_() { ++gConstructed; } 22 Counter(const T &data) : data_(data) { ++gConstructed; } 23 Counter(const Counter& rhs) : data_(rhs.data_) { ++gConstructed; } 24 Counter& operator=(const Counter& rhs) { ++gConstructed; data_ = rhs.data_; return *this; } 26 Counter(Counter&& rhs) : data_(std::move(rhs.data_)) { ++gConstructed; } 27 Counter& operator=(Counter&& rhs) { ++gConstructed; data_ = std::move(rhs.data_); return *this; [all...] |
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/support/ |
Counter.h | 18 class Counter : public Counter_base 21 Counter() : data_() { ++gConstructed; } 22 Counter(const T &data) : data_(data) { ++gConstructed; } 23 Counter(const Counter& rhs) : data_(rhs.data_) { ++gConstructed; } 24 Counter& operator=(const Counter& rhs) { ++gConstructed; data_ = rhs.data_; return *this; } 26 Counter(Counter&& rhs) : data_(std::move(rhs.data_)) { ++gConstructed; } 27 Counter& operator=(Counter&& rhs) { ++gConstructed; data_ = std::move(rhs.data_); return *this; [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Platform/Generic/RuntimeDxe/StatusCode/Lib/RtMemoryStatusCode/ |
RtMemoryStatusCode.c | 176 UINTN Counter;
185 for (Counter = mStatusCodeMemoryPpi.FirstEntry; Counter != mStatusCodeMemoryPpi.LastEntry; Counter++) {
189 if (Counter == MaxEntry) {
190 Counter = 0;
195 CurrentEntry = (EFI_STATUS_CODE_ENTRY *) (UINTN) (mStatusCodeMemoryPpi.Address + (Counter * sizeof (EFI_STATUS_CODE_ENTRY)));
|
/external/guice/extensions/struts2/example/src/com/google/inject/struts2/example/ |
Counter.java | 22 * Session-scoped counter. 25 public class Counter {
|
/external/javassist/sample/rmi/ |
Counter.java | 8 public class Counter {
25 web.exportObject("counter", new Counter());
30 "Usage: java sample.rmi.Counter <port number>");
|
/external/syslinux/gnu-efi/gnu-efi-3.0/apps/ |
drv0.c | 100 UINTN Counter; 116 InternalGnuEfiAppsDrv0ProtocolData.Counter ++; 132 *NumberOfHello = InternalGnuEfiAppsDrv0ProtocolData.Counter; 164 InternalGnuEfiAppsDrv0ProtocolData.Counter = 0;
|
/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...] |
/system/extras/simpleperf/include/ |
simpleperf.h | 34 struct Counter { 85 // Read counter values. There is a value for each event. You don't need to stop counters before 86 // reading them. The counter values are the accumulated value from the first StartCounters(). 87 virtual bool ReadCounters(std::vector<Counter>* counters);
|
/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/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...] |