Home
last modified time | relevance | path

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

12345678910>>...44

/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/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/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/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`).
108 // 2 ** 32 - 1
123 // These have to be separate because of how graceful-fs happens to do it's
143 return cb;
156 return (...args) => cb(...args);
160 // an optimization, since the data passed back to the callback needs to be
167 return (err, stats) => {
168 if (err) return cb(err);
181 return (mode & S_IFMT) === fileType;
[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/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/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.
42 function rimraf(path, options, callback) { argument
50 return setTimeout(_rimraf, delay, path, options, CB);
58 callback(err);
63 function _rimraf(path, options, callback) { argument
69 return callback(null);
73 return fixWinEPERM(path, options, err, callback);
[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/python/Objects/
Dweakrefobject.c16 head = head->wr_next; in _PyWeakref_GetWeakrefCount()
18 return count; in _PyWeakref_GetWeakrefCount()
23 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback) in init_weakref() argument
25 self->hash = -1; in init_weakref()
26 self->wr_object = ob; in init_weakref()
27 self->wr_prev = NULL; in init_weakref()
28 self->wr_next = NULL; in init_weakref()
29 Py_XINCREF(callback); in init_weakref()
30 self->wr_callback = callback; in init_weakref()
34 new_weakref(PyObject *ob, PyObject *callback) in new_weakref() argument
[all …]
/third_party/openssl/doc/man3/
DSSL_CTX_use_psk_identity_hint.pod13 - set PSK identity hint to use
42 A server application wishing to use TLSv1.3 PSKs should set a callback
46 The callback function is given a pointer to the SSL connection in B<ssl> and
47 an identity in B<identity> of length B<identity_len>. The callback function
53 It is also possible for the callback to succeed but not supply a PSK. In this
55 callback should return successfully and ensure that B<*sess> is
60 to set the given B<NUL>-terminated PSK identity hint B<hint> for SSL context
61 object B<ctx>. SSL_use_psk_identity_hint() sets the given B<NUL>-terminated PSK
69 callback function which is called when the server receives the
70 ClientKeyExchange message from the client. The purpose of the callback function
[all …]
DSSL_CTX_set_ct_validation_callback.pod8 SSL_ct_is_enabled, SSL_CTX_ct_is_enabled -
20 int SSL_set_ct_validation_callback(SSL *s, ssl_ct_validation_cb callback,
23 ssl_ct_validation_cb callback,
35 This is accomplished by setting a built-in CT validation callback.
36 The behaviour of the callback is determined by the B<validation_mode> argument,
45 However, in that case if the verification status before the built-in callback
47 callback.
65 register a custom callback that may implement a different policy than either of
67 This callback can examine the peer's SCTs and determine whether they are
70 and the callback returns a non-positive result.
[all …]
DSSL_CTX_set_psk_client_callback.pod11 - set PSK client callback
45 The callback function is given a pointer to the SSL connection in B<ssl>.
47 The first time the callback is called for a connection the B<md> parameter is
48 NULL. In some circumstances the callback will be called a second time. In that
51 given in B<md>. The PSK returned by the callback is allowed to be different
54 On successful completion the callback must store a pointer to an identifier for
59 Additionally the callback should store a pointer to an SSL_SESSION object in
90 Alternatively an SSL_SESSION created from a previous non-PSK handshake may also
96 It is also possible for the callback to succeed but not supply a PSK. In this
98 this the callback should return successfully and ensure that B<*sess> is
[all …]
/third_party/node/lib/internal/crypto/
Drandom.js21 const kMaxUint32 = 2 ** 32 - 1;
33 return offset >>> 0; // Convert to uint32.
49 return size >>> 0; // Convert to uint32.
52 function randomBytes(size, callback) { argument
54 if (callback !== undefined && typeof callback !== 'function')
55 throw new ERR_INVALID_CALLBACK(callback);
59 if (!callback) return handleError(_randomBytes(buf, 0, size), buf);
63 if (ex) return callback.call(wrap, ex);
64 callback.call(wrap, null, buf);
80 size = buf.byteLength - offset;
[all …]
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/ui/
Dwindow.dart2 // Use of this source code is governed by a BSD-style license that can be
4 // Synced 2019-05-30T14:20:57.841444.
8 /// Signature of callbacks that have no arguments and return no data.
11 /// Signature for frame-related callbacks from the scheduler.
37 String name, ByteData data, PlatformMessageResponseCallback callback);
65 /// another activity is focused, such as a split-screen app, a phone call,
66 /// a picture-in-picture app, a system dialog, or another window.
131 return 'WindowPadding(left: $left, top: $top, right: $right, bottom: $bottom)';
143 /// Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
166 /// be omitted or passed `null` instead of an empty-string.
[all …]
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-drivers/source/
DInterruptIn-js.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
15 #include "jerryscript-mbed-util/logging.h"
16 #include "jerryscript-mbed-event-loop/EventLoop.h"
17 #include "jerryscript-mbed-library-registry/wrap_tools.h"
29 native_ptr->rise(0); in NAME_FOR_CLASS_NATIVE_DESTRUCTOR()
30 native_ptr->fall(0); in NAME_FOR_CLASS_NATIVE_DESTRUCTOR()
37 * Set InterruptIn#destructor as the free callback.
46 * Register a rise callback for an InterruptIn
48 * @param cb Callback function, or null to detach previously attached callback.
53 // Detach the rise callback when InterruptIn::rise(null) is called in DECLARE_CLASS_FUNCTION()
[all …]
/third_party/flutter/engine/flutter/lib/ui/
Dplugins.dart2 // Use of this source code is governed by a BSD-style license that can be
7 /// A wrapper for a raw callback handle.
9 /// This is the return type for [PluginUtilities.getCallbackHandle].
11 /// Create an instance using a raw callback handle.
20 /// Get the raw callback handle to pass over a [MethodChannel] or [SendPort]
27 return false;
29 return _handle == typedOther._handle;
52 /// Get a handle to a named top-level or static callback function which can
55 /// The `callback` argument must not be null.
58 /// [PluginUtilities.getCallbackFromHandle] to retrieve a tear-off of the
[all …]
/third_party/curl/docs/libcurl/opts/
DCURLOPT_WRITEFUNCTION.38 .\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
25 CURLOPT_WRITEFUNCTION \- set callback for writing received data
34 Pass a pointer to your callback function, which should match the prototype
37 This callback function gets called by libcurl as soon as there is data
38 received that needs to be saved. For most transfers, this callback gets called
43 The callback function will be passed as much data as possible in all invokes,
46 callback is defined in the curl.h header file: \fICURL_MAX_WRITE_SIZE\fP (the
48 header data get passed to the write callback, you can get up to
55 The data passed to this function will not be null-terminated!
59 Your callback should return the number of bytes actually taken care of. If
[all …]
DCURLMOPT_PUSHFUNCTION.38 .\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
25 CURLMOPT_PUSHFUNCTION \- callback that approves or denies server pushes
43 This callback gets called when a new HTTP/2 stream is being pushed by the
44 server (using the PUSH_PROMISE frame). If no push callback is set, all offered
46 .SH CALLBACK DESCRIPTION
47 The callback gets its arguments like this:
61 headers, the normal response headers will be provided in the header callback
66 If the callback returns CURL_PUSH_OK, the 'easy' handle will be added to the
67 multi handle, the callback must not do that by itself.
69 The callback can access PUSH_PROMISE headers with two accessor
[all …]
/third_party/node/tools/node_modules/eslint/node_modules/tmp/lib/
Dtmp.js4 * Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
15 const osTmpDir = require('os-tmpdir');
52 * Adapted from http://blog.tompawlak.org/how-to-generate-random-values-nodejs-javascript
74 return value.join('');
85 return typeof obj === 'undefined';
94 * @param {Function} callback
98 function _parseArguments(options, callback) { argument
100 return [callback || {}, options];
104 return [{}, callback];
107 return [options, callback];
[all …]
/third_party/node/tools/node_modules/eslint/lib/rules/
Dcallback-return.js2 * @fileoverview Enforce return after a callback.
7 //------------------------------------------------------------------------------
9 //------------------------------------------------------------------------------
20 description: "require `return` statements after callbacks",
23 url: "https://eslint.org/docs/rules/callback-return"
32 missingReturn: "Expected return with your callback function."
38 const callbacks = context.options[0] || ["callback", "cb", "next"],
41 //--------------------------------------------------------------------------
43 //--------------------------------------------------------------------------
53 return null;
[all …]
/third_party/python/Lib/ctypes/test/
Dtest_callbacks.py16 def callback(self, *args): member in Callbacks
18 return args[-1]
22 result = PROTO(self.callback)(arg)
30 result = PROTO(self.callback)(-3, arg)
34 self.assertEqual(self.got_args, (-3, arg))
41 self.check_type(c_byte, -42)
48 self.check_type(c_short, -42)
55 self.check_type(c_int, -42)
62 self.check_type(c_long, -42)
69 self.check_type(c_longlong, -42)
[all …]
/third_party/node/deps/npm/node_modules/readable-stream/lib/internal/streams/
Dpipeline.js7 function once(callback) { argument
9 return function () {
10 if (called) return;
12 callback.apply(void 0, arguments);
26 return stream.setHeader && typeof stream.abort === 'function';
29 function destroyer(stream, reading, writing, callback) { argument
30 callback = once(callback);
35 if (eos === undefined) eos = require('./end-of-stream');
40 if (err) return callback(err);
42 callback();
[all …]
/third_party/node/src/
Dcallback_queue-inl.h12 std::unique_ptr<typename CallbackQueue<R, Args...>::Callback>
14 return std::make_unique<CallbackImpl<Fn>>(std::move(fn), flags); in CreateCallback()
18 std::unique_ptr<typename CallbackQueue<R, Args...>::Callback>
20 std::unique_ptr<Callback> ret = std::move(head_); in Shift()
22 head_ = ret->get_next(); in Shift()
25 size_--; in Shift()
27 return ret; in Shift()
31 void CallbackQueue<R, Args...>::Push(std::unique_ptr<Callback> cb) { in Push()
32 Callback* prev_tail = tail_; in Push()
37 prev_tail->set_next(std::move(cb)); in Push()
[all …]
/third_party/flutter/engine/flutter/shell/platform/darwin/common/framework/Source/
DFlutterChannels.mm2 // Use of this source code is governed by a BSD-style license that can be
7 #pragma mark - Basic message channel
17 return [FlutterBasicMessageChannel messageChannelWithName:name
24 return [[[FlutterBasicMessageChannel alloc] initWithName:name
29 - (instancetype)initWithName:(NSString*)name
37 return self;
40 - (void)dealloc {
47 - (void)sendMessage:(id)message {
51 - (void)sendMessage:(id)message reply:(FlutterReply)callback {
53 if (callback)
[all …]

12345678910>>...44