/external/perf_data_converter/src/quipper/ |
D | file_reader_test.cc | 21 ScopedTempFile input_file; in TEST() local 22 ASSERT_TRUE(BufferToFile(input_file.path(), input_data)); in TEST() 25 FileReader reader(input_file.path()); in TEST() 49 ScopedTempFile input_file; in TEST() local 50 ASSERT_TRUE(BufferToFile(input_file.path(), input_data)); in TEST() 52 FileReader reader(input_file.path()); in TEST() 64 ScopedTempFile input_file; in TEST() local 65 ASSERT_TRUE(BufferToFile(input_file.path(), kInputData)); in TEST() 66 FileReader reader(input_file.path()); in TEST() 81 ScopedTempFile input_file; in TEST() local [all …]
|
/external/vboot_reference/host/lib/ |
D | file_keys.c | 21 uint8_t* BufferFromFile(const char* input_file, uint64_t* len) { in BufferFromFile() argument 26 if ((fd = open(input_file, O_RDONLY)) == -1) { in BufferFromFile() 27 VBDEBUG(("Couldn't open file %s\n", input_file)); in BufferFromFile() 32 VBDEBUG(("Couldn't stat file %s\n", input_file)); in BufferFromFile() 39 VbExError("Couldn't allocate %ld bytes for file %s\n", *len, input_file); in BufferFromFile() 44 VBDEBUG(("Couldn't read file %s into a buffer\n", input_file)); in BufferFromFile() 52 RSAPublicKey* RSAPublicKeyFromFile(const char* input_file) { in RSAPublicKeyFromFile() argument 55 uint8_t* buf = BufferFromFile(input_file, &len); in RSAPublicKeyFromFile() 62 uint8_t* DigestFile(char* input_file, int sig_algorithm) { in DigestFile() argument 68 if( (input_fd = open(input_file, O_RDONLY)) == -1 ) { in DigestFile() [all …]
|
/external/sfntly/cpp/src/sample/chromium/ |
D | chrome_subsetter.cc | 44 FILE* input_file = NULL; in LoadFile() local 46 fopen_s(&input_file, input_file_path, "rb"); in LoadFile() 48 input_file = fopen(input_file_path, "rb"); in LoadFile() 50 if (input_file == NULL) { in LoadFile() 53 fseek(input_file, 0, SEEK_END); in LoadFile() 54 size_t file_size = ftell(input_file); in LoadFile() 55 fseek(input_file, 0, SEEK_SET); in LoadFile() 57 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile() 58 fclose(input_file); in LoadFile()
|
/external/sfntly/cpp/src/test/ |
D | test_font_utils.cc | 67 FILE* input_file = NULL; in LoadFile() local 69 fopen_s(&input_file, input_file_path, "rb"); in LoadFile() 71 input_file = fopen(input_file_path, "rb"); in LoadFile() 73 EXPECT_NE(input_file, reinterpret_cast<FILE*>(NULL)); in LoadFile() 74 fseek(input_file, 0, SEEK_END); in LoadFile() 75 size_t file_size = ftell(input_file); in LoadFile() 76 fseek(input_file, 0, SEEK_SET); in LoadFile() 78 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); in LoadFile() 80 fclose(input_file); in LoadFile()
|
/external/toolchain-utils/crosperf/ |
D | experiment_file_unittest.py | 91 input_file = StringIO.StringIO(EXPERIMENT_FILE_1) 92 experiment_file = ExperimentFile(input_file) 111 input_file = StringIO.StringIO(EXPERIMENT_FILE_2) 112 experiment_file = ExperimentFile(input_file) 124 input_file = StringIO.StringIO(EXPERIMENT_FILE_3) 125 self.assertRaises(Exception, ExperimentFile, input_file) 128 input_file = StringIO.StringIO(EXPERIMENT_FILE_1) 129 experiment_file = ExperimentFile(input_file)
|
/external/skqp/infra/bots/buildstats/ |
D | buildstats_wasm.py | 16 input_file = sys.argv[1] 34 print subprocess.check_output([bloaty_path, input_file, 39 print subprocess.check_output([bloaty_path, input_file, 51 'total_size_bytes': os.path.getsize(input_file) 56 temp_file = input_file + '_tmp' 57 subprocess.check_call(['cp', input_file, temp_file]) 62 name = os.path.basename(input_file)
|
D | buildstats_web.py | 16 input_file = sys.argv[1] 35 'total_size_bytes': os.path.getsize(input_file) 40 temp_file = input_file + '_tmp' 41 subprocess.check_call(['cp', input_file, temp_file]) 46 name = os.path.basename(input_file)
|
D | buildstats_cpp.py | 18 input_file = sys.argv[1] 40 print subprocess.check_output([bloaty_path, input_file, 44 sections = subprocess.check_output([bloaty_path, input_file, '-d', 47 name = os.path.basename(input_file) 52 'total_size_bytes': os.path.getsize(input_file)
|
/external/skia/infra/bots/buildstats/ |
D | buildstats_wasm.py | 16 input_file = sys.argv[1] 34 print subprocess.check_output([bloaty_path, input_file, 39 print subprocess.check_output([bloaty_path, input_file, 51 'total_size_bytes': os.path.getsize(input_file) 56 temp_file = input_file + '_tmp' 57 subprocess.check_call(['cp', input_file, temp_file]) 62 name = os.path.basename(input_file)
|
D | buildstats_web.py | 16 input_file = sys.argv[1] 35 'total_size_bytes': os.path.getsize(input_file) 40 temp_file = input_file + '_tmp' 41 subprocess.check_call(['cp', input_file, temp_file]) 46 name = os.path.basename(input_file)
|
D | buildstats_cpp.py | 18 input_file = sys.argv[1] 40 print subprocess.check_output([bloaty_path, input_file, 44 sections = subprocess.check_output([bloaty_path, input_file, '-d', 47 name = os.path.basename(input_file) 52 'total_size_bytes': os.path.getsize(input_file)
|
/external/tensorflow/tensorflow/lite/toco/ |
D | toco_convert.cc | 43 void CheckFrozenModelPermissions(const Arg<string>& input_file) { in CheckFrozenModelPermissions() argument 44 QCHECK(input_file.specified()) << "Missing required flag --input_file.\n"; in CheckFrozenModelPermissions() 45 QCHECK(port::file::Exists(input_file.value(), port::file::Defaults()).ok()) in CheckFrozenModelPermissions() 46 << "Specified input_file does not exist: " << input_file.value() << ".\n"; in CheckFrozenModelPermissions() 47 QCHECK(port::file::Readable(input_file.value(), port::file::Defaults()).ok()) in CheckFrozenModelPermissions() 49 << input_file.value() << ".\n"; in CheckFrozenModelPermissions() 67 CheckFrozenModelPermissions(parsed_toco_flags.input_file); in ReadInputData() 68 CHECK(port::file::GetContents(parsed_toco_flags.input_file.value(), in ReadInputData()
|
/external/webrtc/webrtc/tools/frame_analyzer/ |
D | video_quality_analysis.cc | 102 FILE* input_file = fopen(i420_file_name, "rb"); in ExtractFrameFromYuvFile() local 103 if (input_file == NULL) { in ExtractFrameFromYuvFile() 110 fseek(input_file, offset, SEEK_SET); in ExtractFrameFromYuvFile() 112 size_t bytes_read = fread(result_frame, 1, frame_size, input_file); in ExtractFrameFromYuvFile() 114 ferror(input_file)) { in ExtractFrameFromYuvFile() 119 fclose(input_file); in ExtractFrameFromYuvFile() 132 FILE* input_file = fopen(y4m_file_name, "rb"); in ExtractFrameFromY4mFile() local 133 if (input_file == NULL) { in ExtractFrameFromY4mFile() 145 fread(frame_header, 1, Y4M_FILE_HEADER_MAX_SIZE, input_file); in ExtractFrameFromY4mFile() 146 if (bytes_read != static_cast<size_t>(frame_size) && ferror(input_file)) { in ExtractFrameFromY4mFile() [all …]
|
/external/sfntly/cpp/src/sample/subsetter/ |
D | subset_util.cc | 46 FILE* input_file = fopen(input_file_path, "rb"); in Subset() local 47 if (input_file == NULL) { in Subset() 51 fseek(input_file, 0, SEEK_END); in Subset() 52 size_t file_size = ftell(input_file); in Subset() 53 fseek(input_file, 0, SEEK_SET); in Subset() 55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); in Subset() 57 fclose(input_file); in Subset()
|
/external/catch2/scripts/ |
D | updateDocumentToC.py | 271 input_file, argument 324 removeToC(readLines(input_file)), 363 def updateSingleDocumentToC(input_file, min_toc_len, verbose=False): argument 366 print( 'file: {}'.format(input_file)) 368 output_file = input_file + '.tmp' 371 input_file=input_file, 380 exclude_h=excludeHeadingsFor(input_file)) 384 os.replace(output_file, input_file) 386 os.remove(input_file) 387 os.rename(output_file, input_file) [all …]
|
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/ |
D | isac_unittest.cc | 44 FILE* input_file; in SetUp() local 47 input_file = fopen(file_name.c_str(), "rb"); in SetUp() 48 ASSERT_TRUE(input_file != NULL); in SetUp() 51 kIsacNumberOfSamples, input_file))); in SetUp() 52 fclose(input_file); in SetUp() 53 input_file = NULL; in SetUp()
|
/external/swiftshader/src/OpenGL/compiler/preprocessor/ |
D | generate_parser.sh | 20 input_file=$script_dir/$1 22 flex --noline --nounistd --outfile=$output_source $input_file 27 input_file=$script_dir/$1 29 bison --no-lines --skeleton=yacc.c --output=$output_source $input_file
|
/external/swiftshader/src/OpenGL/compiler/ |
D | generate_parser.sh | 20 input_file=$script_dir/$1.l 22 flex --noline --nounistd --outfile=$output_source $input_file 27 input_file=$script_dir/$1.y 30 bison --no-lines --skeleton=yacc.c --defines=$output_header --output=$output_source $input_file
|
/external/webrtc/webrtc/voice_engine/test/auto_test/ |
D | voe_conference_test.cc | 53 const std::string input_file = in TEST() local 61 unsigned int id_1 = trans.AddStream(input_file, kInputFormat); in TEST() 62 unsigned int id_2 = trans.AddStream(input_file, kInputFormat); in TEST() 130 const std::string input_file = in TEST() local 142 unsigned int id_1 = trans.AddStream(input_file, kInputFormat); in TEST() 143 unsigned int id_2 = trans.AddStream(input_file, kInputFormat); in TEST() 144 unsigned int id_3 = trans.AddStream(input_file, kInputFormat); in TEST()
|
/external/eigen/bench/btl/generic_bench/utils/ |
D | xy_file.hh | 32 std::ifstream input_file (filename.c_str(),std::ios::in); in read_xy_file() local 34 if (!input_file){ in read_xy_file() 45 while (input_file >> size >> mflops ){ in read_xy_file() 52 input_file.close(); in read_xy_file()
|
/external/tensorflow/tensorflow/lite/schema/ |
D | upgrade_schema.py | 106 def _Read(self, input_file, schema, raw_binary=False): argument 129 basename = os.path.basename(input_file) 138 ] + raw_binary + ["-o", tempdir, schema, "--", input_file]) 145 json_file = input_file 147 raise ValueError("Invalid extension on input file %r" % input_file) 306 def Convert(self, input_file, output_file): argument 325 data_candidate = self._Read(input_file, schema, raw_binary)
|
/external/adhd/scripts/ |
D | ini_editor.py | 347 def __init__(self, input_file): argument 355 self.file_path = input_file 356 self._ParseFromFile(input_file) 358 def _ParseFromFile(self, input_file): argument 368 content = open(input_file, 'r').read() 523 if self.args.input_file: 524 self.input_files.append(self.args.input_file) 562 for input_file in self.input_files: 563 logging.info('Looking at dsp.ini file at %s', input_file) 564 ini = Ini(input_file)
|
/external/libjpeg-turbo/ |
D | rdppm.c | 150 FILE *infile = source->pub.input_file; in get_text_gray_row() 178 FILE *infile = source->pub.input_file; in get_text_gray_rgb_row() 213 FILE *infile = source->pub.input_file; in get_text_gray_cmyk_row() 252 FILE *infile = source->pub.input_file; in get_text_rgb_row() 287 FILE *infile = source->pub.input_file; in get_text_rgb_cmyk_row() 325 if (!ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_scaled_gray_row() 353 if (!ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_gray_rgb_row() 384 if (!ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_gray_cmyk_row() 421 if (!ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_rgb_row() 452 if (!ReadOK(source->pub.input_file, source->iobuffer, source->buffer_width)) in get_rgb_cmyk_row() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/tools/ |
D | hex_floats_to_packed_literal.cc | 35 string input_file = ""; in main() local 38 tensorflow::Flag("input_file", &input_file, "file to convert"), in main() 48 if (input_file.empty()) { in main() 57 tensorflow::Env::Default()->NewRandomAccessFile(input_file, &file)); in main()
|
/external/vboot_reference/host/lib/include/ |
D | file_keys.h | 19 uint8_t* BufferFromFile(const char* input_file, uint64_t* len); 26 RSAPublicKey* RSAPublicKeyFromFile(const char* input_file); 32 uint8_t* DigestFile(char* input_file, int sig_algorithm);
|