/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/ |
D | html_module_unittest.py | 83 file_contents = {} 84 file_contents[os.path.normpath('/tmp/a/foo.js')] = """ 89 FakeLoader([os.path.normpath('/tmp')], file_contents), 103 file_contents = {} 104 file_contents[os.path.normpath('/foo.js')] = '' 107 html_module.Parse(FakeLoader([os.path.normpath('/tmp')], file_contents), 119 file_contents = {} 122 html_module.Parse(FakeLoader([os.path.normpath('/tmp')], file_contents), 134 file_contents = {} 135 file_contents[os.path.normpath('/tmp/a/foo.html')] = """ [all …]
|
/external/python/apitools/samples/storage_sample/ |
D | downloads_test.py | 57 file_contents = open(file_path).read() 59 file_contents, msg=('Could not read file %s' % filename)) 60 return file_contents 90 file_contents = self.__GetTestdataFileContents('fifteen_byte_file') 93 self.assertEqual(file_contents, self.__buffer.read()) 99 file_contents = self.__GetTestdataFileContents('filename_with_spaces') 102 self.assertEqual(file_contents, self.__buffer.read()) 106 file_contents = self.__GetTestdataFileContents('fifteen_byte_file') 111 self.assertEqual(file_contents[5:11], self.__buffer.read()) 114 file_contents = self.__GetTestdataFileContents('fifteen_byte_file') [all …]
|
/external/tensorflow/tensorflow/core/api_def/ |
D | update_api_def.cc | 147 string RemoveDoc(const OpDef& op, const string& file_contents, in RemoveDoc() argument 150 const auto doc_start_location = file_contents.find(kDocStart, start_location); in RemoveDoc() 158 return file_contents; in RemoveDoc() 160 const auto doc_end_location = file_contents.find(kDocEnd, doc_start_location); in RemoveDoc() 164 return file_contents; in RemoveDoc() 168 string doc_text = file_contents.substr( in RemoveDoc() 177 return file_contents; in RemoveDoc() 180 auto before_doc = file_contents.substr(0, doc_start_location); in RemoveDoc() 183 file_contents.substr(doc_end_location + sizeof(kDocEnd) - 1); in RemoveDoc() 195 string file_contents; in RemoveDocs() local [all …]
|
D | api_test.cc | 65 string file_contents; in GetGoldenApiDefs() local 66 TF_CHECK_OK(ReadFileToString(env, file_path, &file_contents)); in GetGoldenApiDefs() 67 file_contents = PBTxtFromMultiline(file_contents); in GetGoldenApiDefs() 70 QCHECK(tensorflow::protobuf::TextFormat::ParseFromString(file_contents, in GetGoldenApiDefs()
|
/external/tensorflow/tensorflow/lite/micro/tools/make/ |
D | fix_arduino_subfolders.py | 52 file_contents = source_file.read() 53 file_contents = file_contents.replace( 58 source_file.write(file_contents) 73 file_contents = source_file.read() 74 file_contents = file_contents.replace( 79 source_file.write(file_contents)
|
/external/fonttools/Snippets/ |
D | checksum.py | 47 file_contents = _read_binary(checksum_path) 50 checksum_dict[basename(checksum_path)] = hashlib.sha1(file_contents).hexdigest() 93 file_contents = _read_binary(test_path) 94 observed_sha1 = hashlib.sha1(file_contents).hexdigest()
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | io_ops_test.py | 60 file_contents = f.read() 61 self.assertEqual(file_contents, contents) 74 file_contents = f.read() 75 self.assertEqual(file_contents, contents)
|
/external/pdfium/fpdfsdk/ |
D | fpdf_dataavail_embeddertest.cpp | 91 char* file_contents() { return file_contents_.get(); } in file_contents() function in __anon3e1afc4b0111::TestAsyncLoader 302 ByteString data(loader.file_contents(), loader.file_length()); in TEST_F() 305 memcpy(loader.file_contents() + *index, "/Info 29 0 R", 12); in TEST_F() 329 ByteString data(loader.file_contents(), loader.file_length()); in TEST_F() 332 memcpy(loader.file_contents() + *index, "/Info 99 0 R", 12); in TEST_F() 355 ByteString data(loader.file_contents(), loader.file_length()); in TEST_F() 358 memcpy(loader.file_contents() + *index, "/I_fo 27 0 R", 12); in TEST_F()
|
/external/autotest/tko/ |
D | jsonp_fetcher.cgi | 26 file_contents = urllib2.urlopen('http://localhost' + path).read() variable 27 result_dict['result'] = file_contents
|
/external/webrtc/modules/audio_coding/neteq/tools/ |
D | neteq_event_log_input.cc | 34 const std::string& file_contents, in CreateFromString() argument 37 RtcEventLogSource::CreateFromString(file_contents, ssrc_filter); in CreateFromString()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_suppressions.cc | 65 char *file_contents; in ParseFromFile() local 68 if (!ReadFileToBuffer(filename, &file_contents, &buffer_size, in ParseFromFile() 75 Parse(file_contents); in ParseFromFile()
|
/external/skqp/tools/copyright/ |
D | fileparser.py | 76 def FindAllCommentBlocks(self, file_contents): argument 79 return self._comment_pattern.findall(file_contents)
|
/external/skia/tools/copyright/ |
D | fileparser.py | 76 def FindAllCommentBlocks(self, file_contents): argument 79 return self._comment_pattern.findall(file_contents)
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_suppressions.cpp | 78 char *file_contents; in ParseFromFile() local 81 if (!ReadFileToBuffer(filename, &file_contents, &buffer_size, in ParseFromFile() 88 Parse(file_contents); in ParseFromFile()
|
/external/libchrome/build/ |
D | gyp_helper.py | 19 file_contents = f.read() 21 file_data = eval(file_contents, {'__builtins__': None}, None)
|
/external/chromium-trace/catapult/devil/devil/android/tools/ |
D | device_monitor_test.py | 34 self.file_contents = { 49 side_effect=lambda file_name: self.file_contents[file_name]) 175 self.file_contents['/sys/class/thermal/thermal_zone0/temp'] = 'n0t a numb3r'
|
/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_open_test.py | 1100 file_contents = b'1\r\n2\n3\r4' 1101 self.create_file(file_path, contents=file_contents) 1113 file_contents = b'1\r\n2\n3\r4' 1114 self.create_file(file_path, contents=file_contents) 1127 file_contents = b'1\r\n2\n3\r4' 1128 self.create_file(file_path, contents=file_contents) 1160 file_contents = b'\x80\n\x80\r\x80\r\n\x80' 1164 while px < len(file_contents): 1165 ix = file_contents.find(b'\n', px) 1167 yield file_contents[px:] [all …]
|
/external/autotest/server/cros/dynamic_suite/ |
D | control_file_getter_unittest.py | 72 file_contents = {f:self._CONTENTS for f in self._FILES} 75 suite_name='').AndReturn(file_contents) 79 self.assertEquals(suite_info[k], file_contents[k])
|
D | control_file_getter.py | 351 file_contents = self._list_suite_controls(suite_name=suite_name) 352 files = list(file_contents.keys()) 356 return {f: file_contents[f] for f in files}
|
/external/tensorflow/tensorflow/python/lib/io/ |
D | file_io_test.py | 77 file_contents = file_io.read_file_to_string(file_path) 78 self.assertEqual("testing", file_contents) 84 file_contents = file_io.read_file_to_string(file_path) 85 self.assertEqual("testing", file_contents) 92 file_contents = file_io.read_file_to_string(file_path) 93 self.assertEqual("old", file_contents) 96 file_contents = file_io.read_file_to_string(file_path) 97 self.assertEqual("new", file_contents) 122 file_contents = f.read() 123 self.assertEqual("begin\na1\na2\n", file_contents) [all …]
|
/external/llvm-project/clang/unittests/Frontend/ |
D | TextDiagnosticTest.cpp | 56 auto file_contents = std::make_unique<llvm::SmallVectorMemoryBuffer>( in TEST() local 58 SrcMgr.overrideFileContents(&fe, std::move(file_contents)); in TEST()
|
/external/swiftshader/third_party/SPIRV-Tools/test/tools/ |
D | expect.py | 349 file_contents = target_file.read() 351 if file_contents == self.expected_file_contents: 356 act=file_contents, 362 file_contents.split('\n'), 366 if self.expected_file_contents.search(file_contents): 370 act=file_contents,
|
/external/deqp-deps/SPIRV-Tools/test/tools/ |
D | expect.py | 349 file_contents = target_file.read() 351 if file_contents == self.expected_file_contents: 356 act=file_contents, 362 file_contents.split('\n'), 366 if self.expected_file_contents.search(file_contents): 370 act=file_contents,
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/tools/ |
D | expect.py | 349 file_contents = target_file.read() 351 if file_contents == self.expected_file_contents: 356 act=file_contents, 362 file_contents.split('\n'), 366 if self.expected_file_contents.search(file_contents): 370 act=file_contents,
|
/external/rust/crates/zip/tests/ |
D | end_to_end.rs | 95 let file_contents: String = read_zip_file(archive, name).unwrap(); in check_zip_file_contents() localVariable 96 assert!(file_contents.as_bytes() == LOREM_IPSUM); in check_zip_file_contents()
|