| /external/pigweed/pw_bluetooth_sapphire/host/common/ |
| D | advertising_data.cc | 7 // https://www.apache.org/licenses/LICENSE-2.0 9 // Unless required by applicable law or agreed to in writing, software 17 #include <cpp-string/utf_codecs.h> 27 #pragma clang diagnostic ignored "-Wswitch-enum" 66 size_t EncodedServiceDataSize(const UUID& uuid, const BufferView data) { in EncodedServiceDataSize() argument 67 return uuid.CompactSize() + data.size(); in EncodedServiceDataSize() 70 // clang-format off 71 // https://www.bluetooth.com/specifications/assigned-numbers/uri-scheme-name-string-mapping 73 "coap:", "coaps:", "crid:", "data:", "dav:", "dict:", "dns:", "file:", "ftp:", "geo:", 81 "xcon-userid:", "xmlrpc.beep:", "xmlrpc.beeps:", "xmpp:", "z39.50r:", "z39.50s:", "acr:", [all …]
|
| /external/libchrome/base/android/java/src/org/chromium/base/ |
| D | FileUtils.java | 2 // Use of this source code is governed by a BSD-style license that can be 8 import android.net.Uri; 39 if (!currentFile.delete()) Log.e(TAG, "Failed to delete: " + currentFile); in recursivelyDeleteFile() 44 * @param files The files to delete. 55 * Extracts an asset from the app's APK to a file. 57 * @param assetName Name of the asset to extract. 58 * @param dest File to extract the asset to. 67 byte[] buffer = new byte[8192]; in extractAsset() 69 while ((c = inputStream.read(buffer)) != -1) { in extractAsset() 70 outputStream.write(buffer, 0, c); in extractAsset() [all …]
|
| /external/cronet/third_party/libxml/src/ |
| D | xmlIO.c | 8 * 14 Nov 2000 ht - for VMS, truncated name of long functions to under 32 char 57 #include <libxml/uri.h> 136 "Inappropriate message buffer length",/* EMSGSIZE */ 154 "Read-only file system", /* EROFS */ 159 "Attempt to load network entity %s", /* XML_IO_NETWORK_ATTEMPT */ 164 "buffer full", 178 * @u8String: uft-8 string 180 * Convert a string from utf-8 to wchar (WINDOWS ONLY!) 190 -1, NULL, 0); in __xmlIOWin32UTF8ToWChar() 195 (CP_UTF8, 0, u8String, -1, wString, wLen) == 0) { in __xmlIOWin32UTF8ToWChar() [all …]
|
| D | testlimits.c | 2 * testlimits.c: C program to run libxml2 regression tests checking various 5 * To compile on Unixes: 6 * cc -o testlimits `xml2-config --cflags` testlimits.c `xml2-config --libs` -lpthread 22 #include <libxml/uri.h> 49 if (((tnow - t0) / CLOCKS_PER_SEC) > MAX_TIME) { in check_time() 66 * and filling between the two an unconventional amount of char data 80 { "Huge comment node", "huge:commentNode", "<foo><!--", "--></foo>" }, 91 * @URI: an URI to test 98 hugeMatch(const char * URI) { in hugeMatch() argument 99 if ((URI != NULL) && (!strncmp(URI, "huge:", 5))) in hugeMatch() [all …]
|
| /external/libcups/cups/ |
| D | http-support.c | 4 * Copyright 2007-2019 by Apple Inc. 5 * Copyright 1997-2007 by Easy Software Products, all rights reserved. 15 #include "cups-private.h" 16 #include "debug-internal.h" 27 # include <avahi-client/client.h> 28 # include <avahi-client/lookup.h> 29 # include <avahi-common/simple-watch.h> 37 typedef struct _http_uribuf_s /* URI buffer */ 42 char *buffer; /* Pointer to buffer */ member 43 size_t bufsize; /* Size of buffer */ [all …]
|
| D | dest.c | 2 * User-defined destination (and option) support for CUPS. 4 * Copyright © 2007-2019 by Apple Inc. 5 * Copyright © 1997-2007 by Easy Software Products. 15 #include "cups-private.h" 16 #include "debug-internal.h" 32 # include <avahi-client/client.h> 33 # include <avahi-client/lookup.h> 34 # include <avahi-common/simple-watch.h> 35 # include <avahi-common/domain.h> 36 # include <avahi-common/error.h> [all …]
|
| D | http.h | 2 * Hyper-Text Transport Protocol definitions for CUPS. 4 * Copyright © 2007-2018 by Apple Inc. 5 * Copyright © 1997-2007 by Easy Software Products, all rights reserved. 26 /* Windows does not support the ssize_t type, so map it to off_t... */ 66 * implementations expose the (more logical) 32-bit address parts 67 * to everyone, while others only expose it to kernel code... To 73 * support IPv6 - the "s6_addr32" define maps to the 32-bit integer 85 * Windows only defines byte and 16-bit word members of the union and 97 # define HTTP_MAX_URI 1024 /* Max length of URI string */ 99 # define HTTP_MAX_BUFFER 2048 /* Max length of data buffer */ [all …]
|
| D | testclient.c | 4 * Copyright © 2017-2019 by Apple Inc. 19 #include <cups/string-private.h> 20 #include <cups/thread-private.h> 36 const char *uri, /* Printer URI */ member 48 /* Current printer-state-reasons */ 52 /* Current job-state-reasons */ 70 static void *monitor_printer(_client_data_t *data); 71 static void *run_client(_client_data_t *data); 78 * 'main()' - Main entry. 81 int /* O - Exit status */ [all …]
|
| D | http.c | 4 * Copyright © 2007-2021 by Apple Inc. 5 * Copyright © 1997-2007 by Easy Software Products, all rights reserved. 18 #include "cups-private.h" 19 #include "debug-internal.h" 52 static void http_debug_hex(const char *prefix, const char *buffer, 55 static ssize_t http_read(http_t *http, char *buffer, size_t length); 56 static ssize_t http_read_buffered(http_t *http, char *buffer, size_t length); 57 static ssize_t http_read_chunk(http_t *http, char *buffer, size_t length); 59 const char *uri); 60 static ssize_t http_write(http_t *http, const char *buffer, [all …]
|
| /external/python/cpython2/Lib/xml/sax/ |
| D | saxutils.py | 2 A library of useful helper classes to the SAX classes, for the 23 def escape(data, entities={}): argument 24 """Escape &, <, and > in a string of data. 26 You can escape other strings of data by passing a dictionary as 32 data = data.replace("&", "&") 33 data = data.replace(">", ">") 34 data = data.replace("<", "<") 36 data = __dict_replace(data, entities) 37 return data 39 def unescape(data, entities={}): argument [all …]
|
| /external/python/mako/mako/ |
| D | runtime.py | 2 # Copyright 2006-2020 the Mako authors and contributors <see AUTHORS file> 5 # the MIT License: http://www.opensource.org/licenses/mit-license.php 21 """Provides runtime namespace, output buffer, and various 29 def __init__(self, buffer, **data): argument 30 self._buffer_stack = [buffer] 32 self._data = data 34 self._kwargs = data.copy() 39 # "capture" function which proxies to the 51 "Reserved words passed to render(): %s" 68 This dictionary only includes the top-level arguments passed to [all …]
|
| /external/cronet/third_party/libxml/src/include/libxml/ |
| D | xmlIO.h | 29 * @filename: the filename or URI 31 * Callback used in the I/O Input API to detect if the current handler 39 * @filename: the filename or URI 41 * Callback used in the I/O Input API to open the resource 49 * @buffer: the buffer to store data read 50 * @len: the length of the buffer in bytes 52 * Callback used in the I/O Input API to read the resource 54 * Returns the number of bytes read or -1 in case of error 56 typedef int (*xmlInputReadCallback) (void * context, char * buffer, int len); 61 * Callback used in the I/O Input API to close the resource [all …]
|
| /external/python/cpython3/Lib/xml/sax/ |
| D | saxutils.py | 2 A library of useful helper classes to the SAX classes, for the 18 def escape(data, entities={}): argument 19 """Escape &, <, and > in a string of data. 21 You can escape other strings of data by passing a dictionary as 27 data = data.replace("&", "&") 28 data = data.replace(">", ">") 29 data = data.replace("<", "<") 31 data = __dict_replace(data, entities) 32 return data 34 def unescape(data, entities={}): argument [all …]
|
| /external/libxml2/include/libxml/ |
| D | xmlIO.h | 29 * @filename: the filename or URI 31 * Callback used in the I/O Input API to detect if the current handler 39 * @filename: the filename or URI 41 * Callback used in the I/O Input API to open the resource 49 * @buffer: the buffer to store data read 50 * @len: the length of the buffer in bytes 52 * Callback used in the I/O Input API to read the resource 54 * Returns the number of bytes read or -1 in case of error 56 typedef int (*xmlInputReadCallback) (void * context, char * buffer, int len); 61 * Callback used in the I/O Input API to close the resource [all …]
|
| /external/libxml2/ |
| D | xmlIO.c | 41 #include <libxml/uri.h> 120 * Convert errno to xmlParserErrors. 298 * @u8String: uft-8 string 300 * Convert a string from utf-8 to wchar (WINDOWS ONLY!) 311 -1, NULL, 0); in __xmlIOWin32UTF8ToWChar() 316 (CP_UTF8, 0, u8String, -1, wString, wLen) == 0) { in __xmlIOWin32UTF8ToWChar() 323 * Convert to backward slash in __xmlIOWin32UTF8ToWChar() 353 * @path: the path to check 414 xmlConvertUriToPath(const char *uri, char **out) { in xmlConvertUriToPath() argument 420 if (!xmlStrncasecmp(BAD_CAST uri, BAD_CAST "file://localhost/", 17)) { in xmlConvertUriToPath() [all …]
|
| /external/federated-compute/fcp/client/http/ |
| D | in_memory_request_response.cc | 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 61 return absl::InternalError("Failed to unpack metadata!"); in TryGetResourceFromCache() 103 static constexpr char kOctetStream[] = "application/octet-stream"; 107 absl::string_view uri, Method method, HeaderList extra_headers, in Create() argument 109 // Allow http://localhost:xxxx as an exception to the https-only policy, in Create() 111 if (!absl::StartsWithIgnoreCase(uri, kHttpsScheme) && in Create() 112 !absl::StartsWithIgnoreCase(uri, kLocalhostUri)) { in Create() 114 absl::StrCat("Non-HTTPS URIs are not supported: ", uri)); in Create() 124 "Content-Length header should not be provided!"); in Create() [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/ |
| D | ByteArrayDataSource.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 20 import android.net.Uri; 30 private final byte[] data; field in ByteArrayDataSource 32 @Nullable private Uri uri; field in ByteArrayDataSource 37 /** @param data The data to be read. */ 38 public ByteArrayDataSource(byte[] data) { in ByteArrayDataSource() argument 40 Assertions.checkNotNull(data); in ByteArrayDataSource() 41 Assertions.checkArgument(data.length > 0); in ByteArrayDataSource() 42 this.data = data; in ByteArrayDataSource() [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/ |
| D | ByteArrayDataSource.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 20 import android.net.Uri; 30 private final byte[] data; field in ByteArrayDataSource 32 @Nullable private Uri uri; field in ByteArrayDataSource 38 * @param data The data to be read. 40 public ByteArrayDataSource(byte[] data) { in ByteArrayDataSource() argument 42 Assertions.checkNotNull(data); in ByteArrayDataSource() 43 Assertions.checkArgument(data.length > 0); in ByteArrayDataSource() 44 this.data = data; in ByteArrayDataSource() [all …]
|
| /external/cronet/base/android/java/src/org/chromium/base/ |
| D | FileUtils.java | 2 // Use of this source code is governed by a BSD-style license that can be 10 import android.net.Uri; 35 public static Function<String, Boolean> DELETE_ALL = filepath -> true; 39 * @param currentFile The file or directory to delete. Does not need to exist. 40 * @param canDelete the {@link Function} function used to check if the file can be deleted. 41 * @return True if the files are deleted, or files reserved by |canDelete|, false if failed to 49 // This file could be a broken symlink, so try to delete. If we don't delete a broken in recursivelyDeleteFile() 69 Log.e(TAG, "Failed to delete: %s", currentFile); in recursivelyDeleteFile() 77 * @param filePaths The file paths or content URIs to delete. 78 * @param canDelete the {@link Function} function used to check if the file can be deleted. [all …]
|
| /external/aws-crt-java/src/main/java/software/amazon/awssdk/crt/http/ |
| D | HttpClientConnectionManagerOptions.java | 3 * SPDX-License-Identifier: Apache-2.0. 7 import java.net.URI; 27 private URI uri; field in HttpClientConnectionManagerOptions 28 private int port = -1; 47 * Sets the client bootstrap instance to use to create the pool's connections 48 * @param clientBootstrap ClientBootstrap to use 57 * Gets the client bootstrap instance to use to create the pool's connections 63 * Sets the socket options to use for connections in the connection pool 64 * @param socketOptions The socket options to use for all connections in the manager 73 * @return the socket options to use for connections in the connection pool [all …]
|
| /external/libcups/backend/ |
| D | usb-libusb.c | 4 * Copyright 2007-2020 by Apple Inc. 15 #include <cups/cups-private.h> 16 #include <cups/ppd-private.h> 28 * the printer after we've finished sending all the data 41 typedef struct usb_printer_s /**** USB Printer Data ****/ 50 protocol, /* Protocol: 1 = Uni-di, 2 = Bi-di. */ 52 reset_after_job;/* Set to 1 by print_device() */ 54 struct libusb_device_handle *handle; /* Open handle to device */ 73 int print_fd; /* File descriptor to print */ 89 * The quirks table used to be compiled into the backend but is now loaded from [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
| D | FakeDataSource.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 21 import android.net.Uri; 38 * instance which determines the response to data access calls. 42 /** Factory to create a {@link FakeDataSource}. */ 71 @Nullable private Uri uri; field in FakeDataSource 103 uri = dataSpec.uri; in open() 107 FakeData fakeData = fakeDataSet.getData(dataSpec.uri.toString()); in open() 109 throw new IOException("Data not found: " + dataSpec.uri); in open() 119 throw new IOException("Data is empty: " + dataSpec.uri); in open() [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
| D | FakeDataSource.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 21 import android.net.Uri; 38 * instance which determines the response to data access calls. 42 /** Factory to create a {@link FakeDataSource}. */ 71 @Nullable private Uri uri; field in FakeDataSource 103 uri = dataSpec.uri; in open() 107 FakeData fakeData = fakeDataSet.getData(dataSpec.uri.toString()); in open() 109 throw new IOException("Data not found: " + dataSpec.uri); in open() 119 throw new IOException("Data is empty: " + dataSpec.uri); in open() [all …]
|
| /external/libevent/include/event2/ |
| D | http.h | 2 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> 3 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 13 * 3. The name of the author may not be used to endorse or promote products 17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 50 * need to write HTTP code. The following prototypes and definitions provide 58 #define HTTP_MOVEPERM 301 /**< the uri moved permanently */ 59 #define HTTP_MOVETEMP 302 /**< the uri moved temporarily */ 62 #define HTTP_NOTFOUND 404 /**< could not find content for uri */ [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/test/java/com/google/android/exoplayer2/testutil/ |
| D | FakeDataSourceTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 21 import android.net.Uri; 36 private static final byte[] BUFFER = new byte[500]; field in FakeDataSourceTest 41 private static Uri uri; field in FakeDataSourceTest 46 uri = Uri.parse(URI_STRING); in setUp() 49 .newData(uri.toString()) in setUp() 58 assertThat(dataSource.open(new DataSpec(uri))).isEqualTo(15); in testReadFull() 59 assertThat(dataSource.read(BUFFER, 0, BUFFER.length)).isEqualTo(10); in testReadFull() 61 assertThat(dataSource.read(BUFFER, 10, BUFFER.length)).isEqualTo(5); in testReadFull() [all …]
|