Home
last modified time | relevance | path

Searched full:hooks (Results 1 – 25 of 1376) sorted by relevance

12345678910>>...56

/external/python/cpython2/Lib/
Dihooks.py15 1) A "file system hooks" class provides an interface to a filesystem.
17 One hooks class is defined (Hooks), which uses the interface provided
19 class for other hooks classes.
30 uses a file system hooks class to interact with the file system. Both
61 __all__ = ["BasicModuleLoader","Hooks","ModuleLoader","FancyModuleLoader",
150 class Hooks(_Verbose): class
152 """Hooks into the filesystem and interpreter.
208 """Default module loader; uses file system hooks.
210 By defining suitable hooks, you might be able to load modules from
216 def __init__(self, hooks = None, verbose = VERBOSE): argument
[all …]
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
DTestSSLEnginePair.java49 return create((Hooks) null); in create()
56 public static TestSSLEnginePair create(Hooks hooks) throws IOException { in create() argument
57 return create(TestSSLContext.create(), hooks); in create()
60 public static TestSSLEnginePair create(TestSSLContext c, Hooks hooks) throws IOException { in create() argument
61 return create(c, hooks, null); in create()
64 public static TestSSLEnginePair create(TestSSLContext c, Hooks hooks, boolean[] finished) in create() argument
66 SSLEngine[] engines = connect(c, hooks, finished); in create()
70 public static SSLEngine[] connect(TestSSLContext c, Hooks hooks) throws IOException { in connect() argument
71 return connect(c, hooks, null); in connect()
79 Hooks hooks, in connect() argument
[all …]
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DTestSSLEnginePair.java51 return create((Hooks) null); in create()
58 public static TestSSLEnginePair create(Hooks hooks) throws IOException { in create() argument
59 return create(TestSSLContext.create(), hooks); in create()
62 public static TestSSLEnginePair create(TestSSLContext c, Hooks hooks) throws IOException { in create() argument
63 return create(c, hooks, null); in create()
66 public static TestSSLEnginePair create(TestSSLContext c, Hooks hooks, boolean[] finished) in create() argument
68 SSLEngine[] engines = connect(c, hooks, finished); in create()
72 public static SSLEngine[] connect(TestSSLContext c, Hooks hooks) throws IOException { in connect() argument
73 return connect(c, hooks, null); in connect()
81 Hooks hooks, in connect() argument
[all …]
/external/python/pybind11/
D.pre-commit-config.yaml16 # Standard hooks
17 - repo: https://github.com/pre-commit/pre-commit-hooks
19 hooks:
35 hooks:
42 - repo: https://github.com/Lucas-C/pre-commit-hooks
44 hooks:
50 hooks:
58 hooks:
67 hooks:
78 hooks:
[all …]
/external/jemalloc_new/test/include/test/
Dextent_hooks.h2 * Boilerplate code used for testing extent hooks via interception and
29 static extent_hooks_t hooks = { variable
41 /* Control whether hook functions pass calls through to default hooks. */
89 assert_ptr_eq(extent_hooks, &hooks, in extent_alloc_hook()
90 "extent_hooks should be same as pointer used to set hooks"); in extent_alloc_hook()
111 assert_ptr_eq(extent_hooks, &hooks, in extent_dalloc_hook()
112 "extent_hooks should be same as pointer used to set hooks"); in extent_dalloc_hook()
130 assert_ptr_eq(extent_hooks, &hooks, in extent_destroy_hook()
131 "extent_hooks should be same as pointer used to set hooks"); in extent_destroy_hook()
150 assert_ptr_eq(extent_hooks, &hooks, in extent_commit_hook()
[all …]
/external/tensorflow/tensorflow/python/training/
Dsession_run_hook.py28 gets the outputs it requested. Hooks are allowed to add ops to the graph in
31 There are a few pre-defined hooks:
38 For more specific needs, you can create custom hooks:
63 To understand how hooks interact with calls to `MonitoredSession.run()`,
65 with MonitoredTrainingSession(hooks=your_hooks, ...) as sess:
70 call hooks.begin()
72 call hooks.after_create_session()
74 call hooks.before_run()
79 call hooks.after_run()
80 call hooks.end()
[all …]
Dmonitored_session.py16 """A wrapper of Session API which runs hooks."""
325 hooks=None, argument
338 if hooks:
339 all_hooks.extend(hooks)
429 hooks=all_hooks,
439 hooks=None, argument
454 creates hooks related to checkpoint and summary saving. For workers, this
470 hooks: Optional list of `SessionRunHook` objects.
471 chief_only_hooks: list of `SessionRunHook` objects. Activate these hooks if
537 hooks=hooks,
[all …]
Devaluation.py179 hooks=None, argument
217 hooks: List of `tf.estimator.SessionRunHook` callbacks which are run inside
227 # Prepare the run hooks.
228 hooks = list(hooks or [])
231 if any(isinstance(h, _MultiStepStopAfterNEvalsHook) for h in hooks):
250 for h in hooks:
266 hooks.append(final_ops_hook)
269 session_creator=session_creator, hooks=hooks) as session:
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DNativeCryptoTest.java672 public static class Hooks { class in NativeCryptoTest
739 private final Hooks hooks; field in NativeCryptoTest.TestSSLHandshakeCallbacks
742 …TestSSLHandshakeCallbacks(Socket socket, long sslNativePointer, Hooks hooks, ApplicationProtocolSe… in TestSSLHandshakeCallbacks() argument
745 this.hooks = hooks; in TestSSLHandshakeCallbacks()
789 if (hooks != null) { in clientCertificateRequested()
790 hooks.clientCertificateRequested(sslNativePointer); in clientCertificateRequested()
901 static class ClientHooks extends Hooks {
933 static class ServerHooks extends Hooks {
997 final int timeout, final boolean client, final Hooks hooks, final byte[] alpnProtocols, in handshake() argument
1015 long c = hooks.getContext(); in handshake()
[all …]
/external/python/markupsafe/
D.pre-commit-config.yaml4 hooks:
9 hooks:
14 hooks:
18 hooks:
21 - repo: https://github.com/pre-commit/pre-commit-hooks
23 hooks:
/external/python/jinja/
D.pre-commit-config.yaml4 hooks:
9 hooks:
14 hooks:
18 hooks:
21 - repo: https://github.com/pre-commit/pre-commit-hooks
23 hooks:
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DNativeCryptoTest.java679 public static class Hooks { class in NativeCryptoTest
747 private final Hooks hooks; field in NativeCryptoTest.TestSSLHandshakeCallbacks
750 TestSSLHandshakeCallbacks(Socket socket, long sslNativePointer, Hooks hooks, in TestSSLHandshakeCallbacks() argument
754 this.hooks = hooks; in TestSSLHandshakeCallbacks()
798 if (hooks != null) { in clientCertificateRequested()
799 hooks.clientCertificateRequested(sslNativePointer); in clientCertificateRequested()
910 static class ClientHooks extends Hooks {
942 static class ServerHooks extends Hooks {
1006 final int timeout, final boolean client, final Hooks hooks, final byte[] alpnProtocols, in handshake() argument
1024 long c = hooks.getContext(); in handshake()
[all …]
/external/tensorflow/tensorflow/python/debug/examples/v1/
Ddebug_tflearn_iris.py63 hooks = []
68 hooks.append(
74 hooks.append(tf_debug.TensorBoardDebugHook(FLAGS.tensorboard_debug_address))
77 classifier.train(training_input_fn, steps=FLAGS.train_steps, hooks=hooks)
81 test_input_fn, steps=FLAGS.eval_steps, hooks=hooks)["accuracy"]
87 predict_results = classifier.predict(test_input_fn, hooks=hooks)
/external/tensorflow/tensorflow/python/distribute/
Destimator_training.py232 # In the standalone client, we don't need to run hooks on all threads
233 # because logging hooks on all threads may be too much on the screen; also
235 # tensor is defined. Other hooks such as checkpointing hooks will added by
241 hooks = list(train_spec.hooks)
243 hooks = []
252 hooks=hooks)
295 def estimator_train(estimator, train_distributed_fn, hooks): argument
330 chief_hooks = hooks
344 def estimator_evaluate(estimator, evaluate_distributed_fn, hooks): argument
379 chief_hooks = hooks
/external/caliper/caliper/src/test/java/com/google/caliper/runner/
DWorkerProcessTest.java58 Set<Thread> hooks = Sets.newHashSet(); field in WorkerProcessTest.MockRegistrar
60 hooks.add(hook); in addShutdownHook()
63 return hooks.remove(hook); in removeShutdownHook()
112 Iterables.getOnlyElement(registrar.hooks).getName()); in shutdownHook_waitFor()
114 assertTrue(registrar.hooks.isEmpty()); in shutdownHook_waitFor()
121 Thread hook = Iterables.getOnlyElement(registrar.hooks); in shutdownHook_exitValueThrows()
127 assertTrue(registrar.hooks.contains(hook)); in shutdownHook_exitValueThrows()
138 assertTrue(registrar.hooks.isEmpty()); in shutdownHook_exitValue()
150 assertTrue(registrar.hooks.isEmpty()); in shutdownHook_destroy()
/external/rust/crates/rusqlite/
D.travis.yml33 - cargo test --features "hooks limits"
45 …- cargo test --features "backup blob chrono collation csvtab functions hooks limits load_extension…
46 …- cargo test --features "backup blob chrono collation csvtab functions hooks limits load_extension…
47 …- cargo test --features "backup blob chrono collation csvtab functions hooks limits load_extension…
48 …- cargo test --features "backup blob chrono collation csvtab functions hooks limits load_extension…
Dappveyor.yml36 …- cargo test --lib --features "backup blob chrono collation functions hooks limits load_extension …
37 …- cargo test --lib --features "backup blob chrono functions hooks limits load_extension serde_json…
38 …- cargo test --lib --features "backup blob chrono csvtab functions hooks limits load_extension ser…
39 …- cargo test --lib --features "backup blob chrono csvtab functions hooks limits load_extension ser…
/external/autotest/client/tests/qemu_iotests/
Dqemu-iotests.tar.bz2 ... .git/ qemu-iotests/.git/hooks/ qemu-iotests/.git/hooks/ ...
/external/jemalloc_new/test/unit/
Dbase.c72 memcpy(&hooks_orig, &hooks, sizeof(extent_hooks_t)); in TEST_BEGIN()
73 memcpy(&hooks, &hooks_null, sizeof(extent_hooks_t)); in TEST_BEGIN()
76 base = base_new(tsdn, 0, &hooks); in TEST_BEGIN()
102 memcpy(&hooks, &hooks_orig, sizeof(extent_hooks_t)); in TEST_BEGIN()
117 memcpy(&hooks_orig, &hooks, sizeof(extent_hooks_t)); in TEST_BEGIN()
118 memcpy(&hooks, &hooks_not_null, sizeof(extent_hooks_t)); in TEST_BEGIN()
122 base = base_new(tsdn, 0, &hooks); in TEST_BEGIN()
224 memcpy(&hooks, &hooks_orig, sizeof(extent_hooks_t)); in TEST_BEGIN()
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Dcheckpoint_input_pipeline_hook_test.py86 est.train(_input_fn, steps=2, hooks=[self._build_iterator_saver_hook(est)])
88 est.train(_input_fn, steps=2, hooks=[self._build_iterator_saver_hook(est)])
101 est.train(_input_fn, steps=2, hooks=[self._build_iterator_saver_hook(est)])
103 est.train(_input_fn, steps=2, hooks=[self._build_iterator_saver_hook(est)])
114 est.train(_input_fn, steps=2, hooks=[self._build_iterator_saver_hook(est)])
116 est.train(_input_fn, steps=2, hooks=[self._build_iterator_saver_hook(est)])
132 _input_fn, steps=2, hooks=[self._build_iterator_saver_hook(est)])
/external/elfutils/libebl/
DChangeLog27 * ebl-hooks.h (syscall_abi): Remove.
158 * ebl-hooks.h (EBLHOOK(reloc_simple_type)): Add third parameter.
171 * ebl-hooks.h (check_special_symbol): Drop ehdr argument.
217 * ebl-hooks.h (data_marker_symbol): New hook.
249 * ebl-hooks.h (object_type_name): Removed.
265 * ebl-hooks.h (EBLHOOK(disasm)): Add ebl parameter.
338 * ebl-hooks.h (bss_plt_p): Remove ehdr argument.
357 * ebl-hooks.h (check_reloc_target_type): New hook.
366 * ebl-hooks.h (resolve_sym_value): New entry.
376 * ebl-hooks.h (normalize_pc, unwind): New.
[all …]
/external/swiftshader/tests/VulkanWrapper/
DDrawTester.hpp44 // Hooks
130 } hooks; member in DrawTester
174 hooks.createVertexBuffers = std::move(callback); in onCreateVertexBuffers()
179 hooks.createDescriptorSetLayout = std::move(callback); in onCreateDescriptorSetLayouts()
184 hooks.createVertexShader = std::move(callback); in onCreateVertexShader()
189 hooks.createFragmentShader = std::move(callback); in onCreateFragmentShader()
194 hooks.updateDescriptorSet = std::move(callback); in onUpdateDescriptorSet()
/external/jemalloc_new/test/integration/
Dextent.c119 /* Install custom extent hooks on arena 1 (might not be initialized). */ in test_manual_hook_auto_arena()
125 new_hooks = &hooks; in test_manual_hook_auto_arena()
131 if (old_hooks != &hooks) { in test_manual_hook_auto_arena()
152 /* Install custom extent hooks. */ in test_manual_hook_body()
158 new_hooks = &hooks; in test_manual_hook_body()
184 /* Restore extent hooks. */ in test_manual_hook_body()
233 new_hooks = &hooks; in TEST_BEGIN()
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/
DStaticClassTransformer.java32 * Adds entry hooks (that eventually call into
35 * <p></p>Transforming a class to add entry hooks follow the following simple steps:
79 * A unique identifier that is baked into the transformed classes. The entry hooks will then
108 * Trigger the process to add entry hooks to a class (and all its parents).
157 * Add entry hooks to all methods of a class.
161 * @param classBeingRedefined class the hooks should be added to
/external/iperf3/src/
Dcjson.c195 static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks) in cJSON_strdup() argument
206 copy = (unsigned char*)hooks->allocate(length); in cJSON_strdup()
216 CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks* hooks) in cJSON_InitHooks() argument
218 if (hooks == NULL) in cJSON_InitHooks()
220 /* Reset hooks */ in cJSON_InitHooks()
228 if (hooks->malloc_fn != NULL) in cJSON_InitHooks()
230 global_hooks.allocate = hooks->malloc_fn; in cJSON_InitHooks()
234 if (hooks->free_fn != NULL) in cJSON_InitHooks()
236 global_hooks.deallocate = hooks->free_fn; in cJSON_InitHooks()
248 static cJSON *cJSON_New_Item(const internal_hooks * const hooks) in cJSON_New_Item() argument
[all …]

12345678910>>...56