/external/skia/tools/ |
D | sanitize_source_files.py | 112 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/deqp-deps/SPIRV-Tools/utils/ |
D | fixup_fuzz_result.py | 22 file_content = file.read() variable 23 content = file_content[:len(file_content) - (len(file_content) % 4)]
|
/external/angle/third_party/spirv-tools/src/utils/ |
D | fixup_fuzz_result.py | 22 file_content = file.read() variable 23 content = file_content[:len(file_content) - (len(file_content) % 4)]
|
/external/swiftshader/third_party/SPIRV-Tools/utils/ |
D | fixup_fuzz_result.py | 22 file_content = file.read() variable 23 content = file_content[:len(file_content) - (len(file_content) % 4)]
|
/external/protobuf/src/google/protobuf/compiler/ |
D | mock_code_generator.cc | 149 const std::string& file_content, in CheckSingleAnnotation() argument 152 ASSERT_GE(file_content.size(), annotation.begin()); in CheckSingleAnnotation() 153 ASSERT_GE(file_content.size(), annotation.end()); in CheckSingleAnnotation() 157 file_content.substr(annotation.begin(), expected_text.size())); in CheckSingleAnnotation() 164 std::string file_content; in CheckGeneratedAnnotations() local 167 &file_content, true)); in CheckGeneratedAnnotations() 176 CheckSingleAnnotation("first_annotation", "first", file_content, in CheckGeneratedAnnotations() 181 file_content, annotations.annotation(1)); in CheckGeneratedAnnotations() 185 file_content, annotations.annotation(2)); in CheckGeneratedAnnotations() 186 CheckSingleAnnotation("second_annotation", "second", file_content, in CheckGeneratedAnnotations() [all …]
|
D | annotation_test_util.cc | 136 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()
|
D | annotation_test_util.h | 53 std::string file_content; member 100 const std::string& file_content, 106 bool AnnotationMatchesSubstring(const std::string& file_content,
|
/external/cronet/stable/third_party/protobuf/src/google/protobuf/compiler/ |
D | mock_code_generator.cc | 149 const std::string& file_content, in CheckSingleAnnotation() argument 152 ASSERT_GE(file_content.size(), annotation.begin()); in CheckSingleAnnotation() 153 ASSERT_GE(file_content.size(), annotation.end()); in CheckSingleAnnotation() 157 file_content.substr(annotation.begin(), expected_text.size())); in CheckSingleAnnotation() 164 std::string file_content; in CheckGeneratedAnnotations() local 167 &file_content, true)); in CheckGeneratedAnnotations() 176 CheckSingleAnnotation("first_annotation", "first", file_content, in CheckGeneratedAnnotations() 181 file_content, annotations.annotation(1)); in CheckGeneratedAnnotations() 185 file_content, annotations.annotation(2)); in CheckGeneratedAnnotations() 186 CheckSingleAnnotation("second_annotation", "second", file_content, in CheckGeneratedAnnotations() [all …]
|
D | annotation_test_util.cc | 136 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()
|
D | annotation_test_util.h | 53 std::string file_content; member 100 const std::string& file_content, 106 bool AnnotationMatchesSubstring(const std::string& file_content,
|
/external/cronet/tot/third_party/protobuf/src/google/protobuf/compiler/ |
D | mock_code_generator.cc | 149 const std::string& file_content, in CheckSingleAnnotation() argument 152 ASSERT_GE(file_content.size(), annotation.begin()); in CheckSingleAnnotation() 153 ASSERT_GE(file_content.size(), annotation.end()); in CheckSingleAnnotation() 157 file_content.substr(annotation.begin(), expected_text.size())); in CheckSingleAnnotation() 164 std::string file_content; in CheckGeneratedAnnotations() local 167 &file_content, true)); in CheckGeneratedAnnotations() 176 CheckSingleAnnotation("first_annotation", "first", file_content, in CheckGeneratedAnnotations() 181 file_content, annotations.annotation(1)); in CheckGeneratedAnnotations() 185 file_content, annotations.annotation(2)); in CheckGeneratedAnnotations() 186 CheckSingleAnnotation("second_annotation", "second", file_content, in CheckGeneratedAnnotations() [all …]
|
D | annotation_test_util.cc | 136 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()
|
D | annotation_test_util.h | 53 std::string file_content; member 100 const std::string& file_content, 106 bool AnnotationMatchesSubstring(const std::string& file_content,
|
/external/tensorflow/tensorflow/lite/ios/ |
D | extract_object_files.py | 72 for name, file_content in _extract_next_file(archive_file): 73 digest = hashlib.md5(file_content).digest() 84 object_file.write(file_content) 171 file_content = archive_file.read(size) 177 yield (name, file_content)
|
/external/fmtlib/test/ |
D | util.cc | 12 const char* const file_content = "Don't panic!"; variable 17 pipe.write_end.write(file_content, std::strlen(file_content)); in open_buffered_file() 23 fputs(file_content, f.get()); in open_buffered_file()
|
/external/pytorch/torch/export/ |
D | __init__.py | 441 file_content = zipf.read(file_info.filename) 444 serialized_exported_program = file_content 447 serialized_state_dict = file_content 450 serialized_constants = file_content 452 serialized_state_dict = file_content 454 serialized_constants = file_content 456 serialized_example_inputs = file_content 459 extra_files[filename] = file_content.decode("utf-8")
|
/external/python/bumble/tests/ |
D | decoder_test.py | 31 file_content = file.read() 33 data_length = int(len(file_content) / frame_length) 37 file_content[i * frame_length : i * frame_length + frame_length]
|
/external/tensorflow/tensorflow/python/tools/ |
D | saved_model_utils.py | 57 file_content = f.read() 59 saved_model.ParseFromString(file_content) 65 file_content = f.read() 67 text_format.Merge(file_content.decode("utf-8"), saved_model)
|
/external/tensorflow/tensorflow/core/kernels/ |
D | checkpoint_callback_manager_test.cc | 210 std::string file_content; in TEST_F() local 213 &file_content)); in TEST_F() 214 EXPECT_EQ(file_content, "MockContent::model.ckpt-100"); in TEST_F() 218 &file_content)); in TEST_F() 219 EXPECT_EQ(file_content, "MockContent::model.ckpt-200"); in TEST_F() 291 std::string file_content; in TEST_F() local 294 &file_content)); in TEST_F() 295 EXPECT_EQ(file_content, "MockContent::model.ckpt-456"); in TEST_F()
|
/external/tink/cc/internal/ |
D | test_file_util.cc | 40 absl::string_view file_content) { in CreateTestFile() argument 46 output_stream.write(file_content.data(), file_content.size()); in CreateTestFile()
|
/external/libopus/dnn/torch/lpcnet/ |
D | make_test_config.py | 61 file_content = template.format( variable 71 print(file_content) 78 f.write(file_content)
|
/external/libbrillo/brillo/http/ |
D | http_form_data_test.cc | 45 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/ |
D | file_utils_test.cc | 355 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/ |
D | consistency_test.cc | 34 std::string file_content((std::istreambuf_iterator<char>(input_stream)), in TEST() 41 EXPECT_EQ(file_content, generated_content); in TEST()
|
/external/tensorflow/tensorflow/lite/schema/builtin_ops_list/ |
D | consistency_test.cc | 34 std::string file_content((std::istreambuf_iterator<char>(input_stream)), in TEST() 41 EXPECT_EQ(file_content, generated_content); in TEST()
|