/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/ |
H A 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[o [all...] |
/external/tensorflow/tensorflow/core/api_def/ |
H A D | update_api_def.h | 29 // If unsuccessful, returns original file_contents and prints an error. 31 // in file_contents. 32 string RemoveDoc(const OpDef& op, const string& file_contents,
|
H A D | update_api_def.cc | 147 string RemoveDoc(const OpDef& op, const string& file_contents, argument 150 const auto doc_start_location = file_contents.find(kDocStart, start_location); 158 return file_contents; 160 const auto doc_end_location = file_contents.find(kDocEnd, doc_start_location); 164 return file_contents; 168 string doc_text = file_contents.substr( 177 return file_contents; 180 auto before_doc = file_contents.substr(0, doc_start_location); 183 file_contents.substr(doc_end_location + sizeof(kDocEnd) - 1); 195 string file_contents; local [all...] |
H A D | api_test.cc | 57 string file_contents; local 58 TF_CHECK_OK(ReadFileToString(env, file_path, &file_contents)); 59 file_contents = PBTxtFromMultiline(file_contents); 62 CHECK(tensorflow::protobuf::TextFormat::ParseFromString(file_contents,
|
/external/v8/tools/testrunner/server/ |
H A D | signatures.py | 36 file_contents = base64.b64encode(f.read()) 47 return [file_contents, signature] 50 def VerifySignature(filename, file_contents, signature, pubkeyfile): 52 f.write(base64.b64decode(file_contents))
|
/external/autotest/tko/ |
H A D | jsonp_fetcher.cgi | 26 file_contents = urllib2.urlopen('http://localhost' + path).read() variable in class:LogFileNotFound 27 result_dict['result'] = file_contents
|
/external/vulkan-validation-layers/scripts/ |
H A 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 mapping table below') 217 file_contents.append('// When a given error occurs, these enum values should be passed to the as the messageCode') 218 file_contents [all...] |
/external/skia/tools/copyright/ |
H A D | fileparser.py | 76 def FindAllCommentBlocks(self, file_contents): 79 return self._comment_pattern.findall(file_contents)
|
/external/skqp/tools/copyright/ |
H A D | fileparser.py | 76 def FindAllCommentBlocks(self, file_contents): 79 return self._comment_pattern.findall(file_contents)
|
/external/v8/gypfiles/ |
H A D | gyp_environment.py | 25 file_contents = open(file_path).read() 27 file_data = eval(file_contents, {'__builtins__': None}, None)
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
H A 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/chromium-trace/catapult/devil/devil/android/tools/ |
H A 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/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_suppressions.cc | 65 char *file_contents; local 68 if (!ReadFileToBuffer(filename, &file_contents, &buffer_size, 75 Parse(file_contents);
|
/external/libmojo/mojo/edk/embedder/ |
H A D | platform_channel_pair_posix_unittest.cc | 207 const std::string file_contents("hello world"); 214 ASSERT_EQ(file_contents.size(), 215 fwrite(file_contents.data(), 1, file_contents.size(), fp.get())); 254 EXPECT_EQ(file_contents.size(), bytes_read); 255 EXPECT_EQ(file_contents, std::string(read_buf, bytes_read));
|
/external/libmojo/third_party/catapult/devil/devil/android/ |
H A D | flag_changer.py | 125 file_contents = self._device.ReadFile( 127 assert file_contents == cmd_line, (
|
/external/tensorflow/tensorflow/contrib/ffmpeg/ |
H A D | decode_audio_op.cc | 45 const tensorflow::StringPiece& file_contents, 50 OP_REQUIRES_OK(context, WriteFile(temp_filename, file_contents)); 248 const tensorflow::StringPiece file_contents = contents.scalar<string>()(); variable 249 Decode(context, file_contents, file_format_, samples_per_second_, 44 Decode(OpKernelContext* context, const tensorflow::StringPiece& file_contents, const string& file_format, const int32 samples_per_second, const int32 channel_count, const string& stream) argument
|
/external/autotest/client/site_tests/network_ShillInitScripts/ |
H A D | network_ShillInitScripts.py | 330 def file_contents(self, filename): member in class: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/google-breakpad/src/tools/mac/dump_syms/ |
H A D | macho_dump.cc | 161 ByteBuffer file_contents(reinterpret_cast<uint8_t *>(mapping) 165 if (!reader.Read(file_contents, file.cputype, file.cpusubtype)) {
|
/external/autotest/server/cros/dynamic_suite/ |
H A 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}
|
H A 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/google-breakpad/src/processor/ |
H A D | microdump_processor_unittest.cc | 62 void ReadFile(const string& file_name, string* file_contents) { argument 63 assert(file_contents); 74 *file_contents = string(&bytes[0], bytes.size());
|
/external/tensorflow/tensorflow/python/lib/io/ |
H A 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/wpa_supplicant_8/wpa_supplicant/hidl/1.0/ |
H A D | supplicant.cpp | 31 std::string file_contents; local 32 if (!android::base::ReadFileToString(src_file_path, &file_contents)) { 39 file_contents, dest_file_path, kConfigFileMode, getuid(),
|
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.1/ |
H A D | supplicant.cpp | 44 std::string file_contents; local 45 if (!android::base::ReadFileToString(src_file_path, &file_contents)) { 52 file_contents, dest_file_path, kConfigFileMode, getuid(),
|
/external/protobuf/src/google/protobuf/compiler/ |
H A D | importer_unittest.cc | 276 string file_contents; local 280 file_contents.append(reinterpret_cast<const char*>(data), size); 283 EXPECT_EQ(expected_contents, file_contents);
|