Home
last modified time | relevance | path

Searched refs:Promise (Results 1 – 25 of 194) sorted by relevance

12345678

/external/perfetto/ui/src/controller/
Dadb_interfaces.ts17 connect(device: USBDevice): Promise<void>;
18 disconnect(): Promise<void>;
20 shell(cmd: string): Promise<AdbStream>;
22 shellOutputAsString(cmd: string): Promise<string>;
24 socket(path: string): Promise<AdbStream>;
28 write(msg: string|Uint8Array): Promise<void>;
39 connect(_: USBDevice): Promise<void> {
40 return Promise.resolve();
43 disconnect(): Promise<void> {
44 return Promise.resolve();
[all …]
Dadb.ts95 return Promise.resolve([]);
99 async connect(device: USBDevice): Promise<void> {
136 return new Promise<void>((resolve, _) => this.onConnected = resolve);
139 async disconnect(): Promise<void> {
278 shell(cmd: string): Promise<AdbStream> {
282 socket(path: string): Promise<AdbStream> {
286 openStream(svc: string): Promise<AdbStream> {
293 return new Promise<AdbStream>((resolve, reject) => {
302 async shellOutputAsString(cmd: string): Promise<string> {
305 return new Promise<string>((resolve, _) => {
[all …]
Dtrack_decider.ts56 engineId: string, engine: Engine): Promise<DeferredAction[]> {
133 async addCpuSchedulingTracks(): Promise<void> {
149 async addCpuFreqTracks(): Promise<void> {
203 async addGlobalAsyncTracks(): Promise<void> {
241 async addGpuFreqTracks(): Promise<void> {
275 async addGlobalCounterTracks(): Promise<void> {
303 async groupGlobalIonTracks(): Promise<void> {
347 async addLogsTrack(): Promise<void> {
362 async addAnnotationTracks(): Promise<void> {
415 async addThreadStateTracks(): Promise<void> {
[all …]
Dtrace_stream.ts31 readChunk(): Promise<TraceChunk>;
64 readChunk(): Promise<TraceChunk> {
83 readChunk(): Promise<TraceChunk> {
88 return Promise.resolve({
110 async readChunk(): Promise<TraceChunk> {
Dselection_controller.ts95 let promisedDescription: Promise<Map<string, string>>;
96 let promisedArgs: Promise<Args>;
101 promisedDescription = Promise.resolve(new Map());
102 promisedArgs = Promise.resolve(new Map());
130 await Promise.all([promisedDetails, promisedArgs, promisedDescription]);
185 async describeSlice(id: number): Promise<Map<string, string>> {
203 async getArgs(argId: number): Promise<Args> {
228 async getDestTrackId(sliceId: string): Promise<string> {
Dadb_record_controller_jsdomtest.ts44 return Promise.resolve(dingus<USBDevice>());
72 return Promise.resolve({} as unknown as USBDevice);
77 jest.fn().mockImplementation((_: USBDevice) => Promise.resolve());
82 jest.fn().mockImplementation((_: string) => Promise.resolve(stream));
/external/libchrome/base/android/junit/src/org/chromium/base/
DPromiseTest.java17 import org.chromium.base.Promise.UnhandledRejectionException;
42 Promise<Integer> promise = new Promise<Integer>(); in callback()
56 Promise<Integer> promise = new Promise<Integer>(); in multipleCallbacks()
77 Promise<Integer> promise = Promise.fulfilled(new Integer(0)); in callbackOnFulfilled()
88 Promise<Integer> promise = new Promise<Integer>(); in promiseChaining()
91 promise.then(new Promise.Function<Integer, String>(){ in promiseChaining()
96 }).then(new Promise.Function<String, String>(){ in promiseChaining()
116 Promise<Integer> promise = new Promise<Integer>(); in promiseChainingAsyncFunctions()
119 final Promise<String> innerPromise = new Promise<String>(); in promiseChainingAsyncFunctions()
121 promise.then(new Promise.AsyncFunction<Integer, String>() { in promiseChainingAsyncFunctions()
[all …]
/external/perfetto/ui/src/common/
Dengine.ts57 abstract parse(data: Uint8Array): Promise<void>;
73 abstract rawQuery(rawQueryArgs: Uint8Array): Promise<Uint8Array>;
79 abstract rawComputeMetric(computeMetricArgs: Uint8Array): Promise<Uint8Array>;
85 async query(sqlQuery: string): Promise<RawQueryResult> {
95 async uncheckedQuery(sqlQuery: string): Promise<RawQueryResult> {
114 async computeMetric(metrics: string[]): Promise<ComputeMetricResult> {
127 async queryOneRow(query: string): Promise<number[]> {
146 async getCpus(): Promise<number[]> {
156 async getNumberOfGpus(): Promise<number> {
170 async getNumberOfProcesses(): Promise<number> {
[all …]
Dhttp_rpc_engine.ts50 async parse(data: Uint8Array): Promise<void> {
54 async notifyEof(): Promise<void> {
58 async restoreInitialTables(): Promise<void> {
62 rawQuery(rawQueryArgs: Uint8Array): Promise<Uint8Array> {
66 rawComputeMetric(rawComputeMetricArgs: Uint8Array): Promise<Uint8Array> {
70 async enableMetatrace(): Promise<void> {
74 disableAndReadMetatrace(): Promise<Uint8Array> {
78 enqueueRequest(methodName: string, data?: Uint8Array): Promise<Uint8Array> {
137 static async checkConnection(): Promise<HttpRpcState> {
Dwasm_engine_proxy.ts88 async parse(reqData: Uint8Array): Promise<void> {
95 async notifyEof(): Promise<void> {
102 restoreInitialTables(): Promise<void> {
108 rawQuery(rawQueryArgs: Uint8Array): Promise<Uint8Array> {
112 rawComputeMetric(rawComputeMetric: Uint8Array): Promise<Uint8Array> {
117 async enableMetatrace(): Promise<void> {
122 disableAndReadMetatrace(): Promise<Uint8Array> {
Dupload_utils.ts19 export async function saveTrace(trace: File|ArrayBuffer): Promise<string> {
36 RecordConfig): Promise<string> {
53 export async function toSha256(str: string): Promise<string> {
/external/chromium-trace/catapult/third_party/polymer/components/promise-polyfill/
DPromise.js11 function Promise(fn) { class in MakePromise
98 Promise.prototype['catch'] = function (onRejected) { class
102 Promise.prototype.then = function(onFulfilled, onRejected) {
104 return new Promise(function(resolve, reject) {
114 Promise.resolve = function (value) {
115 if (value && typeof value === 'object' && value.constructor === Promise) {
119 return new Promise(function (resolve) {
124 Promise.reject = function (value) {
125 return new Promise(function (resolve, reject) {
131 return Promise;
DPromise-Statics.js10 Promise.all = Promise.all || function () {
13 return new Promise(function (resolve, reject) {
39 Promise.race = Promise.race || function(values) {
43 return new Promise(function (resolve, reject) {
/external/libchrome/base/android/java/src/org/chromium/base/
DPromise.java20 public class Promise<T> { class
60 Promise<R> apply(A argument); in apply()
149 public <R> Promise<R> then(final Function<T, R> function) { in then()
153 final Promise<R> promise = new Promise<>(); in then()
178 public <R> Promise<R> then(final AsyncFunction<T, R> function) { in then()
182 final Promise<R> promise = new Promise<>(); in then()
278 public static <T> Promise<T> fulfilled(T result) { in fulfilled()
279 Promise<T> promise = new Promise<>(); in fulfilled()
/external/llvm-project/clang/test/AST/Inputs/
Dstd-coroutine.h12 template <typename Promise = void> struct coroutine_handle;
38 template <typename Promise> struct coroutine_handle : coroutine_handle<> {
47 Promise &promise() const {
48 return *reinterpret_cast<Promise *>(
49 __builtin_coro_promise(ptr, alignof(Promise), false));
51 static coroutine_handle from_promise(Promise &promise) {
53 p.ptr = __builtin_coro_promise(&promise, alignof(Promise), true);
/external/llvm-project/clang/test/CodeGenCoroutines/Inputs/
Dcoroutine.h9 template <typename Promise = void> struct coroutine_handle;
35 template <typename Promise> struct coroutine_handle : coroutine_handle<> {
44 Promise &promise() const {
45 return *reinterpret_cast<Promise *>(
46 __builtin_coro_promise(ptr, alignof(Promise), false));
48 static coroutine_handle from_promise(Promise &promise) {
50 p.ptr = __builtin_coro_promise(&promise, alignof(Promise), true);
/external/llvm-project/clang/test/SemaTemplate/
Dlate-parsing-eager-instantiation.cpp23 template <typename Promise> struct coroutine_handle {
24 Promise &promise() const { return in promise()
25 *static_cast<Promise *>(nullptr); // expected-warning {{binding dereferenced null}} in promise()
29 template <typename Promise> auto GetCurrenPromise() { in GetCurrenPromise()
31 void await_suspend(coroutine_handle<Promise> h) { in GetCurrenPromise()
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/
DPromise.kt29 ): Promise<T> = in <lambda>()
35 public fun <T> Deferred<T>.asPromise(): Promise<T> { in <lambda>()
36 val promise = Promise<T> { resolve, reject -> in <lambda>()
53 public fun <T> Promise<T>.asDeferred(): Deferred<T> { in asDeferred()
68 public suspend fun <T> Promise<T>.await(): T = suspendCancellableCoroutine { cont: CancellableConti… in await()
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/
Dpromise.pass.cpp64 template <class Promise>
65 void do_test(coro::coroutine_handle<Promise>&& H) { in do_test()
69 ASSERT_SAME_TYPE(decltype(H.promise()), Promise&); in do_test()
74 ASSERT_SAME_TYPE(decltype(CH.promise()), Promise&); in do_test()
/external/skqp/experimental/canvaskit/perf/
Danimation.bench.js8 const LoadCanvasKit = new Promise(function(resolve, reject) {
37 return new Promise(function(resolve, reject) {
63 Promise.all(promises).then((responses) => {
94 Promise.all(promises).then((responses) => {
120 Promise.all(promises).then((responses) => {
155 Promise.all(promises).then((responses) => {
/external/llvm-project/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/
Dpromise.pass.cpp63 template <class Promise>
64 void do_test(coro::coroutine_handle<Promise>&& H) { in do_test()
68 ASSERT_SAME_TYPE(decltype(H.promise()), Promise&); in do_test()
73 ASSERT_SAME_TYPE(decltype(CH.promise()), Promise&); in do_test()
/external/pigweed/pw_web_ui/src/transport/
Dweb_serial_transport.ts35 sendChunk: (chunk: Uint8Array) => Promise<void>;
70 async sendChunk(chunk: Uint8Array): Promise<void> {
82 async connect(): Promise<void> {
101 async connectPort(port: SerialPort): Promise<void> {
137 private async conectNewPort(port: SerialPort): Promise<PortConnection> {
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/
Ddestroy.pass.cpp41 template <class Promise>
42 void do_test(coro::coroutine_handle<Promise>&& H) { in do_test()
43 using HType = coro::coroutine_handle<Promise>; in do_test()
/external/llvm-project/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/
Ddestroy.pass.cpp40 template <class Promise>
41 void do_test(coro::coroutine_handle<Promise>&& H) { in do_test()
42 using HType = coro::coroutine_handle<Promise>; in do_test()
/external/pigweed/pw_web_ui/types/
Dserial.d.ts36 open(options?: SerialOptions): Promise<void>;
74 getPorts(): Promise<SerialPort[]>;
75 requestPort(options?: SerialPortRequestOptions): Promise<SerialPort>;

12345678