/system/core/init/ |
util_test.cpp | 34 auto file_contents = ReadFile("/proc/does-not-exist"); local 36 ASSERT_FALSE(file_contents); 37 EXPECT_EQ("open() failed: No such file or directory", file_contents.error_string()); 46 auto file_contents = ReadFile(tf.path); local 47 ASSERT_FALSE(file_contents) << strerror(errno); 48 EXPECT_EQ("Skipping insecure file", file_contents.error_string()); 57 auto file_contents = ReadFile(tf.path); local 58 ASSERT_FALSE(file_contents) << strerror(errno); 59 EXPECT_EQ("Skipping insecure file", file_contents.error_string()); 65 auto file_contents = ReadFile("/charger") local 72 auto file_contents = ReadFile("\/proc\/version"); local 102 auto file_contents = ReadFile(path); local 117 auto file_contents = ReadFile(tf.path); local [all...] |
persistent_properties.cpp | 150 auto file_contents = ReadFile(persistent_property_filename); local 151 if (!file_contents) { 152 return Error() << "Unable to read persistent property file: " << file_contents.error(); 154 return *file_contents; 160 auto file_contents = ReadPersistentPropertyFile(); local 161 if (!file_contents) return file_contents.error(); 164 if (persistent_properties.ParseFromString(*file_contents)) return persistent_properties;
|
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/ |
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/ |
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,
|
update_api_def.cc | 147 string RemoveDoc(const OpDef& op, const string& file_contents, 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...] |
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/ |
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/ |
jsonp_fetcher.cgi | 26 file_contents = urllib2.urlopen('http://localhost' + path).read() variable in class:LogFileNotFound 27 result_dict['result'] = file_contents
|
/test/vts-testcase/kernel/api/selinux/ |
KernelSelinuxFileTestBase.py | 36 def result_correct(self, file_contents): 43 file_contents: String, the contents of an selinux file
|
/external/vulkan-validation-layers/scripts/ |
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.append('// parameter to the PFN_vkDebugReportCallbackEXT function' [all...] |
/toolchain/binutils/binutils-2.27/ld/testsuite/ld-x86-64/ |
dwarfreloc.exp | 83 set comp_output [prune_warnings [file_contents "ld.stderr"]] 93 verbose "output is [file_contents "dump.out"]" 2 108 set comp_output [prune_warnings [file_contents "ld.stderr"]] 118 verbose "output is [file_contents "dump.out"]" 2
|
/external/skia/tools/copyright/ |
fileparser.py | 76 def FindAllCommentBlocks(self, file_contents): 79 return self._comment_pattern.findall(file_contents)
|
/external/skqp/tools/copyright/ |
fileparser.py | 76 def FindAllCommentBlocks(self, file_contents): 79 return self._comment_pattern.findall(file_contents)
|
/external/v8/gypfiles/ |
gyp_environment.py | 25 file_contents = open(file_path).read() 27 file_data = eval(file_contents, {'__builtins__': None}, None)
|
/prebuilts/ndk/r16/sources/third_party/vulkan/src/layers/ |
spec.py | 170 file_contents = [] 171 file_contents.append(self.copyright) 172 file_contents.append('\n#pragma once') 173 file_contents.append('#include <unordered_map>') 174 file_contents.append('\n// enum values for unique validation error codes') 175 file_contents.append('// Corresponding validation error message for each enum is given in the mapping table below') 176 file_contents.append('// When a given error occurs, these enum values should be passed to the as the messageCode') 177 file_contents.append('// parameter to the PFN_vkDebugReportCallbackEXT function') 187 file_contents.extend(enum_decl) 188 file_contents.append('\n// Mapping from unique validation error enum to the corresponding error message' [all...] |
/external/tensorflow/tensorflow/python/kernel_tests/ |
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)
|
/system/core/property_service/libpropertyinfoserializer/include/property_info_serializer/ |
property_info_serializer.h | 44 void ParsePropertyInfoFile(const std::string& file_contents,
|
/system/core/property_service/libpropertyinfoserializer/ |
property_info_file.cpp | 96 void ParsePropertyInfoFile(const std::string& file_contents, 103 for (const auto& line : Split(file_contents, "\n")) {
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_suppressions.cc | 65 char *file_contents; local 68 if (!ReadFileToBuffer(filename, &file_contents, &buffer_size, 75 Parse(file_contents);
|
/system/core/property_service/property_info_checker/ |
property_info_checker.cpp | 149 auto file_contents = std::string{}; local 150 if (!ReadFileToString(filename, &file_contents)) { 156 ParsePropertyInfoFile(file_contents, &property_info_entries, &errors);
|
/external/libmojo/mojo/edk/embedder/ |
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));
|
/toolchain/binutils/binutils-2.27/binutils/testsuite/binutils-all/ |
readelf.exp | 33 proc file_contents { filename } { 62 [file_contents readelf.out] nil readelf_size] } { 64 verbose -log "output is \n[file_contents readelf.out]" 120 verbose "output is \n[file_contents readelf.out]" 2 241 if { [string compare [file_contents readelf.out] [file_contents $srcdir/$subdir/readelf.wa]] != 0 } then { 243 verbose "output is \n[file_contents readelf.out]" 2 244 verbose "expected is \n[file_contents $srcdir/$subdir/readelf.wa]" 2
|
/toolchain/binutils/binutils-2.27/ld/testsuite/ld-plugin/ |
plugin.exp | 40 set plugin_name [file_contents "$base_dir/libldtestplug.la"] 50 set plugin2_name [file_contents "$base_dir/libldtestplug2.la"] 54 set plugin3_name [file_contents "$base_dir/libldtestplug3.la"] 58 set plugin4_name [file_contents "$base_dir/libldtestplug4.la"]
|
/external/tensorflow/tensorflow/contrib/ffmpeg/ |
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_,
|
/toolchain/binutils/binutils-2.27/ld/testsuite/ld-ifunc/ |
ifunc.exp | 73 [file_contents readelf.out] nil osabi] } { 104 if { ![regexp ".*\[ \]*IFUNC\[ \]+GLOBAL\[ \]+DEFAULT .* \[UND0-9\]+\[ \]+library_func2\n" [file_contents readelf.out]] } { 131 if { ![regexp "\[0-9a-f\]+\[ \]+\[0-9a-f\]+\[ \]+R_\[_0-9A-Z\]+_IREL(|ATIVE)\[ \]*\[0-9a-f\]*\n" [file_contents readelf.out]] } { 151 if [string match "" [file_contents readelf.out]] then { 156 if { ![regexp "\\(\\)" [file_contents readelf.out]] } {
|