/external/cpuinfo/scripts/ |
D | android-device-dump.py | 338 with open(os.path.join("test", "mock", options.prefix + ".h"), "w") as file_header: 339 file_header.write("struct cpuinfo_mock_file filesystem[] = {\n") 349 content = dump_device_file(file_header, path, prefix_line=arm64_prefix) 364 file_header.write("#elif CPUINFO_ARCH_ARM\n") 365 add_mock_file(file_header, "/proc/cpuinfo", proc_cpuinfo_content32) 366 file_header.write("#endif\n") 371 dump_device_file(file_header, path) 375 dump_device_file(file_header, path) 376 file_header.write("\t{ NULL },\n") 377 file_header.write("};\n") [all …]
|
D | arm-linux-filesystem-dump.py | 89 with open(os.path.join("test", options.prefix + ".h"), "w") as file_header: 90 file_header.write("struct cpuinfo_mock_file filesystem[] = {\n") 92 dump_system_file(file_header, path) 96 dump_system_file(file_header, path) 100 dump_system_file(file_header, path) 101 file_header.write("\t{ NULL },\n") 102 file_header.write("};\n")
|
/external/cronet/net/disk_cache/simple/ |
D | simple_version_upgrade.cc | 160 FakeIndexData file_header; in UpgradeSimpleCacheOnDisk() local 162 reinterpret_cast<char*>(&file_header), in UpgradeSimpleCacheOnDisk() 163 sizeof(file_header)); in UpgradeSimpleCacheOnDisk() 164 if (bytes_read != sizeof(file_header)) { in UpgradeSimpleCacheOnDisk() 168 if (file_header.initial_magic_number != in UpgradeSimpleCacheOnDisk() 175 uint32_t version_from = file_header.version; in UpgradeSimpleCacheOnDisk() 186 if (file_header.zero != 0 && file_header.zero2 != 0) { in UpgradeSimpleCacheOnDisk() 200 LogMessageFailedUpgradeFromVersion(file_header.version); in UpgradeSimpleCacheOnDisk() 231 LogMessageFailedUpgradeFromVersion(file_header.version); in UpgradeSimpleCacheOnDisk() 236 LogMessageFailedUpgradeFromVersion(file_header.version); in UpgradeSimpleCacheOnDisk()
|
/external/cronet/net/disk_cache/blockfile/ |
D | block_files.cc | 329 BlockHeader file_header(file); in CreateBlock() local 332 if (!file_header.CreateMapBlock(block_count, &index)) in CreateBlock() 335 Addr address(block_type, block_count, file_header.FileId(), index); in CreateBlock() 361 BlockHeader file_header(file); in DeleteBlock() local 362 file_header.DeleteMapBlock(address.start_block(), address.num_blocks()); in DeleteBlock() 365 if (!file_header.Header()->num_entries) { in DeleteBlock() 367 type_to_delete = Addr::RequiredFileType(file_header.Header()->entry_size); in DeleteBlock() 369 file_header.Header()->entry_size) { in DeleteBlock() 458 BlockHeader file_header(file.get()); in OpenBlockFile() local 459 BlockFileHeader* header = file_header.Header(); in OpenBlockFile() [all …]
|
/external/webrtc/test/testsupport/ |
D | y4m_frame_reader.cc | 70 std::string file_header(c_file_header); in Init() local 71 if (file_header.size() < kFileHeaderMinSize) { in Init() 76 if (file_header.find(GetExpectedHeaderPrefix(input_width_, input_height_)) != in Init() 81 << "[0-9]?:1 C420; got: " << file_header; in Init() 85 number_of_frames_ = static_cast<int>((source_file_size - file_header.size()) / in Init()
|
/external/piex/src/ |
D | piex.cc | 642 std::vector<std::uint8_t> file_header(bytes); in IsRaw() local 643 if (data->GetData(0, file_header.size(), file_header.data()) != kOk) { in IsRaw() 647 RangeCheckedBytePtr data_buffer(file_header.data(), file_header.size()); in IsRaw() 660 std::vector<std::uint8_t> file_header(bytes); in GetPreviewImageData() local 661 Error error = data->GetData(0, file_header.size(), file_header.data()); in GetPreviewImageData() 665 RangeCheckedBytePtr header_buffer(file_header.data(), file_header.size()); in GetPreviewImageData() 716 std::vector<std::uint8_t> file_header(min_header_bytes); in GetOrientation() local 717 if (data->GetData(0, file_header.size(), file_header.data()) != kOk) { in GetOrientation() 723 if (IsOfType(RangeCheckedBytePtr(file_header.data(), file_header.size()), in GetOrientation() 727 RangeCheckedBytePtr(file_header.data(), file_header.size()), in GetOrientation()
|
/external/webrtc/modules/audio_coding/neteq/tools/ |
D | rtp_jitter.cc | 102 uint8_t file_header[16]; in RunRtpJitter() local 103 RTC_CHECK_EQ(fread(file_header, sizeof(file_header), 1, in_file), 1); in RunRtpJitter() 104 RTC_CHECK_EQ(fwrite(file_header, sizeof(file_header), 1, out_file), 1); in RunRtpJitter()
|
D | rtp_encode.cc | 323 const uint8_t file_header[16] = {0}; in RunRtpEncode() local 324 RTC_CHECK_EQ(fwrite(file_header, sizeof(file_header), 1, out_file), 1); in RunRtpEncode()
|
/external/ImageMagick/coders/ |
D | tim2.c | 632 file_header; in ReadTIM2Image() local 655 file_header.magic_num=ReadBlobMSBLong(image); in ReadTIM2Image() 656 if (file_header.magic_num != 0x54494D32) /* "TIM2" */ in ReadTIM2Image() 661 file_header.format_vers=ReadBlobByte(image); in ReadTIM2Image() 662 if (file_header.format_vers != 0x04) in ReadTIM2Image() 664 file_header.format_type=ReadBlobByte(image); in ReadTIM2Image() 665 file_header.image_count=ReadBlobLSBShort(image); in ReadTIM2Image() 666 ReadBlobStream(image,8,&(file_header.reserved),&str_read); in ReadTIM2Image() 670 switch(file_header.format_type) in ReadTIM2Image() 686 if (file_header.image_count != 1) in ReadTIM2Image() [all …]
|
/external/mesa3d/src/util/ |
D | disk_cache_os.c | 528 uint8_t *file_header = NULL; in disk_cache_load_item() local 542 file_header = malloc(ck_size); in disk_cache_load_item() 543 if (!file_header) in disk_cache_load_item() 549 ret = read_all(fd, file_header, ck_size); in disk_cache_load_item() 554 if (memcmp(cache->driver_keys_blob, file_header, ck_size) != 0) { in disk_cache_load_item() 611 free(file_header); in disk_cache_load_item() 626 if (file_header) in disk_cache_load_item() 627 free(file_header); in disk_cache_load_item()
|
/external/cronet/base/win/ |
D | pe_image_reader_unittest.cc | 71 const IMAGE_FILE_HEADER* file_header = image_reader_.GetCoffFileHeader(); in TEST_P() local 72 ASSERT_NE(nullptr, file_header); in TEST_P() 73 EXPECT_EQ(expected_data_->machine_identifier, file_header->Machine); in TEST_P() 75 file_header->SizeOfOptionalHeader); in TEST_P()
|
D | pe_image_reader.cc | 229 const IMAGE_FILE_HEADER* file_header = nullptr; in ValidateCoffFileHeader() local 232 &file_header)) { in ValidateCoffFileHeader() 241 const IMAGE_FILE_HEADER* file_header = GetCoffFileHeader(); in ValidateOptionalHeader() local 245 const size_t optional_header_size = file_header->SizeOfOptionalHeader; in ValidateOptionalHeader()
|
/external/pdfium/samples/ |
D | pdfium_test_write_helper.cc | 480 BITMAPFILEHEADER file_header = {}; in WriteBmp() local 481 file_header.bfType = 0x4d42; in WriteBmp() 482 file_header.bfSize = sizeof(file_header) + bmi.bmiHeader.biSize + out_len; in WriteBmp() 483 file_header.bfOffBits = file_header.bfSize - out_len; in WriteBmp() 485 if (fwrite(&file_header, sizeof(file_header), 1, fp) != 1 || in WriteBmp()
|
/external/rust/crates/grpcio-sys/grpc/src/compiler/ |
D | objective_c_plugin.cc | 158 ::std::string file_header = in Generate() 239 file_header + SystemImport("Foundation/Foundation.h") + "\n" + in Generate() 295 file_header + in Generate()
|
/external/arm-trusted-firmware/plat/marvell/armada/common/mss/ |
D | mss_scp_bl2_format.h | 19 typedef struct file_header { struct
|
/external/protobuf/src/google/protobuf/compiler/objectivec/ |
D | method_dump.sh | 96 file_header=$(cat <<'END_HEADER' 148 echo "$file_header" | sed -e "s|%DATE%|$(date)|" -e "s|%MACOS%|$(basename $macos_sdk)|" \
|
/external/cronet/third_party/protobuf/src/google/protobuf/compiler/objectivec/ |
D | method_dump.sh | 96 file_header=$(cat <<'END_HEADER' 148 echo "$file_header" | sed -e "s|%DATE%|$(date)|" -e "s|%MACOS%|$(basename $macos_sdk)|" \
|
/external/libvpx/build/make/ |
D | iosbuild.sh | 106 local file_header="/* 123 printf "%s" "${file_header}" > "${config_file}"
|
/external/crosvm/kernel_loader/src/ |
D | lib.rs | 239 .file_header in load_elf_for_class() 286 file_header: elf::Elf64_Ehdr, field 362 file_header: ehdr, in read_elf_by_type()
|