/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/ |
D | html_module_unittest.py | 79 file_contents = {} 80 file_contents[os.path.normpath('/tmp/a/foo.js')] = """ 85 FakeLoader([os.path.normpath('/tmp')], file_contents), 99 file_contents = {} 100 file_contents[os.path.normpath('/foo.js')] = '' 103 html_module.Parse(FakeLoader([os.path.normpath('/tmp')], file_contents), 115 file_contents = {} 118 html_module.Parse(FakeLoader([os.path.normpath('/tmp')], file_contents), 130 file_contents = {} 131 file_contents[os.path.normpath('/tmp/a/foo.html')] = """ [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 | 57 string file_contents; in GetGoldenApiDefs() local 58 TF_CHECK_OK(ReadFileToString(env, file_path, &file_contents)); in GetGoldenApiDefs() 59 file_contents = PBTxtFromMultiline(file_contents); in GetGoldenApiDefs() 62 CHECK(tensorflow::protobuf::TextFormat::ParseFromString(file_contents, in GetGoldenApiDefs()
|
/external/vulkan-validation-layers/scripts/ |
D | spec.py | 209 file_contents = [] 210 file_contents.append(self.copyright) 211 file_contents.append('\n#pragma once') 212 file_contents.append('\n// Disable auto-formatting for generated file') 213 file_contents.append('// clang-format off') 214 file_contents.append('\n#include <unordered_map>') 215 file_contents.append('\n// enum values for unique validation error codes') 216 …file_contents.append('// Corresponding validation error message for each enum is given in the map… 217 …file_contents.append('// When a given error occurs, these enum values should be passed to the as … 218 file_contents.append('// parameter to the PFN_vkDebugReportCallbackEXT function') [all …]
|
/external/v8/tools/testrunner/server/ |
D | signatures.py | 36 file_contents = base64.b64encode(f.read()) 47 return [file_contents, signature] 50 def VerifySignature(filename, file_contents, signature, pubkeyfile): argument 52 f.write(base64.b64decode(file_contents))
|
/external/libmojo/mojo/edk/embedder/ |
D | platform_channel_pair_posix_unittest.cc | 207 const std::string file_contents("hello world"); in TEST_F() local 214 ASSERT_EQ(file_contents.size(), in TEST_F() 215 fwrite(file_contents.data(), 1, file_contents.size(), fp.get())); in TEST_F() 254 EXPECT_EQ(file_contents.size(), bytes_read); in TEST_F() 255 EXPECT_EQ(file_contents, std::string(read_buf, bytes_read)); in TEST_F()
|
/external/tensorflow/tensorflow/python/lib/io/ |
D | file_io_test.py | 53 file_contents = file_io.read_file_to_string(file_path) 54 self.assertEqual("testing", file_contents) 60 file_contents = file_io.read_file_to_string(file_path) 61 self.assertEqual("testing", file_contents) 68 file_contents = file_io.read_file_to_string(file_path) 69 self.assertEqual("old", file_contents) 72 file_contents = file_io.read_file_to_string(file_path) 73 self.assertEqual("new", file_contents) 96 file_contents = f.read() 97 self.assertEqual("begin\na1\na2\n", file_contents) [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | io_ops_test.py | 58 file_contents = f.read() 59 self.assertEqual(file_contents, contents) 72 file_contents = f.read() 73 self.assertEqual(file_contents, contents)
|
/external/autotest/client/site_tests/network_ShillInitScripts/ |
D | network_ShillInitScripts.py | 330 def file_contents(self, filename): member in network_ShillInitScripts 462 self.assure(self.magic_header in self.file_contents(shill_profile), 482 self.assure(self.magic_header not in self.file_contents(shill_profile), 590 self.file_contents(self.new_shill_user_profile), 671 self.file_contents(self.new_shill_user_profile), 695 self.file_contents(self.new_shill_user_profile), 716 self.file_contents(self.new_shill_user_profile), 742 self.file_contents(self.new_shill_user_profile),
|
/external/tensorflow/tensorflow/contrib/ffmpeg/ |
D | decode_audio_op.cc | 45 const tensorflow::StringPiece& file_contents, in Decode() argument 50 OP_REQUIRES_OK(context, WriteFile(temp_filename, file_contents)); in Decode() 248 const tensorflow::StringPiece file_contents = contents.scalar<string>()(); in Compute() local 249 Decode(context, file_contents, file_format_, samples_per_second_, in Compute()
|
/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/autotest/tko/ |
D | jsonp_fetcher.cgi | 26 file_contents = urllib2.urlopen('http://localhost' + path).read() variable 27 result_dict['result'] = file_contents
|
/external/chromium-trace/catapult/devil/devil/android/tools/ |
D | device_monitor_test.py | 30 self.file_contents = { 41 side_effect=lambda file_name: self.file_contents[file_name]) 161 self.file_contents['/sys/class/thermal/thermal_zone0/temp'] = 'n0t a numb3r'
|
/external/v8/gypfiles/ |
D | gyp_environment.py | 25 file_contents = open(file_path).read() 27 file_data = eval(file_contents, {'__builtins__': None}, None)
|
/external/autotest/server/cros/dynamic_suite/ |
D | control_file_getter.py | 341 file_contents = self._list_suite_controls(suite_name=suite_name) 342 files = file_contents.keys() 346 return {f: file_contents[f] for f in files}
|
D | control_file_getter_unittest.py | 75 file_contents = {f:self._CONTENTS for f in self._FILES} 78 suite_name='').AndReturn(file_contents) 82 self.assertEquals(suite_info[k], file_contents[k])
|
/external/skia/tools/copyright/ |
D | fileparser.py | 76 def FindAllCommentBlocks(self, file_contents): argument 79 return self._comment_pattern.findall(file_contents)
|
/external/skqp/tools/copyright/ |
D | fileparser.py | 76 def FindAllCommentBlocks(self, file_contents): argument 79 return self._comment_pattern.findall(file_contents)
|
/external/google-breakpad/src/processor/ |
D | microdump_processor_unittest.cc | 62 void ReadFile(const string& file_name, string* file_contents) { in ReadFile() argument 63 assert(file_contents); in ReadFile() 74 *file_contents = string(&bytes[0], bytes.size()); in ReadFile()
|
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.0/ |
D | supplicant.cpp | 31 std::string file_contents; in copyFile() local 32 if (!android::base::ReadFileToString(src_file_path, &file_contents)) { in copyFile() 39 file_contents, dest_file_path, kConfigFileMode, getuid(), in copyFile()
|
/external/libmojo/third_party/catapult/devil/devil/android/ |
D | flag_changer.py | 125 file_contents = self._device.ReadFile( 127 assert file_contents == cmd_line, (
|
/external/protobuf/src/google/protobuf/compiler/ |
D | command_line_interface_unittest.cc | 474 string file_contents; in Run() local 475 GOOGLE_CHECK_OK(File::GetContents(path, &file_contents, true)); in Run() 477 if (!descriptor_set->ParseFromString(file_contents)) { in Run() 491 string file_contents; in Run() local 492 GOOGLE_CHECK_OK(File::GetContents(path, &file_contents, true)); in Run() 495 file_contents); in Run()
|
D | importer_unittest.cc | 276 string file_contents; in ExpectFileContents() local 280 file_contents.append(reinterpret_cast<const char*>(data), size); in ExpectFileContents() 283 EXPECT_EQ(expected_contents, file_contents); in ExpectFileContents()
|
/external/google-breakpad/src/tools/mac/dump_syms/ |
D | macho_dump.cc | 161 ByteBuffer file_contents(reinterpret_cast<uint8_t *>(mapping) in DumpFile() local 165 if (!reader.Read(file_contents, file.cputype, file.cpusubtype)) { in DumpFile()
|
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.1/ |
D | supplicant.cpp | 44 std::string file_contents; in copyFile() local 45 if (!android::base::ReadFileToString(src_file_path, &file_contents)) { in copyFile() 52 file_contents, dest_file_path, kConfigFileMode, getuid(), in copyFile()
|