/external/python/cpython2/Lib/test/ |
D | test_unicode_file.py | 78 def _do_equivalent(self, filename1, filename2): argument 82 self.assertTrue(type(filename1)!=type(filename2), 85 self.assertEqual(os.stat(filename1), 87 self.assertEqual(os.lstat(filename1), 90 self._do_copyish(filename1, filename2) 93 def _do_copyish(self, filename1, filename2): argument 95 self.assertTrue(os.path.isfile(filename1)) # must exist. 96 os.rename(filename1, filename2 + ".new") 97 self.assertTrue(os.path.isfile(filename1+".new")) 98 os.rename(filename1 + ".new", filename2) [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_unicode_file.py | 57 def _do_copyish(self, filename1, filename2): argument 59 self.assertTrue(os.path.isfile(filename1)) # must exist. 60 os.rename(filename1, filename2 + ".new") 62 self.assertTrue(os.path.isfile(filename1 + '.new')) 63 os.rename(filename1 + ".new", filename2) 64 self.assertFalse(os.path.isfile(filename1 + '.new')) 67 shutil.copy(filename1, filename2 + ".new") 68 os.unlink(filename1 + ".new") # remove using equiv name. 70 shutil.move(filename1, filename2 + ".new") 72 self.assertTrue(os.path.exists(filename1 + '.new')) [all …]
|
D | test_compileall.py | 46 def is_hardlink(filename1, filename2): argument 48 inode1 = os.stat(filename1).st_ino
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
D | dup203.c | 22 static char filename0[40], filename1[40]; variable 46 fd1 = SAFE_CREAT(filename1, 0666); in run() 47 SAFE_WRITE(SAFE_WRITE_ALL, fd1, filename1, strlen(filename1)); in run() 86 SAFE_UNLINK(filename1); in run() 95 sprintf(filename1, "dup203.file1.%d\n", pid); in setup()
|
/external/libbrillo/brillo/http/ |
D | http_form_data_test.cc | 74 base::FilePath filename1 = dir.GetPath().Append("sample.txt"); in TEST() local 77 base::WriteFile(filename1, file1.data(), file1.size()))); in TEST() 87 filename1, in TEST() 149 base::FilePath filename1 = dir.GetPath().Append("sample.txt"); in TEST() local 152 base::WriteFile(filename1, file1.data(), file1.size()))); in TEST() 164 "", filename1, content_disposition::kFile, mime::text::kPlain, nullptr)); in TEST()
|
/external/pdfium/testing/tools/ |
D | text_diff.py | 14 filename1 = argv[1] 17 with open(filename1, "r") as f1: 22 str1, str2, fromfile=filename1, tofile=filename2)
|
/external/tensorflow/tensorflow/core/util/ |
D | events_writer_test.cc | 166 string filename1 = writer.FileName(); in TEST() local 167 EXPECT_EQ(filename0, filename1); in TEST() 168 VerifyFile(filename1); in TEST() 201 string filename1 = writer.FileName(); in TEST() local 202 EXPECT_NE(filename0, filename1); in TEST() 203 VerifyFile(filename1); in TEST()
|
/external/mtools/ |
D | mainloop.c | 294 const char *filename1, in recurs_dos_loop() argument 313 if(!strcmp(filename0,".") && filename1) { in recurs_dos_loop() 322 if(!filename1) in recurs_dos_loop() 324 filename0 = filename1; in recurs_dos_loop() 325 filename1 = 0; in recurs_dos_loop() 332 (!strcmp(filename0, "..") && filename1)) { in recurs_dos_loop() 335 return recurs_dos_loop(mp, filename0+2, filename1, lookupState); in recurs_dos_loop() 338 doing_mcwd = !!filename1; in recurs_dos_loop() 343 ptr = filename1; in recurs_dos_loop() 344 filename1 = 0; in recurs_dos_loop() [all …]
|
/external/libchrome/base/files/ |
D | file_util.cc | 52 bool ContentsEqual(const FilePath& filename1, const FilePath& filename2) { in ContentsEqual() argument 56 std::ifstream file1(filename1.value().c_str(), in ContentsEqual() 86 bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2) { in TextContentsEqual() argument 87 std::ifstream file1(filename1.value().c_str(), std::ios::in); in TextContentsEqual()
|
D | file_util.h | 151 BASE_EXPORT bool ContentsEqual(const FilePath& filename1, 156 BASE_EXPORT bool TextContentsEqual(const FilePath& filename1,
|
/external/curl/tests/unit/ |
D | unit1304.c | 53 static const char * const filename1 = "log/netrc1304"; variable 54 memcpy(filename, filename1, strlen(filename1));
|
/external/cronet/base/files/ |
D | file_util.cc | 216 bool ContentsEqual(const FilePath& filename1, const FilePath& filename2) { in ContentsEqual() argument 221 std::ifstream file1(filename1.value().c_str(), in ContentsEqual() 226 std::ifstream file1(filename1.value(), std::ios::in | std::ios::binary); in ContentsEqual() 255 bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2) { in TextContentsEqual() argument 257 std::ifstream file1(filename1.value().c_str(), std::ios::in); in TextContentsEqual() 260 std::ifstream file1(filename1.value(), std::ios::in); in TextContentsEqual()
|
D | file_util.h | 217 BASE_EXPORT bool ContentsEqual(const FilePath& filename1, 222 BASE_EXPORT bool TextContentsEqual(const FilePath& filename1,
|
/external/pdfium/testing/image_diff/ |
D | image_diff.cpp | 419 std::string filename1; in main() local 445 filename1 = argv[i++]; in main() 453 return DiffImages(binary_name, filename1, filename2, diff_filename, in main() 457 return CompareImages(binary_name, filename1, filename2, histograms, in main()
|
/external/toolchain-utils/llvm_tools/ |
D | patch_utils_unittest.py | 143 filename1 = "clang/lib/Driver/ToolChains/Clang.cpp" 145 self.assertEqual(set(hunk_dict.keys()), {filename1, filename2}) 146 hunk_list1 = hunk_dict[filename1]
|
/external/tensorflow/tensorflow/core/grappler/ |
D | grappler_item_builder_test.cc | 122 string filename1 = in TEST_F() local 124 env->DeleteFile(filename1).IgnoreError(); in TEST_F() 126 TF_CHECK_OK(env->NewWritableFile(filename1, &file_to_write)); in TEST_F() 128 TF_CHECK_OK(env->FileExists(filename1)); in TEST_F()
|
/external/autotest/server/site_tests/firmware_Fingerprint/ |
D | firmware_Fingerprint.py | 294 def files_match(self, filename1, filename2): argument 296 cmd = 'cmp %s %s' % (filename1, filename2)
|
/external/eigen/lapack/ |
D | CMakeLists.txt | 76 foreach(filename1 IN LISTS ReferenceLapack_SRCS0) 77 string(REPLACE "reference/" "" filename ${filename1})
|
/external/cronet/testing/unexpected_passes_common/ |
D | expectations_unittest.py | 119 filename1 = '/tmp/foo' 121 expectation_files = [filename1, filename2] 122 self._expectation_content[filename1] = FAKE_EXPECTATION_FILE_CONTENTS
|
/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_os_test.py | 2199 filename1 = self.make_path('foo') 2200 self.create_file(filename1) 2201 self.assertTrue(self.os.path.exists(filename1)) 2834 filename1 = self.make_path('Foo', 'Bar') 2835 self.assert_raises_os_error(errno.ENOTDIR, self.os.chdir, filename1)
|
/external/llvm/docs/ |
D | CoverageMappingFormat.rst | 418 ``[numFilenames : LEB128, filename0 : string, filename1 : string, ...]``
|
/external/libcups/locale/ |
D | cups.strings | 1481 …d [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n program | cupstestppd [options] -"…
|
D | cups_en.po | 5283 "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n" 5286 "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n"
|
D | cups_cs.po | 5027 "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n"
|
D | cups_zh_CN.po | 5154 "Usage: cupstestppd [options] filename1.ppd[.gz] [... filenameN.ppd[.gz]]\n"
|