Home
last modified time | relevance | path

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

12345678910>>...45

/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/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 destroyed. in GetBrowserContext()
27 return getter.Run(); in GetBrowserContext()
33 return content::BrowserContext::GetDefaultStoragePartition( in GetCookieManager()
34 browser_context->AsBrowserContext()) 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/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/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/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/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
22 // Application-specific error codes.
45 typedef base::Callback<void(bool /* success */)> CompleteCallback;
64 server_->Shutdown(); in StopServer()
72 RunCompleteCallback(server->IsRunning()); in OnServerCreated()
93 CefParseURL(request->GetURL(), url_parts); in OnHttpRequest()
117 // Return the request contents. in OnHttpRequest()
130 server->SendHttp404Response(connection_id); in OnHttpRequest()
138 CefRefPtr<CefCallback> callback) override { in OnWebSocketRequest() argument
140 callback->Continue(); in OnWebSocketRequest()
[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 …]
Ddrm_test.cc2 // reserved. Use of this source code is governed by a BSD-style license that
19 // Application-specific error codes.
26 // Callback executed once CDM registration is complete.
29 CdmCallback(CefRefPtr<CefMessageRouterBrowserSide::Callback> callback) in CdmCallback() argument
30 : callback_(callback) {} in CdmCallback()
35 callback_->Success(""); in OnCdmRegistrationComplete()
37 callback_->Failure(kCdmLoadError, error_message); in OnCdmRegistrationComplete()
42 CefRefPtr<CefMessageRouterBrowserSide::Callback> callback_;
59 CefRefPtr<Callback> callback) OVERRIDE { in OnQuery() argument
61 const std::string& url = frame->GetURL(); 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/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`).
142 return new DOMException(message, name);
145 // These have to be separate because of how graceful-fs happens to do it's
166 return cb;
179 return (...args) => cb(...args);
183 // an optimization, since the data passed back to the callback needs to be
190 return (err, stats) => {
191 if (err) return cb(err);
204 return (mode & S_IFMT) === fileType;
[all …]
/third_party/uboot/u-boot-2020.01/env/
Dcallback.c1 // SPDX-License-Identifier: GPL-2.0+
16 * Look up a callback function pointer by name
25 return NULL; in find_env_callback()
27 /* look up the callback in the linker-list */ in find_env_callback()
31 if (strcmp(name, clbkp->name) == 0) in find_env_callback()
32 return clbkp; in find_env_callback()
35 return NULL; in find_env_callback()
42 * Look for a possible callback for a newly added variable
48 const char *var_name = var_entry->key; in env_callback_init()
67 /* if an association was found, set the callback pointer */ in env_callback_init()
[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/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/cef/libcef/browser/
Drequest_context_impl.cc2 // reserved. Use of this source code is governed by a BSD-style license that
35 return "NULL"; in GetTypeString()
37 return "BOOLEAN"; in GetTypeString()
39 return "INTEGER"; in GetTypeString()
41 return "DOUBLE"; in GetTypeString()
43 return "STRING"; in GetTypeString()
45 return "BINARY"; in GetTypeString()
47 return "DICTIONARY"; in GetTypeString()
49 return "LIST"; in GetTypeString()
51 return "DEAD"; in GetTypeString()
[all …]
Dtrace_subscriber.cc2 // reserved. Use of this source code is governed by a BSD-style license that can
16 // Create the temporary file and then execute |callback| on the thread
20 base::Callback<void(const base::FilePath&)> callback) { in CreateTemporaryFileOnBackgroundThread() argument
25 message_loop_proxy->PostTask(FROM_HERE, base::Bind(callback, file_path)); in CreateTemporaryFileOnBackgroundThread()
28 // Release the wrapped callback object after completion.
32 CefRefPtr<CefCompletionCallback> callback) in CefCompletionCallbackWrapper() argument
33 : callback_(callback) {} in CefCompletionCallbackWrapper()
37 callback_->OnComplete(); in OnComplete()
61 TracingController::GetInstance()->StopTracing(nullptr); in ~CefTraceSubscriber()
66 CefRefPtr<CefCompletionCallback> callback) { in BeginTracing() argument
[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/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/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::Bind(&CefCallback::Continue, callback)); in Open()
118 return true; in Open()
[all …]
/third_party/cef/include/base/
Dcef_callback.h42 #include "base/callback.h"
52 // NOTE: Header files that do not require the full definition of Callback or
55 // -----------------------------------------------------------------------------
57 // -----------------------------------------------------------------------------
59 // The templated Callback class is a generalized function object. Together
60 // with the Bind() function in bind.h, they provide a type-safe method for
69 // A callback with no unbound input parameters (base::Callback<void(void)>)
71 // languages refer to as a closure -- it does not retain a reference to its
76 // The Callback objects themselves should be passed by const-reference, and
80 // The reason to pass via a const-reference is to avoid unnecessary
[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/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 …]

12345678910>>...45