Home
last modified time | relevance | path

Searched refs:file2 (Results 1 – 25 of 219) sorted by relevance

123456789

/external/libchrome/base/files/
Dfile_util.cc58 std::ifstream file2(filename2.value().c_str(), in ContentsEqual() local
63 if (!file1.is_open() || !file2.is_open()) in ContentsEqual()
70 file2.read(buffer2, BUFFER_SIZE); in ContentsEqual()
72 if ((file1.eof() != file2.eof()) || in ContentsEqual()
73 (file1.gcount() != file2.gcount()) || in ContentsEqual()
76 file2.close(); in ContentsEqual()
79 } while (!file1.eof() || !file2.eof()); in ContentsEqual()
82 file2.close(); in ContentsEqual()
88 std::ifstream file2(filename2.value().c_str(), std::ios::in); in TextContentsEqual() local
92 if (!file1.is_open() || !file2.is_open()) in TextContentsEqual()
[all …]
Dfile_unittest.cc31 File file2(base::File::FILE_ERROR_TOO_MANY_OPENED); in TEST() local
32 EXPECT_FALSE(file2.IsValid()); in TEST()
33 EXPECT_EQ(base::File::FILE_ERROR_TOO_MANY_OPENED, file2.error_details()); in TEST()
243 File file2(file_path, in TEST() local
246 ASSERT_TRUE(file2.IsValid()); in TEST()
249 file = std::move(file2); in TEST()
250 EXPECT_FALSE(file2.IsValid()); in TEST()
460 File file2(file.Duplicate()); local
461 ASSERT_TRUE(file2.IsValid());
468 ASSERT_EQ(0, file2.Seek(base::File::FROM_CURRENT, 0));
[all …]
/external/toybox/tests/
Dmv.test27 touch file1 file2 dir1/file3
79 touch dir1/dir2/file1 dir1/dir2/file2
90 touch file1 file2
95 touch file1 file2
100 touch file1 file2
101 chmod 400 file1 file2
Dtar.test36 touch dir/dir1/file1 dir/dir1/file2 dir/dir1/file3 dir/dir1/file4
43 echo "Exclude me" > dir/dir3/file2 ; echo "YO" > dir/dir4/file1 ; echo "Hello" >dir/dir4/file2; ec…
51 …/dir3/file1 ; echo "Exclude me" > dir/dir3/file2 ; echo "YO" > dir/dir4/file1 ; echo "Hello" >dir…
64 …/dir3/file1 ; echo "dir3/file2" > dir/dir3/file2 ; echo "YO" > dir/dir4/file1 ; echo "Hello" >dir…
Dxzcat.test18 echo "hi" > file2
21 tar -cJf file2.xz file2
25 $xzcatExe file1.xz file2.xz file3.xz > xzcatOut
Dzcat.test18 echo "hi" > file2
21 tar -czf file2.gz file2
25 $zcatExe file1.gz file2.gz file3.gz > zcatOut
Dbzcat.test18 echo "hi" > file2
21 tar -cjf file2.tar.bz2 file2
25 $bzcatExe file1.tar.bz2 file2.tar.bz2 file3.tar.bz2 > bzcatOut
Drm.test23 touch file1.txt file2.txt
31 touch file1.txt file2.txt
41 touch dir1/file1.txt dir1/dir2/file2.txt dir1/dir2/dir3/file3.txt
Dtac.test9 echo -e "two-A\ntwo-B" > file2
29 rm file1 file2
Drev.test8 echo -e "two" > file2
25 rm file1 file2
Dsha1sum.test30 echo -n "def" > file2
56 rm -f file1 file2
Dcat.test8 echo "two" > file2
32 rm file1 file2
Dxxd.test8 echo -n > file2
47 rm file1 file2
/external/lzma/CPP/7zip/Archive/7z/
D7zUpdate.cpp488 CFileItem &file, CFileItem2 &file2) in FromUpdateItemToFileItem() argument
493 file2.CTime = ui.CTime; file2.CTimeDefined = ui.CTimeDefined; in FromUpdateItemToFileItem()
494 file2.ATime = ui.ATime; file2.ATimeDefined = ui.ATimeDefined; in FromUpdateItemToFileItem()
495 file2.MTime = ui.MTime; file2.MTimeDefined = ui.MTimeDefined; in FromUpdateItemToFileItem()
496 file2.IsAnti = ui.IsAnti; in FromUpdateItemToFileItem()
498 file2.StartPosDefined = false; in FromUpdateItemToFileItem()
738 static void GetFile(const CDatabase &inDb, int index, CFileItem &file, CFileItem2 &file2) in GetFile() argument
741 file2.CTimeDefined = inDb.CTime.GetItem(index, file2.CTime); in GetFile()
742 file2.ATimeDefined = inDb.ATime.GetItem(index, file2.ATime); in GetFile()
743 file2.MTimeDefined = inDb.MTime.GetItem(index, file2.MTime); in GetFile()
[all …]
/external/valgrind/cachegrind/
Dcg_diff.in46 usage: cg_diff [options] <cachegrind-out-file1> <cachegrind-out-file2>
73 my ($file1, $file2) = (undef, undef);
95 } elsif (not defined($file2)) {
96 $file2 = $arg;
104 if (not defined $file1 or not defined $file2) {
108 return ($file1, $file2);
276 my ($file1, $file2) = process_cmd_line();
278 ($cmd2, $events2, $CCs2, $summaryCC2) = read_input_file($file2);
308 print("desc: Files compared: $file1; $file2\n");
/external/libbrillo/brillo/http/
Dhttp_form_data_unittest.cc77 std::string file2{"\x01\x02\x03\x04\x05"}; in TEST() local
79 ASSERT_EQ(file2.size(), in TEST()
81 base::WriteFile(filename2, file2.data(), file2.size()))); in TEST()
152 std::string file2{"\x01\x02\x03\x04\x05"}; in TEST() local
154 ASSERT_EQ(file2.size(), in TEST()
156 base::WriteFile(filename2, file2.data(), file2.size()))); in TEST()
/external/google-breakpad/src/client/linux/minidump_writer/
Dcpu_set_unittest.cc124 ScopedTestFile file2("16-24"); in TEST() local
125 ASSERT_TRUE(file2.IsOk()); in TEST()
127 ASSERT_TRUE(set2.ParseSysFile(file2.GetFd())); in TEST()
153 ScopedTestFile file2("20-39"); in TEST() local
154 ASSERT_TRUE(file2.IsOk()); in TEST()
156 ASSERT_TRUE(set2.ParseSysFile(file2.GetFd())); in TEST()
/external/llvm/utils/
Dcodegen-diff60 my @file2 = parse_gdb_file ($gdb_file);
61 my $lastrecord = ($#file1 >= $#file2) ? ($#file1) : ($#file2);
64 my $d2 = $file2[$i];
/external/icu/icu4c/source/tools/toolutil/
Dfiletools.cpp36 static int32_t whichFileModTimeIsLater(const char *file1, const char *file2);
102 static int32_t whichFileModTimeIsLater(const char *file1, const char *file2) { in whichFileModTimeIsLater() argument
106 if (stat(file1, &stbuf1) == 0 && stat(file2, &stbuf2) == 0) { in whichFileModTimeIsLater()
121 fprintf(stderr, "Unable to get stats from file: %s or %s\n", file1, file2); in whichFileModTimeIsLater()
/external/mesa3d/src/glsl/tests/
Dcompare_ir49 file2, path2 = tempfile.mkstemp(os.path.basename(sys.argv[2])) variable
53 os.write(file2, '{0}\n'.format(sexp_to_string(ir2)))
54 os.close(file2)
/external/sl4a/ScriptingLayer/src/com/googlecode/android_scripting/
DScriptStorageAdapter.java73 public int compare(File file1, File file2) { in listAllScripts()
74 if (file1.isDirectory() && !file2.isDirectory()) { in listAllScripts()
76 } else if (!file1.isDirectory() && file2.isDirectory()) { in listAllScripts()
79 return file1.compareTo(file2); in listAllScripts()
/external/curl/tests/
Dgetpart.pm263 my $file2="$logdir/check-expected";
275 open(TEMP, ">$file2");
284 my @out = `diff -u $file2 $file1 2>/dev/null`;
287 @out = `diff -c $file2 $file1 2>/dev/null`;
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue46/
DFileTest.java46 File file2 = parsed.get("one"); in test() local
47 assertTrue(file2.getAbsolutePath(), file2.getAbsolutePath().endsWith("list-bean-1.yaml")); in test()
/external/pdfium/samples/
Dimage_diff.cc219 const std::string& file2, in CompareImages() argument
228 if (!baseline_image.CreateFromFilename(file2)) { in CompareImages()
229 fprintf(stderr, "image_diff: Unable to open file \"%s\"\n", file2.c_str()); in CompareImages()
281 const std::string& file2, in DiffImages() argument
290 if (!baseline_image.CreateFromFilename(file2)) { in DiffImages()
291 fprintf(stderr, "image_diff: Unable to open file \"%s\"\n", file2.c_str()); in DiffImages()
/external/curl/src/
Dtool_operhlp.c91 char *file2 = strrchr(filep?filep:filename, '\\'); in add_file_name_to_url() local
94 if(file2) in add_file_name_to_url()
95 filep = file2 + 1; in add_file_name_to_url()

123456789