Home
last modified time | relevance | path

Searched refs:file_content (Results 1 – 25 of 45) sorted by relevance

12

/external/skqp/tools/
Dsanitize_source_files.py110 def CopywriteChecker(file_content, unused_file_path): argument
114 return file_content
117 def EOFOneAndOnlyOneNewlineAdder(file_content, file_path): argument
119 if file_content and (file_content[-1] != '\n' or file_content[-2:-1] == '\n'):
120 file_content = file_content.rstrip()
121 file_content += '\n'
123 return file_content
126 def SvnEOLChecker(file_content, file_path): argument
133 return file_content
/external/skia/tools/
Dsanitize_source_files.py112 def CopywriteChecker(file_content, unused_file_path): argument
116 return file_content
119 def EOFOneAndOnlyOneNewlineAdder(file_content, file_path): argument
121 if file_content and (file_content[-1] != '\n' or file_content[-2:-1] == '\n'):
122 file_content = file_content.rstrip()
123 file_content += '\n'
125 return file_content
128 def SvnEOLChecker(file_content, file_path): argument
135 return file_content
/external/angle/third_party/vulkan-deps/spirv-tools/src/utils/
Dfixup_fuzz_result.py22 file_content = file.read() variable
23 content = file_content[:len(file_content) - (len(file_content) % 4)]
/external/deqp-deps/SPIRV-Tools/utils/
Dfixup_fuzz_result.py22 file_content = file.read() variable
23 content = file_content[:len(file_content) - (len(file_content) % 4)]
/external/swiftshader/third_party/SPIRV-Tools/utils/
Dfixup_fuzz_result.py22 file_content = file.read() variable
23 content = file_content[:len(file_content) - (len(file_content) % 4)]
/external/tensorflow/tensorflow/lite/ios/
Dextract_object_files.py73 for name, file_content in _extract_next_file(archive_file):
74 digest = hashlib.md5(file_content).digest()
85 object_file.write(file_content)
172 file_content = archive_file.read(size)
178 yield (name, file_content)
/external/protobuf/src/google/protobuf/compiler/
Dmock_code_generator.cc139 const std::string& file_content, in CheckSingleAnnotation() argument
142 ASSERT_GE(file_content.size(), annotation.begin()); in CheckSingleAnnotation()
143 ASSERT_GE(file_content.size(), annotation.end()); in CheckSingleAnnotation()
147 file_content.substr(annotation.begin(), expected_text.size())); in CheckSingleAnnotation()
154 std::string file_content; in CheckGeneratedAnnotations() local
157 &file_content, true)); in CheckGeneratedAnnotations()
165 CheckSingleAnnotation("first_annotation", "first", file_content, in CheckGeneratedAnnotations()
167 CheckSingleAnnotation("second_annotation", "second", file_content, in CheckGeneratedAnnotations()
169 CheckSingleAnnotation("third_annotation", "third", file_content, in CheckGeneratedAnnotations()
Dannotation_test_util.cc136 const std::string& file_content, in AtLeastOneAnnotationMatchesSubstring() argument
146 if (end < begin || end > file_content.size()) { in AtLeastOneAnnotationMatchesSubstring()
149 if (file_content.substr(begin, end - begin) == expected_text) { in AtLeastOneAnnotationMatchesSubstring()
156 bool AnnotationMatchesSubstring(const std::string& file_content, in AnnotationMatchesSubstring() argument
161 return AtLeastOneAnnotationMatchesSubstring(file_content, annotations, in AnnotationMatchesSubstring()
Dannotation_test_util.h53 std::string file_content; member
100 const std::string& file_content,
106 bool AnnotationMatchesSubstring(const std::string& file_content,
/external/tensorflow/tensorflow/python/tools/
Dsaved_model_utils.py61 file_content = file_io.FileIO(path_to_pb, "rb").read()
62 saved_model.ParseFromString(file_content)
68 file_content = file_io.FileIO(path_to_pbtxt, "rb").read()
69 text_format.Merge(file_content.decode("utf-8"), saved_model)
/external/libbrillo/brillo/http/
Dhttp_form_data_test.cc45 std::string file_content{"text line1\ntext line2\n"}; in TEST() local
47 ASSERT_EQ(file_content.size(), in TEST()
49 file_name, file_content.data(), file_content.size()))); in TEST()
67 EXPECT_EQ(file_content, GetFormFieldData(&form_field)); in TEST()
/external/libbrillo/brillo/
Dfile_utils_test.cc355 std::string file_content = base::RandBytesAsString(kFileSize); in TEST_F() local
356 EXPECT_TRUE(WriteStringToFile(filename, file_content)); in TEST_F()
386 std::string file_content = base::RandBytesAsString(kFileSize); in TEST_F() local
387 EXPECT_TRUE(WriteStringToFile(filename, file_content)); in TEST_F()
412 std::string file_content = base::RandBytesAsString(kFileSize); in TEST_F() local
413 EXPECT_TRUE(WriteStringToFile(filename, file_content)); in TEST_F()
466 std::string file_content = base::RandBytesAsString(kFileSize); in TEST_F() local
467 EXPECT_TRUE(WriteStringToFile(filename, file_content)); in TEST_F()
493 std::string file_content = base::RandBytesAsString(kFileSize); in TEST_F() local
494 EXPECT_TRUE(WriteStringToFile(filename, file_content)); in TEST_F()
/external/tensorflow/tensorflow/lite/schema/builtin_ops_header/
Dconsistency_test.cc32 std::string file_content((std::istreambuf_iterator<char>(input_stream)), in TEST()
39 EXPECT_EQ(file_content, generated_content); in TEST()
/external/rust/crates/nix/test/sys/
Dtest_uio.rs110 let mut file_content = Vec::new(); in test_pwrite() localVariable
111 file.read_to_end(&mut file_content).unwrap(); in test_pwrite()
114 assert_eq!(file_content, expected); in test_pwrite()
126 let file_content: Vec<u8> = (0..64).collect(); in test_pread() localVariable
127 file.write_all(&file_content).unwrap(); in test_pread()
/external/tflite-support/tensorflow_lite_support/cc/task/core/
Dexternal_file_handler.cc71 if (!external_file_.file_content().empty()) { in MapExternalFile()
174 if (!external_file_.file_content().empty()) { in GetFileContent()
175 return external_file_.file_content(); in GetFileContent()
/external/tensorflow/tensorflow/lite/testing/model_coverage/
Dmodel_coverage_lib.py339 file_content = f.read()
343 graph_def.ParseFromString(file_content)
345 if not isinstance(file_content, str):
347 file_content = file_content.encode("utf-8")
349 file_content = file_content.decode("utf-8")
350 _text_format.Merge(file_content, graph_def)
/external/webrtc/tools_webrtc/presubmit_checks_lib/
Dcheck_orphan_headers_test.py85 file_content = """
118 check_orphan_headers.GetHeadersInBuildGnFileSources(file_content,
Dcheck_orphan_headers.py96 def GetHeadersInBuildGnFileSources(file_content, target_abs_path): argument
109 for target_match in TARGET_RE.finditer(file_content):
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap05.c70 char file_content; in main() local
106 file_content = addr[0]; in main()
/external/tensorflow/tensorflow/python/saved_model/
Dloader_impl.py98 file_content = file_io.FileIO(path_to_pb, "rb").read()
99 saved_model.ParseFromString(file_content)
105 file_content = file_io.FileIO(path_to_pbtxt, "rb").read()
106 text_format.Merge(file_content.decode("utf-8"), saved_model)
/external/zlib/google/
Dzip_unittest.cc548 std::string file_content; in TEST_F() local
550 temp_dir.Append(FILE_PATH_LITERAL("foo.txt")), &file_content)); in TEST_F()
551 EXPECT_EQ(VirtualFileSystem::kFooContent, file_content); in TEST_F()
553 bar_dir.Append(FILE_PATH_LITERAL("bar1.txt")), &file_content)); in TEST_F()
554 EXPECT_EQ(VirtualFileSystem::kBar1Content, file_content); in TEST_F()
556 bar_dir.Append(FILE_PATH_LITERAL("bar2.txt")), &file_content)); in TEST_F()
557 EXPECT_EQ(VirtualFileSystem::kBar2Content, file_content); in TEST_F()
/external/tensorflow/tensorflow/python/lib/io/
Dfile_io.py100 def write(self, file_content): argument
103 self._writable_file.append(compat.as_bytes(file_content))
324 def write_string_to_file(filename, file_content): argument
335 f.write(file_content)
/external/angle/third_party/zlib/google/
Dzip_unittest.cc580 std::string file_content; in TEST_F() local
582 temp_dir.Append(FILE_PATH_LITERAL("foo.txt")), &file_content)); in TEST_F()
583 EXPECT_EQ(VirtualFileSystem::kFooContent, file_content); in TEST_F()
585 bar_dir.Append(FILE_PATH_LITERAL("bar1.txt")), &file_content)); in TEST_F()
586 EXPECT_EQ(VirtualFileSystem::kBar1Content, file_content); in TEST_F()
588 bar_dir.Append(FILE_PATH_LITERAL("bar2.txt")), &file_content)); in TEST_F()
589 EXPECT_EQ(VirtualFileSystem::kBar2Content, file_content); in TEST_F()
/external/llvm-project/lldb/test/API/functionalities/gdb_remote_client/
DTestWasm.py78 file_content = bytearray(file.read())
80 addr_to = addr_from + min(length, len(file_content) - addr_from)
82 result += format(file_content[i], '02x')
/external/tflite-support/tensorflow_lite_support/cc/task/core/proto/
Dexternal_file.proto25 // (1) file contents loaded in `file_content`.
37 optional bytes file_content = 2; field

12