Home
last modified time | relevance | path

Searched refs:hook (Results 1 – 25 of 380) sorted by relevance

12345678910>>...16

/third_party/pulseaudio/src/pulsecore/
Dhook-list.c30 void pa_hook_init(pa_hook *hook, void *data) { in pa_hook_init() argument
31 pa_assert(hook); in pa_hook_init()
33 PA_LLIST_HEAD_INIT(pa_hook_slot, hook->slots); in pa_hook_init()
34 hook->n_dead = hook->n_firing = 0; in pa_hook_init()
35 hook->data = data; in pa_hook_init()
38 static void slot_free(pa_hook *hook, pa_hook_slot *slot) { in slot_free() argument
39 pa_assert(hook); in slot_free()
42 PA_LLIST_REMOVE(pa_hook_slot, hook->slots, slot); in slot_free()
47 void pa_hook_done(pa_hook *hook) { in pa_hook_done() argument
48 pa_assert(hook); in pa_hook_done()
[all …]
Dhook-list.h47 pa_hook *hook; member
61 void pa_hook_init(pa_hook *hook, void *data);
62 void pa_hook_done(pa_hook *hook);
64 pa_hook_slot* pa_hook_connect(pa_hook *hook, pa_hook_priority_t prio, pa_hook_cb_t cb, void *data);
67 pa_hook_result_t pa_hook_fire(pa_hook *hook, void *data);
69 bool pa_hook_is_firing(pa_hook *hook);
/third_party/node/deps/npm/lib/commands/
Dhook.js41 const hook = await hookApi.add(pkg, uri, secret, opts)
43 this.npm.output(JSON.stringify(hook, null, 2))
45 this.npm.output(Object.keys(hook).join('\t'))
46 this.npm.output(Object.keys(hook).map(k => hook[k]).join('\t'))
48 this.npm.output(`+ ${this.hookName(hook)} ${opts.unicode ? ' ➜ ' : ' -> '} ${hook.endpoint}`)
58 hooks.forEach(hook => {
59 this.npm.output(Object.keys(hook).map(k => hook[k]).join('\t'))
71 hooks.forEach((hook) => {
73 { rowSpan: 2, content: hook.id },
74 this.hookName(hook),
[all …]
/third_party/node/deps/npm/test/lib/commands/
Dhook.js69 const { hook } = await mockHook(t)
70 await t.rejects(hook.exec([]), hook.usage, 'throws usage with no arguments')
74 const { npm, hook, outputs, hookArgs } = await mockHook(t)
75 await hook.exec(['add', 'semver', 'https://google.com', 'some-secret'])
91 const { npm, hook, outputs, hookArgs } = await mockHook(t)
92 await hook.exec(['add', '~npm', 'https://google.com', 'some-secret'])
108 const { npm, hook, outputs, hookArgs } = await mockHook(t)
109 await hook.exec(['add', '@npmcli', 'https://google.com', 'some-secret'])
128 const { npm, hook, outputs, hookArgs } = await mockHook(t, {
132 await hook.exec(['add', 'semver', 'https://google.com', 'some-secret'])
[all …]
/third_party/python/Lib/test/
Daudit-tests.py83 with TestHook() as hook:
85 assertEqual(hook.seen[0][0], "test_event")
86 assertEqual(hook.seen[0][1], (1, 2, 3))
115 with TestHook() as hook:
126 actual = [(a[0], a[1]) for e, a in hook.seen if e == "marshal.dumps"]
129 actual = [a[0] for e, a in hook.seen if e == "marshal.loads"]
132 actual = [e for e, a in hook.seen if e == "marshal.load"]
149 with TestHook(raise_on_events="pickle.find_class") as hook:
169 with TestHook() as hook:
183 actual = [(a[0], a[1]) for e, a in hook.seen if e == "object.__setattr__"]
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
52 hook(2); in TEST()
60 hook(TestHook); in TEST() local
[all …]
/third_party/node/deps/npm/docs/content/commands/
Dnpm-hook.md2 title: npm-hook
10 npm hook add <pkg> <url> <secret> [--type=<type>]
11 npm hook ls [pkg]
12 npm hook rm <id>
13 npm hook update <id> <url> <secret>
28 To create a package hook, simply reference the package name.
30 To create an owner hook, prefix the owner name with `~` (as in,
33 To create a scope hook, prefix the scope name with `@` (as in,
36 The hook `id` used by `update` and `rm` are the IDs listed in `npm hook ls`
37 for that particular hook.
[all …]
/third_party/node/test/parallel/
Dtest-async-hooks-enable-disable.js6 const hook = async_hooks.createHook({ constant
13 assert.strictEqual(hook.enable(), hook);
14 assert.strictEqual(hook.enable(), hook);
18 assert.strictEqual(hook.disable(), hook);
19 assert.strictEqual(hook.disable(), hook);
20 assert.strictEqual(hook.disable(), hook);
Dtest-async-hooks-promise-enable-disable.js27 const hook = async_hooks.createHook({ constant
35 hook.enable().enable();
37 hook.disable();
40 hook.enable();
42 hook.disable();
/third_party/gstreamer/gstplugins_bad/ext/closedcaption/
Dmisc.h349 #define error(hook, templ, args...) \ argument
351 #define warn(hook, templ, args...) \ argument
353 #define notice(hook, templ, args...) \ argument
355 #define info(hook, templ, args...) \ argument
357 #define debug1(hook, templ, args...) \ argument
359 #define debug2(hook, templ, args...) \ argument
361 #define debug3(hook, templ, args...) \ argument
364 #define error(hook, templ, ...) \ argument
366 #define warn(hook, templ, ...) \ argument
368 #define notice(hook, templ, ...) \ argument
[all …]
/third_party/alsa-lib/src/pcm/
Dpcm_hooks.c87 snd_pcm_hook_t *hook = list_entry(pos, snd_pcm_hook_t, list); in snd_pcm_hooks_close() local
88 err = hook->func(hook); in snd_pcm_hooks_close()
95 snd_pcm_hook_t *hook; in snd_pcm_hooks_close() local
97 hook = list_entry(pos, snd_pcm_hook_t, list); in snd_pcm_hooks_close()
98 snd_pcm_hook_remove(hook); in snd_pcm_hooks_close()
119 snd_pcm_hook_t *hook = list_entry(pos, snd_pcm_hook_t, list); in snd_pcm_hooks_hw_params() local
120 err = hook->func(hook); in snd_pcm_hooks_hw_params()
135 snd_pcm_hook_t *hook = list_entry(pos, snd_pcm_hook_t, list); in snd_pcm_hooks_hw_free() local
136 err = hook->func(hook); in snd_pcm_hooks_hw_free()
560 snd_pcm_t *snd_pcm_hook_get_pcm(snd_pcm_hook_t *hook) in snd_pcm_hook_get_pcm() argument
[all …]
/third_party/libbpf/src/
Dnetlink.c435 static int attach_point_to_config(struct bpf_tc_hook *hook, in attach_point_to_config() argument
438 switch (OPTS_GET(hook, attach_point, 0)) { in attach_point_to_config()
442 if (OPTS_GET(hook, parent, 0)) in attach_point_to_config()
475 static int tc_qdisc_modify(struct bpf_tc_hook *hook, int cmd, int flags) in tc_qdisc_modify() argument
481 ret = attach_point_to_config(hook, &config); in tc_qdisc_modify()
490 req.tc.tcm_ifindex = OPTS_GET(hook, ifindex, 0); in tc_qdisc_modify()
499 static int tc_qdisc_create_excl(struct bpf_tc_hook *hook) in tc_qdisc_create_excl() argument
501 return tc_qdisc_modify(hook, RTM_NEWQDISC, NLM_F_CREATE | NLM_F_EXCL); in tc_qdisc_create_excl()
504 static int tc_qdisc_delete(struct bpf_tc_hook *hook) in tc_qdisc_delete() argument
506 return tc_qdisc_modify(hook, RTM_DELQDISC, 0); in tc_qdisc_delete()
[all …]
/third_party/gstreamer/gstreamer/gst/
Dgsttracerutils.c144 GstTracerHook *hook; in _priv_gst_tracing_deinit() local
154 hook = (GstTracerHook *) t_node->data; in _priv_gst_tracing_deinit()
155 gst_object_unref (hook->tracer); in _priv_gst_tracing_deinit()
156 g_slice_free (GstTracerHook, hook); in _priv_gst_tracing_deinit()
170 GstTracerHook *hook = g_slice_new0 (GstTracerHook); in gst_tracing_register_hook_id() local
171 hook->tracer = gst_object_ref (tracer); in gst_tracing_register_hook_id()
172 hook->func = func; in gst_tracing_register_hook_id()
174 list = g_list_prepend (list, hook); in gst_tracing_register_hook_id()
214 GstTracerHook *hook; in gst_tracing_get_active_tracers() local
223 hook = (GstTracerHook *) t_node->data; in gst_tracing_get_active_tracers()
[all …]
/third_party/pulseaudio/src/tests/
Dhook-list-test.c25 pa_hook hook; in START_TEST() local
28 pa_hook_init(&hook, (void*) "hook"); in START_TEST()
30 pa_hook_connect(&hook, PA_HOOK_LATE, (pa_hook_cb_t) func1, (void*) "slot1"); in START_TEST()
31 slot = pa_hook_connect(&hook, PA_HOOK_NORMAL, (pa_hook_cb_t) func2, (void*) "slot2"); in START_TEST()
32 pa_hook_connect(&hook, PA_HOOK_NORMAL, (pa_hook_cb_t) func1, (void*) "slot3"); in START_TEST()
34 pa_hook_fire(&hook, (void*) "call1"); in START_TEST()
38 pa_hook_fire(&hook, (void*) "call2"); in START_TEST()
40 pa_hook_done(&hook); in START_TEST()
/third_party/typescript/tests/baselines/reference/
DjsDeclarationsFunctionClassesCjsExportAssignment.symbols21 === tests/cases/conformance/jsdoc/declarations/hook.js ===
29 >Hook : Symbol(Hook, Decl(hook.js, 0, 0))
30 >handle : Symbol(handle, Decl(hook.js, 6, 14))
33 >this.handle : Symbol(Hook.handle, Decl(hook.js, 6, 23))
34 >this : Symbol(Hook, Decl(hook.js, 0, 0))
35 >handle : Symbol(Hook.handle, Decl(hook.js, 6, 23))
36 >handle : Symbol(handle, Decl(hook.js, 6, 14))
39 >module.exports : Symbol(module.exports, Decl(hook.js, 0, 0))
40 >module : Symbol(export=, Decl(hook.js, 8, 1))
41 >exports : Symbol(export=, Decl(hook.js, 8, 1))
[all …]
DjsDeclarationsFunctionClassesCjsExportAssignment.types23 === tests/cases/conformance/jsdoc/declarations/hook.js ===
53 * @typedef {import("./hook")} Hook
54 * @typedef {import("./hook").HookHandler} HookHandler
62 * @prop {Hook} hook
70 * @prop {Hook} hook
99 …input: Input, handle?: import("tests/cases/conformance/jsdoc/declarations/hook").HookHandler): Sta…
102 >this.construct : (input: Input, handle?: import("tests/cases/conformance/jsdoc/declarations/hook")…
103 …input: Input, handle?: import("tests/cases/conformance/jsdoc/declarations/hook").HookHandler): Sta…
104 >construct : (input: Input, handle?: import("tests/cases/conformance/jsdoc/declarations/hook").Hook…
111 …input: Input, handle?: import("tests/cases/conformance/jsdoc/declarations/hook").HookHandler): Sta…
[all …]
/third_party/node/deps/npm/node_modules/libnpmhook/
DREADME.md19 * [hook opts](#opts)
32 // array of hook objects on `mypkg`.
61 The `endpoint` should be a fully-qualified http URL for the endpoint the hook
63 hook will send to that endpoint to verify that it's actually coming from the
64 registry hook.
66 The returned Promise resolves to the full hook object that was created,
70 /v1/hooks/hook`](https://github.com/npm/registry/blob/master/docs/hooks/endpoints.md#post-v1hooksho…
99 Returns the hook identified by `id`.
101 The returned Promise resolves to the full hook object that was found, or error
105 /v1/hooks/hook/:id`](https://github.com/npm/registry/blob/master/docs/hooks/endpoints.md#get-v1hook…
[all …]
/third_party/node/benchmark/async_hooks/
Dpromises.js5 let hook; variable
8 hook = createHook({
13 hook = createHook({
18 hook = createHook({
24 hook = createHook({
50 if (hook) hook.disable();
/third_party/node/lib/internal/
Dinspector_async_hook.js3 let hook; variable
15 hook = createHook({
47 hook.promiseIds = new SafeSet();
51 if (hook === undefined) lazyHookCreation();
64 hook.enable();
69 if (hook === undefined) lazyHookCreation();
70 hook.disable();
Dpromise_hooks.js50 const hook = hookSet[i];
52 hook(promise);
82 function stop(list, hook) { argument
83 const index = ArrayPrototypeIndexOf(list, hook);
92 return (hook) => {
93 validatePlainFunction(hook, `${name}Hook`);
94 ArrayPrototypePush(list, hook);
96 return FunctionPrototypeBind(stop, null, list, hook);
/third_party/node/lib/internal/test_runner/
Dharness.js116 const hook = createHook({
134 hook.enable();
146 hook.disable();
222 function hook(hook) { function
225 parent.createHook(hook, fn, options);
234 before: hook('before'),
235 after: hook('after'),
236 beforeEach: hook('beforeEach'),
237 afterEach: hook('afterEach'),
/third_party/elfutils/libdwfl/
Dargp-std.c128 assert (state->hook == NULL); in parse_opt()
132 state->hook = opt; in parse_opt()
142 struct parse_opt *opt = state->hook; in parse_opt()
168 struct parse_opt *opt = state->hook; in parse_opt()
188 struct parse_opt *opt = state->hook; in parse_opt()
213 struct parse_opt *opt = state->hook; in parse_opt()
226 struct parse_opt *opt = state->hook; in parse_opt()
246 struct parse_opt *opt = state->hook; in parse_opt()
263 struct parse_opt *opt = state->hook; in parse_opt()
347 state->hook = NULL; in parse_opt()
[all …]
/third_party/node/test/fixtures/test-runner/output/
Dhooks.snapshot59 error: 'failed running before hook'
89 error: 'failed running after hook'
108 error: 'failed running beforeEach hook'
127 error: 'failed running beforeEach hook'
156 error: 'failed running afterEach hook'
175 error: 'failed running afterEach hook'
257 error: 'failed running afterEach hook'
318 error: 'failed running before hook'
337 error: 'failed running before hook'
365 error: 'failed running beforeEach hook'
[all …]
/third_party/node/test/async-hooks/
Dtest-late-hook-enable.js16 hook.disable();
27 hook.disable();
34 const hook = async_hooks.createHook({ constant
38 hook.disable();
48 hook.enable();
/third_party/pulseaudio/src/modules/
Dreserve-wrap.c44 pa_hook hook; member
55 pa_hook hook; member
74 pa_hook_done(&r->hook); in reserve_wrapper_free()
95 k = pa_hook_fire(&r->hook, PA_INT_TO_PTR(forced)); in request_cb()
131 pa_hook_init(&r->hook, r); in pa_reserve_wrapper_get()
193 return &r->hook; in pa_reserve_wrapper_hook()
216 pa_hook_done(&w->hook); in reserve_monitor_wrapper_free()
240 pa_hook_fire(&w->hook, PA_INT_TO_PTR(!!k)); in change_cb()
274 pa_hook_init(&w->hook, w); in pa_reserve_monitor_wrapper_get()
329 return &w->hook; in pa_reserve_monitor_wrapper_hook()

12345678910>>...16