/aosp_15_r20/tools/repohooks/rh/ |
H A D | hooks_unittest.py | 16 """Unittests for the hooks module.""" 33 import rh.hooks 71 """Verify builtin hooks are documented.""" 72 data = self._grab_section('[Builtin Hooks]') 73 for hook in rh.hooks.BUILTIN_HOOKS: 80 for tool in rh.hooks.TOOL_PATHS: 87 for var in rh.hooks.Placeholders.vars(): 101 self.replacer = rh.hooks.Placeholders( 207 @mock.patch.object(rh.hooks, '_get_build_os_name', return_value='vapier os') 218 scope = rh.hooks.ExclusionScope([]) [all …]
|
H A D | config.py | 30 import rh.hooks 80 """A single (abstract) config used for `repo upload` hooks.""" 83 BUILTIN_HOOKS_SECTION = 'Builtin Hooks' 84 BUILTIN_HOOKS_OPTIONS_SECTION = 'Builtin Hooks Options' 85 BUILTIN_HOOKS_EXCLUDE_SECTION = 'Builtin Hooks Exclude Paths' 115 """List of custom hooks to run (their keys/names).""" 125 """List of all enabled builtin hooks (their keys/names).""" 146 scope = rh.hooks.ExclusionScope([]) 148 options = rh.hooks.HookOptions(hook, 151 func = functools.partial(rh.hooks.check_custom, options=options) [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/intrusive/test/ |
D | itestvalue.hpp | 33 template<class Hooks> 36 , Hooks::base_hook_type 37 , Hooks::auto_base_hook_type 39 typename Hooks::member_hook_type node_; 40 typename Hooks::auto_member_hook_type auto_node_; 41 typename Hooks::nonhook_node_member_type nhn_member_; 60 Hooks::base_hook_type::operator=(static_cast<const typename Hooks::base_hook_type&>(src)); in operator =() 61 …Hooks::auto_base_hook_type::operator=(static_cast<const typename Hooks::auto_base_hook_type&>(src)… in operator =() 71 Hooks::base_hook_type::swap_nodes(static_cast<typename Hooks::base_hook_type&>(other)); in swap_nodes() 72 … Hooks::auto_base_hook_type::swap_nodes(static_cast<typename Hooks::auto_base_hook_type&>(other)); in swap_nodes() [all …]
|
/aosp_15_r20/external/python/cpython2/Lib/ |
D | ihooks.py | 15 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 …]
|
/aosp_15_r20/external/pytorch/docs/source/ |
H A D | torch.compiler_nn_module.rst | 11 NNModule Hooks Support 13 Previously, `torch.compile` had no support for hooks on nn.Modules, and if hooks were registered 15 use nn.Module hooks at all, or only use them for debug workflows, but there are valid use cases 16 for composing nn.Module hooks with `torch.compile`. 18 Hooks that are orchestrated via nn.Module.__call__ implementation include `_forward_pre_hooks`, 19 …ward_hooks`, `_backward_pre_hooks`, and `_backward_hooks`, and will be referred to as 'call hooks'. 20 These hooks are partially supported by `torch.compile` with limitations described below. 22 Another category of hooks includes `_state_dict_hooks` and its `pre` and `load_` variants, and are … 25 `nn.Module.__call__` Hooks Usage and limitations 28 and run forward/pre-forward hooks. If you install hooks before calling `torch.compile` and then do… [all …]
|
/aosp_15_r20/external/freetype/src/svg/ |
H A D | ftsvg.c | 65 render->hooks.free_svg( &render->state ); in ft_svg_done() 77 SVG_RendererHooks hooks = svg_renderer->hooks; in ft_svg_preset_slot() local 82 FT_TRACE1(( "Hooks are NOT set. Can't render OT-SVG glyphs\n" )); in ft_svg_preset_slot() 90 hooks.init_svg( &svg_renderer->state ); in ft_svg_preset_slot() 95 return hooks.preset_slot( slot, cache, &svg_renderer->state ); in ft_svg_preset_slot() 113 SVG_RendererHooks hooks = svg_renderer->hooks; in ft_svg_render() local 124 FT_TRACE1(( "Hooks are NOT set. Can't render OT-SVG glyphs\n" )); in ft_svg_render() 131 error = hooks.init_svg( &svg_renderer->state ); in ft_svg_render() 144 error = hooks.render_svg( slot, &svg_renderer->state ); in ft_svg_render() 170 if ( !ft_strcmp( property_name, "svg-hooks" ) ) in ft_svg_property_set() [all …]
|
/aosp_15_r20/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
H A D | NativeCryptoTest.java | 636 public static class Hooks { class in NativeCryptoTest 703 private final Hooks hooks; field in NativeCryptoTest.TestSSLHandshakeCallbacks 706 TestSSLHandshakeCallbacks(Socket socket, long sslNativePointer, Hooks hooks, in TestSSLHandshakeCallbacks() argument 710 this.hooks = hooks; in TestSSLHandshakeCallbacks() 754 if (hooks != null) { in clientCertificateRequested() 755 hooks.clientCertificateRequested(sslNativePointer); in clientCertificateRequested() 866 static class ClientHooks extends Hooks { 894 static class ServerHooks extends Hooks { 958 final int timeout, final boolean client, final Hooks hooks, final byte[] alpnProtocols, in handshake() argument 977 long c = hooks.getContext(); in handshake() [all …]
|
/aosp_15_r20/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
H A D | NativeCryptoTest.java | 618 public static class Hooks { class in NativeCryptoTest 685 private final Hooks hooks; field in NativeCryptoTest.TestSSLHandshakeCallbacks 688 …TestSSLHandshakeCallbacks(Socket socket, long sslNativePointer, Hooks hooks, ApplicationProtocolSe… in TestSSLHandshakeCallbacks() argument 691 this.hooks = hooks; in TestSSLHandshakeCallbacks() 735 if (hooks != null) { in clientCertificateRequested() 736 hooks.clientCertificateRequested(sslNativePointer); in clientCertificateRequested() 847 static class ClientHooks extends Hooks { 875 static class ServerHooks extends Hooks { 939 final int timeout, final boolean client, final Hooks hooks, final byte[] alpnProtocols, in handshake() argument 958 long c = hooks.getContext(); in handshake() [all …]
|
/aosp_15_r20/tools/repohooks/ |
H A D | pre-upload.py | 49 import rh.hooks 79 self.hooks = None 98 def commit_start(self, hooks, commit, commit_summary): argument 102 hooks: All the hooks to be run for this commit. 114 # Initialize the pending hooks line too. 115 self.hooks = set(hooks) 116 self.num_hooks = len(hooks) 120 """Display the banner for current set of hooks.""" 121 pending = ', '.join(x.name for x in self.hooks) 124 f'{self.num_hooks - len(self.hooks)}/{self.num_hooks}] ' [all …]
|
H A D | README.md | 1 # AOSP Preupload Hooks 3 This repo holds hooks that get run by repo during the upload phase. They 6 Note: Currently all hooks are disabled by default. Each repo must explicitly 35 The merging of these config files control the hooks/checks that get run when 67 [Builtin Hooks] 70 [Builtin Hooks Options] 79 Hooks are executed in the top directory of the git repository. All paths should 148 * `ignore_merged_commits`: If set to `true`, the hooks will not run on commits 149 that are merged. Hooks will still run on the merge commit itself. 153 This section allows for completely arbitrary hooks to run on a per-repo basis. [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/python/training/ |
H A D | monitored_session.py | 16 """A wrapper of Session API which runs hooks.""" 319 hooks=None, argument 332 if hooks: 333 all_hooks.extend(hooks) 423 hooks=all_hooks, 433 hooks=None, argument 448 creates hooks related to checkpoint and summary saving. For workers, this 459 on replacing `Session.run` calls. In Keras, session hooks can be replaced by 475 hooks: Optional list of `SessionRunHook` objects. 476 chief_only_hooks: list of `SessionRunHook` objects. Activate these hooks if [all …]
|
/aosp_15_r20/external/pytorch/torch/_dynamo/ |
H A D | convert_frame.py | 86 from .hooks import Hooks 438 hooks: Hooks, argument 535 hooks, 557 from torch.utils.hooks import RemovableHandle 568 """Register hooks for bytecode generated by Dynamo. The hook can do some 586 hooks: Hooks, argument 661 hooks: Hooks, argument 666 return _compile_inner(code, one_graph, hooks, transform) 673 hooks: Hooks, argument 798 hooks.guard_fail_fn if hooks else None, [all …]
|
/aosp_15_r20/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/ |
H A D | TestSSLEnginePair.java | 49 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 …]
|
/aosp_15_r20/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/ |
H A D | TestSSLEnginePair.java | 51 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 …]
|
/aosp_15_r20/external/pytorch/docs/source/notes/ |
H A D | autograd.rst | 87 You can control how PyTorch does packing / unpacking with :ref:`saved-tensors-hooks-doc`. 403 No thread safety on C++ hooks 406 Autograd relies on the user to write thread safe C++ hooks. If you want the hook 408 proper thread locking code to ensure the hooks are thread safe. 697 .. _saved-tensors-hooks-doc: 699 Hooks for saved tensors 704 hooks. The ``pack_hook`` function should take a tensor as its single argument 752 Registering hooks for a saved tensor 755 You can register a pair of hooks on a saved tensor by calling the 779 Registering default hooks for saved tensors [all …]
|
/aosp_15_r20/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | TestSSLEnginePair.java | 50 public static TestSSLEnginePair create(Hooks hooks) throws IOException { in create() argument 51 return create(TestSSLContext.create(), hooks); in create() 54 public static TestSSLEnginePair create(TestSSLContext c, Hooks hooks) throws IOException { in create() argument 55 return create(c, hooks, null); in create() 58 public static TestSSLEnginePair create(TestSSLContext c, Hooks hooks, boolean[] finished) in create() argument 60 SSLEngine[] engines = connect(c, hooks, finished); in create() 64 public static SSLEngine[] connect(TestSSLContext c, Hooks hooks) throws IOException { in connect() argument 65 return connect(c, hooks, null); in connect() 76 Hooks hooks, in connect() argument 78 if (hooks == null) { in connect() [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/site-packages/pip/_vendor/requests/ |
D | hooks.py | 2 requests.hooks 5 This module provides the capabilities for the Requests hooks system. 7 Available hooks: 12 HOOKS = ["response"] variable 16 return {event: [] for event in HOOKS} 22 def dispatch_hook(key, hooks, hook_data, **kwargs): argument 24 hooks = hooks or {} 25 hooks = hooks.get(key) 26 if hooks: 27 if hasattr(hooks, "__call__"): [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/site-packages/pip/_vendor/requests/ |
D | hooks.py | 2 requests.hooks 5 This module provides the capabilities for the Requests hooks system. 7 Available hooks: 12 HOOKS = ["response"] variable 16 return {event: [] for event in HOOKS} 22 def dispatch_hook(key, hooks, hook_data, **kwargs): argument 24 hooks = hooks or {} 25 hooks = hooks.get(key) 26 if hooks: 27 if hasattr(hooks, "__call__"): [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/site-packages/pip/_vendor/requests/ |
D | hooks.py | 2 requests.hooks 5 This module provides the capabilities for the Requests hooks system. 7 Available hooks: 12 HOOKS = ["response"] variable 16 return {event: [] for event in HOOKS} 22 def dispatch_hook(key, hooks, hook_data, **kwargs): argument 24 hooks = hooks or {} 25 hooks = hooks.get(key) 26 if hooks: 27 if hasattr(hooks, "__call__"): [all …]
|
D | models.py | 53 from .hooks import default_hooks 210 if event not in self.hooks: 214 self.hooks[event].append(hook) 216 self.hooks[event].extend(h for h in hook if isinstance(h, Callable)) 224 self.hooks[event].remove(hook) 248 :param hooks: dictionary of callback hooks, for internal usage. 268 hooks=None, argument 277 hooks = {} if hooks is None else hooks 279 self.hooks = default_hooks() 280 for (k, v) in list(hooks.items()): [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/site-packages/pip/_vendor/requests/ |
D | hooks.py | 2 requests.hooks 5 This module provides the capabilities for the Requests hooks system. 7 Available hooks: 12 HOOKS = ["response"] variable 16 return {event: [] for event in HOOKS} 22 def dispatch_hook(key, hooks, hook_data, **kwargs): argument 24 hooks = hooks or {} 25 hooks = hooks.get(key) 26 if hooks: 27 if hasattr(hooks, "__call__"): [all …]
|
/aosp_15_r20/external/jemalloc_new/test/include/test/ |
H A D | extent_hooks.h | 2 * 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 …]
|
/aosp_15_r20/external/jazzer-api/src/main/java/com/code_intelligence/jazzer/instrumentor/ |
H A D | Hooks.kt | 27 data class Hooks( in <lambda>() dataClass 28 val hooks: List<Hook>, in <lambda>() constant in com.code_intelligence.jazzer.instrumentor.Hooks 51 …n loadHooks(excludeHookClassNames: List<String>, vararg hookClassNames: Set<String>): List<Hooks> { in <lambda>() 67 fun load(hookClassNames: Set<String>): Hooks { in <lambda>() 69 val hooks = hooksWithHookClasses.map { it.first } in <lambda>() constant 72 hooks.flatMap(Hook::additionalClassesToHook), in <lambda>() 75 return Hooks(hooks, hookClasses, additionalHookClassNameGlobber) in <lambda>() 80 // We let the static initializers of hook classes execute so that hooks can run in <lambda>() 86 Log.info("Loaded ${it.size} hooks from $hookClassName") in <lambda>() 91 Log.warn("Failed to load hooks from $hookClassName", e) in <lambda>() [all …]
|
/aosp_15_r20/external/pytorch/torch/nn/modules/ |
H A D | module.py | 30 from torch.utils.hooks import BackwardHook, RemovableHandle 75 r"""This tracks hooks common to all modules that are executed immediately before 120 r"""This tracks hooks common to all modules that are executed before/after 150 :class:`torch.utils.hooks.RemovableHandle`: 176 :class:`torch.utils.hooks.RemovableHandle`: 202 :class:`torch.utils.hooks.RemovableHandle`: 225 Keyword arguments won't be passed to the hooks and only to the ``forward``. 230 This hook has precedence over the specific module hooks registered with 234 :class:`torch.utils.hooks.RemovableHandle`: 261 Keyword arguments won't be passed to the hooks and only to the ``forward``. [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/intrusive/doc/ |
D | intrusive.qbk | 266 more flexible hooks for advanced users, as explained in the chapter 267 [link intrusive.function_hooks Using function hooks], but usually base or member 268 hooks are good enough for most users. 270 [section:usage_base_hook Using base hooks] 286 If you specify two base hooks, you [*must] specify a different 294 [link intrusive.safe_hook Safe hooks] and [link intrusive.auto_unlink_hooks Auto-unlink hooks]. 329 have several hooks in the same `T` type). `member_hook` will be explained 401 [section:usage_member_hook Using member hooks] 403 Sometimes an 'is-a' relationship between list hooks and the list value types 428 When member hooks are used, the `member_hook` option is used to configure the [all …]
|