Home
last modified time | relevance | path

Searched +full:callback +full:- +full:return (Results 1 – 25 of 1126) sorted by relevance

12345678910>>...46

/third_party/boost/libs/log/src/
Ddate_time_format_parser.cpp2 * Copyright Andrey Semashev 2007 - 2015.
47 static const char_type* iso_date_format() { return "%Y%m%d"; }
48 static const char_type* extended_iso_date_format() { return "%Y-%m-%d"; }
50 static const char_type* iso_time_format() { return "%H%M%S"; }
51 static const char_type* extended_iso_time_format() { return "%H:%M:%S"; }
52 static const char_type* default_time_format() { return "%H:%M:%S.%f"; }
64 static const char_type* iso_date_format() { return L"%Y%m%d"; }
65 static const char_type* extended_iso_date_format() { return L"%Y-%m-%d"; }
67 static const char_type* iso_time_format() { return L"%H%M%S"; }
68 static const char_type* extended_iso_time_format() { return L"%H:%M:%S"; }
[all …]
/third_party/alsa-lib/src/control/
Dcontrol_ext.c9 * Control Interface - External Control Plugin SDK
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
44 snd_ctl_ext_t *ext = handle->private_data; in snd_ctl_ext_close()
46 if (ext->callback->close) in snd_ctl_ext_close()
47 ext->callback->close(ext); in snd_ctl_ext_close()
48 return 0; in snd_ctl_ext_close()
53 snd_ctl_ext_t *ext = handle->private_data; in snd_ctl_ext_nonblock()
55 ext->nonblock = nonblock; in snd_ctl_ext_nonblock()
56 return 0; in snd_ctl_ext_nonblock()
63 return -ENOSYS; in snd_ctl_ext_async()
[all …]
/third_party/cef/libcef/browser/net_service/
Dcookie_manager_impl.cc2 // reserved. Use of this source code is governed by a BSD-style license that can
26 // Will return nullptr if the BrowserContext has been shut down. in GetBrowserContext()
27 return getter.Run(); in GetBrowserContext()
33 return browser_context->AsBrowserContext() in GetCookieManager()
34 ->GetDefaultStoragePartition() in GetCookieManager()
35 ->GetCookieManagerForBrowserProcess(); in GetCookieManager()
38 // Always execute the callback asynchronously.
39 void RunAsyncCompletionOnUIThread(CefRefPtr<CefCompletionCallback> callback) { in RunAsyncCompletionOnUIThread() argument
40 if (!callback.get()) in RunAsyncCompletionOnUIThread()
41 return; in RunAsyncCompletionOnUIThread()
[all …]
/third_party/cef/libcef_dll/ctocpp/
Dresource_handler_ctocpp.cc2 // reserved. Use of this source code is governed by a BSD-style license that
5 // ---------------------------------------------------------------------------
23 // VIRTUAL METHODS - Body may be edited by hand.
25 NO_SANITIZE("cfi-icall")
28 CefRefPtr<CefCallback> callback) { in Open() argument
33 return false; in Open()
35 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING in Open()
40 return false; in Open()
41 // Verify param: callback; type: refptr_diff in Open()
42 DCHECK(callback.get()); in Open()
[all …]
/third_party/glib/gobject/
Dgmarshal.c1 /* GObject - GLib Type, Object, Parameter and Signal Library
50 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
51 #define g_marshal_value_peek_char(v) (v)->data[0].v_int
52 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
53 #define g_marshal_value_peek_int(v) (v)->data[0].v_int
54 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
55 #define g_marshal_value_peek_long(v) (v)->data[0].v_long
56 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
57 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
58 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
[all …]
/third_party/jsframework/runtime/main/manage/event/
DCallbackManager.ts10 * http://www.apache.org/licenses/LICENSE-2.0
25 * <p>Callback management of a certain page.</p>
26 …* <p>We can get the real callback that called from native by callback id which is unique for a cal…
40 * Add a callback to callbacks object.
41 * @param {*} callback - The callback from native.
42 * @return {number} Last cllback id in object.
44 public add(callback: Function): number {
46 this.callbackMap[this.currCallbackId] = callback;
47 return this.currCallbackId;
51 * Remove a callback by callback id.
[all …]
/third_party/cef/libcef_dll/cpptoc/
Dresource_handler_cpptoc.cc2 // reserved. Use of this source code is governed by a BSD-style license that
5 // ---------------------------------------------------------------------------
25 // MEMBER FUNCTIONS - Body may be edited by hand.
30 cef_callback_t* callback) { in resource_handler_open() argument
33 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING in resource_handler_open()
37 return 0; in resource_handler_open()
41 return 0; in resource_handler_open()
45 return 0; in resource_handler_open()
46 // Verify param: callback; type: refptr_diff in resource_handler_open()
47 DCHECK(callback); in resource_handler_open()
[all …]
/third_party/node/deps/npm/node_modules/asynckit/lib/
Dstreamify.js6 callback: wrapCallback property
13 * @param {function} iterator - function to wrap
14 * @returns {function} - wrapped function
20 return function(item, key, cb)
39 return aborter;
44 * Wraps provided callback function
46 * real callback
49 * @param {function} callback - function to wrap
50 * @returns {function} - wrapped function
52 function wrapCallback(callback) argument
[all …]
/third_party/libnl/lib/
Dhandlers.c1 /* SPDX-License-Identifier: LGPL-2.1-only */
10 * Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch>
18 * - @core_doc{core_cb, Callback Configuration}
23 * ------
29 #include <netlink-private/netlink.h>
30 #include <netlink-private/utils.h>
41 fprintf(ofd, "type=%s length=%u flags=<%s> sequence-nr=%u pid=%u", in print_header_content()
42 nl_nlmsgtype2str(n->nlmsg_type, type, sizeof(type)), in print_header_content()
43 n->nlmsg_len, nl_nlmsg_flags2str(n->nlmsg_flags, flags, in print_header_content()
44 sizeof(flags)), n->nlmsg_seq, n->nlmsg_pid); in print_header_content()
[all …]
/third_party/node/lib/
Dfs.js22 // Maintainers, keep in mind that ES1-style octal literals (`0666`) are not
23 // allowed in strict mode. Use ES6-style octal literals instead (`0o666`).
143 return new DOMException(message, name);
146 // These have to be separate because of how graceful-fs happens to do it's
167 return cb;
180 return (...args) => cb(...args);
184 // an optimization, since the data passed back to the callback needs to be
191 return (err, stats) => {
192 if (err) return cb(err);
205 return (mode & S_IFMT) === fileType;
[all …]
/third_party/cef/tests/cefclient/browser/
Dmedia_router_test.cc2 // reserved. Use of this source code is governed by a BSD-style license that
22 // Application-specific error codes.
42 value->SetDictionary(dictionary); in GetJSON()
43 return CefWriteJSON(value, JSON_WRITER_DEFAULT); in GetJSON()
46 typedef CefMessageRouterBrowserSide::Callback CallbackType;
48 void SendSuccess(CefRefPtr<CallbackType> callback, in SendSuccess() argument
50 callback->Success(GetJSON(result)); in SendSuccess()
53 void SendFailure(CefRefPtr<CallbackType> callback, in SendFailure() argument
56 callback->Failure(error_code, error_message); in SendFailure()
59 // Callback for CefMediaRouter::CreateRoute.
[all …]
Dserver_test.cc2 // reserved. Use of this source code is governed by a BSD-style license that
23 // Application-specific error codes.
65 server_->Shutdown(); in StopServer()
73 RunCompleteCallback(server->IsRunning()); in OnServerCreated()
94 CefParseURL(request->GetURL(), url_parts); in OnHttpRequest()
118 // Return the request contents. in OnHttpRequest()
131 server->SendHttp404Response(connection_id); in OnHttpRequest()
139 CefRefPtr<CefCallback> callback) override { in OnWebSocketRequest() argument
141 callback->Continue(); in OnWebSocketRequest()
155 server->SendWebSocketMessage(connection_id, message.data(), message.size()); in OnWebSocketMessage()
[all …]
Dpreferences_test.cc2 // reserved. Use of this source code is governed by a BSD-style license that
23 // Application-specific error codes.
52 CefRefPtr<Callback> callback) override { in OnQuery() argument
56 const std::string& url = frame->GetURL(); in OnQuery()
58 return false; in OnQuery()
63 callback->Failure(kMessageFormatError, "Incorrect message format"); in OnQuery()
64 return true; in OnQuery()
68 if (!VerifyKey(request_dict, kNameKey, VTYPE_STRING, callback)) in OnQuery()
69 return true; in OnQuery()
71 const std::string& message_name = request_dict->GetString(kNameKey); in OnQuery()
[all …]
/third_party/node/deps/npm/node_modules/worker-farm/tests/
Dchild.js7 module.exports = function (timeout, callback) { argument
8 callback = callback.bind(null, null, process.pid, Math.random(), timeout)
10 return setTimeout(callback, timeout)
11 callback()
15 module.exports.args = function (callback) { argument
16 callback(null, {
24 module.exports.run0 = function (callback) { argument
25 module.exports(0, callback)
29 module.exports.killable = function (id, callback) { argument
31 return process.exit(-1)
[all …]
/third_party/cef/libcef/browser/
Drequest_context_impl.cc2 // reserved. Use of this source code is governed by a BSD-style license that
36 return "NULL"; in GetTypeString()
38 return "BOOLEAN"; in GetTypeString()
40 return "INTEGER"; in GetTypeString()
42 return "DOUBLE"; in GetTypeString()
44 return "STRING"; in GetTypeString()
46 return "BINARY"; in GetTypeString()
48 return "DICTIONARY"; in GetTypeString()
50 return "LIST"; in GetTypeString()
54 return "UNKNOWN"; in GetTypeString()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_wire/client/
DDevice.cpp7 // http://www.apache.org/licenses/LICENSE-2.0
32 dawn::WarningLog() << "No Dawn device uncaptured error callback was set. This is " in Device()
34 "and suppress this message, set the callback to null."; in Device()
42 dawn::WarningLog() << "No Dawn device lost callback was set. This is probably not " in Device()
44 "and suppress this message, set the callback to null."; in Device()
52 request->callback(WGPUErrorType_Unknown, "Device destroyed before callback", in ~Device()
53 request->userdata); in ~Device()
57 if (request->createComputePipelineAsyncCallback != nullptr) { in ~Device()
58 request->createComputePipelineAsyncCallback( in ~Device()
60 "Device destroyed before callback", request->userdata); in ~Device()
[all …]
/third_party/toybox/lib/
Ddirtree.c1 /* dirtree.c - Functions for dealing with directory trees.
10 if (name[0]=='.' && (!name[1] || (name[1]=='.' && !name[2]))) return 1; in isdotdot()
12 return 0; in isdotdot()
15 // Default callback, filters out "." and ".." except at top level.
20 return (!catch->parent||!isdotdot(catch->name)) in dirtree_notdotdot()
36 int fd = parent ? parent->dirfd : AT_FDCWD; in dirtree_add_node()
49 // Allocate/populate return structure in dirtree_add_node()
53 dt->parent = parent; in dirtree_add_node()
54 dt->again = statless ? 2 : 0; in dirtree_add_node()
55 if (!statless) memcpy(&dt->st, &st, sizeof(struct stat)); in dirtree_add_node()
[all …]
/third_party/vk-gl-cts/framework/delibs/deutil/
DdeTimer.c1 /*-------------------------------------------------------------------------
3 * ----------------------------
11 * http://www.apache.org/licenses/LICENSE-2.0
22 *//*--------------------------------------------------------------------*/
36 deTimerCallback callback; member
42 static void CALLBACK timerCallback (PVOID lpParameter, BOOLEAN timerOrWaitFired) in timerCallback()
47 timer->callback(timer->callbackArg); in timerCallback()
50 deTimer* deTimer_create (deTimerCallback callback, void* arg) in deTimer_create() argument
55 return DE_NULL; in deTimer_create()
57 timer->callback = callback; in deTimer_create()
[all …]
/third_party/toybox/porting/liteos_a/lib/
Ddirtree.c1 /* dirtree.c - Functions for dealing with directory trees.
11 if (name[0]=='.' && (!name[1] || (name[1]=='/' && !name[2]))) return 1; in isdot()
13 return 0; in isdot()
18 if (name[0]=='.' && (!name[1] || (name[1]=='.' && !name[2]))) return 1; in isdotdot()
20 return 0; in isdotdot()
23 // Default callback, filters out "." and ".." except at top level.
28 return (!catch->parent||!isdotdot(catch->name)) in dirtree_notdotdot()
44 int fd = parent ? parent->dirfd : AT_FDCWD; in dirtree_add_node()
57 // Allocate/populate return structure in dirtree_add_node()
61 dt->parent = parent; in dirtree_add_node()
[all …]
/third_party/cef/tests/ceftests/
Dresource_request_handler_unittest.cc2 // reserved. Use of this source code is governed by a BSD-style license that
57 // using the callback object and verifies calls to Cancel.
70 return mode_ == DELAYED_OPEN || mode_ == DELAYED_ALL; in IsDelayedOpen()
74 return mode_ == DELAYED_READ || mode_ == DELAYED_ALL; in IsDelayedRead()
78 return mode_ == IMMEDIATE_OPEN || mode_ == IMMEDIATE_ALL; in IsImmediateOpen()
82 return mode_ == IMMEDIATE_READ || mode_ == IMMEDIATE_ALL; in IsImmediateRead()
110 CefRefPtr<CefCallback> callback) override { in Open() argument
114 // Continue the request asynchronously by executing the callback. in Open()
116 base::BindOnce(&CefCallback::Continue, callback)); in Open()
118 return true; in Open()
[all …]
/third_party/node/lib/internal/fs/
Drimraf.js3 // - Use of the assert module has been replaced with core's error system.
4 // - All code related to the glob dependency has been removed.
5 // - Bring your own custom fs module is not currently supported.
6 // - Some basic code cleanup.
43 function rimraf(path, options, callback) { argument
51 return setTimeout(_rimraf, delay, path, options, CB);
59 callback(err);
64 function _rimraf(path, options, callback) { argument
70 return callback(null);
74 return fixWinEPERM(path, options, err, callback);
[all …]
/third_party/alsa-lib/src/pcm/
Dpcm_ioplug.c9 * PCM - External I/O Plugin SDK
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
59 ioplug_priv_t *io = pcm->private_data; in snd_pcm_ioplug_hw_ptr_update()
62 hw = io->data->callback->pointer(io->data); in snd_pcm_ioplug_hw_ptr_update()
67 if ((snd_pcm_uframes_t)hw >= io->last_hw) in snd_pcm_ioplug_hw_ptr_update()
68 delta = hw - io->last_hw; in snd_pcm_ioplug_hw_ptr_update()
71 (io->data->flags & SND_PCM_IOPLUG_FLAG_BOUNDARY_WA) ? in snd_pcm_ioplug_hw_ptr_update()
72 pcm->boundary : pcm->buffer_size; in snd_pcm_ioplug_hw_ptr_update()
73 delta = wrap_point + hw - io->last_hw; in snd_pcm_ioplug_hw_ptr_update()
75 snd_pcm_mmap_hw_forward(io->data->pcm, delta); in snd_pcm_ioplug_hw_ptr_update()
[all …]
/third_party/python/Objects/
Dweakrefobject.c17 head = head->wr_next; in _PyWeakref_GetWeakrefCount()
19 return count; in _PyWeakref_GetWeakrefCount()
24 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback) in init_weakref() argument
26 self->hash = -1; in init_weakref()
27 self->wr_object = ob; in init_weakref()
28 self->wr_prev = NULL; in init_weakref()
29 self->wr_next = NULL; in init_weakref()
30 Py_XINCREF(callback); in init_weakref()
31 self->wr_callback = callback; in init_weakref()
35 new_weakref(PyObject *ob, PyObject *callback) in new_weakref() argument
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/cleanup/
Dcleanup.h7 // https://www.apache.org/licenses/LICENSE-2.0
15 // -----------------------------------------------------------------------------
17 // -----------------------------------------------------------------------------
20 // callback's `operator()() &&` on scope exit.
28 // return absl::NotFoundError("No source file"); // No cleanups execute
36 // return absl::NotFoundError("No sink file"); // First cleanup executes
46 // return result; // Both cleanups execute
51 // return absl::OkStatus(); // Both cleanups execute
57 // `std::move(cleanup).Cancel()` will prevent the callback from executing.
59 // `std::move(cleanup).Invoke()` will execute the callback early, before
[all …]
/third_party/typescript/tests/baselines/reference/
DcollisionThisExpressionAndParameter.types16return x => this; // New scope. So should inject new _this capture into function inner
27 >(_this: number) => { // Error return x => this; // New scope. So should inject new …
30 return x => this; // New scope. So should inject new _this capture
42 >() => { return x => this; // New scope. So should inject new _this capture } …
44 return x => this; // New scope. So should inject new _this capture
89 >x2 : { doStuff: (callback: any) => () => any; }
90 >{ doStuff: (callback) => () => { return callback(this); } …
92 doStuff: (callback) => () => {
93 >doStuff : (callback: any) => () => any
94 >(callback) => () => { return callback(this); } : (callback: any) => () =…
[all …]

12345678910>>...46