Home
last modified time | relevance | path

Searched refs:file_data (Results 1 – 25 of 44) sorted by relevance

12

/external/libchrome/build/
Dgypi_to_gn.py102 file_data = eval(file_string, {'__builtins__': None}, None)
109 assert isinstance(file_data, dict), "%s does not eval to a dictionary" % path
112 if 'variables' in file_data:
113 file_data.update(file_data['variables'])
114 del file_data['variables']
126 if element in file_data:
127 del file_data[element]
129 return file_data
Dgyp_helper.py21 file_data = eval(file_contents, {'__builtins__': None}, None)
44 file_val = file_data.get(var)
/external/grpc-grpc/src/core/lib/security/security_connector/
Dload_system_roots_linux.cc104 FileData file_data; in CreateRootCertsBundle() local
105 GetAbsoluteFilePath(certs_directory, file_entry_name, file_data.path); in CreateRootCertsBundle()
106 int stat_return = stat(file_data.path, &dir_entry_stat); in CreateRootCertsBundle()
110 gpr_log(GPR_ERROR, "failed to get status for file: %s", file_data.path); in CreateRootCertsBundle()
114 file_data.size = dir_entry_stat.st_size; in CreateRootCertsBundle()
115 total_bundle_size += file_data.size; in CreateRootCertsBundle()
116 roots_filenames.push_back(file_data); in CreateRootCertsBundle()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/security_connector/
Dload_system_roots_linux.cc110 FileData file_data; in CreateRootCertsBundle() local
111 GetAbsoluteFilePath(certs_directory, file_entry_name, file_data.path); in CreateRootCertsBundle()
112 int stat_return = stat(file_data.path, &dir_entry_stat); in CreateRootCertsBundle()
116 gpr_log(GPR_ERROR, "failed to get status for file: %s", file_data.path); in CreateRootCertsBundle()
120 file_data.size = dir_entry_stat.st_size; in CreateRootCertsBundle()
121 total_bundle_size += file_data.size; in CreateRootCertsBundle()
122 roots_filenames.push_back(file_data); in CreateRootCertsBundle()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upbc/
Dprotoc-gen-upbdefs.cc108 std::string file_data; in WriteDefSource() local
109 file_proto.SerializeToString(&file_data); in WriteDefSource()
111 output("static const char descriptor[$0] = {", file_data.size()); in WriteDefSource()
117 for (size_t i = 0; i < file_data.size();) { in WriteDefSource()
118 for (size_t j = 0; j < 25 && i < file_data.size(); ++i, ++j) { in WriteDefSource()
119 output("'$0', ", absl::CEscape(file_data.substr(i, 1))); in WriteDefSource()
141 output(" UPB_STRVIEW_INIT(descriptor, $0)\n", file_data.size()); in WriteDefSource()
/external/curl/lib/
Dftplistparser.c169 struct fileinfo *file_data; member
192 Curl_fileinfo_cleanup(parser->file_data); in Curl_ftp_parselist_data_free()
322 ftpwc->parser->file_data = NULL; in ftp_pl_insert_finfo()
358 if(!parser->file_data) { /* tmp file data is not allocated yet */ in Curl_ftp_parselist()
359 parser->file_data = Curl_fileinfo_alloc(); in Curl_ftp_parselist()
360 if(!parser->file_data) { in Curl_ftp_parselist()
364 parser->file_data->info.b_data = malloc(FTP_BUFFER_ALLOCSIZE); in Curl_ftp_parselist()
365 if(!parser->file_data->info.b_data) { in Curl_ftp_parselist()
369 parser->file_data->info.b_size = FTP_BUFFER_ALLOCSIZE; in Curl_ftp_parselist()
374 infop = parser->file_data; in Curl_ftp_parselist()
[all …]
/external/elfutils/libelf/
Delf_getarsym.c204 void *file_data; /* unit32_t[n] or uint64_t[n] */ in elf_getarsym() local
216 file_data = temp_data; in elf_getarsym()
233 if ((size_t) pread_retry (elf->fildes, file_data, sz, off) != sz in elf_getarsym()
249 file_data = (void *) (elf->map_address + off); in elf_getarsym()
251 && ((uintptr_t) file_data & -(uintptr_t) n) != 0) in elf_getarsym()
259 file_data = memcpy (temp_data, elf->map_address + off, sz); in elf_getarsym()
266 uint64_t (*u64)[n] = file_data; in elf_getarsym()
267 uint32_t (*u32)[n] = file_data; in elf_getarsym()
/external/ImageMagick/coders/
Dheic.c394 *file_data; in ReadHEICImage() local
413 file_data=AcquireMagickMemory(length); in ReadHEICImage()
414 if (file_data == (void *) NULL) in ReadHEICImage()
416 if (ReadBlob(image,length,file_data) != (ssize_t) length) in ReadHEICImage()
418 file_data=RelinquishMagickMemory(file_data); in ReadHEICImage()
422 if (heif_has_compatible_brand(file_data,(int) length,"avif") != MagickFalse) in ReadHEICImage()
429 error=heif_context_read_from_memory_without_copy(heif_context,file_data, in ReadHEICImage()
434 file_data=RelinquishMagickMemory(file_data); in ReadHEICImage()
441 file_data=RelinquishMagickMemory(file_data); in ReadHEICImage()
449 file_data=RelinquishMagickMemory(file_data); in ReadHEICImage()
[all …]
/external/tensorflow/tensorflow/tools/graph_transforms/
Dfile_utils.cc24 string file_data; in LoadTextOrBinaryGraphFile() local
26 ReadFileToString(Env::Default(), file_name, &file_data); in LoadTextOrBinaryGraphFile()
34 if (protobuf::TextFormat::ParseFromString(file_data, graph_def)) { in LoadTextOrBinaryGraphFile()
Dfreeze_requantization_ranges.cc34 string file_data; in ExtractMinMaxRecords() local
36 ReadFileToString(Env::Default(), log_file_name, &file_data)); in ExtractMinMaxRecords()
39 std::vector<string> file_lines = str_util::Split(file_data, '\n'); in ExtractMinMaxRecords()
/external/curl/scripts/
Dupdatemanpages.pl64 tie(my @file_data, 'Tie::File', $filename);
65 foreach my $file_data_line(@file_data) {
215 tie(my @file_data, 'Tie::File', $filename);
216 foreach my $file_data_line (@file_data) {
/external/protobuf/src/google/protobuf/compiler/java/
Djava_shared_code_generator.cc132 std::string file_data; in GenerateDescriptors() local
133 file_proto.SerializeToString(&file_data); in GenerateDescriptors()
145 for (int i = 0; i < file_data.size(); i += kBytesPerLine) { in GenerateDescriptors()
154 CEscape(file_data.substr(i, kBytesPerLine))); in GenerateDescriptors()
Djava_file.cc123 const std::string& file_data) { in CollectExtensions() argument
140 GOOGLE_CHECK(dynamic_file_proto->ParseFromString(file_data)); in CollectExtensions()
441 std::string file_data; in GenerateDescriptorInitializationCodeForImmutable() local
442 file_proto.SerializeToString(&file_data); in GenerateDescriptorInitializationCodeForImmutable()
444 CollectExtensions(file_proto, *file_->pool(), &extensions, file_data); in GenerateDescriptorInitializationCodeForImmutable()
510 std::string file_data; in GenerateDescriptorInitializationCodeForMutable() local
511 file_proto.SerializeToString(&file_data); in GenerateDescriptorInitializationCodeForMutable()
513 CollectExtensions(file_proto, *file_->pool(), &extensions, file_data); in GenerateDescriptorInitializationCodeForMutable()
/external/python/cpython3/Lib/test/
Dtest_gzip.py600 file_data = gzip.decompress(f.read())
601 self.assertEqual(file_data, uncompressed)
609 file_data = gzip.decompress(f.read())
610 self.assertEqual(file_data, uncompressed * 2)
618 file_data = gzip.decompress(f.read())
619 self.assertEqual(file_data, uncompressed)
637 file_data = gzip.decompress(f.read())
638 self.assertEqual(file_data, uncompressed)
646 file_data = gzip.decompress(f.read())
647 self.assertEqual(file_data, uncompressed * 2)
[all …]
Dtest_bz2.py889 file_data = ext_decompress(f.read())
890 self.assertEqual(file_data, self.TEXT)
896 file_data = ext_decompress(f.read())
897 self.assertEqual(file_data, self.TEXT * 2)
907 file_data = ext_decompress(f.read())
908 self.assertEqual(file_data, self.TEXT)
914 file_data = ext_decompress(f.read())
915 self.assertEqual(file_data, self.TEXT * 2)
926 file_data = ext_decompress(f.read()).decode("ascii")
927 self.assertEqual(file_data, text_native_eol)
[all …]
/external/jdiff/src/jdiff/
DDiffMyers.java55 filevec[0] = new file_data(a,h); in DiffMyers()
56 filevec[1] = new file_data(b,h); in DiffMyers()
82 private final file_data[] filevec = new file_data[2];
510 class file_data { class in DiffMyers
545 void discard_confusing_lines(file_data f) { in discard_confusing_lines()
723 file_data(Object[] data,Hashtable h) { in file_data() method in DiffMyers.file_data
752 void shift_boundaries(file_data f) { in shift_boundaries()
/external/libbrillo/brillo/
Dkey_value_store.cc44 string file_data; in Load() local
45 if (!base::ReadFileToString(path, &file_data)) in Load()
47 return LoadFromString(file_data); in Load()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/bindings/lua/
Dupbc.cc92 std::string file_data; in Generate() local
93 file_proto.SerializeToString(&file_data); in Generate()
96 absl::string_view data(file_data); in Generate()
/external/tensorflow/tensorflow/examples/speech_commands/
Daccuracy_utils_test.cc30 string file_data = "a,10\nb,12\n"; in TEST() local
31 TF_ASSERT_OK(WriteStringToFile(Env::Default(), file_name, file_data)); in TEST()
/external/tensorflow/tensorflow/python/tools/
Dselective_registration_header_lib.py91 file_data = gfile.GFile(proto_file, 'rb').read()
93 graph_def = graph_pb2.GraphDef.FromString(file_data)
96 graph_def = text_format.Parse(file_data, graph_pb2.GraphDef())
/external/python/apitools/apitools/base/py/
Dgzip_test.py485 file_data = gzip.decompress(f.read())
486 self.assertEqual(file_data, uncompressed)
494 file_data = gzip.decompress(f.read())
495 self.assertEqual(file_data, uncompressed * 2)
504 file_data = gzip.decompress(f.read())
505 self.assertEqual(file_data, uncompressed)
513 file_data = gzip.decompress(f.read())
514 self.assertEqual(file_data, uncompressed * 2)
/external/tensorflow/tensorflow/lite/examples/ios/simple/
Dios_image_load.mm31 std::vector<uint8_t> file_data(bytes_in_file);
32 fread(file_data.data(), 1, bytes_in_file, file_handle);
36 CFDataCreateWithBytesNoCopy(NULL, file_data.data(), bytes_in_file, kCFAllocatorNull);
/external/tensorflow/tensorflow/lite/tools/
Dconvert_image_to_csv.py63 file_data = io_ops.read_file(filepath)
65 image_tensor = image_ops.decode_image(file_data, channels=channels).eval()
/external/angle/src/compiler/translator/
Dgen_emulated_builtin_function_tables.py75 file_data = map_file.read()
77 return json.loads(file_data, object_pairs_hook=reject_duplicate_keys)
/external/vulkan-validation-layers/scripts/
Dlayer_dispatch_table_generator.py143 file_data = ''
145 file_data += self.OutputLayerInstanceDispatchTable()
146 file_data += self.OutputLayerDeviceDispatchTable()
148 write(file_data, file=self.outFile);

12