/tools/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/ |
D | FileFormatTest.kt | 64 header: String, in headerAndSpecifierTest() 68 assertEquals(header.trimIndent(), format.header(), message = "header does not match format") in headerAndSpecifierTest() 71 val reader = LineNumberReader(StringReader(header.trimIndent())) in headerAndSpecifierTest() 92 fun `Check format parsing, blank line between header and package`() { in Check format parsing, blank line between header and package() 105 fun `Check format parsing, comment after header and package`() { in Check format parsing, comment after header and package() 281 fun `Check header and specifier (v3 + kotlin-style-nulls=no,migrating=test)`() { in Check header and specifier (v3 + kotlin-style-nulls=no,migrating=test)() 283 header = in Check header and specifier (v3 + kotlin-style-nulls=no,migrating=test)() 296 fun `Check header and specifier (v2 + kotlin-style-nulls=yes,migrating=test)`() { in Check header and specifier (v2 + kotlin-style-nulls=yes,migrating=test)() 298 header = in Check header and specifier (v2 + kotlin-style-nulls=yes,migrating=test)() 311 fun `Check header and specifier (v5)`() { in Check header and specifier (v5)() [all …]
|
/tools/apkzlib/src/test/resources/testData/packaging/text-files/ |
D | rfc2460.txt | 91 Some IPv4 header fields have been dropped or made optional, to 93 to limit the bandwidth cost of the IPv6 header. 97 Changes in the way IP header options are encoded allows for 124 This document specifies the basic IPv6 header and the initially- 162 packet - an IPv6 header plus payload. 220 this IPv6 header, in octets. (Note that any 235 Next Header 8-bit selector. Identifies the type of header 236 immediately following the IPv6 header. Uses the 250 a Routing header is present). See [ADDRARCH] 290 headers that may be placed between the IPv6 header and the upper- [all …]
|
/tools/netsim/rust/daemon/src/captures/ |
D | pcap_util.rs | 66 let header: Vec<u8> = be_vec![ in write_pcap_header() localVariable 76 output.write_all(&header)?; in write_pcap_header() 77 Ok(header.len()) in write_pcap_header() 83 let header: Vec<u8> = le_vec![ in write_pcapng_header() localVariable 102 output.write_all(&header)?; in write_pcapng_header() 103 Ok(header.len()) in write_pcapng_header() 114 let header: Vec<u8> = be_vec![packet_direction as u32, packet_type as u8]; in wrap_bt_packet() localVariable 115 let mut bytes = Vec::<u8>::with_capacity(header.len() + packet.len()); in wrap_bt_packet() 116 bytes.extend(&header); in wrap_bt_packet() 129 let header: Vec<u8> = be_vec![ in append_record() localVariable [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/zip/ |
D | LocalFileRecord.java | 161 ByteBuffer header; in getRecord() local 163 header = apk.getByteBuffer(headerStartOffset, headerSizeWithName); in getRecord() 167 header.order(ByteOrder.LITTLE_ENDIAN); in getRecord() 169 int recordSignature = header.getInt(); in getRecord() 175 short gpFlags = header.getShort(GP_FLAGS_OFFSET); in getRecord() 189 long crc32 = ZipUtils.getUnsignedInt32(header, CRC32_OFFSET); in getRecord() 196 long compressedSize = ZipUtils.getUnsignedInt32(header, COMPRESSED_SIZE_OFFSET); in getRecord() 203 long uncompressedSize = ZipUtils.getUnsignedInt32(header, UNCOMPRESSED_SIZE_OFFSET); in getRecord() 211 int nameLength = ZipUtils.getUnsignedInt16(header, NAME_LENGTH_OFFSET); in getRecord() 218 String name = CentralDirectoryRecord.getName(header, NAME_OFFSET, nameLength); in getRecord() [all …]
|
/tools/dexter/dexter/ |
D | dexter.cc | 235 auto header = reader.Header(); in PrintDexFileStats() local 238 printf(" file_size : %u\n", header->file_size); in PrintDexFileStats() 239 printf(" data_size : %u\n", header->data_size); in PrintDexFileStats() 240 printf(" link_size : %u\n", header->link_size); in PrintDexFileStats() 241 printf(" class_defs_size : %u\n", header->class_defs_size); in PrintDexFileStats() 242 printf(" string_ids_size : %u\n", header->string_ids_size); in PrintDexFileStats() 243 printf(" type_ids_size : %u\n", header->type_ids_size); in PrintDexFileStats() 244 printf(" proto_ids_size : %u\n", header->proto_ids_size); in PrintDexFileStats() 245 printf(" field_ids_size : %u\n", header->field_ids_size); in PrintDexFileStats() 246 printf(" method_ids_size : %u\n", header->method_ids_size); in PrintDexFileStats()
|
/tools/dexter/slicer/ |
D | writer.cc | 44 dex::u1 header = dex::u1(type | (arg << dex::kEncodedValueArgShift)); in WriteEncodedValueHeader() local 45 data.Push<dex::u1>(header); in WriteEncodedValueHeader() 315 dex::Header* header = reinterpret_cast<dex::Header*>(image + 0); in CreateImage() local 318 memcpy(header->magic, dex_ir_->magic.ptr(), dex_ir_->magic.size()); in CreateImage() 320 header->file_size = image_size; in CreateImage() 321 header->header_size = header_size; in CreateImage() 322 header->endian_tag = dex::kEndianConstant; in CreateImage() 324 header->link_size = 0; in CreateImage() 325 header->link_off = 0; in CreateImage() 327 header->map_off = dex_->map_list.SectionOffset(); in CreateImage() [all …]
|
D | dex_format.cc | 35 u4 ComputeChecksum(const Header* header) { in ComputeChecksum() argument 36 const u1* start = reinterpret_cast<const u1*>(header); in ComputeChecksum() 39 const int non_sum = sizeof(header->magic) + sizeof(header->checksum); in ComputeChecksum() 42 adler32(adler, start + non_sum, header->file_size - non_sum)); in ComputeChecksum()
|
/tools/netsim/rust/daemon/src/http_server/ |
D | server_response.rs | 90 .header("Content-Type", HeaderValue::from_static("text/plain")) in put_error() 91 .header( in put_error() 108 .header("Content-Type", HeaderValue::from_str(mime_type).unwrap()) in put_ok_with_length() 109 .header("Content-Length", HeaderValue::from_str(length.to_string().as_str()).unwrap()) in put_ok_with_length() 128 .header("Upgrade", HeaderValue::from_str(connection).unwrap()) in put_ok_switch_protocol() 129 .header("Connection", HeaderValue::from_static("Upgrade")) in put_ok_switch_protocol() 140 .header("Content-Type", HeaderValue::from_str(content_type).unwrap()) in new_ok() 141 .header("Content-Length", HeaderValue::from_str(body.len().to_string().as_str()).unwrap()) in new_ok()
|
/tools/asuite/aidegen/lib/ |
D | native_module_info.py | 121 for header in (constant.KEY_HEADER, constant.KEY_SYSTEM): 122 if header in mod_info[flag]: 123 includes.update(set(mod_info[flag][header])) 190 for header in (constant.KEY_HEADER, constant.KEY_SYSTEM): 191 if header not in mod_info[flag]: 193 for include in mod_info[flag][header]:
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | AndroidBinXmlParser.java | 505 public Chunk(int type, ByteBuffer header, ByteBuffer contents) { in Chunk() argument 507 mHeader = header; in Chunk() 588 ByteBuffer header = chunk.getHeader(); in StringPool() local 589 int headerSizeBytes = header.remaining(); in StringPool() 590 header.position(Chunk.HEADER_MIN_SIZE_BYTES); in StringPool() 591 if (header.remaining() < 20) { in StringPool() 594 + header.remaining() + " bytes"); in StringPool() 596 long stringCount = getUnsignedInt32(header); in StringPool() 601 long styleCount = getUnsignedInt32(header); in StringPool() 605 long flags = getUnsignedInt32(header); in StringPool() [all …]
|
/tools/aadevtools/avd/ |
D | batch_add_avd_img.sh | 35 header=0 40 header="${name},${api},${zip}" 55 if [[ $header != "name,api,zip" ]]; then 57 echo "ERROR: The header:$header is not as expected in $INPUT_CSV"
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/audio_analysis_lib/ |
D | check_quality.py | 147 header = self._wave_reader.getparams() 148 logging.debug('Wave header: %s', header) 150 self._n_channels = header[0] 151 self._sample_width_bits = header[1] * 8 152 self.rate = header[2] 153 self._n_frames = header[3] 154 comptype = header[4] 155 compname = header[5]
|
/tools/metalava/metalava-model-text/src/testFixtures/java/com/android/tools/metalava/model/text/ |
D | TextTestUtils.kt | 37 val header = format.header() in prepareSignatureFileForTest() constant 41 .let { if (!it.startsWith(FileFormat.SIGNATURE_FORMAT_PREFIX)) header + it else it } in prepareSignatureFileForTest()
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/ |
D | apollo_log_decoder.py | 68 header = message[0:4] 70 if len(header) == 4 and len(serialized) == len(message) - 4: 71 msg_group, msg_type, msg_len = struct.unpack('>BBH', header)
|
/tools/netsim/ |
D | Android.bp | 125 cmd: "$(location cxxbridge) $(in) --cfg feature=\\\"cuttlefish\\\" --header >> $(out)", 141 cmd: "$(location cxxbridge) $(in) --header >> $(out)", 187 "cxx-bridge-header", 243 "cxx-bridge-header", 285 "cxx-bridge-header", 362 "cxx-bridge-header",
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | ShowmapPullerMetricCollector.java | 256 String header = ""; in extractHeaders() local 260 header = in extractHeaders() 261 header.concat( in extractHeaders() 268 mColumnNameToColumnIndex.put(header, i); in extractHeaders()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | CentralDirectoryHeaderCompressInfo.java | 77 public CentralDirectoryHeaderCompressInfo(@Nonnull CentralDirectoryHeader header, in CentralDirectoryHeaderCompressInfo() argument 82 if (header.getName().endsWith("/") || method == CompressionMethod.DEFLATE) { in CentralDirectoryHeaderCompressInfo()
|
D | StoredEntry.java | 213 @Nonnull CentralDirectoryHeader header, in StoredEntry() 217 cdh = header; in StoredEntry() 222 if (header.getOffset() >= 0) { in StoredEntry() 287 if (header.getGpBit().isDeferredCrc()) { in StoredEntry() 292 Verify.verify(header.getOffset() >= 0, "Files that are not on disk cannot have the " in StoredEntry()
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/ |
D | SignatureWriterTest.kt | 54 fun `Write header only when not-empty (not-empty)`() { in Write header only when not-empty (not-empty)() 73 fun `Write header only when not-empty (empty)`() { in Write header only when not-empty (empty)()
|
/tools/netsim/pdl/ |
D | netlink.pdl | 17 nlmsg_len : 32, // Length of message including header 46 // Base netlink attribute TLV header.
|
D | mac80211_hwsim.pdl | 15 nlmsg_len : 32, // Length of message including header 248 // user header
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/cellular/performance/ |
D | shannon_log_parser.py | 130 header = header_line.split(',') 132 self.timestamp_col = header.index('PC Time') 133 self.message_col = header.index('Message') 137 self.core_id_col = header.index('Core ID') 151 header = file.readline() 153 self.parse_header(header) 212 header = file.readline() 214 self.parse_header(header)
|
/tools/aadevtools/dev/ |
D | change_report.py | 342 def write_file(file, lines, header=None): argument 346 if header: 347 f.write(header) 392 header=ChangeReport.get_diff_stat_header())
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | EmailTest.java | 251 for (String header : pieces[0].split(Email.CRLF)) { in extractBody() 252 final String[] halves = header.split(": ", 2); in extractBody()
|
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/ |
D | SignatureWriter.kt | 59 writer.print(fileFormat.header()) in <lambda>() 73 writer.print(fileFormat.header()) in <lambda>()
|