/aosp_15_r20/frameworks/native/services/surfaceflinger/tests/unittests/ |
H A D | OneShotTimerTest.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 22 #include <utils/Timers.h> 26 #include "fake/FakeClock.h" 51 fake::FakeClock* clock = new fake::FakeClock(); in TEST_F() 53 "TestTimer", 3ms, [] {}, [] {}, std::unique_ptr<fake::FakeClock>(clock)); in TEST_F() 57 fake::FakeClock* clock = new fake::FakeClock(); in TEST_F() 61 std::unique_ptr<fake::FakeClock>(clock)); in TEST_F() 62 mIdleTimer->start(); in TEST_F() 66 clock->advanceTime(2ms); in TEST_F() 69 clock->advanceTime(2ms); in TEST_F() [all …]
|
/aosp_15_r20/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/ |
D | broadcaster_test.cc | 2 * Copyright 2021 HIMSA II K/S - www.himsa.com. 3 * Represented by EHIMA - www.ehima.com 9 * http://www.apache.org/licenses/LICENSE-2.0 44 // TODO(b/369381361) Enfore -Wmissing-prototypes 45 #pragma GCC diagnostic ignored "-Wmissing-prototypes" 74 // Disables most likely false-positives from base::SplitString() 103 num_async_tasks--; in do_in_main_thread() 155 // Select QoS - Check for low latency contexts in GetBroadcastConfig() 275 this->big_terminate_timer_ = new alarm_t(name); in SetUp() 276 return this->big_terminate_timer_; in SetUp() [all …]
|
/aosp_15_r20/external/pytorch/torch/utils/benchmark/examples/ |
H A D | compare.py | 1 # mypy: allow-untyped-defs 4 $ python -m examples.compare 28 # time.sleep has a ~65 us overhead, so only fake a 29 # per-element overhead if numel is large enough. 32 time.sleep(numel * self._extra_ns_per_element * 1e-9) 56 timers = [ 77 for i, timer in enumerate(timers * repeats): 81 print(f"\r{i + 1} / {len(timers) * repeats}", end="")
|
/aosp_15_r20/external/pytorch/torch/utils/benchmark/examples/sparse/ |
H A D | compare.py | 1 # mypy: allow-untyped-defs 4 $ python -m examples.sparse.compare 36 # time.sleep has a ~65 us overhead, so only fake a 37 # per-element overhead if numel is large enough. 40 time.sleep(size * self._extra_ns_per_element * 1e-9) 49 ---------- 56 ------- 83 timers = [ 105 for i, timer in enumerate(timers * repeats): 109 print(f"\r{i + 1} / {len(timers) * repeats}", end="")
|
/aosp_15_r20/external/gsc-utils/docs/ |
H A D | core_runtime.md | 5 ----------------- 9 Compile-time configuration until you really need to switch at runtime. 11 2. Real-time: guarantee low latency (eg < 20 us) 16 targeted at 32-bit single core CPU 17 for small systems : 4kB to 64kB data RAM, possibly execute-in-place from flash. 20 ------------------ 22 This is a pre-emptible runtime with static tasks. 25 - the regular [tasks](#tasks) 26 - the [interrupt handlers](#interrupts) 33 The tasks are statically defined at compile-time. [all …]
|
/aosp_15_r20/external/pigweed/ |
H A D | package-lock.json | 10 "license": "Apache-2.0", 12 "@protobuf-ts/protoc": "^2.7.0", 14 "google-protobuf": "^3.17.3", 16 "ts-protoc-gen": "^0.15.0" 23 "@codemirror/lang-python": "^6.1.6", 25 "@codemirror/theme-one-dark": "^6.1.2", 26 "@lit-labs/virtualizer": "^2.0.7", 27 "@material-ui/core": "^4.12.1", 28 "@material-ui/lab": "^4.0.0-alpha.60", 30 "@open-wc/testing": "^3.0.0-next.5", [all …]
|
/aosp_15_r20/external/pigweed/pw_async_fuchsia/public/pw_async_fuchsia/ |
H A D | fake_dispatcher.h | 7 // https://www.apache.org/licenses/LICENSE-2.0 16 #include <lib/async-loop/loop.h> 48 // FakeAsyncLoop is an adapted version of the Zircon async-loop (implemented 49 // in zircon/system/ulib/async-loop/loop.c) for testing. It contains adapted 50 // copies of a subset of the async-loop methods. 52 // In the method copies, 1) code interfacing with Zircon timers has been 73 return reinterpret_cast<list_node_t*>(&task->state); in TaskToNode() 76 return reinterpret_cast<async_task_t*>(reinterpret_cast<char*>(node) - in NodeToTask() 90 // Tracks the current time as viewed by the fake loop.
|
/aosp_15_r20/external/webrtc/net/dcsctp/fuzzers/ |
H A D | dcsctp_fuzzers.h | 4 * Use of this source code is governed by a BSD-style license 25 // A fake timeout used during fuzzing. 106 // Needs to be ordered, to allow fuzzers to expire timers.
|
/aosp_15_r20/external/grpc-grpc/src/core/lib/gpr/ |
H A D | time_precise.cc | 9 // http://www.apache.org/licenses/LICENSE-2.0 40 if (fd == -1) { in read_freq_from_kernel() 46 int len = read(fd, line, sizeof(line) - 1); in read_freq_from_kernel() 70 // If the clock doesn't move even a nano after 8 tries, it's a fake one. in is_fake_clock() 75 gpr_log(GPR_DEBUG, "Calibrating timers"); in gpr_precise_clock_init() 92 double last_freq = -1; in gpr_precise_clock_init() 107 static_cast<double>(end_cycle - start_cycle) / loop_ns * GPR_NS_PER_SEC; in gpr_precise_clock_init() 109 last_freq != -1 && (freq * 0.99 < last_freq && last_freq < freq * 1.01); in gpr_precise_clock_init() 118 static_cast<double>(cycles - start_cycle) / cycles_per_second; in gpr_cycle_counter_to_time() 122 (secs - static_cast<double>(ts.tv_sec))); in gpr_cycle_counter_to_time() [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/src/core/lib/gpr/ |
D | time_precise.cc | 9 // http://www.apache.org/licenses/LICENSE-2.0 40 if (fd == -1) { in read_freq_from_kernel() 46 int len = read(fd, line, sizeof(line) - 1); in read_freq_from_kernel() 70 // If the clock doesn't move even a nano after 8 tries, it's a fake one. in is_fake_clock() 75 gpr_log(GPR_DEBUG, "Calibrating timers"); in gpr_precise_clock_init() 92 double last_freq = -1; in gpr_precise_clock_init() 107 static_cast<double>(end_cycle - start_cycle) / loop_ns * GPR_NS_PER_SEC; in gpr_precise_clock_init() 109 last_freq != -1 && (freq * 0.99 < last_freq && last_freq < freq * 1.01); in gpr_precise_clock_init() 118 static_cast<double>(cycles - start_cycle) / cycles_per_second; in gpr_cycle_counter_to_time() 122 (secs - static_cast<double>(ts.tv_sec))); in gpr_cycle_counter_to_time() [all …]
|
/aosp_15_r20/external/cronet/third_party/libevent/ |
H A D | whatsnew-14.txt | 7 updated based on features from libevent 1.4.2-rc. 15 timers, buffer code, and various small compatibility functions. The 25 1.2. The event-config.h header 28 script: config.h (which it uses internally) and event-config.h 30 event-config.h are modified so that they're safe to include in other 37 at the information in event-config.h and figure out what it needs to 72 Libevent now exposes a small set of functions for cross-platform 76 include evutil_socketpair (to fake socketpair on platforms that 78 nonblocking in a cross-platform way. See the header for more 86 base. Be careful -- this might leak fds and memory associated with [all …]
|
/aosp_15_r20/hardware/google/camera/devices/EmulatedCamera/hwl/ |
D | EmulatedScene.h | 8 * http://www.apache.org/licenses/LICENSE-2.0 29 #include "utils/Timers.h" 44 // sensor. Used as an optimization to pre-calculate various illuminance 46 // possible cross-talk on a Bayer sensor. Must be called before 52 // Set time of day (24-hour clock). This controls the general light levels 64 // Set test pattern mode; this draws a solid-color image set to the color 78 // pixel will be auto-incremented horizontally. The returned array can be 84 // pixel will be auto-incremented vertically. The returned array can be 129 float sensor_sensitivity_; // electrons per lux-second 155 // Fake handshake parameters. Two shake frequencies per axis, plus magnitude [all …]
|
/aosp_15_r20/development/tools/ota_analysis/ |
H A D | package-lock.json | 13 "core-js": "^3.6.5", 15 "eslint-config-airbnb-base": "^14.2.1", 16 "flush-promises": "^1.0.2", 18 "material-design-icons": "^3.0.1", 20 "roboto-fontface": "*", 21 "vue": "^3.0.0-0", 22 "vue-echarts": "^6.0.0-rc.6", 23 "vue-router": "^4.0.0-0", 24 "vue-uuid": "^2.0.2", 25 "vuetify": "^3.0.0-alpha.0", [all …]
|
/aosp_15_r20/external/pigweed/pw_ide/ts/pigweed-vscode/ |
H A D | package-lock.json | 10 "license": "Apache-2.0", 16 "js-yaml": "^4.1.0", 17 "node_modules-path": "^2.0.8", 18 "strip-ansi": "^7.1.0" 24 "@types/js-yaml": "^4.0.9", 27 "@typescript-eslint/eslint-plugin": "^7.16.0", 28 "@typescript-eslint/parser": "^7.16.0", 29 "@vscode/test-cli": "^0.0.10", 30 "@vscode/test-electron": "^2.4.1", 33 "node-polyfill-webpack-plugin": "^4.0.0", [all …]
|
/aosp_15_r20/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/bench/ |
H A D | jquery-1.7.1.js | 14 * Date: Mon Nov 21 21:11:03 2011 -0500 41 quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, 43 // Check if a string has a non-whitespace character in it 55 rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, 56 rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, 66 rdashAlpha = /-([a-z]|[0-9])/ig, 67 rmsPrefix = /^-ms-/, 94 // [[Class]] -> type pairs 126 …if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.leng… 137 // HANDLE: $(html) -> $(array) [all …]
|
/aosp_15_r20/external/perfetto/ui/ |
H A D | pnpm-lock.yaml | 23 '@codemirror/theme-one-dark': 41 '@types/color-convert': 62 '@types/w3c-web-usb': 68 color-convert: 71 devtools-protocol: 89 jsbn-rsa: 95 noice-json-rpc: 104 protobufjs-cli: 116 vega-lite: 133 '@rollup/plugin-commonjs': [all …]
|
/aosp_15_r20/external/grpc-grpc/test/core/security/ |
H A D | grpc_tls_crl_provider_test.cc | 9 // http://www.apache.org/licenses/LICENSE-2.0 123 // Without this the test had a failure dealing with grpc timers on TSAN in SetUp() 129 event_engine_->FuzzingDone(); in TearDown() 131 event_engine_->TickUntilIdle(); in TearDown() 139 // Tests that want a fake directory reader can call this without setting the 150 provider->UpdateAndStartTimer(); in CreateCrlProvider() 173 EXPECT_EQ((*crl)->Issuer(), base_crl_issuer_); in TEST_F() 190 auto crl = (*provider)->GetCrl(cert); in TEST_F() 192 EXPECT_EQ(crl->Issuer(), base_crl_issuer_); in TEST_F() 201 auto crl = (*provider)->GetCrl(bad_cert); in TEST_F() [all …]
|
/aosp_15_r20/frameworks/native/services/inputflinger/tests/ |
H A D | RotaryEncoderInputMapper_test.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 24 #include <android-base/logging.h> 30 #include <linux/input-event-codes.h> 32 #include <utils/Timers.h> 109 * A fake function for telemetry logging. 138 mFakePolicy->clearViewports(); in TEST_F() 139 mFakePolicy->addDisplayViewport(createPrimaryViewport()); in TEST_F() 208 mMapper->populateDeviceInfo(info); in TEST_F_WITH_FLAGS() 221 mPropertyMap.addProperty("device.res", "-3"); in TEST_F_WITH_FLAGS() 226 mMapper->populateDeviceInfo(info); in TEST_F_WITH_FLAGS() [all …]
|
/aosp_15_r20/external/crosvm/base/src/ |
H A D | timer.rs | 2 // Use of this source code is governed by a BSD-style license that can be 25 fn reset_oneshot(&mut self, dur: Duration) -> Result<()>; in reset_oneshot() 28 fn reset_repeating(&mut self, dur: Duration) -> Result<()>; in reset_repeating() 31 fn wait(&mut self) -> Result<()>; in wait() 39 fn mark_waited(&mut self) -> Result<bool>; in mark_waited() 42 fn clear(&mut self) -> Result<()>; in clear() 44 /// Returns the resolution of timers on the host. 45 fn resolution(&self) -> Result<Duration>; in resolution() 56 pub fn try_clone(&self) -> std::result::Result<Timer, std::io::Error> { in try_clone() 78 fn as_raw_descriptor(&self) -> RawDescriptor { in as_raw_descriptor() [all …]
|
/aosp_15_r20/external/toybox/lib/ |
H A D | portability.h | 31 // "upstream-openbsd" directory documenting them as "BSD extensions". 60 #define AT_FDCWD -100 89 // We use most non-posix Linux syscalls directly through the syscall() wrapper, 90 // but even many posix-2008 functions aren't provided by glibc unless you 232 // macOS doesn't have these functions, but we can fake them. 236 // macOS keeps newlocale(3) in the non-POSIX <xlocale.h> rather than <locale.h>. 241 static inline long statfs_bsize(struct statfs *sf) { return sf->f_iosize; } in statfs_bsize() 242 static inline long statfs_frsize(struct statfs *sf) { return sf->f_bsize; } in statfs_frsize() 244 static inline long statfs_bsize(struct statfs *sf) { return sf->f_bsize; } in statfs_bsize() 245 static inline long statfs_frsize(struct statfs *sf) { return sf->f_frsize; } in statfs_frsize() [all …]
|
/aosp_15_r20/external/python/httplib2/doc/html/_static/ |
D | jquery.js | 9 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) 31 quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, 55 // HANDLE: $(html) -> $(array) 135 // Return the newly-formed element set 144 // is a super-fast way to populate an object with array-like properties 368 if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { 386 …var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.node… 422 one = elem.type == "select-one"; 440 // Multi-Selects return an array 476 this.selectedIndex = -1; [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/runtime/ |
D | proc.go | 2 // Use of this source code is governed by a BSD-style 23 // The scheduler's job is to distribute ready-to-run goroutines over worker threads. 26 // G - goroutine. 27 // M - worker thread, or machine. 28 // P - processor, a resource that is required to execute Go code. 38 // (1) scheduler state is intentionally distributed (in particular, per-P work 59 // goroutine, new/modified-earlier timers, and idle-priority GC. See below for 70 // out of work initially. Spinning threads spin on looking for work in per-P 84 // during spinning->non-spinning thread transition. This transition can race 87 // semi-persistent CPU underutilization. [all …]
|
/aosp_15_r20/external/cronet/base/time/ |
H A D | time_win_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 41 ticker_ = -5; in InstallTicker() 64 int64_t milliseconds = (now - last).InMilliseconds(); in RolloverTestThreadMain() 81 // the overhead of QueryPerformanceCounter. A hard-coded frequency is used 87 // Using a fake cycle counter frequency for test purposes. in GetTSC() 105 // 1) Set clock to rollover - N in TEST() 156 // Run kRetries attempts to see a sub-millisecond timer. in TEST() 163 delta = TimeTicks::Now() - start_time; in TEST() 168 ADD_FAILURE() << "Never saw a sub-millisecond timer."; in TEST() 226 DWORD elapsed = GetTickCount() - start_tick; in TEST() [all …]
|
/aosp_15_r20/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/docs/doc/reference/jquery/external/jquery/ |
H A D | jquery.js | 12 * Date: 2020-05-04T22:49Z 20 // For CommonJS and CommonJS-like environments where a proper `window` 42 // Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 43 // throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode 44 // arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common 117 // becomes browsing-context connected. 119 // See https://html.spec.whatwg.org/#nonce-attributes 121 // `jQuery.globalEval` so that it can fake a nonce-containing node 197 // Return the newly-formed element set 221 return this.eq( -1 ); [all …]
|
/aosp_15_r20/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/docs/doc/reference/jquery/external/jquery/ |
H A D | jquery.js | 12 * Date: 2020-05-04T22:49Z 20 // For CommonJS and CommonJS-like environments where a proper `window` 42 // Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 43 // throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode 44 // arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common 117 // becomes browsing-context connected. 119 // See https://html.spec.whatwg.org/#nonce-attributes 121 // `jQuery.globalEval` so that it can fake a nonce-containing node 197 // Return the newly-formed element set 221 return this.eq( -1 ); [all …]
|