Home
last modified time | relevance | path

Searched refs:file_contents (Results 1 – 25 of 40) sorted by relevance

12

/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
Dhtml_module_unittest.py79 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/python/apitools/samples/storage_sample/
Ddownloads_test.py57 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/
Dupdate_api_def.cc147 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 …]
Dapi_test.cc56 string file_contents; in GetGoldenApiDefs() local
57 TF_CHECK_OK(ReadFileToString(env, file_path, &file_contents)); in GetGoldenApiDefs()
58 file_contents = PBTxtFromMultiline(file_contents); in GetGoldenApiDefs()
61 QCHECK(tensorflow::protobuf::TextFormat::ParseFromString(file_contents, in GetGoldenApiDefs()
Dupdate_api_def.h32 string RemoveDoc(const OpDef& op, const string& file_contents,
/external/fonttools/Snippets/
Dchecksum.py47 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/
Dio_ops_test.py60 file_contents = f.read()
61 self.assertEqual(file_contents, contents)
74 file_contents = f.read()
75 self.assertEqual(file_contents, contents)
/external/autotest/tko/
Djsonp_fetcher.cgi26 file_contents = urllib2.urlopen('http://localhost' + path).read() variable
27 result_dict['result'] = file_contents
/external/tensorflow/tensorflow/python/lib/io/
Dfile_io_test.py53 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/compiler-rt/lib/sanitizer_common/
Dsanitizer_suppressions.cc65 char *file_contents; in ParseFromFile() local
68 if (!ReadFileToBuffer(filename, &file_contents, &buffer_size, in ParseFromFile()
75 Parse(file_contents); in ParseFromFile()
/external/tensorflow/tensorflow/contrib/ffmpeg/
Ddecode_audio_op.cc45 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/v8/gypfiles/
Dgyp_environment.py25 file_contents = open(file_path).read()
27 file_data = eval(file_contents, {'__builtins__': None}, None)
/external/chromium-trace/catapult/devil/devil/android/tools/
Ddevice_monitor_test.py30 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/skqp/tools/copyright/
Dfileparser.py76 def FindAllCommentBlocks(self, file_contents): argument
79 return self._comment_pattern.findall(file_contents)
/external/skia/tools/copyright/
Dfileparser.py76 def FindAllCommentBlocks(self, file_contents): argument
79 return self._comment_pattern.findall(file_contents)
/external/autotest/server/cros/dynamic_suite/
Dcontrol_file_getter.py342 file_contents = self._list_suite_controls(suite_name=suite_name)
343 files = file_contents.keys()
347 return {f: file_contents[f] for f in files}
Dcontrol_file_getter_unittest.py73 file_contents = {f:self._CONTENTS for f in self._FILES}
76 suite_name='').AndReturn(file_contents)
80 self.assertEquals(suite_info[k], file_contents[k])
/external/swiftshader/third_party/SPIRV-Tools/test/tools/
Dexpect.py318 file_contents = target_file.read()
320 if file_contents == self.expected_file_contents:
325 act=file_contents,
331 file_contents.split('\n'),
335 if self.expected_file_contents.search(file_contents):
339 act=file_contents,
/external/deqp-deps/SPIRV-Tools/test/tools/
Dexpect.py318 file_contents = target_file.read()
320 if file_contents == self.expected_file_contents:
325 act=file_contents,
331 file_contents.split('\n'),
335 if self.expected_file_contents.search(file_contents):
339 act=file_contents,
/external/google-breakpad/src/processor/
Dmicrodump_processor_unittest.cc62 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/protobuf/src/google/protobuf/compiler/
Dcommand_line_interface_unittest.cc474 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()
Dimporter_unittest.cc276 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/
Dmacho_dump.cc161 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.2/
Dsupplicant.cpp44 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()
/external/libchrome/base/process/
Dprocess_metrics_linux.cc45 std::string file_contents; in ReadFileToUint64() local
46 if (!ReadFileToString(file, &file_contents)) in ReadFileToUint64()
48 TrimWhitespaceASCII(file_contents, TRIM_ALL, &file_contents); in ReadFileToUint64()
50 if (!StringToUint64(file_contents, &file_contents_uint64)) in ReadFileToUint64()

12