Home
last modified time | relevance | path

Searched +full:adopt +full:- +full:info (Results 1 – 25 of 331) sorted by relevance

12345678910>>...14

/aosp_15_r20/external/libwebsockets/include/libwebsockets/
H A Dlws-adopt.h2 * libwebsockets - small server side websockets and web server implementation
4 * Copyright (C) 2010 - 2019 Andy Green <[email protected]>
25 /** \defgroup sock-adopt Socket adoption helpers
36 * lws_adopt_socket() - adopt foreign socket as if listen socket accepted it
40 * \param accept_fd: fd of already-accepted socket to adopt
51 * lws_adopt_socket_vhost() - adopt foreign socket as if listen socket accepted
55 * \param accept_fd: fd of already-accepted socket to adopt
100 #define sa46_socklen(_sa46) (socklen_t)((_sa46)->sa4.sin_family == AF_INET ? \
103 #define sa46_sockport(_sa46, _sp) { if ((_sa46)->sa4.sin_family == AF_INET) \
104 (_sa46)->sa4.sin_port = (_sp); else \
[all …]
/aosp_15_r20/external/libwebsockets/minimal-examples/raw/minimal-raw-adopt-tcp/
H A DREADME.md1 # lws minimal ws server raw adopt tcp
5 want lws to "adopt" the socket.
8 can just use lws_client_connect_via_info() with info.method = "RAW".
9 http-client/minimal-http-client shows how to do that, just set
10 info.method to "RAW".)
12 This example demonstrates how to adopt a foreign, connected socket into lws
16 has lws adopt it as a raw wsi. The lws protocol writes "GET / HTTP/1.1"
31 $ ./lws-minimal-raw-adopt-tcp
32 [2018/03/23 09:03:57:1960] USER: LWS minimal raw adopt tcp
41 …23 09:03:57:7842] NOTICE: 0020: 77 73 77 73 0D 0A 53 74 72 69 63 74 2D 54 72 61 wsws..Strict-Tra
[all …]
H A Dminimal-raw-adopt-tcp.c2 * lws-minimal-raw-adopt-tcp
4 * Written in 2010-2019 by Andy Green <[email protected]>
17 * can just use lws_client_connect_via_info() with info.method = "RAW".
79 { "raw-test", callback_raw_test, 0, 0, 0, NULL, 0 },
92 struct lws_context_creation_info info; in main() local
101 * -DCMAKE_BUILD_TYPE=DEBUG instead of =RELEASE */ in main()
108 if ((p = lws_cmdline_option(argc, argv, "-d"))) in main()
112 lwsl_user("LWS minimal raw adopt tcp\n"); in main()
114 memset(&info, 0, sizeof info); /* otherwise uninitialized garbage */ in main()
115 info.options = LWS_SERVER_OPTION_EXPLICIT_VHOSTS; in main()
[all …]
/aosp_15_r20/external/libwebsockets/lib/core-net/
H A Dadopt.c2 * libwebsockets - small server side websockets and web server implementation
4 * Copyright (C) 2010 - 2019 Andy Green <[email protected]>
25 #include "private-lib-core.h"
31 int n = 0, hit = -1; in lws_get_idlest_tsi()
33 for (; n < context->count_threads; n++) { in lws_get_idlest_tsi()
34 lwsl_cx_debug(context, "%d %d\n", context->pt[n].fds_count, in lws_get_idlest_tsi()
35 context->fd_limit_per_thread - 1); in lws_get_idlest_tsi()
36 if ((unsigned int)context->pt[n].fds_count != in lws_get_idlest_tsi()
37 context->fd_limit_per_thread - 1 && in lws_get_idlest_tsi()
38 (unsigned int)context->pt[n].fds_count < lowest) { in lws_get_idlest_tsi()
[all …]
/aosp_15_r20/external/libwebsockets/minimal-examples/raw/minimal-raw-adopt-udp/
H A Dminimal-raw-adopt-udp.c2 * lws-minimal-raw-adopt-udp
4 * Written in 2010-2019 by Andy Green <[email protected]>
15 * to create, bind, and adopt them inside lws.
130 { "raw-test", callback_raw_test, 0, 0, 0, NULL, 0 },
143 struct lws_context_creation_info info; in main() local
150 * -DCMAKE_BUILD_TYPE=DEBUG instead of =RELEASE */ in main()
157 if ((p = lws_cmdline_option(argc, argv, "-d"))) in main()
161 lwsl_user("LWS minimal raw adopt udp | nc -u 127.0.0.1 7681\n"); in main()
163 memset(&info, 0, sizeof info); /* otherwise uninitialized garbage */ in main()
164 info.options = LWS_SERVER_OPTION_EXPLICIT_VHOSTS; in main()
[all …]
/aosp_15_r20/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
H A DUtils.java8 * http://www.apache.org/licenses/LICENSE-2.0
104 cmd.append("--user ").append(user.id()).append(" "); in installPackageForUser()
107 cmd.append("-i ").append(installerPackageName).append(" "); in installPackageForUser()
118 final StringBuilder cmd = new StringBuilder("pm install-existing "); in installExistPackageForUser()
121 cmd.append("--user ").append(user.id()).append(" "); in installExistPackageForUser()
142 cmd.append("--user ").append(user.id()).append(" "); in uninstallPackageForUser()
159 final StringBuilder cmd = new StringBuilder("am force-stop "); in forceStopPackageForUser()
162 cmd.append("--user ").append(user.id()).append(" "); in forceStopPackageForUser()
175 cmd.append("--user ").append(user.id()).append(" "); in clearAppDataForUser()
202 cmd.append("--user ").append(user.id()).append(" "); in suspendPackagesForUser()
[all …]
/aosp_15_r20/external/robolectric/.github/workflows/
H A Dtests.yml5 branches: [ master, 'robolectric-*.x', 'google' ]
6 paths-ignore:
7 - '**.md'
11 paths-ignore:
12 - '**.md'
15 group: ${{ github.workflow }}-${{ github.ref }}
16 cancel-in-progress: true
22 cache-version: v1
26 runs-on: ubuntu-22.04
29 - uses: actions/checkout@v4
[all …]
H A Dcopybara_build_and_test.yml8 group: ${{ github.workflow }}-${{ github.ref }}
9 cancel-in-progress: true
15 copybara-tests:
16 runs-on: ubuntu-22.04
19 - uses: actions/checkout@v4
21 - name: Set up JDK 17
22 uses: actions/setup-java@v4
24 distribution: 'adopt'
25 java-version: 17
27 - uses: gradle/actions/setup-gradle@v4
[all …]
H A Dgraphics_tests.yml5 branches: [ master, 'robolectric-*.x' ]
6 paths-ignore:
7 - '**.md'
10 … # Do not add `paths-ignore` here, this is required to be run on every PR for the `google` branch.
14 group: ${{ github.workflow }}-${{ github.ref }}
15 cancel-in-progress: true
23 fail-fast: false
26 macos-13, # Tests Mac x86_64
27 macos-14, # Tests Mac arm64
28 ubuntu-22.04, # Tests Linux x86_64
[all …]
/aosp_15_r20/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
H A DAdoptableHostTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
67 mListVolumesInitialState = getDevice().executeShellCommand("sm list-volumes"); in setUp()
75 getDevice().executeShellCommand("sm set-virtual-disk true"); in setUp()
83 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in setUp()
97 getDevice().executeShellCommand("sm set-virtual-disk false"); in tearDown()
105 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in tearDown()
118 result = getDevice().executeShellCommand("sm list-volumes"); in tearDown()
147 result = getDevice().executeShellCommand("sm list-volumes"); in waitForVolumeReady()
170 // Adopt that disk! in testApps()
176 "pm move-package " + PKG + " " + vol.uuid)); in testApps()
[all …]
/aosp_15_r20/external/skia/include/gpu/ganesh/d3d/
H A DGrD3DTypes.h5 * Use of this source code is governed by a BSD-style license that can be
31 /** Check if the argument is non-null, and if so, call obj->AddRef() and return obj.
35 obj->AddRef(); in GrSafeComAddRef()
40 /** Check if the argument is non-null, and if so, call obj->Release()
44 obj->Release(); in GrSafeComRelease()
69 * Adopt the bare object into the newly created gr_cp.
91 this->reset(GrSafeComAddRef(that.get()));
102 this->reset(that.release());
106 explicit operator bool() const { return this->get() != nullptr; }
109 T* operator->() const { return fObject; }
[all …]
/aosp_15_r20/external/clang/lib/AST/
H A DNestedNameSpecifier.cpp1 //===--- NestedNameSpecifier.cpp - C++ nested name specifiers -----*- C++ -*-=//
8 //===----------------------------------------------------------------------===//
11 // a C++ nested-name-specifier.
13 //===----------------------------------------------------------------------===//
49 assert((!Prefix || Prefix->isDependent()) && "Prefix must be dependent"); in Create()
64 (Prefix->getAsType() == nullptr && in Create()
65 Prefix->getAsIdentifier() == nullptr)) && in Create()
80 (Prefix->getAsType() == nullptr && in Create()
81 Prefix->getAsIdentifier() == nullptr)) && in Create()
183 return getAsType()->getAsCXXRecordDecl(); in getAsRecordDecl()
[all …]
/aosp_15_r20/external/v4l2_codec2/components/
H A DEncodeInterface.cpp2 // Use of this source code is governed by a BSD-style license that can be
51 C2P<C2StreamProfileLevelInfo::output>& info, in H264ProfileLevelSetter() argument
55 // Adopt default minimal profile instead if the requested profile is not supported, or lower in H264ProfileLevelSetter()
58 if (!info.F(info.v.profile).supportsAtAll(info.v.profile) || info.v.profile < minProfile) { in H264ProfileLevelSetter()
59 if (info.F(info.v.profile).supportsAtAll(minProfile)) { in H264ProfileLevelSetter()
61 info.set().profile = minProfile; in H264ProfileLevelSetter()
64 info.v.profile, minProfile); in H264ProfileLevelSetter()
65 return C2R(C2SettingResultBuilder::BadValue(info.F(info.v.profile))); in H264ProfileLevelSetter()
75 if (lowestConfigLevel != C2Config::LEVEL_UNUSED && lowestConfigLevel < info.v.level) { in H264ProfileLevelSetter()
76 info.set().level = lowestConfigLevel; in H264ProfileLevelSetter()
[all …]
/aosp_15_r20/frameworks/base/core/java/android/app/
H A DUiAutomation.java8 * http://www.apache.org/licenses/LICENSE-2.0
106 * The APIs exposed by this class are low-level to maximize flexibility when
108 * client should be using a higher-level library or implement high-level functions.
127 private static final int CONNECTION_ID_UNDEFINED = -1;
132 public static final int ROTATION_UNFREEZE = -2;
135 public static final int ROTATION_FREEZE_CURRENT = -1;
277 * operations on the provided connection, and filtering display-related features to the display
404 final long elapsedTimeMillis = SystemClock.uptimeMillis() - startTimeMillis; in connectWithTimeout()
405 final long remainingTimeMillis = timeoutMillis - elapsedTimeMillis; in connectWithTimeout()
575 * Adopt the permission identity of the shell UID for all permissions. This allows
[all …]
/aosp_15_r20/external/flatbuffers/.github/workflows/
H A Dbuild.yml2 permissions: read-all
9 - "*" # new tag version, like `0.8.4` or else
11 - master
14 - master
17 build-linux:
21 digests-gcc: ${{ steps.hash-gcc.outputs.hashes }}
22 digests-clang: ${{ steps.hash-clang.outputs.hashes }}
24 runs-on: ubuntu-latest
27 cxx: [g++-10, clang++-12]
28 fail-fast: false
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/tokio-util/src/sync/cancellation_token/
Dtree_node.rs26 //! - being created with `child_node()`, in which case it is trivially true that
28 //! - being moved A->C->B to A->B because node C was removed in `decrease_handle_refcount()`
51 pub(crate) fn new() -> Self { in new()
64 pub(crate) fn notified(&self) -> tokio::sync::futures::Notified<'_> { in notified()
82 pub(crate) fn is_cancelled(node: &Arc<TreeNode>) -> bool { in is_cancelled()
87 pub(crate) fn child_node(parent: &Arc<TreeNode>) -> Arc<TreeNode> { in child_node()
137 /// For more info look at *deadlock safety* and *invariant #2*.
150 fn with_locked_node_and_parent<F, Ret>(node: &Arc<TreeNode>, func: F) -> Ret in with_locked_node_and_parent()
152 F: FnOnce(MutexGuard<'_, Inner>, Option<MutexGuard<'_, Inner>>) -> Ret, in with_locked_node_and_parent()
181 // https://github.com/tokio-rs/tokio/pull/6273#discussion_r1443752911 in with_locked_node_and_parent()
[all …]
/aosp_15_r20/external/libwebsockets/minimal-examples/raw/minimal-raw-file/
H A Dminimal-raw-file.c2 * lws-minimal-raw-file
4 * Written in 2010-2019 by Andy Green <[email protected]>
41 vhd->filefd = lws_open(filepath, O_RDWR); in callback_raw_test()
42 if (vhd->filefd == -1) { in callback_raw_test()
47 u.filefd = (lws_filefd_type)(long long)vhd->filefd; in callback_raw_test()
50 "raw-test", NULL)) { in callback_raw_test()
51 lwsl_err("Failed to adopt fifo descriptor\n"); in callback_raw_test()
52 close(vhd->filefd); in callback_raw_test()
53 vhd->filefd = -1; in callback_raw_test()
60 if (vhd && vhd->filefd != -1) in callback_raw_test()
[all …]
/aosp_15_r20/external/libwebsockets/minimal-examples/raw/minimal-raw-audio/
H A Daudio.c2 * lws-minimal-raw-audio
4 * Written in 2010-2019 by Andy Green <[email protected]>
51 return -1; in set_hw_params()
56 return -1; in set_hw_params()
61 "lws-audio-test", NULL); in set_hw_params()
63 lwsl_err("%s: Failed to adopt playback desc\n", __func__); in set_hw_params()
101 return -1; in set_hw_params()
117 if (set_hw_params(lws_get_vhost(wsi), &vhd->pcm_playback, in callback_raw_test()
122 return -1; in callback_raw_test()
125 if (set_hw_params(lws_get_vhost(wsi), &vhd->pcm_capture, in callback_raw_test()
[all …]
/aosp_15_r20/external/autotest/site_utils/
H A Dlxc_cleanup.py3 # Use of this source code is governed by a BSD-style license that can be
37 FINISHED_JOB_CUTOFF_TIME = datetime.datetime.now() - datetime.timedelta(hours=1)
100 logging.info('dryrun: Cleanup container %s', container.name)
109 logging.info('Stopping process %s...', pid)
113 logging.info('Destroying container %s...', container.name)
128 parser.add_argument('-v', '--verbose', action='store_true',
131 parser.add_argument('-x', '--execute', action='store_true',
136 # TODO(dshi): Consider to adopt the scheduler log model:
139 parser.add_argument('-l', '--logfile', type=str,
154 level=logging.DEBUG if options.verbose else logging.INFO)
[all …]
/aosp_15_r20/external/libevent/cmake/
H A DCodeCoverage.cmake2 # Boost Software License - Version 1.0 - August 17th, 2003
8 # Software, and to permit third-parties to whom the Software is furnished to
15 # works are solely in the form of machine-executable object code generated by
20 # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
26 # 2012-01-31, Lars Bilke
27 # - Enable Code Coverage
29 # 2013-09-17, Joakim Söderberg
30 # - Added support for Clang.
31 # - Some additional usage instructions.
33 # 2016-11-02, Azat Khuzhin
[all …]
/aosp_15_r20/cts/tests/app/src/android/app/cts/
H A DStatusBarManagerTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
80 // Adopt again since tests could've dropped it in tearDown()
110 private void assertDefaultFlagsArePresent(DisableInfo info) { in assertDefaultFlagsArePresent() argument
111 assertTrue(info.isNotificationPeekingDisabled()); in assertDefaultFlagsArePresent()
112 assertTrue(info.isNavigateToHomeDisabled()); in assertDefaultFlagsArePresent()
113 assertTrue(info.isStatusBarExpansionDisabled()); in assertDefaultFlagsArePresent()
114 assertTrue(info.isRecentsDisabled()); in assertDefaultFlagsArePresent()
115 assertTrue(info.isSearchDisabled()); in assertDefaultFlagsArePresent()
116 assertFalse(info.isRotationSuggestionDisabled()); in assertDefaultFlagsArePresent()
125 // First disable, then re-enable in testDisableForSetup_setDisabledFalse()
[all …]
/aosp_15_r20/external/pytorch/torch/ao/nn/quantized/dynamic/modules/
H A Drnn.py1 # mypy: allow-untyped-decorators
2 # mypy: allow-untyped-defs
29 def _apply_permutation(tensor: Tensor, permutation: Tensor, dim: int = 1) -> Tensor:
37 def apply_permutation(tensor: Tensor, permutation: Tensor, dim: int = 1) -> Tensor:
138 "recurrent layer, so non-zero dropout expects "
213 # You should still override `extra_repr` to add more info.
230 # simple one-liner info, which most builtin Modules will use
239 def check_input(self, input: Tensor, batch_sizes: Optional[Tensor]) -> None:
245 if self.input_size != input.size(-1):
247 … f"input.size(-1) must be equal to input_size. Expected {self.input_size}, got {input.size(-1)}"
[all …]
/aosp_15_r20/external/libwebsockets/minimal-examples/raw/minimal-raw-netcat/
H A Dminimal-raw-netcat.c2 * lws-minimal-raw-netcat
4 * Written in 2010-2019 by Andy Green <[email protected]>
71 return -1; in callback_raw_test()
100 while (len--) in callback_raw_test()
113 return -1; in callback_raw_test()
121 return -1; in callback_raw_test()
131 { "raw-test", callback_raw_test, 0, 0, 0, NULL, 0 },
143 struct lws_context_creation_info info; in main() local
152 if ((p = lws_cmdline_option(argc, argv, "-d"))) in main()
156 lwsl_user("LWS minimal raw netcat [--server ip] [--port port] [-w ms]\n"); in main()
[all …]
/aosp_15_r20/external/libwebsockets/minimal-examples/raw/minimal-raw-serial/
H A Dminimal-raw-file.c2 * lws-minimal-raw-file
4 * Written in 2010-2019 by Andy Green <[email protected]>
40 lws_callback_on_writable(v->wsi); in sul_cb()
42 lws_sul_schedule(lws_get_context(v->wsi), 0, &v->sul, sul_cb, in sul_cb()
64 vhd->filefd = lws_open(filepath, O_RDWR); in callback_raw_test()
65 if (vhd->filefd == -1) { in callback_raw_test()
71 tcflush(vhd->filefd, TCIOFLUSH); in callback_raw_test()
74 if (ioctl(vhd->filefd, TIOCGSERIAL, &s_s) == 0) { in callback_raw_test()
76 ioctl(vhd->filefd, TIOCSSERIAL, &s_s); in callback_raw_test()
83 if (tcgetattr(vhd->filefd, &tio)) { in callback_raw_test()
[all …]
/aosp_15_r20/external/pigweed/pw_rpc/public/pw_rpc/
H A Dserver.h7 // https://www.apache.org/licenses/LICENSE-2.0
93 // OK - The packet was processed by the server.
94 // DATA_LOSS - Failed to decode the packet.
95 // INVALID_ARGUMENT - The packet is intended for a client, not a server.
96 // UNAVAILABLE - No RPC channel with the requested ID was found.
133 // use a special call ID and will adopt the call ID from the first packet for
149 using Info = internal::MethodInfo<kMethod>; in OpenCall() local
152 Info::kType == kExpected, in OpenCall()
156 Info::kType == kExpected, in OpenCall()
160 Info::kType == kExpected, in OpenCall()
[all …]

12345678910>>...14