/external/perfetto/ui/src/controller/ |
D | adb_interfaces.ts | 17 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 …]
|
D | adb.ts | 95 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 …]
|
D | track_decider.ts | 56 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 …]
|
D | trace_stream.ts | 31 readChunk(): Promise<TraceChunk>; 64 readChunk(): Promise<TraceChunk> { 83 readChunk(): Promise<TraceChunk> { 88 return Promise.resolve({ 110 async readChunk(): Promise<TraceChunk> {
|
D | selection_controller.ts | 95 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> {
|
D | adb_record_controller_jsdomtest.ts | 44 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/ |
D | PromiseTest.java | 17 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/ |
D | engine.ts | 57 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 …]
|
D | http_rpc_engine.ts | 50 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> {
|
D | wasm_engine_proxy.ts | 88 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> {
|
D | upload_utils.ts | 19 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/ |
D | Promise.js | 11 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;
|
D | Promise-Statics.js | 10 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/ |
D | Promise.java | 20 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/ |
D | std-coroutine.h | 12 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/ |
D | coroutine.h | 9 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/ |
D | late-parsing-eager-instantiation.cpp | 23 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/ |
D | Promise.kt | 29 ): 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/ |
D | promise.pass.cpp | 64 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/ |
D | animation.bench.js | 8 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/ |
D | promise.pass.cpp | 63 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/ |
D | web_serial_transport.ts | 35 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/ |
D | destroy.pass.cpp | 41 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/ |
D | destroy.pass.cpp | 40 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/ |
D | serial.d.ts | 36 open(options?: SerialOptions): Promise<void>; 74 getPorts(): Promise<SerialPort[]>; 75 requestPort(options?: SerialPortRequestOptions): Promise<SerialPort>;
|